xcode_build
Build an Xcode project or workspace by specifying a scheme and optional configuration, destination, SDK, and build arguments to compile and link the code.
Instructions
Build an Xcode project or workspace with the specified scheme and configuration
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scheme": "<scheme>"
},
"name": "xcode_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sdk | No | SDK to build with (e.g., "iphonesimulator", "iphoneos") | |
| scheme | Yes | Build scheme name | |
| extraArgs | No | Additional xcodebuild arguments | |
| destination | No | Build destination (e.g., "platform=iOS Simulator,name=iPhone 16,OS=latest") | |
| projectPath | No | When omitted, xcodebuild runs in the MCP server process's working directory (usually not the project directory); passing projectPath explicitly is recommended | |
| configuration | No | Build configuration (e.g., "Debug", "Release") | |
| timeoutSeconds | No | Command timeout in seconds (default: 600) | |
| derivedDataPath | No | Custom derived data path |