Jeff Johnson (My apps, PayPal.Me)

How to regenerate Xcode managed provisioning profiles

October 27 2022

This is a follow-up to my article Check your App IDs for unused capabilities. The other day I was about to upload a new build of StopTheMadness to App Store Connect, but at the last minute I noticed that the build still had the Game Center entitlement, even though I had already removed the entitlement from my AppID. Where was it coming from?

Closely inspecting the contents of the app bundle, I discovered a stale provisioning profile that still had the Game Center entitlement. The problem, though, is that Xcode is supposed to automatically manage the provisioning profile, so there didn't appear to be any way for me to manually regenerate it.

Xcode Managed Profile

The info (i) button displays the profile.

Mac Team Provisioning Profile

The little "PROV" image is actually a document proxy, though I have no idea why it shows the System Preferences icon. You can drag the document proxy to reveal the location of the .provisionprofile file, which turns out to be in the ~/Library/MobileDevice/Provisioning Profiles/ folder. So all you have to do is quit Xcode and delete the file. Then the next time you build the project, Xcode will generate a new provisioning profile. Problem solved!

Jeff Johnson (My apps, PayPal.Me)