fastlane match命令是否可以撤销证书

时间:2019-02-15 11:01:51

标签: ios fastlane fastlane-match

fastlane match [environment](不使用--readonly标志)可能会吊销证书吗?还是仅会影响配置文件?我已经看过official docs了,但是对于证书是否受此命令影响,我目前还不清楚。

我不想在Apple Developer Center中撤销我们现有的任何证书,因为我们有多个同时使用它们的企业应用程序。

1 个答案:

答案 0 :(得分: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

您还可以通过其源文件found here查看nuke参数的作用。

相关问题