Delete provisioning profile from Xcode 5

2019-01-29 21:35发布

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 xcode5
13条回答
放我归山
2楼-- · 2019-01-29 21:56

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

查看更多
forever°为你锁心
3楼-- · 2019-01-29 21:57

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.

查看更多
你好瞎i
4楼-- · 2019-01-29 21:57

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.

查看更多
相关推荐>>
5楼-- · 2019-01-29 21:58

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.

查看更多
干净又极端
6楼-- · 2019-01-29 21:58

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.

查看更多
做个烂人
7楼-- · 2019-01-29 22:00

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.

查看更多
登录 后发表回答