build_spm_package
Builds a Swift Package Manager package using swift build instead of Xcode. Offers options for target, build configuration, and package path.
Instructions
Builds a Swift Package Manager package directly using 'swift build' instead of Xcode.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "build_spm_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Specific target to build. If not provided, builds all targets. | |
| verbose | No | Whether to show verbose output (default: false) | |
| packagePath | No | Optional path to the directory containing Package.swift. If not provided, uses the active project directory. | |
| configuration | No | Build configuration to use (default: debug) |