iOS使用fastlane一键打包
1.首先安装fastlane
sudo gem install fastlane
2.切换到工程目录(默认已安装xcode和命令行工具)
fastlane init
会看到四个选项,根据需要自己选择一个,然后一路enter
3.生成了fastlane目录,该目录下包含了Appfile和Fastfile
编辑Appfile
编辑Fastfile
4. fastlane betaDebug
看到结果 fastlane.tools finished successfully
打包成功
问题:
Unable to locate Xcode. Please make sure to have Xcode installed on your machine
解决方法:
在Xcode中没有设置“Command Line Tools”:打开Xcode偏好设置,选择"Location"选项卡,选择相应的“Command Line Tools”即可
自己工作之余,研究fastlane打包,按照如上流程大概两个小时左右搞定,分享给大家,有什么问题可以一起讨论。
参考文档:https://www.jianshu.com/p/0a113f754c09