For some reason Xcode said my certificate was revoked. Developer support says it’s active. Could someone point me towards the steps to reactivate it?
Certification revoked
Thanks so much for the post.
Sure! If Xcode is indicating that your certificate has been revoked, you may need to follow these steps to reactivate it:
- Double-check the Certificate Status:
- First, make sure you are checking the correct certificate and that it is indeed active.
- Go to the Apple Developer Account website (https://developer.apple.com/account/).
- Login to your account.
- Navigate to Certificates, Identifiers & Profiles.
- Under Identifiers, check the status of your App IDs and Certificates.
- Revoke and Reissue the Certificate:
- Even though developer support says it's active, sometimes there might be a glitch or an outdated cache on your system. To resolve this, you can revoke the certificate (even though it's not supposed to be revoked) and then reissue it.
- Under Certificates, select the certificate that Xcode is showing as revoked.
- Click on the Revoke button. (Note: You may need to provide a reason for revocation, even if it's just for troubleshooting purposes.)
- After revoking, immediately reissue the certificate. Click on the + button under Certificates and follow the steps to create a new certificate for the same App ID.
- Update Xcode:
- Make sure that you have the latest version of Xcode installed on your system. Outdated Xcode versions can sometimes have caching issues.
- Remove and Re-add Certificates in Xcode:
- Open Xcode.
- Go to Xcode > Preferences > Accounts.
- Select your Apple ID.
- Click on the View Details button at the bottom.
- In the Account Details window, click on the + button under Certificates.
- Select the certificate you just reissued. (Note: You might need to refresh the list by clicking on the Refresh button at the bottom left corner of the Certificates section.)
- Close Xcode and re-open it.
- Clean Build Folder and Derived Data:
- Sometimes, the revoked certificate issue can be caused by build artifacts caching. Go to your project folder and delete the Build folder.
- In Xcode, go to Product > Clean Build Folder.
- Restart your computer/ Xcode:
- Sometimes, a simple restart can apply the changes and clear out any temporary issues.
- Verify on a different machine (If possible):
- Try checking the certificate status and renewing it on a different Mac if possible. This can help rule out any local machine-specific issues.
Remember:
- Be cautious when revoking and reissuing certificates, as this can affect your app's availability on the App Store. Always make sure to have a backup of your certificates and keys before proceeding.
- The process usually involves a certain amount of time for the changes to take effect and propagate through Apple's systems. Be patient and wait for a while after reissuing the certificate.
By following these steps, you should be able to resolve the issue with your revoked certificate in Xcode. Also, you can set the signing to Automatic and let Xcode renew all the certificates for you. Hope this guide helps.
Albert Pascual Worldwide Developer Relations.