Xcode 4 -reinstalls keychain certs that I delete

前端 未结 16 903
被撕碎了的回忆
被撕碎了的回忆 2020-12-12 14:36

I am getting this error:

CodeSign error: Certificate identity \'iPhone Developer: XXX\' appears more than once in the keychain. The codesign too

相关标签:
16条回答
  • 2020-12-12 15:08

    I spent for this a half-day and finally found the solution

    1. Open KeyChain Access.app
    2. Select "System" in "Keychains" menu on the left part of Keychain application screen
    3. Select "Certificates" in "Category" down menu
    4. Remove all old certifications.

    Then close Keychain.app and go to Xcode -> Organizer

    1. Remove all Provisioning Profiles in Library menu
    2. Remove all Provisioning Profiles in Devices menu
    3. Push "Refresh" button in Library menu -> Provisioning Profile
    4. Add needful profiles to your device

    Build again your app:)

    0 讨论(0)
  • 2020-12-12 15:08

    I've tried everything suggested here but nothing worked for me except reinstaling XCode 4.3 magically solved the case.

    0 讨论(0)
  • 2020-12-12 15:09

    Figured out a really easy way to fix this in 4.6.1. You can do it without restarting anything or deleting any profiles!

    With Keychain Access and your Xcode project open:

    1. In Xcode, open Organizer - "Devices" and select the "team" with the duplicate certificate.
    2. Switch to Keychain Access and delete the old duplicate certificate(s). Note: Make sure you turn on "show expired certificates" to not miss any.
    3. The certificates will have disappeared from the "team" profile in the Xcode Organizer.
    4. Clean project and build.

    Hope it helps!

    0 讨论(0)
  • 2020-12-12 15:10

    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.

    0 讨论(0)
  • 2020-12-12 15:11

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

    0 讨论(0)
  • 2020-12-12 15:11

    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
    0 讨论(0)
提交回复
热议问题