简体   繁体   English

Fastlane Match-一次运行即可获取所有配置文件

[英]Fastlane Match - get all provisioning profiles with a single run

When I run fastlane match inside the app's project directory it gets executed with development: true parameter by default, thus fetching only a development certificate and provisioning profile. 当我在应用程序的项目目录中运行fastlane match ,默认情况下将使用development: true参数执行该操作,因此仅获取开发证书和配置文件。

I have to run the command multiple times to refresh all the certificates and profiles, for example: 我必须多次运行命令以刷新所有证书和配置文件,例如:

fastlane match adhoc
fastlane match development
fastlane match appstore

Is there any way to run command only once to fetch all of the mentioned above? 有什么办法只能运行一次命令以获取上述所有内容?

Looking at the source code for the match command here: https://github.com/fastlane/fastlane/blob/master/match/lib/match/commands_generator.rb 在此处查看match命令的源代码: https : //github.com/fastlane/fastlane/blob/master/match/lib/match/commands_generator.rb

You can see the acceptable arguments: 您可以看到可接受的参数:

  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

For readability: 为了提高可读性:

development, adhoc, enterprise or appstore 开发,临时,企业或应用程序商店

As you mentioned, the default value will be development . 正如您提到的, 默认值为development

With all of that out of the way, it is not possible to provide a single argument to fetch all of them. 由于所有这些都不可行,因此无法提供单个参数来提取所有参数。 However, you can try the following as a single command: 但是,您可以尝试以下命令作为单个命令:

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

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Fastlane匹配不再能够创建配置文件 - fastlane match can no longer create provisioning profiles 如何让我的 fastlane build (gym) 具有多个目标以查找我的配置文件 - How do I get my fastlane build (gym) with multiple targets to find my provisioning profiles 重置所有配置文件 - Resetting all provisioning profiles “ionic run ios”如何添加配置文件 - “ionic run ios” How to add provisioning profiles XCode一直撤销我所有的配置文件 - XCode keeps revoking all my provisioning profiles Fastlane 错误:Xcode 找不到任何匹配“*”的 iOS 应用程序开发配置文件 - Fastlane error: Xcode couldn't find any iOS App Development provisioning profiles matching '*' 没有安装的配置文件与安装的 iOS 代码签名密钥匹配 - No installed provisioning profiles match the installed iOS code signing keys Xamarin没有安装的配置文件与已安装的iOS签名身份相匹配 - Xamarin No installed provisioning profiles match the installed iOS signing identities 当前安装的配置文件都不匹配应用程序的包标识符? - None of the currently installed provisioning profiles match app's bundle identifier? Visual Studio中的配置文件下拉列表与Xcode中可用的配置文件列表不匹配 - Provisioning Profile dropdown list in Visual Studio does not match list of available Provisioning Profiles in Xcode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM