Delete provisioning profile from Xcode 5

71,606

Solution 1

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

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

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

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

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"
Share:
71,606
Sergey Grischyov
Author by

Sergey Grischyov

St. Petersburg State University graduate. Cocoa Controls contributor.

Updated on September 25, 2020

Comments

  • Sergey Grischyov
    Sergey Grischyov almost 4 years

    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?

  • TheMiloNet
    TheMiloNet over 10 years
    hi, i cannot delete with "delete" key.. where is delete key? on keyboard? i try both canc and backspace.. but not work!
  • TheMiloNet
    TheMiloNet over 10 years
    it's incredible issue.. with Xcode 5 - I close xcode - I remove profile from "~/Library/MobileDevice/Provisioning\ Profiles" - I Remove profile from devcenter portal - I open Xcode, Preferences, Account, ViewDetail and click refresh button. The deleted profiles now appear again! how it's possible?
  • TheMiloNet
    TheMiloNet over 10 years
    i know that all keyboard have a delete button but not work! i try both backspace and delete button but the provisioning profile not delete!
  • Norswap
    Norswap over 10 years
    Macbooks don't have delete keys. Backspace doesn't work, at any rate.
  • Andreas Ley
    Andreas Ley over 10 years
    This is not working for me (nothing happens at all).
  • Andreas Ley
    Andreas Ley over 10 years
    @milonet Xcode 5 (re)creates Provisioning Profiles automatically - even if they are deleted manually. I haven't figured out yet how to prevent it from doing so. There's a lot of threads about this...
  • loadedion
    loadedion over 10 years
    The closest equivalent I can think of for delete is cmd+backspace. As I stated, with this method I was able to delete all but the last version of the same provisioning profile.
  • Giles Williams
    Giles Williams over 10 years
    This does work - but you need to hit refresh after pressing the delete key. Make sure you do this otherwise it deletes more than one! PS - delete on a laptop is Fn-Backspace
  • Gordon Dove
    Gordon Dove over 10 years
    Works for me, +1 to make up for all the doubters. There is no visual feedback though, until the refresh completes, so a -1 for Apple.
  • cprcrack
    cprcrack over 10 years
    Nothing of the stated previously works for me, and even when I delete the provisioning profiles from Itunes Connect, they are regenerated
  • loadedion
    loadedion over 10 years
    "Using this method I was able to delete all but one copy of the same provisioning profile, after which the delete does nothing." I would imagine in order to delete those auto-generated profiles, you would have to go through the iOS dev center.
  • pstoppani
    pstoppani over 10 years
    Using xcode>Preferences>Accounts refresh seems a cleaner solution. See answer below by @loadedion
  • pstoppani
    pstoppani over 10 years
    A simple "refresh" will get rid of all duplicates. To delete a profile, you'd need to delete it from the dev center. Thanks @loadedion for the pointer to Accounts! What a pain. It should be in the Organizer.
  • Sten
    Sten over 10 years
    You can't delete it from the dev center. I will reappear when you refresh i Xcode.
  • Trein
    Trein over 10 years
    I also have the "immortals" provisioning profiles. Well, Apple and tons of recent bugs in Xcode 5 made me give up. I will let them hanging there...
  • Topsakal
    Topsakal over 10 years
    When you hit refresh button, invalid ones are deleted by themselves. No need to hit delete.
  • Bill Patterson
    Bill Patterson over 10 years
    Xcode now creates developer profiles for your bundle ID automatically, and if you use Xcode >Preferences >Accounts >select-account >view details >refresh it will recreate them. There is no way to turn this off. Like others, I've filed a but report (radar) for this asking for it to be changed.
  • Chander Shakher Ghorela - Guru
    Chander Shakher Ghorela - Guru over 10 years
    this path does not work for me, I used ~/Library/MobileDevice/Provisioning Profiles, '\ ' before profiles will not work here
  • Olie
    Olie over 10 years
    Tangent: I believe that using the fn key + backspace or delete (fn-backspace or fn-delete) makes it act like the other one.
  • budiDino
    budiDino over 10 years
    I didn't have to delete anything... just hit refresh and the duplicates were removed. Thanks ;)
  • Lucas
    Lucas over 10 years
    Open finder, ⌘-Shift-G, and paste ~/Library/MobileDevice/Provisioning Profiles
  • Tenaciousd93
    Tenaciousd93 about 10 years
    @pstoppani: THANK YOU! I'm testing with testflight and every time I will add a new member I have to add a new adhoc profile to xcode: I have 10 profile with the same name! I didn't know where are specific testing people! I use refresh button in xcode>Preferences>Accounts and it solve my problem with the last profile, this thing make me crazy! thank you +1!
  • Mihir Mehta
    Mihir Mehta about 10 years
    Hey i cannot find MobileDevice folder inside library... Am i missing something obvious... ?
  • rakmoh
    rakmoh about 10 years
    @mihirmehta Are you checking in the Library folder under your home directory?
  • Matt
    Matt almost 10 years
    I don't see a "refresh" to press. "Managed by XCode" profiles still come back.
  • Ashish P
    Ashish P almost 10 years
    Refresh button is under view details at the bottom.See my edited answer.
  • MoralCode
    MoralCode almost 10 years
    i found that just removing them from the dev center worked as per my above answer.
  • Boris Gafurov
    Boris Gafurov over 9 years
    none of the above but this worked. Indeed I had * wild card ID added by Xcode, as soon as I got rid of it, duplicating stopped
  • shmim
    shmim about 9 years
    Xcode recreates them, apparently. See comments above :-(