Blog· What you can do with your Mac mini·
Build an iOS app on Windows with Claude Code: give the agent a Mac
Claude Code writes your iOS app on Windows but can't build or run it. Put the agent on a cloud Mac with Xcode, and it builds, tests and fixes the app itself.

Claude Code is happy to write Swift on a Windows PC. Ask it for a SwiftUI screen, a networking layer or a set of unit tests and the files appear. Then you ask it to build the app, and the loop breaks: Xcode, the iOS SDK and the iOS Simulator only run on macOS. The agent can’t compile what it wrote, can’t see the error messages, and can’t check that the screen it designed actually looks right. You end up copying errors by hand, or guessing.
The fix is simple: give the agent a Mac. Run Claude Code on a cloud Mac mini with Xcode installed, and it can build the project, run the tests, open the app in the simulator, read the errors and fix them on its own. You keep working from your Windows PC. This guide shows the setup, step by step.
Why the agent needs macOS, not just you
When you code by hand, a Mac is something you visit at the end, to build and sign. With an AI agent it is different. An agent works in a loop: write code, run the build, read the output, change the code, run it again. Every turn of that loop needs the compiler. On Windows the loop stops at the first step for anything iOS-specific, so the agent works blind.
On a Mac the loop closes. Claude Code can call xcodebuild from the terminal, start the iOS Simulator with xcrun simctl, take a screenshot of the running app and look at it. Since Xcode 26.3 there is even more: Xcode ships a built-in MCP server that lets outside agents such as Claude Code, Codex or Cursor ask Xcode itself to build, run tests and render previews.
What you need
- A Claude plan that includes Claude Code. Anthropic’s setup page lists Pro, Max, Ultra, Team, Enterprise or a Console account; the free claude.ai plan does not include it.
- An Apple Account, to download Xcode from the App Store. You only need the paid Apple Developer Program later, when you want to put the app on a real iPhone through TestFlight or publish it.
- A Mac. A SoloRack Mac mini M6 with 16 GB of memory, a 256 GB SSD and a 1 Gbit/s link, in the datacenter closest to you among those available when you book. It is yours alone, and you are an administrator on it.
- Your project in Git, so you can clone it on the Mac. If you are starting from zero, Claude Code can create the Xcode project there too.
Step 1: connect to your Mac
When your Mac is ready, My account shows your login details. You can reach the Mac two ways:
- Remote desktop, to see the Mac’s screen in a window on your PC. Use it for the App Store, for Xcode’s first launch and for watching the simulator.
- SSH, for the terminal, once you add your public SSH key in My account. Use the command shown there, which looks like this:
ssh -p <port> <user>@connect.solorack.com
Most of this guide works from either. For the first sign-ins, use the remote desktop, because they open a browser.
Step 2: install Xcode
Open the App Store on the Mac, sign in with your own Apple Account and install Xcode. It is a big download, so start it first. When it finishes, open Xcode once: it installs its extra components, and on the platform screen choose iOS so the SDK and the simulator are ready.
Then open Terminal and make sure the command-line tools point at the full Xcode and that the licence is accepted. You are an administrator, so sudo asks for your own macOS password:
sudo xcode-select -s /Applications/Xcode.app
sudo xcodebuild -license accept
xcodebuild -version
Xcode also brings Git, so you can now clone your project:
git clone https://github.com/you/your-app.git
cd your-app
Step 3: install Claude Code on the Mac
Use Anthropic’s native installer. It needs no Node.js and no sudo:
curl -fsSL https://claude.ai/install.sh | bash
Open a new Terminal window and check it with claude --version, or claude doctor for more detail. Then, inside your project folder, run claude and follow the sign-in prompts. Do this first sign-in from the remote desktop, where the Mac’s browser opens for you.
Node.js and Python are already installed on SoloRack Macs, and VSCodium is there if you want an editor on the Mac too.
Step 4: teach the agent how to build
Claude Code reads a CLAUDE.md file at the root of your project at the start of every session. Put the build and test commands in it, so the agent never has to guess. First list the simulators you have:
xcrun simctl list devices available
Pick one, then write something like this in CLAUDE.md, with your scheme name and the simulator you chose:
## Build and test
- Build: xcodebuild -scheme MyApp -destination 'platform=iOS Simulator,name=<simulator>' build
- Test: xcodebuild -scheme MyApp -destination 'platform=iOS Simulator,name=<simulator>' test
- Screenshot of the running app: xcrun simctl io booted screenshot /tmp/screen.png
- After every change: build, fix all errors and warnings, then run the tests.
The screenshot line matters more than it looks. Claude Code can open an image and describe it, so after it launches the app in the simulator it can check its own work: is the button where it should be, is the text cut off, is dark mode readable.
Flutter, React Native or Expo projects work the same way: put that framework’s iOS commands in CLAUDE.md (for example flutter build ios --simulator or npx expo run:ios), install its tools on the Mac the way its documentation describes, and the agent follows them.
Step 5 (optional): connect Claude Code to Xcode itself
With Xcode 26.3 or later you can go one step further and let the agent talk to Xcode directly. In Xcode, open Settings → Intelligence and allow external agents to use Xcode’s tools. Then register Xcode’s MCP server with Claude Code:
claude mcp add --transport stdio xcode -- xcrun mcpbridge
claude mcp list
Keep Xcode open with your project loaded. The first time Claude Code connects, Xcode may ask you to allow it: accept from the remote desktop. From then on the agent can ask Xcode to build the project, run tests and render SwiftUI previews, and it gets Xcode’s own diagnostics back instead of raw terminal output.
Prefer to stay inside Xcode? The same Intelligence settings let you use Claude Agent or Codex in Xcode’s own chat, with an active subscription to the service.
Step 6: work from Windows, let the Mac do the rest
A setup that works well:
- Plan and write on Windows if you like your editor there, Cursor or anything else. Push to Git.
- On the Mac, pull and start
claudein the project folder. Give it a task with a clear finish line: “add a settings screen with a dark mode toggle, build it, run the tests and show me a screenshot”. - Review the diff the agent produces, then let it commit and push. Pull on Windows and carry on.
Or skip the round trip and run the whole session on the Mac, in Terminal over the remote desktop or in an SSH window. Claude Code asks before it runs commands, so you stay in control of what it does.
Two habits keep long sessions running smoothly:
- Disconnect, don’t log out. When you leave, close the remote desktop window instead of logging out of macOS. Your session and the agent’s Terminal stay open.
- After a restart, nothing to do. If you restart the Mac from My account, it logs you back in automatically. If you change your macOS password, turn automatic login back on with the new one, as the email with your access details explains.
When the app is ready
Once the app builds and the tests pass, the next steps are signing and the App Store, still on the same Mac: archive in Xcode, then upload to App Store Connect. Our guide on uploading your app to the App Store without a Mac walks through that part, and Xcode on Windows explains the other options people try.
One thing to remember: at the end of a rental your account and files on the Mac are erased, with no copies kept. Push your code to Git as you go, and export your signing certificates before your plan ends.
Rent a Mac for your agent
Claude Code is only as good as the feedback it gets. On a Mac it gets real build errors, real test results and real screenshots, and it fixes problems before you ever see them. Rent a Mac mini M6 from SoloRack and give your agent Xcode: from $3.73 a day on the monthly plan, $112 a month, VAT included where it applies. The plan renews on its own until you turn renewal off in My account. All plans are on the pricing page.