Xcode
provisioning profiles
iOS development
app development
coding tips

Remove provisioning profiles from Xcode (location and refresh)

Codemia Knowledge Hub ·

Provisioning profiles are ordinary files on your Mac that Xcode reads for code signing. To remove them, delete the .mobileprovision files from ~/Library/MobileDevice/Provisioning Profiles, then refresh signing assets in Xcode's account settings so it can download fresh ones if needed.

Where provisioning profiles are stored

Downloaded profiles are commonly stored under:

bash
~/Library/MobileDevice/Provisioning\ Profiles

To inspect the directory:

bash
ls ~/Library/MobileDevice/Provisioning\ Profiles

In a shell, the space in the folder name needs a backslash (as above) or quotes. Files are typically named by UUID rather than app name, so the directory can look cryptic.

Xcode 16 and later store newly downloaded profiles in ~/Library/Developer/Xcode/UserData/Provisioning Profiles instead, so check that folder as well.

Delete profiles from disk

To delete all local profiles:

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

To remove just one, inspect the directory first and delete that file. If Xcode still has access to the signing account, it may download fresh profiles later.

Refresh signing state in Xcode

To clean signing state rather than only delete files, open:

  • Xcode
  • Settings or Preferences
  • Accounts

Select your Apple ID and inspect the team details. Refreshing signing assets there is often enough after deleting stale local profiles, and is the way to pick up profiles that were regenerated in the Apple Developer portal while the Mac still uses the old ones.

Reasons to remove profiles

  • expired provisioning profiles
  • stale profiles after certificate rotation
  • signing conflicts between teams
  • Xcode still using an outdated profile after account changes

Deleting local profiles forces Xcode to rebuild or redownload the signing context instead of reusing old files. After deleting them manually, closing and reopening Xcode makes sure it notices the change.

Shared machines and certificate problems

On a machine shared by several projects or teams, removing every profile can temporarily break unrelated builds. Prefer targeted removal, or check which UUID belongs to which app first.

Profiles and certificates work together. If the real problem is a bad signing certificate in Keychain, deleting profiles will not fix it.

Mistakes to avoid

  • Expecting profile deletion to fix broken certificates or missing private keys.
  • Removing every profile on a shared build machine without checking what other projects need.
  • Assuming Xcode keeps profiles in an internal database rather than as files on disk.
  • Forgetting that Xcode may redownload profiles if the account is still configured.
  • Cleaning local profiles when the problem is in the Apple Developer portal configuration.

Free course
Beginner
7 lessons
2 hours
Tackling System Design Interview Problems

A short course that equips you with the skills to approach system design interviews methodically.

Start the free course
Basis Lab
No course covers this one yet

Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.

Build my course
Data Structures & Algorithms practice on Codemia

Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.

Practice algorithms