[英]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.