如何在 Xcode 中删除签名证书?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/50928844/
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
How do you delete a Signing Certificate in Xcode?
提问by noctufaber
When I go to Xcode > Preferences > Accounts and then click on Manage Certificates for my selected Apple ID, I see my list of Signing Certificates. I tried to delete the certificate from the UI but the delete option is grayed out. I then found another Stack Overflow page that said to remove certificates from Keychain Access. I found it and removed it. However, when I go back to Xcode to the same place as before the Signing Certificate is still there and the option to delete it is still grayed out (see image below). I don't get it. Why is it so hard to just let me delete my certificate?
当我转到 Xcode > Preferences > Accounts 然后单击我选择的 Apple ID 的管理证书时,我会看到我的签名证书列表。我试图从 UI 中删除证书,但删除选项是灰色的。然后我发现另一个 Stack Overflow 页面说要从 Keychain Access 中删除证书。我找到了它并删除了它。但是,当我回到 Xcode 到与之前相同的位置时,签名证书仍然存在并且删除它的选项仍然是灰色的(见下图)。我不明白。为什么让我删除我的证书这么难?
回答by oyvindhauge
It's not enough to delete it from your keychain, the certificate is still present in Apple Developer Center at this point.
从您的钥匙串中删除它是不够的,此时证书仍然存在于 Apple Developer Center 中。
To remove it completely do the following:
要完全删除它,请执行以下操作:
- Log in to Apple Developer Center
- Find the certificate in question and click it
- Now click the "Revoke" button (see attached screenshot). Certificate should disappear.
- Go back to Xcode and refresh the dialog. Now it should be gone.
- 登录苹果开发者中心
- 找到有问题的证书并单击它
- 现在点击“撤销”按钮(见附件截图)。证书应该消失。
- 返回 Xcode 并刷新对话框。现在它应该消失了。
If it's not gone after you have done this, it just means it's still present in your keychain locally, so just remove it from here as well and you should be good.
如果在您完成此操作后它没有消失,则仅意味着它在本地仍存在于您的钥匙串中,因此也只需将其从此处删除,您应该就可以了。
回答by TeamTam
To remove a certificate that appear as "Not in Keychain" in XCode, I have found the following works.
要删除在 XCode 中显示为“不在钥匙串中”的证书,我发现了以下作品。
- Revoke the certificate in the Apple Developer Portal (as per previous answer).
- Remove any provisioning profiles that reference the (removed) certificate.
- 在 Apple Developer Portal 中撤销证书(根据之前的回答)。
- 删除任何引用(已删除)证书的配置文件。
回答by Bruno Philipe
You can't really delete a certificate, apparently. You can browse them in "Certificates, Identifiers & Profiles" inside of your developer account portal, but as far as I can tell, they'll remain there until they expire, and then they'll disappear automatically.
显然,您无法真正删除证书。您可以在开发者帐户门户内的“证书、标识符和配置文件”中浏览它们,但据我所知,它们会一直保留到到期,然后它们会自动消失。