xcode_build
Build an Xcode project or workspace with a specified scheme and optional destination. Automates the build and parses logs to extract errors and warnings.
Instructions
Build a specific Xcode project or workspace with the specified scheme. If destination is not provided, uses the currently active destination. ⏱️ Can take minutes to hours - do not timeout.
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": {
"xcodeproj": "<xcodeproj>",
"scheme": "<scheme>"
},
"name": "xcode_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xcodeproj | Yes | Absolute path to the .xcodeproj file to build (or .xcworkspace if available) - e.g., /path/to/project.xcodeproj | |
| scheme | Yes | Name of the scheme to build | |
| destination | No | Build destination (optional - uses active destination if not provided) |