Delete provisioning profile from Xcode 5

XcodeXcode5

Xcode Problem Overview


I've struggling with this for hours. I have 2 same provisioning profiles I've created and the new profile didn't substitute the old one (which expires 6 days earlier than the new one). Through the XCode 5 menu I can't seem to delete the duplicate provisioning profile. Any workaround in this situation?

Xcode Solutions


Solution 1 - Xcode

If you delete the profile from the Apple development a/c and hit refresh in XCode (Using xcode>Preferences>Accounts) then these profiles will be gone.

You can remove them from the this directory on your machine: "~/Library/MobileDevice/Provisioning\ Profiles"

Solution 2 - Xcode

In the Xcode Preferences, go to Accounts, then go to your apple ID, then click "View Details" Click the provisioning profile which you would like to delete, then press the "delete" key ONCE. Then click the refresh icon for manually update the list(pretty counterintuitive...).

Using this method I was able to delete all but one copy of the same provisioning profile, after which the delete does nothing.

Solution 3 - Xcode

You probably don't need to delete the duplicate profiles. Just go to Xcode / Preferences / Accounts / / View Details and hit the refresh button.

I did this and my duplicate provisioning profiles disappeared. Now when I post builds to TestFlight the distribution lists are all correct.

Solution 4 - Xcode

enter image description here In the Xcode Preferences--> Accounts, delete your account, add account again,click on your developer ID, press refresh, select provisioning profile again under build settings.

THATS IT. ALL YOUR PROBLEMS ARE SOLVED

Solution 5 - Xcode

I am using "iPhone configuration utility for Mac OS x" provided by apple for managing my all provisioning profiles for Xcode 5.

From apple's website:

iPhone Configuration Utility lets you easily create, maintain, encrypt, and install configuration profiles, track and install provisioning profiles and authorized applications, and capture device information including console logs.

You can download it from here

You can delete the provisioning profile:

  1. Open the utility and select the provisioning profile from the list.
  2. From the top menu select "Edit" than "Delete"

Solution 6 - Xcode

To remove any reference to an unwanted provisioning profile from XCODE 5 here is what I did:

  1. Browse into the YOURAPP.xcodeproj directory

  2. With vi I opened up the project.pbxproj file

  3. Find PROVISIONING_PROFILE="ID_OF_THE_PROV_PROFILE_YOU_WANT_TO_DELETE"

In every instance I saw this in the file I just set it to "" and XCODE never gave me an error again.

Solution 7 - Xcode

All of the methods mentioned so far will still fail to delete certain "Managed by Xcode" profiles, which you may find will continually re-appear no matter what you do to delete them.

The problem seems to be that certain profiles are auto-generated by Xcode/Apple Developer Centre based on the App Ids you have. In my case I see one "Developer" profile per app ID (including the wildcard).

I would imagine that the only way to get rid of these is to remove the App Id itself through the Dev Centre. Often this is not possible since the Dev Centre will complain that the app "...exists in the App Store so it cannot be removed" - even when the app in question is not actually in the store.

Solution 8 - Xcode

None of the previous suggestions worked for me. What did finally eliminate the unwanted profiles was the following:

  1. Remove the developer account from Xcode > Accounts
  2. Quit Xcode.
  3. Delete the unwanted provisioning profiles in the developer portal.
  4. Delete all the files ~/Library/Developer/Xcode/DeveloperPortal*.*
  5. Empty the trash.
  6. Restart Xcode and add the developer account back in.

I was thrashing around so this might not be quite the magic formula but something along those lines. By design, Xcode automatically creates provisioning profiles based on the app identifiers set up in the developer portal with names like "Mac Team Provisioning Profile: ". This is a great feature but it adds to the confusion with this deletion issue.

Solution 9 - Xcode

From my experimentation i believe that Xcode pulls the provisioning profiles straight from the dev center.

i say this because i created a new provisioning profile from the dev center and it appeared in Settings > Accounts before i double-clicked the .mobileprovision file.

So basically, delete the profiles from developer.apple.com

Solution 10 - Xcode

In my case this worked: Right click on a provisioning profile in the accounts tab -> view details panel. Click the option show in finder -> delete them directly in finder.

Solution 11 - Xcode

For all the people who are seeing the profiles magically reappear after deleting them and hitting refresh, simply wait a few minutes after deleting and before hitting the refresh button.

Solution 12 - Xcode

For deleting provisioning profile we can use iPhone Configuration Utility software.

iPhone Configuration Utility Software -> Install this software -> Open Software -> Provisioning Profiles -> find list of your all profile -> Press Backspace button, it will ask to delete provisioning profile ->Click on delete provisioning profile button. So it will remove it from your existing Xcode application and even from your PC.

Image shows for deleting provisioning profile.

Solution 13 - Xcode

I've figured out that it takes some time interval to sync between local path of the provisioning(~/Library/Developer/Xcode/DeveloperPortal) and the iTunesConnect server. So once you have deleted your provisioning profile on the local path and on the iTunesConnect server (you should remove both for clearing), you need to wait at least 5 minutes, otherwise you will see the files you've deleted again on the local path when you try to press 'fix it' button in Xcode.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSergey GrischyovView Question on Stackoverflow
Solution 1 - XcoderakmohView Answer on Stackoverflow
Solution 2 - XcodeloadedionView Answer on Stackoverflow
Solution 3 - XcodeohthepainView Answer on Stackoverflow
Solution 4 - XcodeAshish PiseyView Answer on Stackoverflow
Solution 5 - XcodeMuhammad ZeeshanView Answer on Stackoverflow
Solution 6 - Xcodeneuman8View Answer on Stackoverflow
Solution 7 - Xcodechris838View Answer on Stackoverflow
Solution 8 - XcodespinacherView Answer on Stackoverflow
Solution 9 - XcodeMoralCodeView Answer on Stackoverflow
Solution 10 - Xcodethe ReverendView Answer on Stackoverflow
Solution 11 - Xcode232 StudiosView Answer on Stackoverflow
Solution 12 - XcodeNirzar GandhiView Answer on Stackoverflow
Solution 13 - Xcodeuser3339709View Answer on Stackoverflow