Home/Q&A/Can Claude Code build iOS apps and run the simulator on a remote Mac mini?

Can Claude Code build iOS apps and run the simulator on a remote Mac mini?

Updated · airankrush

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: xcodebuild handles building and testing, and xcrun simctl boots 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.

Information as of .

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

  1. Sign in with an Apple Account, install Xcode from the App Store, and install the simulator runtimes you need on first launch.
  2. Run xcodebuild -list to confirm it can read the schemes in the project.
  3. Have Claude Code run one build and test against a simulator with xcodebuild, saving the full log to a file.
  4. When it needs to see the UI, have it take a screenshot with xcrun simctl io booted screenshot and read it itself.
  5. Clear the build cache directory regularly and keep an eye on free disk space.

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:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A