1、安装Fastlane
$ sudo gem install fastlane
2、检查版本 fastlane
$ fastlane --version
3、初始化配置
$ cd 项目目录
$ fastlane init
4、初始化什么样的配置,这里选择3自动化应用程序商店发布
What would you like to use fastlane for?
- Automate screenshots
- ✈️ Automate beta distribution to TestFlight
- Automate App Store distribution
- Manual setup - manually setup your project to automate your tasks
5、输入你的App ID,密码和6位验证码
6、输入y,希望fastlane管理应用的元数据
Would you like fastlane to manage your app's metadata? (y/n)