codesign & certificate issues

I have spent the better part of the day trying to compile my application to run on the iPod Touch.

For everyone it seems rather simple and straightforward. For some reason on the past 4 projects I’ve done, I had huge certificate issues. Sometimes it would work… and then stop altogether.

If you see that error in your build log:

Codesign error: no certificate for identifier “iPhone Developer” was found in your keychain

First step, don’t listen to your friends and co-workers and the like. Reinstalling the OS does nothing. Reimporting the certificates either. Reinstalling Xcode doesn’t help.

Changing the name of the code signing identity doesn’t change much either. If you can see the name of your provisionning certificate in the popup menu of the build settings, then it’s all good from a general perspective.

After much tinkering around, I tracked the problem to a keychain error.

And TADAAAAA: Go to Keychain Access -> Preferences -> Certificates and deactivate both automatic checking gizmos.

Quit Xcode, relaunch. It worked for me. Instantly.

The build process should ask you for a password. It is, after all, a private key that’s used to sign the app. If that happens, you’re out of the woods. If not, drop me an email, I know the system fairly well, now ;)

  

Leave a Reply