Term · fastlane match
match is a feature of fastlane for sharing one set of signing identities across a team. It creates the certificates and provisioning profiles you need and stores them in a place you control; the options listed in the official documentation are a private Git repository, Google Cloud Storage and Amazon S3. With a Git repository, the files are encrypted with a passphrase you set. After that, on any Mac, you run match and supply the passphrase, and it installs the certificates and private keys into the keychain and puts the provisioning profiles in place. It also has a read-only mode that only fetches and never creates, which the official documentation recommends always using in continuous integration environments.
How it relates to renting a remote Mac
match targets exactly the most troublesome thing about a rented machine: the private key exists on only one machine.
With match, the "original" of your signing identity is in your private storage, and any Mac only borrows it temporarily:
- After renting a new machine, a machine swap, or a reinstall by the platform, you pull the code, run match, enter the passphrase, and the signing environment is back. No hunting for a .p12.
- When the rental ends there is nothing on the machine that exists nowhere else. What you do need to do is revoke the credential that lets this machine access the private repository, for example a deploy key created just for it.
Things to know first:
- By default match leans towards creating a new set of certificates that it manages. If the account already has certificates, you may hit the certificate limit; for importing existing certificates see the official documentation.
- Its nuke command revokes all certificates and provisioning profiles of the selected type. According to the official documentation, apps on the App Store and in TestFlight are not affected, but ad hoc and enterprise builds stop working, so do not run it casually.
- You are responsible for the encryption passphrase and the storage access credentials. Losing them is the same as losing the certificates.
A solo developer with one machine who releases occasionally is fine with a manually exported .p12 stored safely and does not need match. Documentation: fastlane match.
FAQ
Is it safe to put certificates in a Git repository?
The files are encrypted before they are committed, and the repository itself should be private with restricted membership. Security depends on the strength of the passphrase and the repository's access control. If you are not comfortable with that, choose one of the object storage backends; for how each option is encrypted follow the official documentation.
Why use read-only mode on a build machine?
In read-only mode it only downloads existing certificates and profiles. It will not create or change anything in your account because of some one-off anomaly, which avoids quietly messing up the team's signing resources during an unattended run.
Related
- What is fastlane, and which manual iOS release steps does it automate?
- What is a .p12 file, and how do I move a signing certificate to another Mac?
- What is an iOS signing certificate? Development vs distribution certificates
- What is a self-hosted runner?
- Should I rent or buy a Mac just to build and publish an iOS app?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support