【问题标题】:Fastlane Match - get all provisioning profiles with a single runFastlane Match - 一次运行即可获取所有配置文件
【发布时间】:2019-08-03 03:35:56
【问题描述】:

当我在应用程序的项目目录中运行fastlane match 时,默认情况下会使用development: true 参数执行它,因此只获取开发证书和配置文件。

我必须多次运行该命令才能刷新所有证书和配置文件,例如:

fastlane match adhoc
fastlane match development
fastlane match appstore

有没有办法只运行一次命令来获取上述所有内容?

【问题讨论】:

    标签: ios certificate provisioning-profile fastlane fastlane-match


    【解决方案1】:

    在此处查看match 命令的源代码: https://github.com/fastlane/fastlane/blob/master/match/lib/match/commands_generator.rb

    你可以看到可接受的参数:

      command :run do |c|
        c.syntax = 'fastlane match'
        c.description = Match::DESCRIPTION
    
        FastlaneCore::CommanderGenerator.new.generate(Match::Options.available_options, command: c)
    
        c.action do |args, options|
          if args.count > 0
            FastlaneCore::UI.user_error!("Please run `fastlane match [type]`, 
            allowed values: development, adhoc, enterprise  or appstore")
          end
    
          params = FastlaneCore::Configuration.create(Match::Options.available_options, options.__hash__)
          params.load_configuration_file("Matchfile")
          Match::Runner.new.run(params)
        end
      end
    

    为了可读性:

    开发、临时、企业或应用商店

    正如你提到的,default value will be development

    除了所有这些,不可能提供一个 single 参数来获取所有这些。但是,您可以尝试以下作为单个命令:

    fastlane match "adhoc" | fastlane match "development" | fastlane match "appstore"
    

    【讨论】:

    • 感谢您的回答!看来,用一个命令来获取所有这些是不可能的。我关心的是使用单个命令来节省时间。虽然您的解决方案肯定意味着更少的输入,但每次提取都需要一个单独的登录事件,这需要时间。
    • 没问题,很抱歉它不能完全满足您的需求。但是,维护者非常擅长添加功能,所以如果尚未完成,也许您可​​以建议这样做?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-13
    • 1970-01-01
    • 2017-02-01
    • 2018-11-07
    相关资源
    最近更新 更多