美文网首页
iOS fastlane 自动打包ipa并且上传到蒲公英

iOS fastlane 自动打包ipa并且上传到蒲公英

作者: 114105lijia | 来源:发表于2020-11-12 10:14 被阅读0次

上篇iOS fastlane 自动打包ipa说到自动打包ipa。
打包之后再上传到蒲公英比较简单,只需要先添加蒲公英插件,然后设置的api_key和user_key即可。具体如下:
1、安装pgyer插件

fastlane add_plugin pgyer
如下图: image.png

安装插件成功后,在设置pgyer:

default_platform(:iOS)

platform :iOS do
  desc "Description of what the lane does"
  lane :build do

  gym(
    scheme:"---",
    export_method:"enterprise",
    output_directory:"/Users/---/Desktop/ipa",
    output_name:"---",
    export_xcargs:"-allowProvisioningUpdates",
  )

  api_key = "ae1da8866"
  user_key = "94bcb93a"
  pgyer(api_key:"#{api_key}",user_key:"#{user_key}")

  end
end

查看蒲公英的api_key和user_key:


image.png

打包时,直接运行即可:

bundle exec fastlane ios build

相关文章

网友评论

      本文标题:iOS fastlane 自动打包ipa并且上传到蒲公英

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