How do you delete a Signing Certificate in Xcode?

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.

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


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

Tags:

Ios

Xcode