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!



Thanks, that helped a lot.
Thanks for your post Duncan! This fix worked a treat
You saved the day for us! That problem was driving me nuts!
Thank you! Now … who changed my default keychain (10.5.7 upgrade?)
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.
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.
bless you
I have the same error, but that isn’t the problem… hmmm
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.
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!
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!