Introduction:
This is a short guide to resolving the issue of the expired certificate using XCode with the iPhone SDK – its probably relevant for setting up your certificate from scratch as well. I am not totally convinced this is the best way of fixing the expired certificates for iPhone Development, but it worked for me so.
The Environment:
The development environment is a follows:
- MACBOOK PRO;
- SnowLeopard OS;
- XCode 3.2 ; and
- iPhone developer program member.
The Problem:
You’ll may get a variety of messages when the certificate expires and they will include:
a valid signing identity matching this profile could not be found in your keychain
or :
code sign error: the identiy matching this profile could not be found in your keychain
or
- goto http://developer.apple.com/iphone/index.action
- login using your iphone developer membership credentials
- click the Certificates tab and you should see the following message:
You currently do not have a valid certificate
Getting a new certificate:
- From Applications->Utilities Click KeyChain Access
- From the Keychain Menu Select Certificate Assistant->Request a Certificate From a Certificate Authority
- Enter your email address and your common name and select Save to disk
- Go to http://developer.apple.com/iphone/index.action and login
- Go to the Provisioning portal in the iphone developer and select Certificates
- Remove the existing certificate
- Add a new certificate
- Choose File selects the file you created in step 3
- Click Approve
- Reload the page. Now you should see the download button.
- Click Download
- Then select it the downloaded file
- You will receive a dilog stating “Do you want to add the certificates from the file…. To a keychain”. Select YES.
- Click Add and you should see the certificate list with the new valid certificate displayed.
- That’s all you should have to do however you may notice a dialog asking you to use the new key – just select Allow or Always Allow.
Dom