美文网首页
Fastlane 实现自动打包

Fastlane 实现自动打包

作者: FallPine | 来源:发表于2019-06-24 17:39 被阅读0次

1、安装了Fastlane

使用命令行安装:

sudo gem install fastlane -NV
或
brew cask install fastlane

2、生成fastlane目录

在工程项目目录下,用命令行:

fastlane init

选择对应的操作:


image.png

随便选哪个都可以

然后登录苹果账号,需要进行双重认证


image.png

3、上传到蒲公英

在Fastfile文件中添加一点脚本:

lane :beta do
  build_app(export_method: "ad-hoc")
  pgyer(api_key: "7f15xxxxxxxxxxxxxxxxxx141", user_key: "4a5bcxxxxxxxxxxxxxxx3a9e")
end

export_method:可选的值有:app-store、ad-hoc、development、enterprise
api_key:API Key,用来识别API调用者的身份,如不特别说明,每个接口中都需要含有此参数。对于同一个蒲公英的注册用户来说,这个值在固定的。
user_key:用户Key,用来标识当前用户的身份,对于同一个蒲公英的注册用户来说,这个值在固定的。

api_key和user_key获取方法

4、执行上传

fastlane beta

参考文章:
使用 Fastlane 上传 App 到蒲公英
iOS效率神器fastlane自动打包

相关文章

网友评论

      本文标题:Fastlane 实现自动打包

      本文链接:https://www.haomeiwen.com/subject/bkwoqctx.html