xcode_clean
Clean build artifacts for an Xcode scheme to eliminate stale data and resolve build issues. Prepares the project for a fresh, reliable rebuild.
Instructions
Clean build artifacts for the specified scheme
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_clean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scheme | Yes | Build scheme name | |
| projectPath | No | When omitted, xcodebuild runs in the MCP server process's working directory (usually not the project directory); passing projectPath explicitly is recommended | |
| timeoutSeconds | No | Command timeout in seconds (default: 600) |