gpt4 book ai didi

macos - OS X 产品签名错误 : Could not find appropriate signing identity

转载 作者:行者123 更新时间:2023-12-04 06:38:25 27 4
gpt4 key购买 nike

我正在尝试使用命令行实用程序 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”。有没有办法调试这个特定的错误?

最佳答案

我遇到过同样的问题。我的安装程序证书没有私钥。
您可以通过打开钥匙串(keychain)来检查这一点并查找您的证书,例如:

开发者 ID 安装程序:我的公司 (1258345791ZL)

如果您附加了私钥,您应该会看到

Developer ID Installer: My Company (1258345791ZL) (!) Private Key



如果您无法展开证书下的私钥,则意味着它丢失了。

然后要解决此问题,您必须使用您的 Apple ID 登录 developer.apple.com 并

1-尝试删除并再次下载您的证书

2-如果这还不够,请按照以下步骤创建一个新的

2a - 单击 (+) 或转到此处:

https://developer.apple.com/account/mac/certificate/distribution/create

2b - 指定生产/开发人员 ID,然后按继续

2c - 指定“开发者 ID 安装程序”

2d - 按照说明使用钥匙串(keychain)创建证书请求

2e - 在苹果开发者中上传您的证书请求文件

2f - 在您的钥匙串(keychain)中下载新创建的证书。

2g - 确保清除所有其他安装程序证书。

瞧,您可以签名。

关于macos - OS X 产品签名错误 : Could not find appropriate signing identity,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21244756/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com