build_app
Builds an Xcode project or workspace scheme for a connected iPhone or iPad and installs the app by default, returning the bundle ID and .app path or compiler errors.
Instructions
Build an Xcode project or workspace scheme for the device and (by default) install it, replacing the installed copy. Pass project or workspace. Use it when starting from source; use install_app for an already built .app or .ipa, and launch_app afterwards, because this doesn't launch. Signing uses the project's own settings, and Xcode may update provisioning profiles. Returns the bundle ID and .app path, or the compiler errors (up to 15 lines). Can take minutes; the build is stopped after 20.
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": "build_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device. | |
| scheme | Yes | Xcode scheme that builds the app | |
| install | No | Install after building (default true) | |
| project | No | Path to .xcodeproj | |
| workspace | No | Path to .xcworkspace | |
| configuration | No | Default: Debug |