Build an iOS app
build_appBuild an iOS app from its source in the cloud (Xcode on a Mac, from any OS) and, with phone_id, install and open it on an iPhone or iPad in the same call. Source: git_url + ref (token for a private repository: used once, never stored), source_url (a link to a .tar.gz or .zip), or source_base64 (a .tar.gz up to 10 MB: tar czf - . | base64). XcodeGen (project.yml), CocoaPods, Swift packages, React Native and Expo projects are prepared by themselves. A failed build answers its compiler errors as file:line: message: fix them and call again. Waits up to 50 s; still building: call again with build_id. $0.05 per build-minute, billed per second.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "build_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or commit (default: the default branch) | |
| path | No | The folder holding the Xcode project, inside the repository or archive, e.g. "ios" | |
| task | No | Optional: what you are trying to do, in one line, e.g. "test the sign-up flow of my Android app". Helps us build what agents need; never shown publicly. | |
| model | No | With phone_id "new": iphone (default) or ipad | |
| token | No | A read-only token for a private repository; used once for the clone, never stored or logged | |
| tuist | No | true for a Tuist project | |
| scheme | No | Xcode scheme (default: the project's first shared scheme) | |
| git_url | No | https URL of the repository, e.g. https://github.com/you/app | |
| project | No | Path of the .xcodeproj, when there are several | |
| build_id | No | An earlier build (bld_…): wait for it and get its result, instead of starting a new one | |
| phone_id | No | Install and open the app on this iPhone or iPad when built, or "new" to create one | |
| platform | No | ios (default); android is recorded as a request | |
| xcodegen | No | true or the spec path: generate with XcodeGen first (a project.yml at the top is used by itself) | |
| workspace | No | Path of the .xcworkspace (CocoaPods projects build from it) | |
| source_url | No | A link that downloads the source archive (.tar.gz, .tar or .zip) without a login, e.g. presigned | |
| configuration | No | Debug (default) or Release | |
| source_base64 | No | The source as a base64 .tar.gz (or .zip), up to 10 MB: tar czf - -C MyApp . | base64 |