无法列出我的开发者ID应用程序身份

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

我按照此处的说明生成用于签署我的应用程序的证书:https://help.apple.com/developer-account/#/devbfa00fef7

很遗憾,我无法使用以下命令对应用程序进行代码签名:

codesign --sign "Developer ID Application: My company (XXXXXX)" Test.app --deep
Developer ID Application: My company (XXXXXX): no identity found

我尝试使用以下命令列出我的身份,但未成功:

security find-identity

Policy: X.509 Basic
  Matching identities
  1) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "Apple Distribution: My Company (XXXXXXXXXX)"
  2) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "3rd Party Mac Developer Installer: My Company (XXXXXXXXXX)"
  3) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "Apple Development: Martin Delille (XXXXXXXXXX)"
  4) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "Apple Distribution: My Company (XXXXXXXXXX)"
  5) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "Apple Development: Martin Delille (XXXXXXXXXX)"
  6) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "Mac Developer: Martin Delille (XXXXXXXXXX)"
     6 identities found

  Valid identities only
  1) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "Apple Distribution: My Company (XXXXXXXXXX)"
  2) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "3rd Party Mac Developer Installer: My Company (XXXXXXXXXX)"
  3) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "Apple Development: Martin Delille (XXXXXXXXXX)"
  4) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "Apple Distribution: My Company (XXXXXXXXXX)"
  5) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "Apple Development: Martin Delille (XXXXXXXXXX)"
  6) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "Mac Developer: Martin Delille (XXXXXXXXXX)"
     6 valid identities found

您可以看到,我的Developer Id Application证书位于我的钥匙串中:

enter image description here

macos code-signing code-signing-certificate
1个回答
0
投票

当然,证书在钥匙串中,但是除非您也有钥匙,否则它不会显示为“有效身份”。通常,“钥匙串访问”会在您拥有钥匙的任何证书旁边显示一个显示三角形。在您的示例中不可见。

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