My certificate expired today, and I’m having no luck at all getting it renewed properly. @Bret, were you able to fix your problem? I do not want to re-install my whole OSX to get my system to start generating AdHoc and Release builds properly.
I mean, it was quick enough to get the certificates renewed, but for life of me, I am absolutely unable to generate builds without code-signing error message. @Bret, I’ve cleared out my keychain and went through pretty much the same steps you’ve gone through, but I’m having no luck at all. How extremely frustrating.
Naomi
UPDATE: My issue is finally solved. The problem with mine was, somehow, my keychain access.app was completely messed up, and eventually it stopped generating private/public keys. I mean, it simply did not generate any keys at all. I scoured the web and tried everything (thinking I’ve got nothing to lose at that point.) Then I stumbled across this thread:
http://hints.macworld.com/article.php?story=20060318124936642
I tried [text]sudo mv /Library/Keychains/System.keychain /Library/Keychains/System.keychain.bak[/text] and [text]sudo /usr/sbin/systemkeychain -C[/text], but I don’t think it really helped. But then… I run these commands: [text]sudo systemkeychain -vfcC[/text] and [text]systemkeychain -vt[/text]. And then I also run disk utility app, repairing permissions, etc., etc., etc.
I don’t even remember what else I did (but I know I did lots more.) Anyhow, somehow, eventually, my keychain access app got normalized, and it was able to generate private/public keys. Once it did that, everything else fell into place properly, and worked like a charm.
Well, one good thing that came out of this struggle was that I finally got my dev certificate working too. Now I can generate builds using dev certificate as well as adhoc and standard distribution certificates without getting code-signing errors.
EDIT : One thing I should remember (and I’m editing this just in case I face the very same problem next year and need to jog some memory) is that, I got Developer Certificate working via Xcode, doing Refresh (although I don’t remember what steps I took before I hit Refresh). However, I could not get valid Distribution certificates that way. So I went through the usual, requesting CertificateSigningRequest using certificate assistant and submitting the CSR via Apple Developer site, downloading it and then double clicking on it – which finally added the valid certificate for a valid public/private key pair.
But, still… Ugh. Why does Apple make us go through this wringer every year?
Naomi [import]uid: 67217 topic_id: 31925 reply_id: 134464[/import]