设为首页 加入收藏

TOP

ios实现fastlane自动化打包(二)
2019-08-26 07:01:11 】 浏览:72
Tags:ios 实现 fastlane 自动化 打包
(:ios) platform :ios do desc "上传fir” lane :TestImgFir do #TestImgFir 为lane 名称,只要和后面的lane保持一致即可,我们执行时就是执行这个方法 scheme_name = "TestImg" #导出路径 我们可以桌面创建IPA_Info(没有的话会自动创建) 文件夹来集中管理生成的ipa等文件 output_directory = "/Users/xywy/Desktop/IPA_Info" #导出名称 output_name = "#{scheme_name}_#{Time.now.strftime('fir_im%Y%m%d%H%M%S')}.ipa" gym( export_method: "development", #这里填写导出方式 ad-hoc、enterprise、app-store #Xcode 9 默认不允许访问钥匙串的内容,必须要设置此项才可以 export_xcargs: "-allowProvisioningUpdates", scheme: scheme_name,# target的名字 clean: true, # 在构建前先clean output_directory: output_directory, #ipa输出目录 output_name: output_name#ipa名字 ) # 上传蒲公英 firim(firim_api_token: "fffea58a4baed4d2b1fc2179d2f32119") end end

   注意:

  以上的firim_api_token可以在fir.im上,点击账号处的“API token”查看或者生成

  3)打包并自动上传 App 到蒲公英

//在项目目录下执行
$ fastlane TestImgFir #和前面lane后面的名称保持一致

   至此,自动化打包安装过程结束!!!  

补充:如果项目后续开发中能正常打包成功,但是提示需要更新的信息

则查看当前fastlane版本号

$ fastlane --version

 然后更新到提示的最新版本号

$ sudo gem install -n /usr/local/bin/ fastlane --version 2.114.0 #比如2.114.0就是最新版本号

 

 

参考自:

https://www.jianshu.com/p/5119c115ec90

https://mp.weixin.qq.com/s/mRLfF8T8JoIFbr5TiJDzpw

 

 

首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇苹果电脑(Mac mini或Macbook或iM.. 下一篇笔记:long、longlong、int、floa..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目