| Method | What 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 fields | images: [{ 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.PLATFORMS | Names of the bug_type values and of the header's platform numbers. |