从 Xcode 5中删除供应配置文件

我已经纠结了好几个小时了。我有2个相同的供应配置文件,我已经创建和新的配置文件没有替换旧的一个(到期比新的6天前)。通过 XCode5菜单,我似乎无法删除重复的供应配置文件。在这种情况下有什么解决办法吗?

71743 次浏览

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"

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.

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.

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.

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

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.

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"

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

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.

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.

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.

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.

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.