Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - What is the procedure for updating a provisioning profile in Xcode

Tags:

ios

iphone

It seems like every time I update my provisioning profile, my xcode project still ends up pointing at the previous profile (I get "Code Sign Error: Provisioning Profile (long string) can't be found.") This means I have to manually do a search and replace on my profile codes in the project as described here: Codesign error: Provisioning profile cannot be found after deleting expired profile

I have to think I'm doing something wrong as this happens every time... what is the procedure for adding in a device to a profile, exporting the profile, and getting my project updated with the new profile?

thanks

like image 728
phil swenson Avatar asked May 05 '11 14:05

phil swenson


People also ask

What is provisioning profile in Xcode?

Overview. The profiles resource represents the provisioning profiles that allow you to install apps on your iOS devices or Mac. You can create and delete provisioning profiles, and download them to sign your code. Provisioning profiles include signing certificates, device identifiers, and a bundle ID.


2 Answers

In XCode 5 you have to go to Preferences -> Apple ID -> View Details and then press the small refresh button to the bottom left. This will update all of your current provisioning profiles.

like image 81
Julius Avatar answered Sep 22 '22 21:09

Julius


  1. (optional) Delete old profile in Organizer/Provisioning Profiles(if not used anymore, e.g only new device added)
  2. Add New Profile in Organizer/Provisioning Profiles (Drag&Drop)
  3. If you run Xcode 4, be sure to change profiles for project AND targets

... Sometimes you have to re-open project or even re-start XCode (don't know when or why).

like image 33
Kai Huppmann Avatar answered Sep 24 '22 21:09

Kai Huppmann