Format:IPA
| On this wiki | Facts · Code · Notes · Topics |
|---|
iOS/iPadOS/tvOS app archive (.ipa): a ZIP with Payload/<Name>.app/ holding the Mach-O executable, Info.plist, embedded.mobileprovision, _CodeSignature and frameworks.
Layout
An IPA is an ordinary ZIP file (magic PK). All app content is under a top-level Payload/ folder with exactly one top-level <Name>.app/ bundle (flat layout: unlike macOS there is no Contents/ folder). Typical entries:
Payload/<Name>.app/Info.plist: usually binary plist (Format:Property list (binary bplist00));CFBundleExecutablenames the main Mach-O in the same folder,CFBundleIdentifieris the bundle id,MinimumOSVersionthe deployment target.Payload/<Name>.app/<CFBundleExecutable>: the main Format:Mach-O (arm64 or arm64e; check Format:Mach-O/Encryption info for cryptid)._CodeSignature/CodeResources: plist of file hashes; the executable's own signature is in LC_CODE_SIGNATURE (Format:Mach-O/Code signature).embedded.mobileprovision: see Format:Apple provisioning profile. Absent in App Store downloads signed by Apple, present in development, ad hoc and enterprise builds. Unverified: App Store IPAs lacking the file.Frameworks/*.framework,PlugIns/*.appex(app extensions),Watch/*.app(watch apps),*.lproj,Assets.car,*.nib,*.storyboardc.- Outside Payload, Apple-delivered IPAs add
iTunesMetadata.plist,iTunesArtworkand aSC_Info/folder (FairPlay metadata). Unverified: contents of SC_Info from memory.
Deeper formats: Format:Assets.car (compiled asset catalog), Format:NIBArchive (compiled nibs and storyboards), Format:NSKeyedArchiver archive, Format:Core Data store.
Reading an IPA programmatically
blacktop/ipsw (MIT) opens an IPA's main executable by scanning for entries with exactly three path parts Payload/<x>.app/Info.plist, rejecting an IPA with several top-level apps, reading CFBundleExecutable, and joining it to the Info.plist's folder; embedded bundles (Watch, PlugIns) do not select the executable. Limits it applies: Info.plist at most 16 MiB, executable at most 4 GiB (internal/commands/macho/ipa.go).
Reversing notes
- Start with Info.plist, the Mach-O load commands (dependencies, fixups, encryption) and the entitlements of the code signature (Format:Apple provisioning profile#Entitlements).
- Swift apps carry
Frameworks/libswift*.dylibonly for old deployment targets; newer ones use the OS runtime. Unverified. - Names in the binary: Technique:Objective-C runtime metadata, Technique:Swift metadata sections, Technique:Swift metadata sections/Name mangling.
See Platform:IOS.
See also
- Format:ZIP (container structure)
Code & repositories
- https://github.com/blacktop/ipsw @
a9eae76e8b1e901e4a03dd530defac8a1b33f91a· license: MIT
ipsw (MIT): internal/commands/macho/ipa.go reads IPA Payload layout; pkg/appstore/provision.go parses mobileprovision as PKCS#7 plus plist
Tested on: source read, not run: source read, not run · checked 2026-10-18; last activity 2026-10-16; Note: the latest release ships binaries; the wiki links only the source, never the binaries