Direct answer
Yes. With Xcode installed, Claude Code can build, run tests and drive the simulator from the terminal with xcodebuild. Plugging in a phone for on-device debugging does not work; the machine is in the United States.
Basis
- iOS apps have to be built on macOS, and that is the point of a remote Mac compared with an ordinary cloud server: the coding assistant can build right after changing the code, instead of waiting for you to verify on another computer.
- Xcode's command-line tools let the whole flow run without touching the GUI:
xcodebuildhandles building and testing, andxcrun simctlboots simulators, installs apps and takes screenshots. - Screenshots and test results are files, so Claude Code can read them directly to judge whether the UI came out right.
- The simulator window itself shows in the remote desktop, so connect whenever you want to see an interaction with your own eyes.
Boundaries: when the answer is different
Three things to know in advance. First, full Xcode is very large; add simulator runtimes and build caches and a small disk fills up quickly, so allow generous storage when choosing a configuration for this use. Second, building is memory-hungry; with several sessions and simulators open as well, the machine slows down noticeably. Third, signing and App Store submission need your own Apple developer account, and the rules for certificates and provisioning profiles are set by Apple. For alternatives to on-device debugging, see Can I debug on a real iPhone with a remote Mac?. Whether a given Xcode matches the current system version is per Apple's documentation; contact support before a major system upgrade.
How to do it
- Sign in with an Apple Account, install Xcode from the App Store, and install the simulator runtimes you need on first launch.
- Run
xcodebuild -listto confirm it can read the schemes in the project. - Have Claude Code run one build and test against a simulator with
xcodebuild, saving the full log to a file. - When it needs to see the UI, have it take a screenshot with
xcrun simctl io booted screenshotand read it itself. - Clear the build cache directory regularly and keep an eye on free disk space.
Related questions
- iOS without a Mac: a remote Mac mini can build, sign and upload, but not debug on a real device
- Is Xcode laggy on a remote Mac?
- Can I debug on a real iPhone with a remote Mac?
- Do I have to sign in with an Apple ID to run Claude Code on a remote Mac mini?
- Can I install Node, Homebrew and Docker on a rented Mac mini myself?
Use case
This question belongs to the use case: Remote Mac mini for heavy Claude Code use: an always-on workstation, not account insurance
Other questions in the same use case:
- Can I upgrade macOS myself on a rented Mac mini?
- Can I let Claude Code skip all permission prompts on a rented Mac mini?
- Is typing lag in a remote desktop terminal a problem for using Claude Code?
- Scrolling logs are choppy and blurry in remote desktop. What can I do?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support