
Unfortunately you can't specify the name of the provisioning profile in Xcode 7. You should avoid clicking the Fix Issue button (There is an Xcode plugin that disables the button), as it sometimes revokes existing certificates, and with it the provisioning profiles. This way you can profit off of the automatic code signing on development machines, and also stay in control on release builds to be sure the right cert/provisioning profiles are used. In your Fastfile you then use a lane like this: lane :release doĭisable_automatic_code_signing(path: "my_project.xcodeproj")Įnable_automatic_code_signing(path: "my_project.xcodeproj") You have to configure your Xcode project to use automatic code signing, and on the release configuration specify the $() match env variable.
FASTLANE MATCH CI MANUAL
To simplify development workflow you could use Automatic code signing for development, and Manual for release builds.

The instructions below are more advanced, and take more time to setup than other approaches. That's why it is recommended to specify a specific provisioning profile somehow: Xcode 8 and up

Occasionally the Automatic setting as the provisioning profile doesn't work reliably as it will just select the most recently updated provisioning profile, no matter if the certificate is installed. Make sure to follow Setting up your Xcode Project to set up your project properly.

If you are new to code signing, check out the WWDC session that describes the fundamentals of code signing in Xcode. This guide will help you choose the best approach for you.įor existing projects it might make sense to switch from a manual process to the match approach to make it easier for new team-members to onboard. If you are just starting a new project, it's important to think about how you want to handle code signing.
FASTLANE MATCH CI INSTALL
New to fastlane? Click here to open the installation & setup instructions firstġ) Install the latest Xcode command line tools xcode-select -installģ) Navigate to your project and run fastlane init
