ios - faSTLane 匹配命令是否可能吊销证书

标签 ios fastlane fastlane-match

可以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在您的答案中链接到的页面上。

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

关于ios - faSTLane 匹配命令是否可能吊销证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54707897/

相关文章:

xcode - 如何使用 M1 解决 Xcode 上的 faSTLane 问题?

ios - Apple 开发者帐户 - 从代理中删除团队 ID

app-store-connect - FaSTLane iOS 应用程序 "Encryption Export Compliance"豁免

ios - 使用gym创建ipa时FaSTLane不工作

ios - faSTLane nuke 是否也删除推送证书

android - Cordova FCM - 构建错误 : Failed to apply plugin [id 'com.google.gms.google-services' ]

ios - 将新对象插入数据库时​​出现 SwiftdynamicCast 错误

objective-c - 如何判断对象是否在 NSAutoreleasePool 中

ios - 检测已取消的 iTunes 登录警报以进行应用内购买