Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you delete a Signing Certificate in Xcode?

Tags:

xcode

ios

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?

enter image description here

like image 378
noctufaber Avatar asked Jun 19 '18 12:06

noctufaber


3 Answers

It's not enough to delete it from your keychain, the certificate is still present in Apple Developer Center at this point.

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.

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.

enter image description here

like image 81
oyvindhauge Avatar answered Oct 21 '22 23:10

oyvindhauge


I finally deleted the Certificates in XCode.

  1. Delete every item you think is related to certificates in Keychain Access > Keys. It will look like 'blank keys'

  2. Back to XCode Preferences > Accounts > Manage Certificates you should see those unwanted certificates showing (x) marks.

  3. Restart computer

like image 8
k3ndro Avatar answered Oct 22 '22 00:10

k3ndro


To remove a certificate that appear as "Not in Keychain" in XCode, I have found the following works.

  1. Revoke the certificate in the Apple Developer Portal (as per previous answer).
  2. Remove any provisioning profiles that reference the (removed) certificate.
like image 1
TeamTam Avatar answered Oct 22 '22 00:10

TeamTam