# Audit Xcode Build Settings on a Rented Mac

Canonical: https://figment.so/blog/mac-xcode-build-settings-audit

When a project fails on a new remote Mac, the cause is usually a build setting mismatch such as ARCHS, SDKROOT or deployment target. Diff xcodebuild -showBuildSettings on both hosts and fix the lines that differ.

**When a project that built on MacinCloud fails on a new remote Mac, the cause is almost always a build setting mismatch: wrong `ARCHS`, a hard-coded `SDKROOT`, a stale `VALID_ARCHS`, or a deployment target that differs across targets.** Run `xcodebuild -showBuildSettings` on both hosts and diff the output, then walk the worksheet below target by target. A plan comparison with MacinCloud follows at the end.

## What usually changes when I move an Xcode project to a new host?

Three things usually move when you re-home an Xcode project:

- **Xcode version.** The matrix at [developer.apple.com/support/xcode](https://developer.apple.com/support/xcode/) binds each Xcode release to a macOS range. Intel hosts on macOS Sequoia fit Xcode 26.0 to 26.3. Xcode 26.4 and later need macOS Tahoe 26.2 or later, and Xcode 27 needs Tahoe 26.6 or later.
- **Keychain contents.** Signing identities are valid only with their private keys, which means a password-protected `.p12`, not a bare `.cer`.
- **Build settings.** Stale `VALID_ARCHS`, machine-specific absolute paths in `OTHER_SWIFT_FLAGS`, or an `EXCLUDED_ARCHS = arm64` left over from Intel simulator testing all travel with the project and bite on a new host.

The audit targets the third category.

## How do I read the resolved build settings from the command line?

Both hosts give the same `xcodebuild` output. Run this on each machine and diff the results:

```bash
xcodebuild -project MyApp.xcodeproj \
  -scheme "$SCHEME_FROM_YOUR_PROJECT" \
  -configuration Release \
  -destination 'generic/platform=iOS' \
  -showBuildSettings \
  | grep -E '^\s+(ARCHS|EXCLUDED_ARCHS|VALID_ARCHS|SDKROOT|IPHONEOS_DEPLOYMENT_TARGET|SWIFT_VERSION|CODE_SIGN_IDENTITY|PROVISIONING_PROFILE_SPECIFIER) ='
```

Use your project's real scheme name. `-showBuildSettings` resolves the full stack (project, target, xcconfig, scheme env), so any line that differs between local and remote is a setting to reconcile. Common fixes:

- Delete `VALID_ARCHS` project-wide.
- Remove `EXCLUDED_ARCHS = arm64` from any target that needs the ARM simulator.
- Set `CODE_SIGN_IDENTITY = -` on unit test targets that do not ship.
- Rewrite xcconfig paths to be relative to `$(SRCROOT)`.

## What goes in the per-target build settings worksheet?

Open the project on the remote Mac and fill this in for every app and framework target. Values come from **Target → Build Settings → All**. The **Resolved** column is what Xcode reports in the Resolved tab, which is what actually reaches the compiler.

```
Target: ___________________________   Config: Debug | Release

SETTING                         | Project  | Target   | xcconfig | Resolved
--------------------------------|----------|----------|----------|---------
ARCHS                           |          |          |          |
EXCLUDED_ARCHS                  |          |          |          |
VALID_ARCHS  (deprecated)       |          |          |          |
SDKROOT                         |          |          |          |
IPHONEOS_DEPLOYMENT_TARGET      |          |          |          |
SWIFT_VERSION                   |          |          |          |
CODE_SIGN_IDENTITY              |          |          |          |
PROVISIONING_PROFILE_SPECIFIER  |          |          |          |
OTHER_SWIFT_FLAGS               |          |          |          |
GCC_PREPROCESSOR_DEFINITIONS    |          |          |          |
```

Chase these red flags first:

- `VALID_ARCHS` set anywhere. It is deprecated, so delete it from targets and xcconfigs.
- `EXCLUDED_ARCHS = arm64` on a target, which silently blocks the ARM simulator on Apple silicon.
- `ARCHS` hard-coded to `"arm64 x86_64"` instead of `$(ARCHS_STANDARD)`.
- `SDKROOT` set to `iphonesimulator` on the app target. Distribution archives will fail signing.
- `IPHONEOS_DEPLOYMENT_TARGET` that differs between the app and an embedded framework (a linker warning about the embedded binary OS range).
- `SWIFT_VERSION` mismatched across targets.
- Absolute paths like `/Users/jane/...` in `OTHER_SWIFT_FLAGS`, `OTHER_CFLAGS` or xcconfig `#include` lines.
- `DEBUG=1` in the Release row of `GCC_PREPROCESSOR_DEFINITIONS`.

## How do I move signing material safely?

Signing identities live in the keychain and travel as an encrypted `.p12`:

1. In Keychain Access on the source Mac, select the certificate **and** its private key, right-click, choose **Export**, pick `.p12` and set a strong password.
2. Transfer the `.p12` and the password through **separate** channels: the file via your artifact store, the password via your secret manager.
3. On the destination Mac, create a dedicated keychain for CI rather than importing into `login.keychain-db`, and restore the search list when the job ends:

```bash
KC="build.$(uuidgen).keychain-db"
security create-keychain -p "$KC_PASSWORD" "$KC"
ORIG_LIST=$(security list-keychains -d user | tr -d '"')
security list-keychains -d user -s "$KC" $ORIG_LIST
trap 'security delete-keychain "$KC"; security list-keychains -d user -s '"$ORIG_LIST"'' EXIT
security unlock-keychain -p "$KC_PASSWORD" "$KC"
security import signing.p12 -k "$KC" -P "$P12_PASSWORD" -T /usr/bin/codesign
```

Provisioning profiles are plain files, so copy them to `~/Library/MobileDevice/Provisioning Profiles/`. Do not export the host's environment to a plaintext file during the move, because it almost certainly contains API tokens. Keep secret values in your CI service's secret manager (GitHub Actions secrets, Buildkite agent hooks, and so on) and list only the required secret **names** in migration notes.

## How do MacinCloud and Figment compare?

MacinCloud's managed plans publish, as of 2026-11-10 on [macincloud.com/pages/managed.html](https://www.macincloud.com/pages/managed.html): M1 from $25, M2 from $26, and M4 from $29 per month, with 8/16/32 GB RAM options and a 120 GB user quota upgradable to 4 TB. Managed plans are a user account on the host: the vendor runs admin tasks on request, and root/admin is reserved for their dedicated plans. macOS versions listed range from Tahoe (26.x) back to earlier releases.

Figment's plans are different products, and the entry prices do not mean equal hardware:

| Figment plan | Hardware | Hour | Day | Month |
|---|---|---:|---:|---:|
| [Intel Mac VM](/mac-hosting#intel-vm) | 4 shared vCPUs, 4GB RAM, 80GB SSD, macOS Sequoia | $0.15 | $2 | $25 |
| [Apple Silicon Mac VM](/mac-hosting#apple-silicon-vm) | 4 shared vCPUs, 4GB RAM, 65GB SSD | $0.40 | $6 | $39 |
| [Dedicated M4 Pro 48 GB](/mac-hosting#dedicated-m4-pro) | Whole Mac: M4 Pro, 48GB RAM, 512GB SSD | Monthly only | Monthly only | $349 |

Every Figment plan includes administrator access to your own Mac or VM, browser access and SSH. The Intel Mac VM and the Dedicated M4 Pro also include encrypted remote desktop. The nearest match to MacinCloud's managed M4 at $29 (shared, pre-installed Xcode, no admin) is the Apple Silicon Mac VM at $39, which costs $10 more a month and adds admin access. MacinCloud's M1 at $25 and Figment's Intel Mac VM at $25 share a price but not silicon or macOS version.

## Which Figment Mac plan fits this audit?

The [Intel Mac VM](/mac-hosting#intel-vm) fits CLI builds, signing, notarization and universal or arm64 cross-compiles on Xcode 26.3 or earlier. It cannot run arm64-only tools or Xcode 26.4 and later. Use the [Apple Silicon Mac VM](/mac-hosting#apple-silicon-vm) for the ARM simulator, a newer Xcode and `EXCLUDED_ARCHS` fixes you want to verify on Apple silicon. We have not measured GPU-heavy Simulator or SwiftUI Preview work inside a VM, so for that, test on the [Dedicated M4 Pro 48 GB](/mac-hosting#dedicated-m4-pro) in the first days of a month. Check the macOS version shown before purchase against Apple's Xcode table. See all [Mac hosting plans](/mac-hosting).

**Related reading:**
- [Manage Keychain Certificates on a Remote Mac](/blog/mac-keychain-certs-remote-mac)
- [Debug Entitlements in Xcode on a Remote Mac](/blog/mac-entitlements-debug-xcode)
- [Run GitHub Actions on a Self-Hosted Mac Runner](/blog/mac-github-actions-self-hosted-runner)
