我们正尝试使用以下命令对Mac安装程序(.pkg文件)进行签名。
productsign --sign "Developer ID Installer: MyCompany, Inc." unsigned_installer.pkg signed_package.pkg
但我们收到以下错误。
productsign: error: Could not find appropriate signing identity for “Developer ID Installer: MyCompany, Inc.”.
当我们尝试使用security -v find-identity -p codesigning
查找证书时,我们会得到以下输出。
Policy: Code Signing
Matching identities
1) 1234....6789 "MyCompany, Inc."
1 identities found
Valid identities only
1) 1234....6789 "MyCompany, Inc."
1 valid identities found
您能否告诉我们如何排除故障并解决此问题?