fastlane match [environment]
(不使用--readonly标志)是否可能撤销证书,或者只是配置配置文件受到影响?我查看了official docs,但是如果证书受到此命令的影响,我并不是很清楚。
我不想撤销Apple开发人员中心的任何现有证书,因为我们有多个使用它们的企业应用程序。
单独运行fastlane match [environment]
命令不会撤销任何证书。
您必须将nuke
添加到命令以撤消证书和配置文件。
以下代码是taken from here:
command "nuke" do |c|
# We have this empty command here, since otherwise the normal `match` command will be executed
c.syntax = "fastlane match nuke"
c.description = "Delete all certificates and provisioning profiles from the Apple Dev Portal"
c.action do |args, options|
FastlaneCore::UI.user_error!("Please run `fastlane match nuke [type], allowed values: development, distribution and enterprise. For the 'adhoc' type, please use 'distribution' instead.")
end
end
["development", "distribution", "enterprise"].each do |type|
command "nuke #{type}" do |c|
c.syntax = "fastlane match nuke #{type}"
c.description = "Delete all certificates and provisioning profiles from the Apple Dev Portal of the type #{type}"
FastlaneCore::CommanderGenerator.new.generate(Match::Options.available_options, command: c)
c.action do |args, options|
params = FastlaneCore::Configuration.create(Match::Options.available_options, options.__hash__)
params.load_configuration_file("Matchfile")
Match::Nuke.new.run(params, type: type.to_s)
end
end
end
nuke
参数是你在答案中链接到的页面上的documented here。
您还可以通过其源文件nuke
查看found here参数的作用。