Xcode 4 -reinstalls keychain certs that I delete

前端 未结 16 905
被撕碎了的回忆
被撕碎了的回忆 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:15
    1. Remove ~/Library/Developer/Xcode
    2. Clean Project

    build...

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

    Quoting an answer to a duplicate of this question, some of Xcode's bugs in this area can only be solved by restarting OS X.

    In the end, I achieved success by deleting everything mentioned in any of the answers to this question, restarting, then manually installing the parts I needed (I did not trust/try the automatic profile/certificate download feature).

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

    The other reason that xcode keeps installing your certificate is because you did not delete key, only certificate. You need to delete private key (and corresponding public key) as well as certificate in keychain otherwise xcode will reinstall the certificate.

    Check here To remove development and distribution certificates from your keychain

    0 讨论(0)
  • 2020-12-12 15:19
    1. Remove all Provisioning Profiles from XCode Organizer;
    2. Remove old Developer Certificates from Keychain Access;
    3. Generate Provisioning Profiles with the correct Developer Certificate only;
    4. Download and install the new Provisioning Profiles;

    -- EDIT --

    Merge @Codezy's answer and @iphone007's comment.

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

    if you want to mess with keychain access to remove the expired certificate, you may try this:

    • create a new keychain, name it "expired" and move ONLY the expired certificate to it.
    • delete the newly created "expired" keychain which contains ONLY the expired certificate, when asked select "Delete references & files".

    the expired certificate disappears together with the keychain. worked perfectly for me.

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

    Deleting provisioning profiles in Organizer's library, additionally, you should delete iPhone developer certificate in Keychain Access. (The certificate's name is probably like "iPhone Developer: XXXXX ..." and indicated by red X sign, as expired)

    0 讨论(0)
提交回复
热议问题