# First Xcode Build on a Hosted Mac Mini Guide

Canonical: https://figment.so/blog/mac-mini-hosting-xcode-first-build

Connect over SSH, run the twelve-command preflight, then build. Pick the Intel Mac VM ($25 a month) for Xcode 26.3 or earlier and an Apple silicon plan (VM $39, Dedicated M4 Pro 48 GB $349) for Xcode 26.4 or later and Xcode 27.

**Pick the plan by the Xcode version your project needs, connect over SSH, then run the twelve-command preflight below before you clone a repo.** The Intel Mac VM ($25 a month) runs macOS Sequoia and fits Xcode 26.3 or earlier. Xcode 26.4 or later needs macOS Tahoe 26.2 or later, and Xcode 27 needs Tahoe 26.6 or later, so those need an Apple silicon plan: the Apple Silicon Mac VM ($39 a month) or the Dedicated M4 Pro 48 GB ($349 a month, a whole Mac).

## Which Figment plan matches my Xcode version?

Match the Xcode version to Apple's support table. Apple lists Xcode 26.0 to 26.3 for macOS Sequoia, and macOS Tahoe still supports several late-model Intel Macs ([support.apple.com/en-us/122867](https://support.apple.com/en-us/122867)), so the limit sits on the Xcode release, not on Tahoe itself. Apple's [porting guide](https://developer.apple.com/documentation/apple-silicon/porting-your-macos-apps-to-apple-silicon) covers the Intel side.

| Your project needs | Figment plan |
|---|---|
| Xcode 26.3 or earlier, scripted builds, CI agent | [Intel Mac VM](/mac-hosting#intel-vm): 4 shared vCPUs, 4GB RAM, 80GB SSD, $25 a month ($2 a day) |
| Xcode 26.4 or later, Xcode 27, arm64-only tools, visionOS | [Apple Silicon Mac VM](/mac-hosting#apple-silicon-vm): 4 shared vCPUs, 4GB RAM, 65GB SSD, $39 a month ($6 a day) |
| A whole Mac, more memory, Metal or GPU work | [Dedicated M4 Pro 48 GB](/mac-hosting#dedicated-m4-pro): M4 Pro, 48GB RAM, 512GB SSD, $349 a month ($299 on a 12-month term) |

We do not state which exact macOS the Apple silicon plans run. Check the version shown before purchase against Apple's Xcode table.

## What does a year cost, and how does it compare?

Multiply the monthly price by 12: Intel Mac VM 12 × $25 = $300, Apple Silicon Mac VM 12 × $39 = $468. The Dedicated M4 Pro 48 GB costs 12 × $299 = $3,588 on a 12-month term, or $3,228 paid up front. Two public M4-class references, from vendor pricing pages on 2026-11-10, help you compare:

- MacStadium M4.S (M4, 16 GB, 256 GB) is $149/month on [macstadium.com/pricing](https://macstadium.com/pricing), or 12 × $149 = $1,788 a year. The same page publishes a 99.99% uptime target and includes support and network.
- CloudMac publishes an M4/16GB/256GB tier at $99.99/month on [cloudmac.org/pricing](https://cloudmac.org/pricing) and a $999/year annual on [cloudmac.org](https://cloudmac.org/). The annual works out to $83.25/month effective. CloudMac's 512GB and 1TB rows read "Fully reserved, Next allocation not scheduled"; the 256GB row reads "Reserve now".

These are different hardware. CloudMac and MacStadium list a whole Mac mini M4 with 16GB RAM. Figment's Apple Silicon Mac VM is 4 shared vCPUs and 4GB RAM, which costs $999 − $468 = $531 less a year than CloudMac's annual price but gives you less memory and shared CPU. Figment's Dedicated M4 Pro 48 GB is a whole Mac with 48GB RAM and a 512GB SSD at $3,228 a year paid up front. If a whole Mac with 16GB is enough for you, the CloudMac annual price is lower than the Dedicated M4 Pro; if you want 48GB and 512GB, compare on those specifications.

A worked example for a small iOS team that builds on Xcode 26.3 and also needs a newer toolchain:

```
Intel Mac VM (CI on Xcode 26.3)        : $25 × 12 = $300 / year
Apple Silicon Mac VM (Xcode 26.4+)     : $39 × 12 = $468 / year
Total (year 1)                         : $1,128
```

Prices are USD before tax. You pay before use, and the first purchase is at least $25 of account credit that pays for usage (it is not a fee). Unused credit is not refundable and does not expire.

## How do I connect for the first time?

Use SSH with the host, user and key shown in your dashboard, or open the encrypted remote desktop or browser access from the dashboard. Confirm the shell:

```bash
sw_vers
hostname
whoami
```

A short entry in `~/.ssh/config` saves typing:

```
Host figment-mac
  HostName YOUR_MAC_HOST
  User your_username
  IdentityFile ~/.ssh/your_key
  ServerAliveInterval 60
```

## How do I check the Xcode installation?

Run these four commands. Download Xcode from [developer.apple.com/xcode](https://developer.apple.com/xcode/) if it is not already present.

```bash
xcode-select -p
xcodebuild -version
sudo xcodebuild -license accept
sudo xcode-select --switch /Applications/Xcode.app
```

License acceptance is easy to miss: `xcodebuild` blocks waiting for it until you run the `accept` command. Cross-check the Xcode and macOS pair your project needs against Apple's [Xcode release notes](https://developer.apple.com/documentation/xcode-release-notes), because minor releases shift macOS floors between patches.

## What is the 12-command preflight?

Save it as `preflight.sh`, then run `chmod +x preflight.sh && ./preflight.sh`. The `set -euo pipefail` line stops on the first failure and prints the section label, so a failed check is never counted as a pass.

```bash
#!/usr/bin/env bash
# preflight.sh — run after provisioning a hosted Mac
set -euo pipefail

echo "=== 1. macOS version ==="
sw_vers

echo "=== 2. Active Xcode path ==="
xcode-select -p

echo "=== 3. Xcode version ==="
xcodebuild -version

echo "=== 4. Available SDKs (iOS) ==="
xcodebuild -showsdks | grep -E "iphoneos|iphonesimulator"

echo "=== 5. Available simulator runtimes ==="
xcrun simctl list runtimes available

echo "=== 6. Git version ==="
git --version

echo "=== 7. Ruby (Fastlane / CocoaPods) ==="
ruby --version

echo "=== 8. CocoaPods installed? ==="
pod --version 2>/dev/null || echo "CocoaPods not installed — run: sudo gem install cocoapods"

echo "=== 9. Homebrew ==="
brew --version 2>/dev/null || echo "Homebrew not installed — see https://brew.sh"

echo "=== 10. Keychain list ==="
security list-keychains

echo "=== 11. Disk space ==="
df -h /

echo "=== 12. Reach Apple's developer site ==="
curl -fsI https://developer.apple.com/ | head -1

echo ""
echo "=== Preflight complete — review warnings above ==="
```

This is an untested example. Run it on your own Mac and treat the output as evidence, not as benchmark timing. Point `-scheme` at a scheme that exists in your workspace (`xcodebuild -list` prints the real names).

## How much disk do I need, and where do secrets go?

Plan for tens of gigabytes: the Intel Mac VM has an 80GB SSD, the Apple Silicon Mac VM 65GB and the Dedicated M4 Pro 512GB, and the operating system counts against that. A working guide:

| Item | Approximate size |
|---|---|
| Xcode 26 app bundle | ~15–20 GB |
| iOS simulator runtime (per version) | 5–8 GB |
| DerivedData (medium project) | 5–25 GB |
| xcarchive per distribution build | 300–800 MB |

Keep DerivedData under control:

```bash
rm -rf ~/Library/Developer/Xcode/DerivedData/*
xcrun simctl delete unavailable
```

For signing, the certificate private key and an encrypted `.p12` are yours: keep them in your own CI secret manager and your own keychain. Do not export the shell environment to a plaintext file (it can carry tokens), and do not import provisioning profiles into the keychain, because profiles are files that belong in `~/Library/MobileDevice/Provisioning Profiles/`. Update only the allowlists you control (your artifact store, your CI service, your firewall); there is no public App Store Connect or TestFlight IP allowlist to paste in.

## What should I do after the preflight passes?

Clone your repo, resolve dependencies, and run your first `xcodebuild build` or `xcodebuild test` against a scheme from `xcodebuild -list`. When you are ready to publish, see the [TestFlight submission guide](/blog/mac-testflight-submit-remote-mac). For production crashes, the [crash log symbolication guide](/blog/mac-crash-log-symbolication-remote) covers dSYM matching on the same machine. To automate builds, follow the [GitHub Actions self-hosted runner guide](/blog/mac-github-actions-self-hosted-runner).
