Fastlane安装方法

2021-05-11  本文已影响0人  烈霸南绝
参照官方教程
安装最新的Xcode command line tools

xcode-select --install

安装fastlane

sudo gem install fastlane
or
sudo gem install -n /usr/local/bin fastlane

如果出现/ruby/config.h文件错误
#参照:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0 

> sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/universal-darwin20 universal-darwin19
在项目路径中初始化

fastlane init
or
fastlane init swift

初始化的过程中会有选择项, 选择4.
What would you like to use fastlane for?
1. Automate screenshots//截图
2. Automate beta distribution to TestFlight//发布到TestFlight
3. Automate App Store distribution//发布到App Store
4. Manual setup - manually setup your project to automate your tasks//手动设置
配置Appfile和Fastfile

Appfile对应修改苹果开发者账号和包名
Fastfile添加编译代码

lane :beta do
build_app(export_method: "ad-hoc")
end

上一篇下一篇

猜你喜欢

热点阅读