# Build and run your iOS app in the cloud, from any OS.

Send Mobilebox your Xcode project (an upload, a Git URL or a download link) and it builds the app on Macs in the cloud, then installs it on an iPhone or iPad simulator your AI agent drives, all from Windows, Linux or CI with no Mac. A build costs $0.05 a build-minute; our own SwiftUI app built in about 1 minute and was on an iPhone in about 1.5.

[Build your app](https://mobilebox.dev/signup?device=iphone&amp;via=need-build-ios&via=md) [Builds guide](https://mobilebox.dev/docs/builds?via=md)

Sign up with GitHub, Google or email. New workspaces get free credit, no card.

## Your source in, an iPhone with your app out.

One call builds the app and puts it on a new iPhone simulator. Your agent then reads the screen, taps through the flow and takes screenshots, as on any Mobilebox phone.

[Every option and the response](https://mobilebox.dev/docs/builds?via=md)

```
# Pack the project, build it, install it on a new iPhone
tar czf app.tar.gz -C MyApp .
curl -X POST "https://mobilebox.dev/v1/builds?scheme=MyApp&phone_id=new&wait=55" \
  -H "Authorization: Bearer $MOBILESANDBOX_API_KEY" \
  -H "Content-Type: application/gzip" --data-binary @app.tar.gz

# Or straight from Git (token only for a private repo, used once)
curl -X POST "https://mobilebox.dev/v1/builds" \
  -H "Authorization: Bearer $MOBILESANDBOX_API_KEY" -H "Content-Type: application/json" \
  -d '{"git_url": "https://github.com/you/app", "ref": "main", "phone_id": "new"}'

# Still building? Wait on it
curl -s "https://mobilebox.dev/v1/builds/$BUILD_ID?wait=55" -H "Authorization: Bearer $MOBILESANDBOX_API_KEY" \
  | jq '{status, errors, app, phone}'
```

## Your agent builds, reads the errors, fixes and runs it.

The MCP tool `build_app` takes the same inputs. A failed build comes back with each compiler error as a file, line and message, so the agent opens that line, fixes it and builds again.

1. Build
   `build_app` with `git_url`, `source_url` or `source_base64` (a base64 `.tar.gz` up to 10 MB) and `phone_id: "new"`.

2. Fix what failed
   `errors` lists `MyApp/Session.swift:59:8` and the message; the agent edits the file and calls `build_app` again.

3. Use the app
   On success the app is installed and open on the iPhone: `observe`, `act` and `screenshot` test it, and `watch_phone` shows it to you live.

## What a build gives you

From the [builds guide](https://mobilebox.dev/docs/builds?via=md) and the [API reference](https://mobilebox.dev/docs/reference?via=md#builds).

| You send | You get back |
| --- | --- |
| A .tar.gz, .tar or .zip of the project, up to 100 MB | The build’s status, from queued and building to succeeded or failed, and its log as it runs |
| A Git URL with a branch, tag or commit | A private repo’s token is used once for the clone and never stored; path picks the folder with the Xcode project |
| SwiftUI or UIKit, XcodeGen, CocoaPods, Swift packages, React Native, Expo | A project.yml is generated, Pods and packages are installed, and React Native and Expo projects are found from package.json |
| A failed build | errors with file, line, column and message, plus failure with the stage and the next step |
| A good build | A universal simulator .app (arm64 and x86_64) to download, its bundle id and version, and with phone_id the app on an iPhone or iPad |
| Cost | $0.05 a build-minute, billed per second with a one-minute minimum; the iPhone is $0.03 a minute as usual |

## Questions

Building iOS apps without a Mac.

Can I build an iOS app without a Mac?

Yes. Send your Xcode project to `POST /v1/builds` (or `build_app` over MCP) from Windows, Linux or CI: Mobilebox builds it on Macs in the cloud and returns the simulator app, or installs it on an iPhone or iPad simulator in the same call. A build costs $0.05 a build-minute.

How long does a build take?

A typical build takes 1 to 2 minutes. Our own native iOS app (SwiftUI, XcodeGen) built in about 1 minute of build time and was installed and open on an iPhone and an iPad in about 1.5 minutes end to end, a 7 MB universal simulator app.

What does it cost?

$0.05 per build-minute, billed per second with a one-minute minimum, failed builds included, like phone minutes. A 2-minute build costs $0.10. The iPhone or iPad it installs on costs $0.03 a minute as usual. See [pricing](https://mobilebox.dev/pricing?via=md).

Can my AI agent fix a failing build by itself?

Yes. A failed build lists each compiler error with its file (relative to your project), line, column and message. Claude Code, Cursor or Codex opens that line, fixes it and calls `build_app` again, then tests the app on the iPhone it installs on.

Does it work from GitHub Actions on Linux?

Yes. A Linux job packs the source with `git archive --format=tar.gz HEAD > app.tar.gz` and posts it, or sends the repo’s `git_url`; no macOS runner is needed. `publish_proof` then turns the test run into a pull-request comment.

Is my source code kept?

No. Uploaded source is deleted from our servers as soon as the build has it and is never logged; a Git token is used once for the clone and never stored. The built apps are kept per workspace, the newest 20, so you can install one on another phone later.

And Android apps from source?

Send `platform: "android"` and the request is counted toward Android builds from source. The answer gives the way that works today: build the APK with `./gradlew assembleDebug`, EAS or your CI, then install it with `install_app`. See [run an APK online](https://mobilebox.dev/run-apk-online?via=md).

## Read more

[How do I test an iOS app with Claude Code, Cursor or Codex? The MCP config for Claude Code, Cursor and Codex, a bounded test prompt for an iOS simulator in the cloud, the tool calls the agent makes and what a check costs. Guides4 min read](https://mobilebox.dev/blog/ios-app-testing-claude-code-cursor-codex?via=md) [How do I run an iOS simulator online, without a Mac? Expo Simulators, Limrun, Appetize, Argent Cloud, a rented cloud Mac or Mobilebox: what each gives you, how an agent drives it, the published price, and how to make the simulator build on a macOS CI runner. Decisions6 min read](https://mobilebox.dev/blog/ios-simulator-without-a-mac?via=md)

## Try it in your agent in 60 seconds

Paste this into Claude Code, Cursor, Codex or any agent that can read a web page. It asks for your email, gets its own key at once and adds the phone tools; the 6-digit code from your inbox keeps the workspace.

```
Set up Mobilebox for me: read https://mobilebox.dev/setup.md?via=build-ios-app-without-mac and follow it.
```

[What your agent reads](https://mobilebox.dev/setup.md?via=build-ios-app-without-mac)

## Next questions

- [What does it cost for a team?](https://mobilebox.dev/blog/mobilebox-pricing-for-teams?via=next-team)

- [How fast do cloud phones start, measured?](https://mobilebox.dev/benchmarks?via=next-benchmarks)

- [Is there a Python package?](https://mobilebox.dev/blog/android-phone-for-python-ai-agent?via=next-python)

- [Does my agent need a real device?](https://mobilebox.dev/blog/real-android-devices-vs-cloud-phones?via=next-real-device)

- [Can my agent automate tasks in my apps?](https://mobilebox.dev/app-automation?via=next-automation)

- [What replaces Firebase Test Lab?](https://mobilebox.dev/blog/mobilebox-vs-firebase-test-lab?via=next-firebase)

- [Mobilebox or BrowserStack?](https://mobilebox.dev/blog/mobilebox-vs-browserstack?via=next-browserstack)

- [Cloud phone or a local emulator?](https://mobilebox.dev/blog/mobilebox-vs-local-emulator?via=next-emulator)
