← Apple crash reports
IPS·Guide
All tools

The IPS tool

An Apple crash report in the .ips format (iOS 15 and macOS 12 onwards) as an overview, the exception and termination, the threads with their registers and backtraces, the binary images, memory and the process, device and signing details. Drop the file, paste its text or use Open .ips…; nothing leaves the browser. The iOS Device page can also hand crash logs over.

An .ips file is two JSON objects: a one-line header (bug_type, app name and version, OS, incident ID) and the report body. Integers of 15 digits or more are kept exactly. Old text-format .crash reports, and bug_type 109 reports whose body is text, are shown as text.

1Reading a report

2The IpsReport library

lib/ips.js is a JavaScript module that reads the report, with no user interface and no dependencies; it also runs in a module Web Worker and in jsc. It exports one class, IpsReport, whose methods are all static; the report it returns is plain data:

import { IpsReport } from "../lib/ips.js";
MethodWhat it does
IpsReport.parse(text)The report: { header, payload, payloadText, problem, images, imagesByBase, sharedCache, threads, crashedIndex, references, injectedImages }. A file with a single object that holds threads or usedImages has it as the payload. problem is null or { type, message } with type "crash-text", "not-ips", "truncated", "bad-header", "legacy-109" or "bad-payload".
report fieldsimages: [{ index, raw, name, path, base, size, uuid, arch, source, origin }], base and size as BigInts, origin "app", "bundled", "system", "injected" or "unknown". sharedCache: { base, size, uuid } or null. crashedIndex: the triggered thread, else faultingThread, else -1. references: Map image index → [{ thread, frame }].
IpsReport.imageAt(report, index)The image a frame's imageIndex names, or null.
IpsReport.framesOf(thread)A thread's frames (objects only; [] without frames).
IpsReport.resolveAddress(report, address){ name, offset, index }: the image that holds a BigInt address (index -1 for the dyld shared cache), or null.
IpsReport.threadLabel(thread, index)"name · queue", or "Thread N".
IpsReport.frameDetail(report, frame)"symbol + 20", or "0x100000000 + 16404" (image base + offset) without a symbol.
IpsReport.backtraceText(report, thread, index, title)The backtrace as text, in Apple's layout. title replaces the Thread N line (for the Last Exception Backtrace).
IpsReport.crashSignature(report)Exception type · image · symbol of the crashed thread's first frame, or "".
IpsReport.split(text){ kind: "ok", headerText, rest }, or { kind, text } with kind "crash-text", "not-ips" or "truncated-header".
IpsReport.parseJson(text), IpsReport.quoteBigIntegers(text)JSON.parse that keeps integers of 15 digits or more as strings; the JSON text with those integers quoted.
IpsReport.toBigInt(value)A number, decimal string or "0x…" string as a BigInt, or null.
IpsReport.classifyImage(image, context)An image's origin; context is { procPath, sliceUuid, bundleRoot }.
IpsReport.looksLikeIps(text)Whether pasted text starts with {.
IpsReport.BUG_TYPES, IpsReport.PLATFORMSNames of the bug_type values and of the header's platform numbers.
import { IpsReport } from "../lib/ips.js";

const report = IpsReport.parse(text);
if (report.problem) {
	console.warn(report.problem.message);
}
if (report.crashedIndex >= 0) {
	const thread = report.threads[report.crashedIndex];
	console.log(report.payload.exception.type, IpsReport.crashSignature(report));
	console.log(IpsReport.backtraceText(report, thread, report.crashedIndex));
}
console.log("injected:", report.injectedImages.map((image) => image.path));