← iOS app
IPA·Guide
All tools

iOS app packages

An .ipa is a ZIP archive with the app bundle in Payload/Name.app/: the executable, frameworks, resources, Info.plist and, outside the App Store, embedded.mobileprovision. The tool reads it in your browser, reading only the parts it needs; the code is a library you can reuse.

Contents

  1. What the tool shows
  2. The Symbols folder
  3. The IPA library

1What the tool shows

2The Symbols folder

An IPA exported with “Upload your app's symbols” has a Symbols/ folder: one .symbols file per binary, with every function's name, address and source location. Apple removes them before the app reaches devices; when they are present, the tool matches each to its binary by UUID and the Mach-O tool can show the binary with its names. lib/symbols-file.js (SymbolsFile) reads them; see the Mach-O tool guide.

3The IPA library

lib/ipa.js is a JavaScript module with no user interface. It exports the class IpaPackage and imports what it needs itself: lib/compression/zip.js, lib/plist.js, lib/mobileprovision.js for the provisioning profile (documented in the Provisioning Profile guide) and lib/symbols-file.js to match .symbols files.

import { IpaPackage } from "../lib/ipa.js";

const app = await IpaPackage.open(file);
console.log(app.info.CFBundleIdentifier, app.appBundle, app.summary.frameworks);
const executable = app.archive.get(app.appBundle + "/" + app.info.CFBundleExecutable);
const bytes = await app.archive.read(executable);
Method / propertyWhat it does
await IpaPackage.open(fileOrBlob)Opens the package (reading only the ZIP directory, Info.plist and the profile) and returns an IpaPackage. Throws when the file isn't a ZIP archive.
app.archiveThe ZIP archive (a ZipArchive of lib/compression/zip.js): read entries, or edit and rebuild the package.
app.appBundle"Payload/Name.app", or null.
app.info, infoEntry, infoErrorInfo.plist as plain values, its entry, and why it couldn't be read.
app.profile, profileEntry, profileErrorThe ProvisioningProfile of embedded.mobileprovision (its plist is app.profile.profile), its entry, and errors.
app.summary{ files, size, compressedSize, frameworks, extensions, bundles, localizations, dylibs, assetCatalogs, plists, profiles, nibs }: names for the first four, counts for the rest.
app.symbolsFilesThe entries in Symbols/.
await app.matchSymbols(SymbolsFile.parse(bytes)){ entry, arch, verified }: the binary a .symbols file belongs to, checked by UUID (verified is false when only the name matched), or null.
IpaPackage.DEVICE_FAMILIESUIDeviceFamily numbers → names.
IpaPackage.SYMBOLS_PATHThe pattern of the .symbols files' paths (Symbols/*.symbols).