fastlane 自动打包 并上传fir

参考链接:https://www.jianshu.com/p/3ae1f874231f 感谢分享

$ ruby -v
$ xcode-select --install
$ sudo gem install fastlane

# xcworkspace工程文件所在目录
$ cd /Users/caohuoxia/Desktop/YeePayGit/mpos/MposApp

$ fastlane init

# 配置apple_id和bundleid,注意若工程项目中有配置,则该文件配置不起作用
$ vim ./fastlane/Appfile
 
# 打包具体配置(具体内容见下面Fastfile文件)
$ vim ./fastlane/Fastfile

$ fastlane add_plugin firim
$ gem install fir-cli

#打包命令,adhoc为lane名称
$ bundle exec fastlane adhoc

Fastfile文件

default_platform(:ios)

platform :ios do
  desc "Submit a new adhoc/enterprise version to fir"
  lane :adhoc do
    gym(scheme:"MposApp",
    workspace:"MposApp.xcworkspace",
    include_bitcode:false,
    configuration:"Release",
    export_method:"enterprise",
    output_directory:"/Users/caohuoxia/Desktop/发包",
    output_name:"输出的ipa文件名",
    silent:false,
    include_symbols:true)

    firim(firim_api_token:"303f2ec06623a44a8809ff208e3ffd82",app_changelog:"fastlane测试自动打包")
    end
end

注意点:
1、更新过程中提示成功之后,还卡住的话 忽略 继续后面步骤
2、Fastfile文件注意语法错误

你可能感兴趣的:(fastlane 自动打包 并上传fir)