美文网首页
fastlane打包指定不同版本Xcode

fastlane打包指定不同版本Xcode

作者: jzhang | 来源:发表于2018-12-24 16:53 被阅读35次

xcode_selectaction

default_platform(:ios)

platform :ios do
  desc "***"
  lane :pkg do |options|
    
    xcode_select("/Applications/Xcode 9.4.1/Xcode.app")

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

    if options[:to] == "alpha"
        puts "   \033[31m打包完成,正在上传测试蒲公英\033[0m\n"
        pgyer(api_key: "***", user_key: "***")
    end

  end
end

相关文章

网友评论

      本文标题:fastlane打包指定不同版本Xcode

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