skip down to the 11 comments

Another iPhone Code Sign Error Fix solution

Dam, this took far to long to suss out !!! I even left the London Open Hack 2009 early because I was unable to install development apps I was working on onto my iPhone, and it was proving so frustrating I decided to go home to try and fix it there … Dam!!!

So the error I was getting was:

Code Sign error: The identity 'iPhone Developer' doesn't match any valid 
certificate/private key pair in the default keychain

I won’t bore you with all the variations, forums, websites read and ways I tried to solve this, and will leave you with the solution in this case. The problem was that the KeyChain App had changed it’s default keychain over to ‘system‘ and it should have been ‘login‘ as this is where all my keys and certificates are installed. Also, the default keychain is where Xcode looks. The default keyChain in the one in the keychains list that is bold. To make one the default, you right click on it and select the ‘make default’ item from the list.

Yep, That’s It!! and to be honest the error message make a little more sense now I’ve fixed it … Dam!

There have been 11 responses to this post.

  1. Eric

    Thanks, that helped a lot.

  2. James

    Thanks for your post Duncan! This fix worked a treat :-)

  3. Brian

    You saved the day for us! That problem was driving me nuts!

  4. Pryankster

    Thank you! Now … who changed my default keychain (10.5.7 upgrade?)

  5. Steve Flack

    I’ve come to the conclusion the iPlayer app (or Adobe AIR) changes the default keychain. At least it’s definitely what’s doing it for me.

    The only thing that’s in the ‘new’ default keychain is an app password for Adobe.APS.

  6. Robert

    Thanks a ton! Man, that is messed up, I don’t know how this happened, but why would anyone ever want to make the system keychain the default one? The OS should simply not have permitted it in the first place.

  7. mary albanese

    bless you

  8. John Costa

    I have the same error, but that isn’t the problem… hmmm

  9. Joy

    I had the same error as well, however this didn’t help me. I even copied the certificate into ‘login’ keyChain but it did not resolve the problem.

  10. Benny

    In my keychain, the “login” keychain was completely gone. I had to re-add it!

    after that I made it the default keychain and everything went back to normal.

    great post, thanks!

  11. taichi

    I was working on it for long long time
    and could not see the way to solve this problem but after seeing your article,it’s completely solved!
    thank you very very much for writing this article!

back to the top