Build Test
build_testRun Xcode unit or UI tests for a project and scheme on a simulator, returning xcodebuild exit code, stdout, and stderr.
Instructions
Run xcodebuild test for the scheme on a simulator.
Use when: running unit/UI tests. For end-to-end Maestro flows use maestro_test. Returns: {ok, exit_code, stdout, stderr} from xcodebuild.
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": {
"project": "<project>",
"scheme": "<scheme>"
},
"name": "build_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scheme | Yes | Xcode scheme name to build, e.g. 'MyApp'. | |
| project | Yes | Path to the .xcodeproj or .xcworkspace to build, e.g. /path/App/App.xcodeproj. | |
| device_name | No | Simulator device name, e.g. 'iPhone 16'. | iPhone 16 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||