Skip to content
SwiftSkills

Analyzing iOS crash logs with AI agents: symbolication, .ips reports, Xcode Organizer and MetricKit

Give the agent a symbolicated report, not a raw one. Keep the archive and dSYMs for each build you ship, get the .ips from the Crashes organizer or the device, symbolicate it with xcrun crashlog or a tool like crashdx or Axiom's xcsym, then let the agent match Apple's crash patterns before it edits code.

Last updated:

This page is about analyzing iOS crash reports with a coding agent: what to hand it, how to symbolicate, how to read the .ips and which tools do the mechanics. For getting reports off a connected iPhone, see Testing on a real iPhone with AI agents.

Why the agent needs a symbolicated report

Apple: a crash report can be fully symbolicated, partially symbolicated or unsymbolicated, and "an unsymbolicated crash report is rarely useful". Without symbols, the agent sees hex addresses and starts guessing.

  • dSYMs come from your release build. Release builds put debug symbols in a separate dSYM file per binary (app, frameworks, extensions). Set Debug Information Format to DWARF with dSYM File before you build for distribution.

  • The build UUID must match. A binary and a dSYM only fit together when their build UUIDs are identical; Apple notes that the same source built with a different Xcode version or build settings gets a different UUID.

  • Keep the archive. Apple: "You must retain the Xcode archive for each build of your app you distribute." Without it you may not be able to symbolicate that version at all.

  • Upload symbols with the build. If you include symbols when uploading to App Store Connect, the Crashes organizer symbolicates TestFlight and App Store crashes for you.

Apple's own workflow ends the same way an agent loop should: symbolicate, check the common crash patterns, fix the code, then add tests with XCTest so the crash does not come back.

Where the crash report comes from

SourceWhat you getNote (Apple)
Xcode Crashes organizerTestFlight and App Store crashesTestFlight users share crashes automatically; App Store only from users who share diagnostics
Organizer → Generate Recommendations (Xcode 27)Stack trace pasted into Xcode's coding assistantSee the Xcode 27 section below
Device Hub → Reports tab → CrashesReports from a connected device, symbolicated in XcodeThe file must end in .crash or .ips
Device: Settings → Analytics & Improvements → Analytics Data<AppBinaryName>_<DateTime> crash logs, JetsamEvent_<DateTime> memory logsHow customers send you a report by email
Debugging in XcodeFull report only after you detach the debuggerDebug > Detach or detach in the console
MetricKit in your appCrash, hang and other diagnostics from real usersSee the MetricKit section

Apple lists four report types that are not in the Crashes organizer and have to come from the device: watchdog events (such as slow launches), invalid code-signature crashes, thermal events and jetsam events. For pulling reports off a connected device from the terminal, see Testing on a real iPhone with AI agents.

Symbolicating: the commands the agent can run

StepCommand (Apple)What it does
Symbolicate a whole reportxcrun crashlog <path-to-report>LLDB's crashlog module; adds function names, files and line numbers to every frame. xcrun crashlog --help lists options
Symbolicate a JSON report with given dSYMspython3 CrashSymbolicator.py <report> -d <dSYM> [-o <out>]Script in Xcode.app/Contents/SharedFrameworks/CoreSymbolicationDT.framework/Resources; supports .ips JSON and inlined frames
Look up single addressesatos -arch <arch> -o <dSYM>/Contents/Resources/DWARF/<binary> -l <load-address> <addresses>Add -i for inlined frames
Find the dSYM for a UUIDmdfind "com_apple_xcode_dsym_uuids == <UUID>"UUID from the report's binary images, as XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Check a dSYM's UUIDdwarfdump --uuid <path-to-dSYM>Must equal the binary's UUID in the report

If mdfind finds nothing, Apple's checklist: Spotlight indexing on for that folder, no .noindex in the path, the build actually produced debug info, and the archive still exists. For third-party frameworks, ask the vendor for its dSYM.

A rule worth giving the agent verbatim: if the UUIDs don't match, stop. crashdx refuses a mismatched dSYM ("a stale dSYM produces confidently wrong symbols"), and mapleleaf99's ios-crash-check skill tells the agent to stop guessing line numbers and ask for the right dSYM.

Reading the .ips file

