build_run_sim_id_ws
Build and run apps from an Xcode workspace on a specific simulator by specifying workspacePath, scheme, and simulator UUID. Supports custom build configurations and derived data paths.
Instructions
Builds and runs an app from a workspace on a simulator specified by UUID. IMPORTANT: Requires workspacePath, scheme, and simulatorId. Example: build_run_sim_id_ws({ workspacePath: '/path/to/workspace', scheme: 'MyScheme', simulatorId: 'SIMULATOR_UUID' })
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": {
"workspacePath": "<workspacePath>",
"scheme": "<scheme>",
"simulatorId": "<simulatorId>"
},
"name": "build_run_sim_id_ws"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| configuration | No | Build configuration (Debug, Release, etc.) | |
| derivedDataPath | No | Path where build products and other derived data will go | |
| extraArgs | No | Additional xcodebuild arguments | |
| preferXcodebuild | No | If true, prefers xcodebuild over the experimental incremental build system, useful for when incremental build system fails. | |
| scheme | Yes | The scheme to use (Required) | |
| simulatorId | Yes | UUID of the simulator to use (obtained from listSimulators) (Required) | |
| useLatestOS | No | Whether to use the latest OS version for the named simulator | |
| workspacePath | Yes | Path to the .xcworkspace file (Required) |