Basic
Installation
Install on macos
brew install fastlane
fastlane -version
Toolchain
| Tool | Description |
|---|---|
| produce | creates new iOS apps in both App Store Connect and the Apple Developer Portal |
| cert | automatically creates and maintains iOS code-signing certificates |
| sign | creates, renews, downloads and repairs provisioning profiles |
| snapshot | automates taking localized screenshots of your iOS app on every device |
| frameit | puts your screenshots into the right device frames |
| gym | builds and packages your iOS apps |
| deliver | uploads screenshots, metadata and your apps to the App Store |
| pem | automatically generates and renews your push notification profiles |
| spaceship | is a Ruby library able to access the Apple Developer Center and App Store Connect APIs |
| pilot | automates TestFlight deployments and manages beta testers |
| boarding | invites beta testers |
| match | syncs certificates and provisioning profiles across your team, using Git |
| test | runs 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 appFastfile: 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 signingin you Xcode project
Renew certificate
fastlane match nuke development
fastlane match nude distribution
fastlane match development
fastlane match appstore