Install CircleCI machine runner 3 with Homebrew, create a namespaced resource class, and change the job to machine: true with that class. On CircleCI's macos.m4pro.medium, a flat-rate Figment Apple Silicon Mac VM ($39 a month) costs less than credits once you use more than about 5.4 build hours a month. The break-even worksheet is at the end.
CircleCI bills cloud macOS jobs by the credit, and that cost compounds for an active iOS team. A self-hosted runner on a flat-rate Mac pays once a month and runs as many builds as the hardware can handle. This page covers one scenario: moving a single macos.m4pro.medium job to a Mac runner and confirming the same build passes.
How much does CircleCI charge for a macOS minute?
About $0.12 for macos.m4pro.medium. Per CircleCI's changelog for the Free plan default change on November 10 and the current CircleCI pricing page, that class consumes 200 credits per minute. The standard credit rate on that pricing page works out to $0.0006 per credit, so each minute costs about $0.12. Confirm the live rate on circleci.com/pricing before you commit, because CircleCI changes resource-class pricing.
CircleCI's self-hosted runner overview states that runner compute itself does not consume credits, though storage and networking associated with jobs can still accrue credits. Self-hosted runners are available on all plans, including Free, with concurrency caps per plan.
CircleCI advertises m4pro.medium as an M4 Pro class resource. Figment's Apple Silicon Mac VM gives you 4 shared vCPUs and 4GB RAM. The worksheet below is a price comparison, not a performance claim.
How do I install machine runner 3 on the Mac?
Connect over SSH or remote desktop and follow CircleCI's machine runner 3 manual installation guide for the current steps. The Homebrew route is the recommended path on macOS:
# Tap and install the runner package
brew tap circleci-public/circleci
brew install circleci-runner
# Confirm Gatekeeper is happy with the signed binary
spctl -a -vvv -t install "$(brew --prefix)/bin/circleci-runner"
Only one machine runner is supported per macOS instance.
How do I create a namespace and resource class?
A resource class is how CircleCI routes a job to your runner. You need a namespace first (one per org). Use your CircleCI organization ID from the Organization Settings page:
# One-time: create a namespace for your org
circleci namespace create myorg --org-id "${CIRCLECI_ORG_ID:?Set your CircleCI organization ID}"
# Create a resource class and generate the runner token
circleci runner resource-class create \
myorg/figment-mac \
"Figment Mac CI runner" \
--generate-token
The token is printed once. Paste it into the runner config immediately, because CircleCI will not show it again. Store a backup in your team secret manager by name reference only. Do not dump the Mac's shell environment to a file, because that file would carry anything else you have exported.
Edit the config that Homebrew installed:
# Default config location for the Homebrew install
$EDITOR "$HOME/Library/Preferences/com.circleci.runner/config.yaml"
Minimum contents:
runner:
name: figment-mac-01
mode: continuous
auth_token: "PASTE_GENERATED_TOKEN_HERE"
idle_timeout: 10m
max_run_time: 2h
working_directory: /tmp/circleci-runner-workdir
Enable and start the Homebrew-provided service:
launchctl enable gui/$(id -u)/com.circleci.runner
launchctl kickstart -k gui/$(id -u)/com.circleci.runner
The runner should appear under Self-Hosted Runners in the CircleCI web app within a minute.
What do I change in config.yml?
Two lines: the executor block and the resource class. Checkout, cache and xcodebuild stay the same.
Before, with the cloud macOS executor:
jobs:
build-ios:
macos:
xcode: "16.3.0"
resource_class: macos.m4pro.medium
steps:
- checkout
- run: pod install
- run:
name: Build and test
command: |
xcodebuild test \
-workspace MyApp.xcworkspace \
-scheme "$APP_SCHEME" \
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 16' \
CODE_SIGN_STYLE=Manual
After, with the self-hosted runner:
jobs:
build-ios:
machine: true
resource_class: myorg/figment-mac
steps:
- checkout
- run: pod install
- run:
name: Build and test
command: |
xcodebuild test \
-workspace MyApp.xcworkspace \
-scheme "$APP_SCHEME" \
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 16' \
CODE_SIGN_STYLE=Manual
The macos: block becomes machine: true, and the resource class becomes your namespaced value. Set APP_SCHEME in the CircleCI project's environment to your real shared scheme. xcodebuild fails fast on a missing scheme, and that failure is a configuration bug, not a benchmark.
Record the Xcode version installed on the Mac (xcodebuild -version) in the job's first step, so a mismatch with the project's required version is obvious in the log. The Intel Mac VM runs macOS Sequoia, where Apple lists Xcode 26.0 to 26.3, and it cannot run arm64-only binaries or visionOS. Xcode 26.4 and later need macOS Tahoe, so they need an Apple silicon plan.
How do I handle signing, secrets and allowlists?
Keep secrets in CircleCI, certificates in a dedicated keychain, and allowlist only addresses you control.
- Secrets. Keep API keys, App Store Connect keys, and match passphrases in CircleCI's project or context environment variables. On the Mac, do not persist them to shell rc files.
- Signing certificates. Export the signing identity from a developer machine as an encrypted
.p12(private key included), store it in CircleCI as a file-type context variable, and import it into a dedicated keychain on the runner at job start. Do not check the.p12into the repo. - Provisioning profiles. These are files, not keychain entries. Put them in
~/Library/MobileDevice/Provisioning Profiles/on the runner, or fetch them per build from your profile store. - Allowlists. If your artifact store, internal API, or VPN restricts source IPs, add the Mac's outbound IP address to the allowlists that you control. Check that address from the Mac, and confirm with Figment support that it stays fixed before you depend on it. There is no public, stable App Store Connect or TestFlight inbound IP list to add. Outbound calls from the runner to Apple use HTTPS over normal egress.
When does a flat-rate Mac beat CircleCI credits?
At $0.12 per minute, a Figment Apple Silicon Mac VM at $39 a month breaks even at:
$39 ÷ $0.12/min = 325 minutes ≈ 5.42 hours per month
| Monthly macOS build time | CircleCI m4pro.medium | Figment Apple Silicon VM ($39) | Difference |
|---|---|---|---|
| 150 min (2.5 h) | $18.00 | $39.00 | Cloud cheaper by $21.00 |
| 325 min (5.4 h) | $39.00 | $39.00 | Break-even |
| 500 min (8.3 h) | $60.00 | $39.00 | Self-hosted saves $21.00 |
| 1,500 min (25 h) | $180.00 | $39.00 | Self-hosted saves $141.00 |
| 3,000 min (50 h) | $360.00 | $39.00 | Self-hosted saves $321.00 |
For a Dedicated M4 Pro 48 GB at $349 a month (a whole Mac, M4 Pro, 48GB RAM, 512GB SSD), break-even is $349 ÷ $0.12 = 2,908 minutes ≈ 48.5 hours of monthly macOS build time. The dedicated Mac makes sense when you also need parallel jobs or heavy builds, because VM vCPUs are shared, not reserved cores.
These numbers assume on-demand CircleCI credit pricing. Annual CircleCI commitments and overage credit bundles can change the cloud side. Tax applies as shown on your actual CircleCI invoice and Figment checkout.
What Figment plan fits a CircleCI runner job?
The Apple Silicon Mac VM ($39 a month, $6 a day) fits one m4pro.medium job on current Xcode. The Dedicated M4 Pro 48 GB fits parallel or heavy builds. The Intel Mac VM ($25 a month) fits only when Xcode 26.3 or earlier is enough. You install and operate the CircleCI runner yourself.
Related guides