Since iOS 15 and macOS 12, crash reports are JSON in .ips files. Apple's notes for parsing them:

  • The file holds two JSON objects: line 1 is metadata, the rest is the report. In the metadata, bug_type 309 is a crash report; Apple names 288 (stackshot) as another type you may meet.

  • exception (type, signal, codes, subtype) and termination (namespace, code, indicator) say how the app died.

  • faultingThread is the index into threads; each thread has frames with imageIndex, imageOffset and, once symbolicated, symbol.

  • lastExceptionBacktrace holds the throw site for language exceptions; asi holds application-specific messages.

  • usedImages lists each binary with its base load address and uuid, the value you match against the dSYM.

  • Numbers such as addresses and termination.code are stored as decimal. Convert to hex before comparing: 2343432205 is 0x8badf00d.

Crash patterns the agent should check first

Apple's "Identifying the cause of common crashes" maps report patterns to causes. Have the agent name the pattern before it proposes a fix.

Pattern in the reportLikely cause (Apple)
EXC_BREAKPOINT (SIGTRAP) on ARM (EXC_BAD_INSTRUCTION (SIGILL) on Intel and in the Simulator); frame 0 points at your lineSwift runtime error (the runtime caught a programming error)
EXC_CRASH (SIGABRT) plus a Last Exception BacktraceLanguage exception, such as an out-of-bounds array index in a framework
EXC_CRASH (SIGKILL), Termination Reason 0x8badf00dWatchdog: the app was unresponsive; the Termination Description shows how time was spent
Crash in objc_msgSend, objc_retain or objc_release, or doesNotRecognizeSelectorZombie object (messaging a deallocated object)
EXC_BAD_ACCESS (SIGSEGV) with VM Region InfoMemory access issue
EXC_BAD_ACCESS at an address ending in bad0 ("possible pointer authentication failure")Objective-C concurrent access to a strong property
EXC_CRASH (SIGABRT) with a DYLD Termination DescriptionMissing framework

Apple's precondition for all of these: a fully symbolicated report generated by the operating system.

Crash tools for agents compared

Tool / skillWhat it does for crashes (from README)AgentsInstall (from README)License★ (25 Oct)Last push
Axiom (CharlesWiltgen)Built-in xcsym symbolicates .ips, MetricKit and legacy .crash with automatic dSYM discovery and pattern categorization; /axiom:analyze-crash commandClaude Code, Cursor, Codex and others/plugin marketplace add CharlesWiltgen/AxiomMIT122920 Oct 2026
Observability skill (n0an)Teaches the agent .ips anatomy, watchdog codes, jetsam, dSYM/UUID rules, atos -i, CrashSymbolicator.py, MetricKit incl. the iOS 27 MetricManagerClaude Code, Codex, Cursor, Gemininpx skills add https://github.com/n0an/Observability-Agent-SkillMIT88 Sep 2026 ⚠
crashdx (r00tify)CLI + MCP server: symbolicates .ips via Apple's CrashSymbolicator.py, refuses UUID mismatches, returns a ranked diagnosis with evidence or "inconclusive"; ships a crash-triage skillClaude Code, any MCP clientgit clone + swift build -c release, then claude mcp add crashdx /usr/local/bin/crashdx-mcpMIT727 Jul 2026 ⚠
coroner (ictechgy)Ingests .ips and MetricKit payloads, symbolicates, clusters by signature, keeps a per-build journal; 7 MCP tools such as new_since and top_crashesClaude Code, any MCP clientbrew install ictechgy/tap/coronerMIT05 Sep 2026 ⚠
ios-crash-check + ios-testflight-crash in iOS Agent Skills (mapleleaf99)Checklist skill: read exception header, match dSYM UUID, symbolicate, conclude; fix only when askedCursor, Claude Code, Codexgit clone + ./install.sh --only ios-crash-check,ios-testflight-crashMIT17 Sep 2026 ⚠
mcp-ios-device (mgcrea)MCP server for a physical iPhone; crash, jetsam and fault reports via devicectl (retrieval, not analysis)Any MCP clientnpx -y @mgcrea/mcp-ios-deviceMIT09 Oct 2026
Mobile Observability (nexus-labs-automation)Plans crash reporting and dSYM upload (symbolication-setup skill) and audits instrumentation; vendor services are separateClaude Codeclaude plugin marketplace add calube/mobile-observability + claude plugin install mobile-observabilityMIT11623 Aug 2026 ⚠

⚠ = no push for more than 4 weeks. crashdx and coroner state that they make no network calls in their core; coroner's optional App Store Connect dSYM download is the exception and, per its README, not yet verified against the live API.

