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