removing provisioning profile from xcode
How can I remove a previously installed development provisioning profile from xcode?
They're stored in: ~/Library/MobileDevice/Provisioning Profiles
You'll want to restart XCode to refresh the list.
Xcode keeps provisioning profiles at following directory:
~/Library/MobileDevice/Provisioning\ Profiles
To remove old profile from Xcode just delete it's file and restart Xcode. Profile file names are somewhat cryptic, so use the following command to show their real names:
grep -a -A1 "<key>Name</key>" *.mobileprovision | grep -v "<key>Name</key>" | grep -v "^--"
If you need more than a name, for example list of UDIDs, this command shows all content of particular provisioning profile:
security cms -D -i xxx.mobileprovision
Update: recently Apple added ability to preview *.mobileprovision
files with standard Finder app.
I've had trouble deleting provisioning profiles in Xcode 5.
An alternative way is to use the iPhone Configuration Utility, which displays provisioning profiles installed on your system and allows you to remove them (select and press delete key).
I have yet to find a way to delete provisioning profiles individually (Xcode 5).
The only way I can get them to go away is by removing the App IDs related to the provisioning profile(s). (In Certificates, Identifiers & Profiles in the Member Center)
Obviously this might not be optimal for you - but if you have been using a test app id it is the way to go.
Ways I have unsuccessfully tried to remove provisioning profiles:
(they reappear after a refresh in xcode/preferences/accounts/details)
- Apples Developer website
- Using iPhone Configuration Utility
- Directly in the folder they reside (~/Library/MobileDevice/Provisioning Profiles)