CI/CD & automation

fastlane match

A fastlane action that stores Apple signing material (certificates, private keys, provisioning profiles) in a shared, encrypted git repo so every developer and CI runner can pull the same identities.

matchfastlane match git repo

fastlane match is a fastlane action that solves the 'how do I share signing certificates and provisioning profiles across the team' problem by writing them, encrypted with a shared passphrase, into a private git repository. Every developer and every CI job clones the repo, decrypts the bundle, imports it into a local keychain, and uses it to sign. It is the de-facto standard for iOS CI signing.

What it stores

  • Apple Distribution and Apple Development certificates (the .cer plus an exported .p12 with the private key).
  • Provisioning profiles for App Store, Ad Hoc, and Development.
  • All encrypted with OpenSSL using a single passphrase that everyone on the team has to know.

Common commands

bash
# First-time setup
fastlane match init
fastlane match appstore
fastlane match development

# CI pulls in read-only mode
fastlane match appstore --readonly

# Recreate everything from scratch
fastlane match nuke distribution
fastlane match appstore

Where it starts to hurt

  • One shared passphrase: every onboarding has to receive it; offboarding requires nuking and re-encrypting the entire repo.
  • match nuke is destructive and revokes every certificate it manages, breaking unrelated builds in flight.
  • Apple's three-certificate cap is easy to hit because match creates a new one on every nuke or full reset.
  • A target the repo has no profile for cannot be fixed by a readonly CI run, so adding a widget or an extension surfaces as No profiles for 'com.example.app' were found until someone runs match read-write and commits the result.
  • Profiles and entitlements drift between Xcode-managed and match-managed states.
  • Rotation is manual and error-prone, especially for teams that own multiple App IDs or Team IDs.

When match is still the right answer

  • Small teams (1-3 developers) with a single App ID and no need for audit trails.
  • Existing fastlane-heavy pipelines where adding a new tool is more cost than fixing match's rough edges.
  • Side projects and indie apps where the encrypted git repo is the simplest possible shared store.

FAQ

Common questions about fastlane match

What is MATCH_PASSWORD?

The passphrase that encrypts everything in the match repo. Every developer and every CI job needs it to decrypt the signing material. There is no recovery if it is lost: the standard escape hatch is match nuke followed by recreating everything, which is why the passphrase belongs in a password manager, not in someone's memory.

What does fastlane match nuke do?

It revokes every certificate match manages for the given type, deletes the associated provisioning profiles, and clears them from the repo, so the next match run recreates everything fresh. It is deliberately destructive: in-flight builds and teammates using those certificates break immediately. Treat it as a last resort, not a refresh button.

Is fastlane match free?

Yes. It is MIT-licensed open source, and the storage is a git repo (or S3, GCS, GitLab Secure Files) you already have. The cost is operational: passphrase distribution, rotation discipline, the certificate cap, and no audit trail. Small teams usually find that trade acceptable; growing teams eventually do not.

What does match readonly mode do?

With --readonly, match only downloads and decrypts existing material and never creates or modifies anything. CI should always run readonly: a read-write match run on a fresh runner can silently mint a new certificate and consume one of Apple's limited distribution certificate slots.

Keep reading

Related terms

Next step

Help articles on this topic

Notice a definition that has drifted? Email support@hexsign.io and we'll update it. Browse the full glossary or jump to the help center.

Try HexSign

Know before a certificate or profile expires.

HexSign tracks every Apple certificate and provisioning profile and alerts you ahead of expiry. The Free plan covers tracking and alerts. Paid plans renew them for you.