How to remove provisioning profiles from Xcode

213,232

Solution 1

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.

Solution 2

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:

Solution 3

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.

Solution 4

  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.

Solution 5

. 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.

Share:
213,232

Related videos on Youtube

vaibhav silar
Author by

vaibhav silar

Updated on May 25, 2021

Comments

  • vaibhav silar
    vaibhav silar almost 3 years

    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.

    • benhorgen
      benhorgen about 6 years
      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!
  • Kay
    Kay about 9 years
    Doesn't work for me. After deleting the provisioning profile in finder it shows up again when I hit refresh
  • David
    David about 9 years
    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.
  • Daniel Ryan
    Daniel Ryan about 9 years
    Same as Kay, even if I also delete them off the website.
  • Daniel Ryan
    Daniel Ryan about 9 years
    I don't see a gear for provisioning profiles, only for signing identities.
  • Jannie Theunissen
    Jannie Theunissen about 9 years
    @David sorry to hear that. Maybe I'm the only lucky developer in the universe then: it works for me.
  • Michel
    Michel almost 9 years
    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.
  • Chris Allinson
    Chris Allinson almost 9 years
    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
  • user523234
    user523234 almost 9 years
    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?
  • Geoff H
    Geoff H almost 9 years
    @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.
  • Chris
    Chris over 8 years
    If you're using the terminal already, why not just use rm to remove profiles? Seems like a roundabout way to open finder
  • n.by.n
    n.by.n over 8 years
    You are right. This is just a visually satisfying way to delete any specific group of provisioning profile from Finder.
  • Matz
    Matz over 8 years
    great. Thank you very much!
  • bruce1337
    bruce1337 over 8 years
    Note the the right-click menu is not available in Xcode 7.1. Instead, try the Finder-based solution by RIYAZ below.
  • Duncan C
    Duncan C over 8 years
    @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".
  • bruce1337
    bruce1337 over 8 years
    @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.
  • Duncan C
    Duncan C over 8 years
    @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.
  • DIJ
    DIJ over 8 years
    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.
  • Mike Gledhill
    Mike Gledhill almost 8 years
    Blimey. It's now 2016, we're up to Xcode 7.3.1, and it still demands you do this. What a complete pile of cr-
  • DeyaEldeen
    DeyaEldeen about 7 years
    it's 2017, it's still needed !
  • Shaik Riyaz
    Shaik Riyaz about 7 years
    @AlexHall , do you want to remove single provisional profile ?
  • Alex Hall
    Alex Hall about 7 years
    I got it sorted, thx. I was making an unhelpful comic reference to what the AI says in the film "2001: a space odyssey."
  • Philipp Sumi
    Philipp Sumi about 7 years
    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?
  • UncaughtException
    UncaughtException about 7 years
    @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.
  • TechSavvySam
    TechSavvySam almost 7 years
    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
    TechSavvySam almost 7 years
    Also around version 8.3.3, the "View Details" option was removed and replaced with "Manage Certificates..."
  • brandonscript
    brandonscript almost 7 years
    Right, but that's just certificates now - it's no longer provisioning profiles.
  • Wayne
    Wayne over 6 years
    It's $current_year and this still sucks
  • nacho4d
    nacho4d over 6 years
    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 :)
  • Muhammad Rizwan
    Muhammad Rizwan about 6 years
    Easiest option i find in this page.
  • Kejsi Struga
    Kejsi Struga almost 6 years
    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!
  • Ananta K Roy
    Ananta K Roy almost 6 years
    Thanks for sharing that! Yes, there is little clarity on what actually works given the frequent updates to Xcode too.
  • ibuprofane
    ibuprofane over 5 years
    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.
  • Alejandro Iván
    Alejandro Iván over 5 years
    pkill -9 Xcode && rm ~/Library/MobileDevice/Provisioning\ Profiles/* && open -a Xcode
  • Atomhax
    Atomhax over 5 years
    October 2018 and I just had to do this.
  • Agilanbu
    Agilanbu over 5 years
    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
  • Hamza Hasan
    Hamza Hasan over 5 years
    Jan 2019, still looked for this answer
  • savante
    savante over 4 years
    Greetings from Aug 2019
  • Thomas Hilbert
    Thomas Hilbert over 4 years
    Marty: "Doc! I have to tell you about the future!"
  • Sem
    Sem over 4 years
    2019 Sept hahaha...yea I am not able to delete specific provisioning profile
  • Potassium Ion
    Potassium Ion almost 4 years
    June 2020, after WWDC20 and this is still somehow a thing in Xcode 12!
  • Ahmad Labeeb
    Ahmad Labeeb almost 4 years
    can you add a screen shot
  • Suresh Varma
    Suresh Varma over 3 years
    SEP-2020 and yet nothing has changed
  • Nostromo
    Nostromo over 3 years
    December 2020 and still saxo.
  • BeardOverflow
    BeardOverflow over 3 years
    Hello from January 2021!
  • Suraneti
    Suraneti about 3 years
    Hello World from March 2021
  • Kenneth Murerwa
    Kenneth Murerwa about 3 years
    April 2021 on Xcode 12 and it still works. Apple really doesn't change much in the Xcode updates.
  • Mikhail Vasilev
    Mikhail Vasilev almost 3 years
    Cheers to folks from 2042 in advance. Now it's july 2021, WWDC21 passed and profiles are still crap.
  • Neil Galiaskarov
    Neil Galiaskarov over 2 years
    who is from 2021?
  • dentemm
    dentemm over 2 years
    This feel like time traveling, except that nothing changed in the past 6 years. Xcode still being Xcode
  • Shashikant More
    Shashikant More about 2 years
    It's 2022 and continues...
  • Arno Teigseth
    Arno Teigseth about 2 years
    I'm suspecting this is to have ppl buy a new mac when they can't figure this. Greetings from April 2022