269

Does anyone know how to remove previously installed provisioning profiles from Xcode?

I have seen this link, but I am not able to find that location in my system.

So I think there must be some other way to remove provisioning profiles.

Krunal
  • 77,632
  • 48
  • 245
  • 261
vaibhav silar
  • 2,905
  • 2
  • 15
  • 18
  • Great question, applicable across all versions of Xcode. And there are some good answers here for previous versions, but for Xcode 9.1 none of answers seem to apply and/or work. Can someone provide an answer for the current version of Xcode? Thanks in advance! – benhorgen Feb 26 '18 at 18:18

18 Answers18

597

It's simple, go to this folder:

~/Library/MobileDevice/Provisioning\ Profiles/

Open finder on your mac, and click on Go -> Go to Folder ... Just paste this into the search bar and hit Open. It will show the list of provisioning profiles present in Xcode. Delete all provisioning profiles.

IgorGanapolsky
  • 26,189
  • 23
  • 116
  • 147
Shaik Riyaz
  • 11,204
  • 7
  • 53
  • 70
95

Update for Xcode 8.3

This no longer works in Xcode 8.3. It appears to be related to Apple's move to automate provisioning profile and certificate generation:

The simplest "solution" (or workaround) is to make sure Xcode is closed, then via Terminal:

rm ~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision  

In Xcode 7 & 8:

  1. Open Preferences > Accounts

  2. Select your apple ID from the list

  3. On the right-hand side, select the team your provisioning profile belongs to

  4. Click View Details

  5. Under Provisioning Profiles, right-click the one you want to delete and select Move to Trash:

brandonscript
  • 68,675
  • 32
  • 163
  • 220
  • 9
    I don't even have the "View Details" button. When I select my team, I'm seeing a "Download All Profiles" and "Manager Certificates..." button. Any idea? – Philipp Sumi Apr 04 '17 at 08:58
  • 3
    @PhilippSumi With XCode 8.3 it is less simple to manually manage Provisioning profiles. The best thing to do is go to Finder>Go To Folder... and type in` ~/Library`. Once in the Library, navigate to /Library/MobileDevice/Provisioning Profiles. Here you can remove or add any profiles you want. If you want complete control, download individual profiles from your Apple Developer Portal and add those. – UncaughtException May 03 '17 at 16:45
  • 1
    in 8.3.3 I removed the .mobileprovision files from the directory and they keep getting recreated in xcode when I click on "Download All Profiles" even though I've deleted all of the provisioning profiles on the apple web site – TechSavvySam Jun 21 '17 at 17:08
  • 2
    Also around version 8.3.3, the "View Details" option was removed and replaced with "Manage Certificates..." – TechSavvySam Jun 21 '17 at 17:22
  • 1
    Right, but that's just certificates now - it's no longer provisioning profiles. – brandonscript Jun 21 '17 at 17:23
81

In Xcode 6, you can do this mostly right in Xcode:

  1. Go to Xcode -> Preferences -> Accounts.
  2. Choose your Apple ID in the left column.
  3. In the right pane, click the "View Details..." button.
  4. Right-click on the provisioning profile you want to delete, then click "Show Details".
  5. A Finder window will open up with the provisioning profile highlighted.
  6. Delete the selected provisioning profile.
bruce1337
  • 330
  • 6
  • 16
wishab
  • 1,024
  • 9
  • 12
  • 4
    Doesn't work for me. After deleting the provisioning profile in finder it shows up again when I hit refresh – Kay Apr 07 '15 at 13:50
  • Same as Kay, even if I also delete them off the website. – Daniel Ryan Apr 12 '15 at 21:07
  • 1
    You need to right click on a profile and "view in finder". You can delete the actual file ... which is what worked for me! :D – Chris Allinson Jun 10 '15 at 21:31
  • 1
    This is ridiculous that one has to to this manually every time a renewal of provisional profiles is involved. Apple, what has happened to you? – user523234 Jul 29 '15 at 14:44
  • great. Thank you very much! – Matz Nov 17 '15 at 20:42
  • Note the the right-click menu is not available in Xcode 7.1. Instead, try the Finder-based solution by RIYAZ below. – bruce1337 Nov 18 '15 at 00:00
  • @bruce1337, I just right-clicked on a provisioning profile in Xcode 7.1.1 and it showed a popup menu with the options "show in finder" and "move to trash". – Duncan C Dec 03 '15 at 14:10
  • 1
    @DuncanC you're right! For some reason Xcode doesn't recognize ctrl-click as equivalent to a right-click, even though Safari and other apps do. – bruce1337 Dec 03 '15 at 19:30
  • 1
    @bruce1337, oh man, that's awful! Standard Apple equipment (Like Macbooks, or any trackpad device) often doesn't have a right mouse button. We should all file a radar bug about that. – Duncan C Dec 03 '15 at 19:46
  • 1
    Double finger tap on a selected item will get you the menu to "delete" or "show in finder" on a device with a trackpadI keep forgetting this. I always try a tap with a button combination which does not work. – DIJ Dec 26 '15 at 17:49
