Quick answer
How do you set up Fastlane on a cloud Mac?
Add a Gemfile with fastlane, run bundle install, then bundle exec fastlane init, use match for certificates and an App Store Connect API key for uploads. A RentCloudMac Ship at $139 a month, paid in Monero or Bitcoin, runs it over SSH; the team also offers a paid Xcode and Fastlane setup.
In brief
- Install with Bundler in the project, so every machine uses the same Fastlane version; Homebrew works for a quick try.
- Certificates with
match: stored encrypted in a private Git repository, read-only on CI. - No Apple Account prompts:
app_store_connect_api_keyauthenticates builds and uploads. - One lane:
match,build_app,upload_to_testflight. - Option: Xcode and Fastlane setup $79 once, CI runner setup $59 once, Priority support $12 a month, Managed Mac +40% of the plan; none is ticked in advance.
Which steps take Fastlane from zero to a TestFlight upload?
Install Ruby gems with Bundler
In the project root, create a Gemfile with gem "fastlane", then run bundle install. macOS ships an old system Ruby; a Homebrew or rbenv Ruby avoids sudo.
Initialise
bundle exec fastlane init creates the fastlane folder with an Appfile and a Fastfile.
Set up match
bundle exec fastlane match init, choose git storage and a private repository, then run match appstore once from a trusted machine to create the certificates.
Add the API key
Store the .p8 key on the Mac and read its IDs from environment variables in the lane.
Write the beta lane
match in readonly mode, build_app with the scheme, upload_to_testflight.
Run it
bundle exec fastlane beta over SSH, or from a CI job on the same Mac.
brew install rbenv ruby-build
rbenv install 3.3.6 && rbenv local 3.3.6
printf 'source "https://rubygems.org"\ngem "fastlane"\n' > Gemfile
bundle install
bundle exec fastlane initdefault_platform(:ios)
platform :ios do
lane :beta do
setup_ci if ENV['CI']
api_key = app_store_connect_api_key(
key_id: ENV['ASC_KEY_ID'],
issuer_id: ENV['ASC_ISSUER_ID'],
key_filepath: ENV['ASC_KEY_PATH']
)
match(type: 'appstore', readonly: true, api_key: api_key)
build_app(scheme: 'MyApp', export_method: 'app-store')
upload_to_testflight(api_key: api_key, skip_waiting_for_build_processing: true)
end
endWhy use Bundler instead of a global Fastlane?
Bundler pins the Fastlane version in Gemfile.lock, so your laptop, the cloud Mac and the CI runner run the same code. A global install drifts: one machine updates, the next run fails on a renamed parameter. On a remote Mac, a user-level Ruby from rbenv or Homebrew also avoids sudo gem install, which writes into the system Ruby that macOS may change in an update.
The Homebrew formula (brew install fastlane) is fine for a first test, but switch to Bundler before the lane goes into CI.
Which Fastlane actions matter on a remote Mac?
| Action | Replaces | Note for a remote Mac |
|---|---|---|
| setup_ci | Manual keychain creation | Creates a temporary keychain so match never prompts |
| app_store_connect_api_key | Apple Account sign-in | No two-factor code over SSH |
| match | Copying .p12 files by hand | readonly: true on CI machines |
| build_app (gym) | xcodebuild archive + export | Writes the .ipa and dSYMs |
| upload_to_testflight (pilot) | Organizer upload | Can skip waiting for processing |
| scan | xcodebuild test | Runs tests on a named Simulator |
How do you keep match safe on a rented Mac?
Give the Mac read-only access to the certificates repository and the passphrase through an environment variable, never in the Fastfile. MATCH_PASSWORD decrypts the certificates; MATCH_GIT_BASIC_AUTHORIZATION or a deploy key gives Git access. Create or renew certificates from a trusted computer, and let the cloud Mac only read them. When a rental ends and is not renewed, the Mac is kept 3 days, then its disk is erased and macOS reinstalled before anyone else rents it, but revoking the deploy key when you stop is still good practice.
The manual equivalent, useful to understand what match does, is in sign an iOS app and upload it, and the vocabulary in what is iOS code signing.
Where does Fastlane fit in a CI pipeline?
Fastlane is the build script; the CI system only decides when to run it. A GitHub Actions job on a self-hosted Mac just calls bundle exec fastlane beta, as shown in GitHub Actions macOS runner. RentCloudMac checked 23 cloud Mac offers on 3 December 2026 and found the 16 GB M4 median at $142.00 a month; a Fastlane runner on Compile costs $92, though Ship's 24 GB leaves room for tests in parallel.
What questions come up about Fastlane on a cloud Mac?
Does Fastlane replace Xcode?
No. Fastlane drives xcodebuild, so Xcode must be installed and selected first.
Why does match ask for a keychain password?
It is importing into the login keychain. Call setup_ci at the start of the lane, or create a dedicated keychain, so no prompt appears.
Can Fastlane upload screenshots and metadata too?
Yes, with deliver (upload_to_app_store) and snapshot, which runs UI tests on Simulators to capture screenshots.
What does the paid setup option include?
A person installs Xcode, its command-line tools, Simulator runtimes, Homebrew, CocoaPods and Fastlane, tested with a sample build.
Which Ruby version should I use?
A currently supported Ruby from rbenv or Homebrew. Check Fastlane's documentation for the minimum it supports.
Verdict
- Install Fastlane per project with Bundler, authenticate with an API key, and keep match read-only on the cloud Mac.
- One
betalane covers signing, building and the TestFlight upload, over SSH or from CI. - Ship is the usual Mac for it; compare plans on pricing.
Run your lanes on a Mac of your own
Ship, administrator rights, crypto payment. Tick the Xcode and Fastlane setup at checkout if you want it done for you.
- Sold by RentCloudMac LLC, New Mexico, USA
- Mac ready within 24 hours, prepared by a person
- No KYC, no email required
- Lost days credited back to the balance
Sources (3)
- fastlane docs: Setup — fastlane
- match — fastlane
- App Store Connect API — fastlane
Read next
- Cloud Mac mini pricesRentCloudMac rents a whole Mac mini M4 from $92 a month, 10% off on 12 months, paid in Bitcoin, USDT or Monero, no KYC. Options and CI pack.
- Sign and uploadSign an iOS app with a distribution certificate and upload it with xcodebuild on a rented Mac from $92/month. Monero, no KYC.
- GitHub Actions macOS runnerRun a self-hosted GitHub Actions macOS runner on a whole Mac mini M4 from $92 a month: a fixed cost instead of minutes, paid in Monero or USDT.
- For iOS teamsA cloud Mac for iOS development from $92 a month: Xcode, Simulators, signing and CI on a whole Mac mini, Monero or USDT, no KYC.
- What is iOS code signing?iOS code signing explained: certificates, provisioning profiles, entitlements and where they live on a cloud Mac from $92/month.