Which one to pick:

  • One crash file, want a diagnosis the agent can't invent: crashdx. It cites the report fields behind each verdict and says "inconclusive" when the evidence is thin.

  • Already using Axiom: run /axiom:analyze-crash; xcsym also reads MetricKit payloads and legacy .crash text.

  • Many crashes over several builds: coroner, which answers "what is new since build N" and can fail a CI step on new crash clusters.

  • Want the agent to know the rules, not run a tool: n0an's Observability skill (live) or mapleleaf99's ios-crash-check.

  • The crash only happens on a device: get the report with mcp-ios-device or Device Hub first, then analyze with one of the above.

  • Setting up crash reporting and dSYM upload in the first place: Mobile Observability.

Xcode 27: Generate Recommendations in the Organizer

Apple's "Acquiring crash reports and diagnostic logs" now has a section on coding-assistant recommendations: select a crash in the Crashes organizer, click Generate Recommendations in the Inspector, pick a workspace, and Xcode opens the project and pastes the crash stack trace into the coding assistant.

The Xcode 27 release notes add two related entries:

  • "AI-driven analysis is now available for diagnostics in Xcode Organizer", with Generate Recommendations "for Crash, Energy, Disk Write, Hang and Launch diagnostics" (177568727).

  • "Agents in Xcode now have access to insights about your projects, such as crashes, disk writes, energy, hangs and launch issues impacting your app" (177568662).

This is the shortest path when the crash is already in the Organizer and you work inside Xcode. For a terminal agent (Claude Code, Codex CLI), or for reports from a device or a customer email, symbolicate locally with the commands above.

MetricKit: crash data from your own users

Apple: MetricKit delivers metric reports about the previous 24 hours at most once a day, and diagnostic reports immediately on iOS 15 and later. MXCrashDiagnostic (iOS 14+) is the crash report type of the classic API.

In iOS 27, the new MetricManager delivers reports through async sequences. You iterate diagnosticReports and switch over report.result (.crash, .hang, .cpuException, .diskWriteException, .appLaunch). Apple notes that DiagnosticReport conforms to Codable, so you can serialize it with JSONEncoder, and that MetricKit does not generate a report for every event.

swift

let manager = MetricManager()

Task {
    for await report in manager.diagnosticReports {
        process(report)
    }
}

(Excerpt of Apple's example in the MetricManager documentation.)

Saving those reports as JSON gives the agent the same input Apple shows in the Organizer, from your own pipeline. coroner ingests MetricKit JSON directly, and Axiom's xcsym accepts MetricKit payloads.

A prompt that keeps the agent honest

Here is crash.ips and the dSYM folder from the archive of build 142. Check that the dSYM UUID matches the app binary in the report, symbolicate with xcrun crashlog, tell me which pattern from Apple's common-crashes list this is and which line it points to. Don't change code yet.

Then, once you agree with the diagnosis, ask for the fix and a test that reproduces the crash, as Apple's workflow suggests.

Before you paste a report anywhere shared: Apple says to redact your app name and bundle ID with same-length characters (for example MyApp → MmVvv). The report also carries crashReporterKey, an anonymized per-device identifier, and on TestFlight builds a deviceIdentifierForVendor.

FAQ

Can Claude Code read an iOS crash log?
Yes. A .ips file is JSON, so any agent can read it, but Apple says an unsymbolicated report is rarely useful. Symbolicate it first with xcrun crashlog or CrashSymbolicator.py, or let crashdx (MCP) or Axiom's xcsym do it, and keep the matching dSYM from the archive of that build.
How do I symbolicate an iOS crash report from the command line?
Apple documents three ways: xcrun crashlog with the report path, python3 CrashSymbolicator.py with the report and -d for each dSYM, and atos for single addresses. Find the dSYM by its build UUID with mdfind and confirm the match with dwarfdump --uuid.
What is the difference between .ips and .crash?
Since iOS 15 and macOS 12, crash reports are stored as JSON in .ips files: the first line is a metadata object, where bug_type 309 means a crash report, and the rest is the report. Console and Xcode translate it into the text layout of a .crash file. Apple says to share the .ips when you can.
What does Generate Recommendations in Xcode 27 do with crashes?
In the Crashes organizer you select a crash and click Generate Recommendations in the Inspector. After you pick a workspace, Xcode opens the project and pastes the crash stack trace into the coding assistant. The Xcode 27 release notes list it for crash, energy, disk write, hang and launch diagnostics.
Can MetricKit send crash data to an AI agent?
Not directly, but it gives you the data. MetricKit delivers diagnostic reports, including crashes, from real users; since iOS 15 they arrive immediately. In iOS 27 the new MetricManager streams DiagnosticReport values that are Codable, so you can save them as JSON for the agent or for a tool like coroner.