fastlane匹配命令可能会撤销证书

问题描述 投票:0回答:1

fastlane match [environment](不使用--readonly标志)是否可能撤销证书,或者只是配置配置文件受到影响?我查看了official docs,但是如果证书受到此命令的影响,我并不是很清楚。

我不想撤销Apple开发人员中心的任何现有证书,因为我们有多个使用它们的企业应用程序。

ios fastlane fastlane-match
1个回答
1
投票

单独运行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参数的作用。

© www.soinside.com 2019 - 2024. All rights reserved.