Skip to main content

Basic

Installation​

Install on macos

brew install fastlane
fastlane -version

Toolchain​

ToolDescription
producecreates new iOS apps in both App Store Connect and the Apple Developer Portal
certautomatically creates and maintains iOS code-signing certificates
signcreates, renews, downloads and repairs provisioning profiles
snapshotautomates taking localized screenshots of your iOS app on every device
frameitputs your screenshots into the right device frames
gymbuilds and packages your iOS apps
deliveruploads screenshots, metadata and your apps to the App Store
pemautomatically generates and renews your push notification profiles
spaceshipis a Ruby library able to access the Apple Developer Center and App Store Connect APIs
pilotautomates TestFlight deployments and manages beta testers
boardinginvites beta testers
matchsyncs certificates and provisioning profiles across your team, using Git
testruns tests on your apps.

Fastlane init output​

  • Appfile: stores the app identifier, your Apple ID and any other identifying information that fastlane needs to set up your app
  • Fastfile: manages the lanes you’ll create to invoke fastlane actions

Fastlane match​

Init certificate​

fastlane match init

Create profiles for development and App Store​

fastlane match development
fastlane match appstore
fastlane match adhoc

Add new device profile​

fastlane match development --force_for_new_devices
fastlane match adhoc --force_for_new_devices

Notes: you need to disable automatic code signing in you Xcode project

Renew certificate​

fastlane match nuke development
fastlane match nude distribution

fastlane match development
fastlane match appstore