协同设计错误-返回的SecKey API:-67671

协同设计错误-返回的SecKey API:-67671

问题描述:

当我尝试运行特定应用程序的代码时,出现错误:

When I try to run codesign of a particular app, I get an error:

/Users/xxx/xxxxxx/xxxxx.app:替换现有签名

SecKey API返回:-67671(空)/Users/xxx/xxxxxx/xxxxx.app

未知错误-1 = ffffffffffffffffff

知道这意味着什么吗?

就我而言,需要执行以下操作:

In my case needed to do the following:

  1. 钥匙串访问中,右键单击私钥(如果看不到,请通过单击证书旁边的小三角形展开证书)

  1. in the Keychain Access right click on the Private Key (if it is not seen, expand the Certificate by clicking on the little triangle near it)

选择获取信息

转到访问控制标签,选择允许所有应用程序访问此项目"

Go to Access Control tab, choose "Allow all applications to access this item"

点击保存更改按钮,如果出现提示,输入用户名/密码

Click Save changes button, input the username/passwords if prompted

还请注意,证书/密钥不仅可以在您的登录钥匙串中,而且可以在系统钥匙串中.如果需要,对两者都做同样的事情.

Also note the Certificate/Key could be not only in you login keychain, but also in the System keychain. Do the same for both if required.