【发布时间】:2019-07-24 05:27:07
【问题描述】:
我正在尝试使用命令行实用程序productsign 对 OS X 安装程序包进行签名,但出现错误。
productsign --sign "Developer ID Installer: XYZ" input.pkg output.pkg
productsign: error: Could not find appropriate signing identity for “Developer ID Installer: XYZ”.
当我打开 Keychain Access 时,我可以看到我在 developer.apple.com 创建并导入到我的登录 Keychain 中的证书。它的通用名称与我的命令行参数匹配:“开发人员 ID 安装程序:XYZ”。有没有办法调试这个特定的错误?
【问题讨论】:
-
你能看到你的私钥吗?您需要证书和私钥来进行签名(Apple 将其称为“身份”)。
-
谢谢,这就是问题所在!我在一台机器(有私钥)上生成证书,然后在另一台机器(没有私钥)上运行 productsign。请输入您的答案,我会将其标记为已接受。