25
  1. Open Terminal
  2. cd ~/Library/MobileDevice/
  3. open ./

Now the finder window will be open with Provisioning Profiles folder. Delete all or any provisioning profiles from here and it will reflect in Xcode.

n.by.n
  • 2,458
  • 22
  • 31
  • 4
    If you're using the terminal already, why not just use `rm` to remove profiles? Seems like a roundabout way to open finder – Chris Sep 10 '15 at 17:11
  • 1
    You are right. This is just a visually satisfying way to delete any specific group of provisioning profile from Finder. – n.by.n Sep 11 '15 at 10:24
  • 1
    If you want to do it ALL visually, no need Terminal.app. Just go to the Finder and press `Cmd` +`Shift` + `g` and paste: `~/Library/MobileDevice/Provisioning Profiles/` . Now you are in the right folder to remove your provisioning profiles at your own will :) – nacho4d Oct 06 '17 at 02:04
14

. Simple Steps:

1:Click finder

2:Right click on Finder
3:click on goto folder

4: Paste in Search : ~/Library/MobileDevice/Provisioning Profiles

5:Click on Go

6:List of the Profiles .you can delete any one

Thanks

You'll want to restart XCode to refresh the list.

M Murteza
  • 1,629
  • 15
  • 10
8

For Xcode 7, brandonscript has the correct answer.

For earlier versions:

  1. Log in to the Apple Developer member centre and delete the profile there: https://developer.apple.com/account/ios/profile/profileList.action
  2. In Xcode you go to Preferences > Accounts and click on your apple ID and View Details...
  3. Then Sync your online provisioning profiles to your local machine and the deleted ones will be removed from the list:

synchronise provisioning profiles

Community
  • 1
  • 1
Jannie Theunissen
  • 28,256
  • 21
  • 100
  • 127
  • 6
    This doesn't work. When I hit refresh they come back. I've even tried wishab's suggestion - deleting them on disk AND online. They won't die. Provisioning profiles are the bane of my existence. – David Apr 11 '15 at 01:18
  • @David sorry to hear that. Maybe I'm the only lucky developer in the universe then: it works for me. – Jannie Theunissen Apr 21 '15 at 13:58
  • 2
    @David I totally agree with you & am having the same problem. They just won't die. Did you figure out the source of the problem yet? It's like a fungal infection. – Geoff H Jul 29 '15 at 23:51
7

In Xcode 7:

  1. Go to Preferences > Accounts > Select your account and click View Details...
  2. In the Provisioning Profiles section, right click on the profile you want to delete and choose Move to Trash.
  3. Click Download all to get all the latest profiles for your account, or click Download next to the profile.
  4. Do a sanity check in your project's target(s) Build Settings so each target is indeed using the profile you want.
Mimi
  • 169
  • 2
  • 2
7

open your terminal then use this command

cd /Users/youruser/Library/MobileDevice/Provisioning\ Profiles/

check first inside your folder by use this command

ls

then if all files not use, delete by use this command

rm *
vrie
  • 446
  • 4
  • 8
6

I have found all my Distribution Profiles here:

username -> libraries -> MobileDevice -> Provisioning Profiles

enter image description here

Here I can check all profiles and kill expired.

Max Raskolnikov
  • 180
  • 1
  • 6
3

-Download iPhone configuration utility tool

