# Can Codex or Cursor Build an iOS App Without a Mac? Yes — Here's How

> Codex cloud tasks and Cursor's cloud agents run on Linux, where Xcode and the iOS Simulator don't exist. Here's how to let them compile a SwiftUI app on a cloud Mac, get the compiler errors back, and share a live iPhone link for review.

Published 2026-11-26 by The Cabano Team. Canonical: https://cabano.app/blog/build-ios-app-without-mac-codex-cursor/

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:

```sh
npx -y cabano share --remote
```

1. uploads the project files git tracks, so anything in `.gitignore` stays behind;
2. builds the app on Cabano's Mac;
3. installs it on a fresh cloud iPhone simulator; and
4. 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

1. **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.

2. **Give Codex an API key.** Create one on the [API keys page](/console/api-keys) and add it to your Codex environment as `CABANO_API_KEY`.

3. **Allow network access.** If the environment restricts the agent's internet access, allow `cabano.app` and `registry.npmjs.org`.

4. **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`:

```toml
[mcp_servers.cabano]
command = "npx"
args = ["-y", "cabano", "mcp"]
```

## Set up Cursor

1. **Teach Cursor about Cabano.** Cursor's agents also read `AGENTS.md`, so the same `npx -y cabano init --agents-md` works. Commit the change.

2. **Add the key** to your cloud agent's environment as `CABANO_API_KEY`, and allow network access to `cabano.app` and `registry.npmjs.org` if it's restricted.

3. **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:

```sh
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](/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](/blog/claude-code-ios-app-preview-link/).

The full reference, including CI setup, is in the [Cabano docs](/docs/cloud).
