Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:IPA

From ReverseEngineering.wiki
Format
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)); CFBundleExecutable names the main Mach-O in the same folder, CFBundleIdentifier is the bundle id, MinimumOSVersion the 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, iTunesArtwork and a SC_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

See Platform:IOS.

See also

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