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.
- Revoke the certificate in the Apple Developer Portal (as per previous answer).
- Remove any provisioning profiles that reference the (removed) certificate.
I finally deleted the Certificates in XCode.
Delete every item you think is related to certificates in Keychain Access > Keys. It will look like 'blank keys'
Back to XCode Preferences > Accounts > Manage Certificates you should see those unwanted certificates showing (x) marks.
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.