A Mac Mini for iOS builds
with warm caches
Run Xcode, your GitHub Actions runner and the iOS Simulator on a dedicated Mac Mini in a US or EU data center. Flat price, no per-minute billing, and caches that survive between jobs.
Runs on it
-
Xcode
-
macOS
-
Claude
-
Codex
Quick answers
Admin
Full sudo over SSH and VNC.
Disk
256 GB to 1 TB, by model and location.
Network
1 to 2.5 Gbps port, by model and location.
Physical iPhone
No. Ship builds to real devices through TestFlight.
Billing
From $599 per 3 months, paid once. No auto-renewal.
Delivery
Online in 72 hours or a full refund.
Hosted macOS runner vs your own Mac Mini
GitHub figures for its standard macOS arm64 runner, from docs.github.com, checked 1 Dec 2026.
The math: $200 a month buys about 3,226 hosted macOS minutes at $0.062, roughly 54 hours of builds and tests. If your team runs more than that, the dedicated Mac is cheaper. If it runs less, hosted runners are. Sources: runner pricing, runner specs.
From a fresh Mac to TestFlight in six steps
Commands from GitHub's runner docs, the xcodes CLI and xcodebuild -help. Replace OWNER, REPO, MyApp and the key IDs with yours.
-
01
Install Xcode
Use the xcodes CLI over SSH, or sign in to the App Store over VNC. xcodes asks for your Apple ID to download. --select makes the new Xcode the active one, so the license and platform commands below run against it.
brew install xcodesorg/made/xcodes xcodes install --latest --experimental-unxip --select sudo xcodebuild -license accept sudo xcodebuild -runFirstLaunch xcodebuild -downloadPlatform iOS -
02
Register the runner
In your repository open Settings, Actions, Runners, New self-hosted runner and pick macOS. Run the download commands GitHub shows, then configure it. The token expires after one hour.
./config.sh --url https://github.com/OWNER/REPO \ --token YOUR_TOKEN --labels ios -
03
Run it as a service
svc.sh installs the runner as a launchd service, so it keeps running without an open terminal.
./svc.sh install ./svc.sh start ./svc.sh status -
04
Point the workflow at it
Self-hosted runners get the labels self-hosted, macOS and ARM64, plus ios from step 02. Pick a device name from xcrun simctl list devices available. OS=latest picks the newest runtime when several are installed.
jobs: test: runs-on: [self-hosted, macOS, ARM64, ios] steps: - uses: actions/checkout@v7 - run: xcodebuild test -scheme MyApp \ -destination 'platform=iOS Simulator,name=iPhone 17,OS=latest' -
05
Keep the caches warm
Put DerivedData and Swift packages outside the checkout. The next job finds them on disk instead of starting from zero.
xcodebuild test -scheme MyApp \ -destination 'platform=iOS Simulator,name=iPhone 17,OS=latest' \ -derivedDataPath ~/ci/DerivedData \ -clonedSourcePackagesDirPath ~/ci/SourcePackages -
06
Upload to TestFlight
Create a Team API key with the Admin role in App Store Connect under Users and Access, Integrations, and copy its .p8 file to the Mac. Pass the key to both archive and export. With -allowProvisioningUpdates, xcodebuild creates the certificates and profiles it needs, so the runner never needs your Apple ID or a 2FA code. ExportOptions.plist sets the method to app-store-connect and the destination to upload.
xcodebuild archive -scheme MyApp \ -destination 'generic/platform=iOS' \ -archivePath ~/ci/MyApp.xcarchive \ -allowProvisioningUpdates \ -authenticationKeyPath ~/keys/AuthKey_KEY_ID.p8 \ -authenticationKeyID KEY_ID \ -authenticationKeyIssuerID ISSUER_ID plutil -create xml1 ExportOptions.plist plutil -insert method -string app-store-connect ExportOptions.plist plutil -insert destination -string upload ExportOptions.plist xcodebuild -exportArchive \ -archivePath ~/ci/MyApp.xcarchive \ -exportOptionsPlist ExportOptions.plist \ -exportPath ~/ci/export \ -allowProvisioningUpdates \ -authenticationKeyPath ~/keys/AuthKey_KEY_ID.p8 \ -authenticationKeyID KEY_ID \ -authenticationKeyIssuerID ISSUER_ID
Prefer fastlane? Its scan and gym actions wrap the same xcodebuild calls, so the runner and cache paths stay the same. Docs: adding a runner, running it as a service, xcodes.
Let Claude Code or Codex build it
An agent on the Mac can compile, launch the Simulator and read failures in a loop, while your laptop stays closed.
ssh you@your-mac
cd ~/src/MyApp
tmux new -s ios claude
# the agent can then run, for example:
xcodebuild build -scheme MyApp -destination 'platform=iOS Simulator,name=iPhone 17,OS=latest'
xcrun simctl boot 'iPhone 17'
xcrun simctl io booted screenshot screen.png
tmux keeps the session alive after you disconnect. Watch the Simulator over VNC when you want to see what the agent sees. More on the agents: Claude Code on a Mac Mini and Codex on a Mac Mini.
Where a remote Mac fits
One runner runs one job at a time. Add Macs when the queue grows.
Good fit
Private repositories, nightly and pull request builds, Simulator UI tests, TestFlight uploads, an agent that iterates on an app for hours.
Bad fit
Public repositories, where any pull request can run code on your Mac. GitHub advises against self-hosted runners there.
iOS builds on a Mac Mini: questions
Yes. GitHub supports self-hosted runners on macOS 11 or later, on Apple Silicon too. Download the runner, register it with ./config.sh and a token from your repository settings, then install it as a service with ./svc.sh install and ./svc.sh start.
Keep reading
Dedicated cloud Mac Mini with a US home IP, from $599 / 3 months.
Claude Code, Codex, Hermes and OpenClaw on one dedicated Mac.
A dedicated Mac Mini M4 server in a US data center.
Browser agents, local models and agent fleets on Apple Silicon.
Dedicated cloud Mac, AWS EC2 Mac, colocation or a Mac at home, compared.
First-year cost of a Mac at home vs a hosted one.
Your own Mac for Xcode CI
Dedicated Mac Mini M4, M6 or M4 Pro with SSH, VNC and Tailscale, from $599 for 3 months. Online within 72 hours or a full refund.