I think the first thing that needs said is:
Relax. Breath. Don’t panic.
Your existing apps in the app store will continue to work fine. If you had not re-up’ed your Apple Developer License, they would have come down until you joined back up, but since you’ve done that already your existing apps are safe and sound as they are now.
However, your certificates (two of them, development and distribution) will expired shortly (1 year after you created them). When that happens, your provisioning profiles will expire too and any Ad Hoc or Development builds you have on devices will expire and won’t run. This will impact your beta testers if you use a service like TestFlight, or if you have multiple devices, those apps will stop until you renew them.
All of my research on the certificate renewal process is scary. None of us like dealing with certificates, public and private keys, signing requests, certificate authorities etc. It’s plain and simple evil.
But I caught a blip of a statement on the Apple developer’s portal that said, all you have to do is wait until the provisioning profiles go red in XCode’s orgainzer, then click on it and it will renew everything for you. I wish I had kept the URL for that because everything else I’ve googled goes against that process.
I went against that process and it took me several hours to get things straight because I missed a couple of steps.
In my case, I chose to deal with this before they expired so there was the basic workflow that seemed to work:
In the Provisioning Portal: Revoke your certificates. All of your Provisioning profiles will still be there, but they are now invalid.
Bring up Keychain Access and remove your old certificates. They are no longer valid anyway. At some point I ended up removing the public and private keys too.
Back to the provisioning profile, and request a new Development certificate. (do the development and distribution separatly just for sanity purposes). It will give you the instructions on what to do to request a new certificate.
It will create a signing request file on your desktop. From the Provisioning profile you will upload that request. When its done you will get a chance to download the certificate to your Mac.
Apple kindly leaves off a step, double click on the downloaded .cer file to have it installed properly in Keychain access. This should re-create the public and private keys if you deleted them. in theory…
Now go to your provisioning profiles and click on “Modify” I think, it should be the only think you can click on. Then select your new certificate and save. You will find that the new profile is valid again and after a screen refresh, you can download it.
Copy the profile to your ~/Library/MobileDevice/Provisioning Profiles/ folder (in Lion Library’s are hidden from the finder, so I do this from the command line:
cd ~/Library/MobileDevice/Provisioning\ Profiles
mv ~/Downloads/\*.mobileprovision .
Note the backslash escaping the space in the cd command. This also assumes that your web browser downloads to your Downloads folder.
Launch Corona SDK and try and build a development version of that app and make sure everything is okay.
If it is (and I’ve not missed a step in my instructions), then go back, and renew all of your development profiles and download them. At this point you can repeat the two command line shell commands above, but you can also wait because we are going to be doing it again.
Now back to the provisioning portal, and follow the process to create a new distribution certificate. You can use the same signing request you used earlier, just upload it, request the new cert, download it. Double click to install it into the keychain.
Back to the provisioning portal, to provisioing profiles… Now its time to refresh all of those guys. You likely will have both Ad Hoc and Distribution ones.
Unlike the development ones, when you visit this screen, the certificate will already be selected. In theory you should be able to just hit the save button and be done, but Apple doesn’t make it that easy. That button is grayed out until you make a change on the form. What I found as the best way to do this is to change the radio button from Ad Hoc to Distribution and then back to Ad Hoc will enable the save button. If you’re doing a distribution profile, then you would check ad hoc and then back to distribution.
Like with development, now would be a good time to test your ad hoc builds before you renew all the profiles you have.
Refresh and download the profile. Quit Corona SDK, use the two command lines above to put the profiles in place. Relaunch Corona SDK, do a test build with one of the AdHoc profiles and install it via Xcode or your normal method to your device and make sure everything runs.
If you’re good at that point, go back to the provisioning profile, renew all of your profiles, download them.
Quit Corona SDK, repeat the two command line commands and you should be all done. You can now launch Corona SDK and continue like nothing is different.
The latest daily builds should continue to work with XCode 4.2, so I would advise NOT changing your XCode during this process. Make sure your certs and profiles are all in happy land first.
Then if you want to go to 4.3 of Xcode, then follow all the advice above from @Waulok and @ewing to manage that upgrade. If you have Xcode in your Dock, make sure to remove the one there and install the new one from /Applications.
Corona’s daily builds you continue to do like you always do.
[import]uid: 19626 topic_id: 22707 reply_id: 90747[/import]