Code signing & build

IPA file

An iPhone Application Archive: a renamed ZIP archive containing a signed .app bundle in a `Payload/` folder. The format Apple expects for App Store, TestFlight, and Ad Hoc distribution.

iPhone Application Archive.ipa

An IPA (iPhone Application Archive) is a renamed ZIP file containing a signed .app bundle in a Payload/ folder. It is the format Apple expects for every distribution method on iOS, iPadOS, tvOS, watchOS, and visionOS: TestFlight, App Store, Ad Hoc, and Enterprise. macOS apps use .pkg or notarized .zip instead.

What's inside

bash
MyApp.ipa
 └─ Payload/
     └─ MyApp.app/
         ├─ MyApp                     # Mach-O executable
         ├─ Info.plist
         ├─ embedded.mobileprovision  # The provisioning profile
         ├─ _CodeSignature/
         │   └─ CodeResources          # Signature manifest
         ├─ Assets.car
         ├─ Frameworks/
         └─ PlugIns/

Inspect one without unzipping by hand

bash
# Read the provisioning profile that shipped inside
unzip -p MyApp.ipa 'Payload/*.app/embedded.mobileprovision' \
  | security cms -D -i /dev/stdin

# Show the signature identity, hardened runtime status, and entitlements
unzip -q MyApp.ipa -d /tmp/check
codesign -dvv --entitlements :- /tmp/check/Payload/*.app

How it ships

  • TestFlight and App Store: uploaded with xcrun altool --upload-app or Transporter against the App Store Connect API.
  • Ad Hoc: hosted as a download alongside an itms-services manifest plist that iOS uses to install over-the-air.
  • Internal device install: dragged into Xcode's Devices and Simulators window, or installed via ios-deploy.

FAQ

Common questions about IPA file

What is an IPA file?

An IPA (iPhone Application Archive) is the distributable package for an iOS, iPadOS, tvOS, watchOS, or visionOS app. Underneath it is an ordinary ZIP archive containing a signed .app bundle inside a Payload folder, along with the provisioning profile and code signature that let a device install and run it.

How do I open an IPA file?

Rename it to .zip and unarchive it, or run unzip MyApp.ipa directly. Inside is Payload/MyApp.app, which on macOS is itself a folder you can browse with Show Package Contents. You do not need Xcode to look inside one, though you do need codesign to read its signature and entitlements.

Can I install an IPA file on an iPhone?

Only if the IPA is signed with a profile that lists your device or covers your distribution channel. A development or Ad Hoc build installs by dragging the IPA into Xcode's Devices and Simulators window, or via ios-deploy. An App Store build will not install directly, because its profile expects distribution through the store.

What is the difference between an IPA and an .xcarchive?

The .xcarchive is what Xcode produces at archive time, and it keeps the unsigned app plus dSYM debug symbols and build metadata. The IPA is what you export from that archive for a specific distribution method, signed with the matching certificate and profile. One archive can export several different IPAs.

How do I check which certificate signed an IPA?

Unzip the IPA, then run codesign -dvv --entitlements :- on the .app inside Payload. The Authority lines name the signing certificate and your Team ID, and the entitlements dump shows what the build actually claims. Decoding the embedded.mobileprovision alongside it tells you which profile shipped.

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.