-open it-> In Library section:- select provisioning profile(Left side of tool)

-select provisioning profile(which you want to delete) using back space delete it.

V D Purohit
  • 1,179
  • 1
  • 10
  • 23
2

I was able to delete my Provisioning Profile from XCode 6 by using the Member Center online. I then just did a refresh/Sync in XCode 6 and it disappeared.

In the Apple Developer Member Center I had to do two things to make it happen:

  • Under under Identifiers -> AP IDs I had to first delete the old AP ID still using the old Provisioning Profile that I wanted to delete.
    • This step was crucial for me. If I just deleted the Provisioning Profile alone without the APP ID still using it, the Profile re-appeared in XCode after a Sync.
  • Under Provisioning Profiles I then deleted the unwanted provisioning profile.

In XCode:

  • Under Preferences > Accounts, clicking on my apple ID and View Details... I Sync'd my online provisioning profiles.
  • The Provisioning Profile removed itself from the list.
  • I also am having issues with my provisioning profile and APNs, using Xcode 6.3.2. But how can you delete an app ID? I aways thought and read it was not possible. – Michel Jun 04 '15 at 07:56
2

For XCode 9.3, the following steps worked for me.

  1. Go to Applications > Utilities > Keychain Access
  2. Under the login option on the left panel, find Apple Worldwide Developer Relations Certification Authority. Double click to get the options under it.
  3. Under the Trust option, change the When using this certificate option to Always trust .
  4. Exit the keychain access window, quit Xcode and restart Xcode. Rebuild the application. It should work now.
Ananta K Roy
  • 1,848
  • 2
  • 14
  • 16
  • For me this did not work, but after I did this and cleaned the project, I was able to run without any errors of Provisioning Profile xD. So if this alone doesn't work, make sure you clean the project afterwards. Thanks! – Kejsi Struga Jun 26 '18 at 13:26
  • Thanks for sharing that! Yes, there is little clarity on what actually works given the frequent updates to Xcode too. – Ananta K Roy Jul 04 '18 at 07:24
  • This broke Pods for me. I was able to compile but when loading I received dyld: Library not loaded: @rpath/{framework} Reason: image not found. Revered back to system defaults and it worked fine. – ibuprofane Sep 08 '18 at 03:56
2

Post deleting and adding your new profile, you can verify if the profile is active and been take by your project by running below command.

grep -i "yourproject" *.mobileprovision
Isuru
  • 30,617
  • 60
  • 187
  • 303
  • try to highlight the keywords and be clear with the format it will help to reach out your answer for others Please [Take the Tour](https://stackoverflow.com/tour) – Agilanbu Dec 13 '18 at 08:01
1

Provisioning profiles are stored under settings > accounts. Just press the "View details..." for the developer account you want and the provisioning profiles will be listed there.

Adis
  • 4,512
  • 2
  • 33
  • 40
1

Here is how I do it.

Open Finder
Enable it to show hidden files (CMD_SHIFT_.)
Go to ~/Library/MobileDevice/Provisioning\ Profiles
Delete the profile you wish ...
eko
  • 532
  • 1
  • 5
  • 12
-1

I found out how to find provisioning profiles in Xcode 8. Archive your project (Product -> Archive) and then hit the validate button. Xcode will prepare the binary and the entitlements. When the summary windows comes up just hit the little arrow at the right of the window. A finder window will open with all your downloaded profiles.enter image description here

JKapsi
  • 20
  • 5
-1

With Xcode 9.3, this seems to be resolved by cleaning the project, quitting and restarting Xcode, and, after the restart, cleaning the build folder (hold Option and select Product->Clean Build Folder).

During the restart I happened to have the Xcode signing-info panel open on the Project navigator and saw a transient message that Xcode was rebuilding the signing profile. Upon trying to run my project on a device, I got a runtime exception due to a Swift framework file having an invalid signature. The second "Clean Build Folder" cleared that up and all works fine now.

Jason Campbell
  • 483
  • 4
  • 12
-2

In xcode 6, provisioning profiles are stored under Xcode > Preferences > accounts. Press "View details". On selecting your profile, you will get option to revoke it under settings(gear) icon below.

blancos
  • 1,576
  • 2
  • 16
  • 38