ios Xcode:“撤销证书 - 您的帐户已经拥有此机器的签名证书,但它不在您的钥匙串中。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42820855/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode: "Revoke certificate - Your account already has a signing certificate for this machine but it is not present in your keychain."
提问by Gruntcakes
I'm posting this as a question and providing the answer for the benefit of others running into the same situation and searching for the solution as this had me scratching my head and wasting time and searching past questions until I eventually discovered the cause.
我将此作为一个问题发布,并为其他遇到相同情况并寻找解决方案的人提供答案,因为这让我摸不着头脑,浪费时间并搜索过去的问题,直到我最终发现原因。
I got this error but nothing about my project; my accounts; my certificates; my mac set up had changed. In particular the certificates are still valid and have not been revoked.
我收到了这个错误,但对我的项目一无所知;我的账户;我的证书;我的 mac 设置已更改。尤其是证书仍然有效且未被撤销。
Revoke certificate Your account already has a signing certificate for this machine but it is not present in your keychain. To create a new one, you must first revoke the existing certificate.
撤销证书 您的帐户已经有这台机器的签名证书,但它不在您的钥匙串中。要创建新证书,您必须首先撤销现有证书。
With no obvious cause for the problem suddenly appearing, I eventually discovered the cause, posted as the answer below.
突然出现问题没有明显的原因,我最终找到了原因,作为答案发布在下面。
回答by Richie Hyatt
In my opinion the answer provided by ykay in this post Your account already has a signing certificate for this machine but it is not present in your keychainshould be the correct answer to this issue - it is quick and painless and does NOT involve REVOKING any certificates
在我看来,ykay 在这篇文章中提供的答案您的帐户已经有这台机器的签名证书,但它不在您的钥匙串中应该是这个问题的正确答案 - 它快速而轻松,不涉及撤销任何证书
回答by cormacncheese
This is what worked for me...
这对我有用...
It seemed I was missing some certificates in Keychain Access. I had to install the Apple Worldwide Developer Relations Certification Authority. See the two articles below:
似乎我在钥匙串访问中缺少一些证书。我必须安装 Apple Worldwide Developer Relations Certification Authority。请参阅以下两篇文章:
(Installing Missing Intermediate Certificate Authorities) https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html#//apple_ref/doc/uid/TP40012582-CH31-SW30
回答by Gruntcakes
This is actually a bug with XCode 8.3 beta 4 (also present in Xcode 8.3 beta 3) and will occur if your device is not registered on your Apple account.
这实际上是 XCode 8.3 beta 4(也在 Xcode 8.3 beta 3 中存在)的一个错误,如果您的设备未在您的 Apple 帐户上注册,则会发生。
Xcode is displaying the wrong error message, if the same device/project is opened with Xcode 8.2, then the correct message is displayed:
Xcode 显示错误的错误消息,如果使用 Xcode 8.2 打开相同的设备/项目,则会显示正确的消息:
Instead of displaying this message, Xcode is erroneously reporting the message about needing to revoke the certificate.
Xcode 没有显示此消息,而是错误地报告了有关需要撤销证书的消息。
Obviously the solution is to register the device, which must be done manually as 8.3 is no longer recognizing that situation and offering it as an option. Or open the project in Xcode 8.2 and register the device via Xcode and then re-open the project in Xcode 8.3
显然,解决方案是注册设备,这必须手动完成,因为 8.3 不再识别这种情况并将其作为选项提供。或者在 Xcode 8.2 中打开项目并通过 Xcode 注册设备,然后在 Xcode 8.3 中重新打开项目
回答by Rodrigo Gonzalez
For me the problem was that the certificate was installed on the user A
, but when I logged with the user B
I got this error. What I did was on the user A
I opened the Keychain Access.app
, looked for the certificate that I needed (under My certificates on the left side), exported it and then on the user B
, add the certificate.
对我来说,问题是证书安装在用户上A
,但是当我与用户一起登录时,B
出现此错误。我所做的是在A
我打开的用户上Keychain Access.app
查找我需要的证书(在左侧的我的证书下),将其导出,然后在用户上B
添加证书。
回答by Ronaldo Albertini
回答by LViet
May be one of certificates included in your provisioning is revoked. Did you try enter "https://developer.apple.com/account/ios/certificate" then edit your provisioning by add again your certificate which revoked already?
可能是您的供应中包含的证书之一被吊销。您是否尝试输入“ https://developer.apple.com/account/ios/certificate”,然后通过再次添加已撤销的证书来编辑您的配置?