iOS-FastLane+pgy 自动打包

1.安装ruby环境 装pod时就有了

2.安装xcode工具栏 

xcode-select install

3.安装pgy插件

fastlane add_plugin pgyer 

4.cd 到项目目录 初始化fastlane

fastlane init

5.会多出appfile fastfile;

6.appfile 配置appid 和appleid;

# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app

# apple_id("[[APPLE_ID]]") # Your Apple email address

7.fastfile 是你要fastlane做什么的指令配置文件

lane :beta do

build_app(export_method: "ad-hoc",scheme: "FastlineTest",export_xcargs: "-allowProvisioningUpdates",silent:true,suppress_xcode_output:true)

pgyer(api_key: "xxxxx", user_key: "xxxxxxx", update_description: "xxxx",password: "xxxxx", install_type: "2")

end

创建一个beta指令 build_app是打包方法

pgyer是蒲公英插件 信息从pgy后台获取并填写

8.终端 fastlane beta 就能自动执行beta指令 自动打包


自动打包完成
©著作權歸作者所有,轉載或內容合作請聯系作者

推薦閱讀更多精彩內容