Code signing identities gone

Hi

I’m developing a sequel to my first app and have already built and loaded it onto my test iPad several times. Today I went to build it, and in the File >> Build >> iOS dialog box, my usual code signing entities are missing and the “choose from the following” drop down is empty.  I can see my dev and distribution profiles in the member center. What should I do?

thanks,

David

Hi David,

Did something happen to the local files, perhaps they became corrupted or got deleted? Corona looks for profiles here:

~/Library/MobileDevice/Provisioning Profiles/

It wouldn’t hurt to simply re-download all profiles from the Member Center, install them (double-click them), then restart the Corona Simulator.

Best regards,

Brent

HI - thanks for the reply. That folder was not in my Library folder so I did exactly what you suggested and now the folder is there with the profiles in it. However I’m still not quite there. When I go to Build >> iOS, the dialog box now lists the profiles under “code signing identity” but they are greyed out and next to them it says “no certificate found”. 

thanks.

Have you quit and restarted the Corona Simulator?

You may have to make sure your keys and certificates are up to date too.

Rob

hi - I’m not sure how to make sure my keys and certs are up to date. I have the certificates saved on my computer - I tried double-clicking one and keychain popped up and asked me if I want to add this to a keychain. The choices are “login”, “local items” and “system”.

If this is the right thing to do, which keychain should I add them to?

thanks.

I created a brand new development certificate and development profile from scratch just now and installed them. The profile shows as “active” in the member area of the apple dev site. 

Back in Corona, in the “code signing identity” drop-down in the build dialog, I am still getting “(no certificate found)” next to the names of my 3 profiles: the new profile and the other two i already had. The profiles are greyed out.

thanks.

We have a guide that walks you through the process, but it generally assumes you’re starting clean. Some times you can get expired and corrupt keys and certificates that you  need to clean out of Keychain Access. Sometimes it helps to reboot after cleaning it out and getting a fresh start on things.

OK I deleted everything in ~/Library/keychains and rebooted but the problem persisted.

Is there a different way to clean up the keychain?

I also deleted my provisioning profiles in ~/Library/MobileDevice/ProvisioningProfiles and generated my dev profile afresh in the member centre which I then reinstalled on my system. That didn’t help either.

I also tried to delete and reinstall Corona. I deleted the App and related items in ~/Library but I think there’s something I’m missing because when I open the freshly reinstalled Corona it knows my recently opened apps. Where is that info kept?

thanks.

Run the app “Keychain Access”.  The easiest thing to do is click on the magnifying glass to bring up a Spotlight search and start typing in “keychain”. It should be the primary search hit. Run that, open up all the various folders and such and such.  DONT BLOW Everything away.

Just blow away any that are for iOS development.  See the two screen shots where I opened up the developer ones:

Thanks for the screenshots.  I deleted anything with iOS in its name. There wasn’t much anyway. I did not delete these system certificates: “Apple Worldwide Developer relations certification authority” or “Developer ID application: David Powell…”

After that I went to Finder and found my development cert and provision and double clicked them both. Keychain complained and said something about installing in Login items instead of in System. Anyway I tried Corona again and still no luck. 

Should I just try to make a new certificate and profile from scratch now?

If you’ve cleaned out your keychain, you will need to generate new certificates and start from scratch.

Rob

ok did that and it’s working now, thanks for your help.

Hi David,

Did something happen to the local files, perhaps they became corrupted or got deleted? Corona looks for profiles here:

~/Library/MobileDevice/Provisioning Profiles/

It wouldn’t hurt to simply re-download all profiles from the Member Center, install them (double-click them), then restart the Corona Simulator.

Best regards,

Brent

HI - thanks for the reply. That folder was not in my Library folder so I did exactly what you suggested and now the folder is there with the profiles in it. However I’m still not quite there. When I go to Build >> iOS, the dialog box now lists the profiles under “code signing identity” but they are greyed out and next to them it says “no certificate found”. 

thanks.

Have you quit and restarted the Corona Simulator?

You may have to make sure your keys and certificates are up to date too.

Rob

hi - I’m not sure how to make sure my keys and certs are up to date. I have the certificates saved on my computer - I tried double-clicking one and keychain popped up and asked me if I want to add this to a keychain. The choices are “login”, “local items” and “system”.

If this is the right thing to do, which keychain should I add them to?

thanks.

I created a brand new development certificate and development profile from scratch just now and installed them. The profile shows as “active” in the member area of the apple dev site. 

Back in Corona, in the “code signing identity” drop-down in the build dialog, I am still getting “(no certificate found)” next to the names of my 3 profiles: the new profile and the other two i already had. The profiles are greyed out.

thanks.

We have a guide that walks you through the process, but it generally assumes you’re starting clean. Some times you can get expired and corrupt keys and certificates that you  need to clean out of Keychain Access. Sometimes it helps to reboot after cleaning it out and getting a fresh start on things.

OK I deleted everything in ~/Library/keychains and rebooted but the problem persisted.

Is there a different way to clean up the keychain?

I also deleted my provisioning profiles in ~/Library/MobileDevice/ProvisioningProfiles and generated my dev profile afresh in the member centre which I then reinstalled on my system. That didn’t help either.

I also tried to delete and reinstall Corona. I deleted the App and related items in ~/Library but I think there’s something I’m missing because when I open the freshly reinstalled Corona it knows my recently opened apps. Where is that info kept?

thanks.

Run the app “Keychain Access”.  The easiest thing to do is click on the magnifying glass to bring up a Spotlight search and start typing in “keychain”. It should be the primary search hit. Run that, open up all the various folders and such and such.  DONT BLOW Everything away.

Just blow away any that are for iOS development.  See the two screen shots where I opened up the developer ones: