Skip to content
RentCloudMac

How do you set up Fastlane on a cloud Mac?

Fastlane turns the archive, sign and upload routine into one lane. On a remote Mac it also removes every interactive prompt, which is what SSH and CI need.

Updated , by the RentCloudMac team

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_key authenticates 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?

  1. 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.

  2. Initialise

    bundle exec fastlane init creates the fastlane folder with an Appfile and a Fastfile.

  3. 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.

  4. Add the API key

    Store the .p8 key on the Mac and read its IDs from environment variables in the lane.

  5. Write the beta lane

    match in readonly mode, build_app with the scheme, upload_to_testflight.

  6. Run it

    bundle exec fastlane beta over SSH, or from a CI job on the same Mac.

Gemfile and install
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 init
fastlane/Fastfile
default_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
end

Why 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?

Fastlane actions commonly used on a cloud Mac and what each replaces
ActionReplacesNote for a remote Mac
setup_ciManual keychain creationCreates a temporary keychain so match never prompts
app_store_connect_api_keyApple Account sign-inNo two-factor code over SSH
matchCopying .p12 files by handreadonly: true on CI machines
build_app (gym)xcodebuild archive + exportWrites the .ipa and dSYMs
upload_to_testflight (pilot)Organizer uploadCan skip waiting for processing
scanxcodebuild testRuns 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 beta lane 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.

Sources (3)
  1. fastlane docs: Setup — fastlane
  2. match — fastlane
  3. App Store Connect API — fastlane

Read next

from $92 a month

Rent a Mac