11
votes

I have 2 iOS certificates - one for development and one for distribution (App Store). Both are expiring in 2 weeks. I am on Xcode 4.4.1. I have 2 development provisioning profiles and 4 distribution provisioning profiles.

In Xcode, I see that all of the provisioning profiles tied to the distribution certificate are set to expire in 2 weeks. I went into the Organizer->Provisioning Profiles and tried to Renew, but I received an error dialog indicating that "No value was provided for the parameter 'deviceids'". When I look on the Apple Provisioning Portal for that profile, it shows that the certificate is expiring in 2 weeks and that there are no devices associated with it (which is the way I've been doing it all along).

So - I'm trying to renew these, and haven't done this before. Has anyone seen a similar error in Xcode? Do I need to renew my certificate first, and if so, how? I don't see any "create new certifcate" button on the Provisioning Portal or in Xcode.

3
Have you updated your annual developer license?bobnoble
Having the same problem over here. Tried to renew it from several different accounts but still get the same error messageKPK

3 Answers

5
votes

I had a similar problem after I recently renewed my certificate.

The following corrected the issues for my Development Provisioning Profile:

  • Click Refresh in Xcode Organizer.
  • Ensure the Code Signing build settings for your Project and Target are set to the proper Provisioning Profile. You should select iPhone Developer to avoid future issues.
  • Optionally, remove expired profiles from Device tab in Xcode Organizer.

The following corrected the issues for my Distribution Provisioning Profile:

  • Log in to your iOS Developer Portal
  • Go to the Distribution tab under Provisioning
  • Create a new distribution profile.
  • After the profile is generated, click Refresh in Xcode Organizer
5
votes

OK - I think I've fixed this. Here is what I did and it seems to work - when I upload the next release I'll know for sure.

  • In X-Code, I deleted all of my provisioning profiles
  • I then quit out of X-Code
  • From the Development Portal, I revoked my developer and distribution certificates
  • I created new keys using the Key Chain application
  • Still in Key-Chain, I removed my old, soon to be expiring key/certificate
  • Back on the Development Portal, I created new certificates
  • Still on the Development Portal, I was able to edit all of my provisioning profiles and associate the correct new certificate to it
  • I downloaded the new profiles
  • I then followed this link's advice and worked around the apparent bug in X-Code to remove the old provisioning profiles from my project: Codesign error: Provisioning profile cannot be found after deleting expired profile
  • Started X-Code back up and copied the provisioning profiles into Organizer
  • Built for a device and tested OK.
  • Built for IOS Device as though I'm preparing to upload to the AppStore and build was successful. I haven't tried uploading to the store.

I actually did the steps twice, once for the development profiles and then once that worked/tested on my test devices, I modified the distribution profiles.

These set X-Code up w/ no warning and Organizer now shows all my valid provisioning profiles that won't expire for another year. Hopefully, next year, if I don't forget these steps, I'll be able to do it a bit more quickly.

3
votes

An easier way of doing it is ...

My certificate had expired, so the renew button button in the Xcode Organizer did not work.

I did the following:

  • logged into the iOS provisioning portal
  • went to provisioning profiles > distribution
  • clicked on each of the expired profiles and clicked edit
  • the certificate radio button was unchecked because my certificate had expired, so I checked it and clicked generate
  • you'll then be prompted to download the newly generated profile.... dont!
  • wait about 5 minutes
  • go into the Xcode Organizer > provisioning profiles and click refresh
  • the profiles should then change from "expired" to "valid"