xcode_build_and_run
Build and run an Xcode project using a specified scheme, with optional command-line arguments for custom configuration.
Instructions
Build and run a specific project with the specified scheme. ⏱️ Can run indefinitely - 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_and_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xcodeproj | Yes | Absolute path to the .xcodeproj file (or .xcworkspace if available) - e.g., /path/to/project.xcodeproj | |
| scheme | Yes | Name of the scheme to run | |
| command_line_arguments | No | Additional command line arguments |