Reputation: 8894
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
Upvotes: 8
Views: 18438
Reputation: 480
UPDATE:
It turns out, it's better to download the new/changed provisioning profile from developer portal and double click it in Finder. Mac will install it in the right place and you don't have to do the acrobatic stuff in the bottom.
ORIGINAL:
For Xcode 7.1, you have to do the following:
This will remove all local cache, then fetch the profiles from the server.
I just had a blast with this when I tried adding a device to a provisioning profile for testing. Thanks for making it so hard, Apple!
Upvotes: 3
Reputation: 576
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.
Upvotes: 10
Reputation: 10775
... Sometimes you have to re-open project or even re-start XCode (don't know when or why).
Upvotes: 4
Reputation: 930
I just delete the previous provisions from my organizer before adding in the new one with the additional devices just added.
Upvotes: 0