How to Share a Live iPhone Preview of an App Claude Code Built
Claude Code is good at iOS work. Give it a SwiftUI project and a feature request and it will write the code, run xcodebuild, read the compiler errors, and keep going until the build succeeds. On a Mac it can even boot the iOS Simulator.
The problem comes next. The simulator is on your machine. Your designer, cofounder, client, or PM can’t tap through it, and TestFlight means an archive, an upload, processing, and an invite for every change. This guide shows how to let Claude Code hand people a live iPhone link instead, and act on what they say.
Can Claude Code run the iOS Simulator?
On a Mac with Xcode installed, yes. Claude Code can build with xcodebuild and drive the Simulator with xcrun simctl. But that simulator only exists on your desktop. To get a build in front of someone else, you need a simulator they can reach from a browser.
In a cloud sandbox, such as Claude Code on the web, there’s no Xcode and no Simulator at all, because the sandbox runs Linux. The same setup below covers that case too.
Set it up once
You need a free Cabano account and an API key from the API keys page. Then, in your app’s repo:
npx -y cabano login cab_…
npx -y cabano init
init adds three things that Claude Code picks up automatically:
- A skill at
.claude/skills/cabano/SKILL.mdthat teaches Claude Code how to share the app, reuse the same link for later builds, recover from build errors, and work through reviewer comments. - Two slash commands:
/cabano-sharebuilds the app and puts it on a cloud iPhone, and/cabano-feedbackreads open comments, fixes them, and ships the result. - An
AGENTS.mdsection, if the repo has one, so Codex and Cursor in the same repo know about Cabano too.
Use npx -y cabano init --global to install the skill for every project, or add --mcp to also register Cabano’s MCP server. You can add the MCP server by hand with:
claude mcp add cabano -- npx -y cabano mcp
Ask Claude Code to share the app
Now you can say it in plain English:
Share this app with Cabano.
Claude Code runs cabano share in the project folder. The CLI finds your .xcworkspace or .xcodeproj (including the ios/ folder of an Expo or React Native app), builds it for the Simulator, uploads only the compiled app, and waits until it’s running. Claude Code replies with a link like https://cabano.app/s/….
Anyone who opens that link gets your app on a real iOS simulator in their browser. They can tap, scroll, type, and rotate the device. They don’t need an account, a Mac, or TestFlight.
If the build fails, the compiler errors come back to Claude Code, which fixes the code and runs the same command again. Reviewers never see a broken screen, because the previous build keeps running on the link until a new one succeeds.
Let reviewers’ comments come back to Claude Code
Reviewers click Comment on the link, click the spot on the screen that needs work, and type what should change. Then you tell Claude Code:
Check the Cabano feedback and fix anything open.
Or run /cabano-feedback. Claude Code reads each comment with its pinned position and the build it was left on, changes the code, and ships the new build to the same link with cabano share --preview <id>. Then it resolves each comment it addressed, with a short note:
npx -y cabano resolve prv_… <comment-id> --note "Moved the Save button above the keyboard"
The reviewer refreshes the same link and sees the fix. Comments Claude Code didn’t address stay open, and it tells you why.
Using Claude Code on the web or another cloud sandbox
Without Xcode, cabano share switches to a cloud build automatically (or pass --remote). It uploads the files git tracks, so anything in .gitignore stays behind, builds the app on Cabano’s Mac, and returns compiler errors to the agent the same way. Two things to set up in the sandbox:
- The API key. Set
CABANO_API_KEYas an environment variable or secret instead of runningcabano login. - Network access. If the environment limits which domains the agent can reach, allow
cabano.appandregistry.npmjs.org.
Cloud builds work for native Xcode projects (SwiftUI, UIKit, Swift packages). React Native and Expo apps need to be built on a Mac for now; the result is shared the same way.
Good to know
- Each link runs on its own fresh simulator, so reviewers never see someone else’s logins or data.
- Previews sleep after 5 minutes without viewers and wake when the link is opened again. A cold start takes about a minute.
- Point the app at a reachable API.
localhoston your Mac isn’t reachable from the cloud simulator, so use a staging URL. - Simulator limits apply. Push notifications, Apple Pay, the camera, and Sign in with Apple behave as they do in any iOS Simulator.
- Cost: a running simulator uses half a credit per minute. The Free plan includes 100 credits every 30 days, about 200 minutes.
FAQ
Does Claude Code need the MCP server, or is the skill enough?
The skill is enough. It tells Claude Code to use the CLI with --json. The MCP server gives it the same actions as tools (share_app, get_feedback, resolve_feedback, list_previews, stop_preview), which some people prefer.
Does my source code get uploaded? Not when you build on your Mac. Cabano receives only the compiled Simulator app. Source is uploaded only for cloud builds, and only the files git tracks.
Can Claude Code see the simulator screen? Cabano is built for sharing with people, not for the agent to test the app visually. Claude Code works from the code, the build output, and reviewers’ pinned comments.
The full reference is in the Cabano docs.