Once in a while I run into silly problems — typically, software-related problems — that soak up a great deal of time. In the hopes of saving someone else pain and aggravation I’ve dedicated a blog category called “stupid stupid stupid” to these topics, and I’ll document them along with workarounds. Forthwith:
I use the Keychain Access app on my Macbook to store security certificates, passwords, and the like. A few months ago I noticed that I have two keychains called “login”. I donned my peril-sensitive sunglasses and managed to avoid thinking about it any further until yesterday, international “revive a moribund iPhone app development project” day, when I was forced to emerge from my peril-free state of blissful ignorance.
The problem: if you have two keychains called “login”, installing and using the development and deployment certificates required for iPhone app development becomes impossible. You download the certificates, install them in Keychain, and then try to develop with Xcode, but Xcode keeps failing to build or deploy with mysterious errors. This is because it can’t find the certs.
Workaround:
- Caveat Emptor: following these instructions blindly might screw you up. Use at your own risk. Backing up first would be smart. Don’t run with scissors.
- Open Keychain Access.
- Run Keychain First Aid from the Keychain Access menu. If this fixes it for you, great, it’s your lucky day.
- Select one of the keychains, click File > Delete Keychain “login”, and select “delete references only”. This fixed it for me… only one login keychain now.
- Delete and re-install the iPhone certificates, restart Xcode, and you should be good to go.
See also:
http://discussions.apple.com/thread.jspa?threadID=1480793
http://macosx.com/forums/archive/t-295133.html
Recent Comments