Can Codex or Cursor Build an iOS App Without a Mac? Yes — Here's How
Codex and Cursor can write Swift as well as any other language. The catch is that compiling an iOS app requires Xcode, Xcode only runs on macOS, and cloud agents run on Linux. So a cloud agent can write a SwiftUI feature, but it can’t tell whether it compiles, and nobody can try the result.
This guide shows how to close that gap with Cabano: the agent sends the project to a cloud Mac to build, gets compiler errors back, and returns a link anyone can open to use the app on a real iOS simulator in their browser.
Why can’t a cloud agent build iOS apps on its own?
Three Apple pieces are missing on Linux:
- Xcode and the iOS SDK, which compile Swift and SwiftUI against iOS frameworks.
- The iOS Simulator, which runs the compiled app.
- A screen. Even on a Mac, the agent can’t show the simulator to anyone else.
An agent without them is coding blind: it can’t catch a type error in a SwiftUI view until a person with a Mac pulls the branch.
How Cabano fills the gap
Cabano’s CLI runs anywhere Node.js 18 or later runs. In an iOS project on a machine without Xcode, this command:
npx -y cabano share --remote
- uploads the project files git tracks, so anything in
.gitignorestays behind; - builds the app on Cabano’s Mac;
- installs it on a fresh cloud iPhone simulator; and
- prints a link like
https://cabano.app/s/….
When Xcode isn’t installed, cabano share does this on its own, so --remote is optional. If the build fails, the compiler errors come back in the command’s output, and as JSON with --json. The agent fixes the code and reruns the command. The link keeps showing the last good build in the meantime.
Cloud builds support native Xcode projects: SwiftUI, UIKit, and Swift packages. React Native and Expo apps still need to be built on a Mac for now.
Set up Codex
- Teach Codex about Cabano. Codex reads
AGENTS.md. In your repo, run:
sh
npx -y cabano init --agents-md
This adds a short Cabano section to AGENTS.md, creating the file if needed. Commit it so cloud tasks see it.
-
Give Codex an API key. Create one on the API keys page and add it to your Codex environment as
CABANO_API_KEY. -
Allow network access. If the environment restricts the agent’s internet access, allow
cabano.appandregistry.npmjs.org. -
Ask for it in the task:
Add a settings screen with a dark-mode toggle. Build it with Cabano and give me the link.
For Codex running locally, you can also add Cabano’s MCP server in ~/.codex/config.toml:
[mcp_servers.cabano]
command = "npx"
args = ["-y", "cabano", "mcp"]
Set up Cursor
-
Teach Cursor about Cabano. Cursor’s agents also read
AGENTS.md, so the samenpx -y cabano init --agents-mdworks. Commit the change. -
Add the key to your cloud agent’s environment as
CABANO_API_KEY, and allow network access tocabano.appandregistry.npmjs.orgif it’s restricted. -
Optionally add the MCP server in
.cursor/mcp.json:
json
{
"mcpServers": {
"cabano": { "command": "npx", "args": ["-y", "cabano", "mcp"] }
}
}
This gives the agent share_app, list_previews, get_feedback, resolve_feedback, and stop_preview as tools.
Close the loop with reviewers
A link isn’t the end of the job. People who open it can click Comment and pin notes to the exact spot on the screen. On the next task, the agent can read them:
npx -y cabano feedback prv_… --json
Each comment includes its text, where it was pinned, and which build it was left on. The agent fixes the code, ships the new build to the same link with npx -y cabano share --preview prv_…, and marks each comment resolved with a note. Reviewers keep using one link for the whole feature.
What it costs
Cabano uses credits. A cloud build uses one credit per build minute, and a running simulator uses half a credit per minute. Previews sleep after 5 minutes without viewers, so an idle link stops using credits. The Free plan includes 100 credits every 30 days; Pro is $20 a month. See pricing.
FAQ
Is my code safe on Cabano’s Mac?
Only files git tracks are uploaded. Builds run in a separate, locked-down build account, and the workspace is deleted when the build finishes. If you’d rather not upload source at all, build on any Mac (a CI runner works) and share just the compiled app with npx -y cabano share path/to/App.app.
Can the agent publish to the App Store this way? No. Cabano runs Simulator builds for previews and review. Shipping to TestFlight or the App Store still needs a signed device build.
Does this work for Devin, Claude Code on the web, or other cloud agents?
Yes. Anything that can run npx and reach cabano.app can use the CLI. For Claude Code there’s also a skill and slash commands; see How to share a live iPhone preview of an app Claude Code built.
The full reference, including CI setup, is in the Cabano docs.