Provisioning & entitlements

.mobileprovision file

The file format Apple uses for provisioning profiles: a CMS-signed plist containing the profile's metadata, certificates, device list, and entitlements.

mobileprovision.provisionprofileembedded.mobileprovisionProvisioning profile file

A .mobileprovision file is the on-disk representation of an Apple provisioning profile. The extension is .mobileprovision for iOS, iPadOS, tvOS, watchOS, and visionOS profiles, and .provisionprofile for macOS. Under the hood the format is identical: a Cryptographic Message Syntax (CMS) signed envelope around an XML plist.

Decode one from the command line

bash
# CMS-aware: keeps the signature wrapper around the plist
security cms -D -i Profile.mobileprovision

# openssl alternative if you do not have macOS handy
openssl smime -in Profile.mobileprovision -inform der -verify -noverify

Fields you will actually look at

  • AppIDName and Entitlements > application-identifier: the App ID the profile covers.
  • TeamIdentifier: the Team ID.
  • DeveloperCertificates: the public-key halves of the certificates this profile authorizes.
  • ProvisionedDevices: the UDID list for Development and Ad Hoc profiles. Absent for App Store and Enterprise.
  • ExpirationDate: when iOS will refuse to launch a build that embeds this profile.
  • UUID: the profile's unique identifier, used by Xcode and PROVISIONING_PROFILE_SPECIFIER. It changes every time the profile is regenerated, which is why pinning it in build settings leads to no such provisioning profile was found after a renewal.

Where the file ends up

  • Inside the .app bundle as embedded.mobileprovision (iOS) or embedded.provisionprofile (macOS), copied there by xcodebuild during the archive step.
  • Installed on a developer's Mac at ~/Library/MobileDevice/Provisioning Profiles/, looked up by UUID.
  • Stored in an MDM payload or fastlane match repo for distribution to teammates and CI.

Profile types inside a .mobileprovision

Profile typeDevice list?Used for
DevelopmentYes (registered UDIDs)Running debug builds on test devices
Ad HocYes (registered UDIDs)Distributing outside the App Store to known devices
App StoreNoSubmitting to App Store Connect and TestFlight
Enterprise (In-House)NoInternal distribution via the Apple Developer Enterprise Program

Why a build rejects its embedded profile

  • The profile expired: ExpirationDate is in the past.
  • The signing certificate is not listed in DeveloperCertificates, so the signature and profile disagree.
  • The device UDID is not in ProvisionedDevices for a Development or Ad Hoc build.
  • The app's entitlements do not match the profile's Entitlements, for example a Push entitlement with no matching capability.

FAQ

Common questions about .mobileprovision file

How do I get a .mobileprovision file?

Three routes. Download it from the Apple Developer portal under Certificates, Identifiers and Profiles > Profiles, which gives you the exact file Apple generated. Let Xcode fetch it by enabling automatic signing, which drops a copy in ~/Library/Developer/Xcode/UserData/Provisioning Profiles. Or pull it through the App Store Connect API, which is what CI tooling like HexSign and fastlane do so a build machine never needs a portal login.

How do I install a .mobileprovision file on a Mac?

Copy it into ~/Library/Developer/Xcode/UserData/Provisioning Profiles, giving it its UUID as the filename. Double-clicking the file used to install it through Xcode, but on current Xcode versions copying it into that directory is the reliable method. Restart Xcode afterwards so it picks up the new profile.

How do I open a .mobileprovision file?

A .mobileprovision file is a CMS-signed plist, so a plain text editor shows binary noise. Decode it on macOS with `security cms -D -i Profile.mobileprovision`, or with `openssl smime -in Profile.mobileprovision -inform der -verify -noverify` elsewhere, to read the XML inside.

Where are .mobileprovision files stored?

On a developer's Mac they live in `~/Library/MobileDevice/Provisioning Profiles/`, looked up by UUID. A copy is embedded in every signed build as `embedded.mobileprovision` (or `embedded.provisionprofile` on macOS), and teams often keep them in an MDM payload or a fastlane match repo.

Is a .mobileprovision file the same as a provisioning profile?

Yes. .mobileprovision is the file format Apple uses to store a provisioning profile. The macOS equivalent uses the .provisionprofile extension, but the structure is identical: a signed envelope around a plist of the App ID, certificates, devices, and entitlements.

Why does iOS reject a modified .mobileprovision file?

The file is signed with Cryptographic Message Syntax. Editing the plist breaks the signature, and iOS refuses to launch a build whose embedded profile fails verification. To change what a profile contains you regenerate it from Apple rather than editing the file.

Keep reading

Related terms

Next step

Help articles on this topic

Notice a definition that has drifted? Email support@hexsign.io and we'll update it. Browse the full glossary or jump to the help center.

Try HexSign

Know before a certificate or profile expires.

HexSign tracks every Apple certificate and provisioning profile and alerts you ahead of expiry. The Free plan covers tracking and alerts. Paid plans renew them for you.