Xcode 4 -reinstalls keychain certs that I delete Xcode 4 -reinstalls keychain certs that I delete xcode xcode

Xcode 4 -reinstalls keychain certs that I delete


The solution was to go into organizer - under library - provisioning profiles, delete all of them and then reinstall any profiles I still needed.


I had this same problem and the solutions above did not solve my problem (well nearly).

I had the same duplicate developer ID/certificate that everyone is complaining about, and I tried deleting all my profiles, revoking/reissuing my cert, making sure there were none in the system keychain, restarting, etc etc.

In the end it turned out there was a certificate in the system keychain, one that had expired and so was hidden by default in the list.

Make sure you can see expired certificates in KeyChain

To do this:

  1. Open Keychain Access
  2. Click View menu
  3. Click Show Expired Certificates
  4. then look for, and delete expired developer certs


Xcode 4 has a new feature "Automatic Device Provisioning". It's located in the organizer under library/provisioning profiles. If you have this enabled it will automatically download your provisioning profiles from the apple developer provisioning server and thus you get the error of having duplicates. The easiest way to fix it is to delete all provisioning profiles and press refresh for the "Automatic Device Provisioning". This will load your provisioning profiles from the server and will fix your problem.