安装蒲公英的 Fastlane 插件
Fastline使用参看此篇文章
- 安装蒲公英的 Fastlane 插件
fastlane add_plugin pgyer
Fastfile文件中添加Lane,加入蒲公英插件的配置信息
lane :beta do
build_app(export_method: "ad-hoc")
pgyer(api_key: "7f15xxxxxxxxxxxxxxxxxx141", user_key: "4a5bcxxxxxxxxxxxxxxx3a9e")
end
注意:以上的 api_key 和 user_key,请开发者在自己账号下的 应用管理 - App概述 - API 中可以找到,并替换到以上相应的位置。

打包并自动上传 App 到蒲公英
bundle exec fastlane beta_pgyer
打包上传成功截图如下:
