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:
To inspect the directory:
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:
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:
XcodeSettingsorPreferencesAccounts
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.
Related reading
- How to remove the default Navigation Bar space in SwiftUI NavigationView
- How to remove the last border of the last cell in UITableView?
- How to remove the left and right Padding of a List in SwiftUI?
- How to remove the Xcode warning Apple Mach-O Linker Warning 'Pointer not aligned at address
- How to render a PDF file in Android
- How to replicate background-attachment fixed on iOS
- How to require an enum be defined in Swift Protocol
- How to Resize a Bitmap in Android?
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseNo 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 courseData 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.