我按照这里的说明生成对我的应用程序进行签名的证书: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如您所见,我的开发人员Id应用程序证书位于我的密钥链中:

发布于 2020-04-21 14:30:02
当然,证书在密钥链中,但除非您也拥有密钥,否则它不会显示为“有效身份”。通常,密钥链访问将在您拥有密钥的任何证书旁边显示一个泄漏三角形。它在您的示例中是不可见的。
https://stackoverflow.com/questions/61342324
复制相似问题