Apple Platform Crash Log .NET Symbolication
Resolves native backtrace frames from .NET MAUI and Mono app crashes on Apple platforms (iOS, tvOS, Mac Catalyst, macOS) to function names, source files, and line numbers using Mach-O UUIDs and dSYM debug symbol bundles.
Inputs: Crash log file (
JSON format, iOS 15+ / macOS 12+),
(from Xcode), optionally a connected iOS device to pull crash logs from.
Do not use when: The crashing library is not a .NET component (e.g., pure Swift/UIKit), or the crash log is an Android tombstone.
Workflow
Step 1: Parse the .ips Crash Log
Format check: Before proceeding, verify the file is
JSON format. The first line must be valid JSON. If the file is plain text (e.g., Android tombstone with
frame lines, or legacy Apple
text format),
stop immediately — this workflow does not apply. Report the format mismatch to the user and do not attempt any symbolication.
The
file is
two-part JSON: line 1 is a metadata header; the remaining lines are a separate JSON crash body. Parse them separately:
python
lines = open('crash.ips').readlines()
metadata = json.loads(lines[0]) # app_name, bundleID, os_version, slice_uuid
crash = json.loads(''.join(lines[1:])) # Full crash report
Key fields in the crash body:
- has , (load address), , for each loaded binary
- has , ; frame address =
usedImages[imageIndex].base + imageOffset
- , (e.g., / )
- (Application Specific Information) often contains the managed exception message
- has frames from the exception that triggered the crash
- is the index into the array
Parsing gotcha: Some .ips files have case-conflicting duplicate keys (
/
). Pre-process the raw JSON to rename the lowercase duplicate before parsing. The
field may be absent.
Step 2: Identify .NET Runtime Libraries
Filter
to .NET runtime libraries:
| Library | Runtime |
|---|
| CoreCLR runtime |
| Mono runtime |
| .NET BCL native component |
libSystem.Globalization.Native
| .NET BCL globalization |
libSystem.Security.Cryptography.Native.Apple
| .NET BCL crypto |
libSystem.IO.Compression.Native
| .NET BCL compression |
libSystem.Net.Security.Native
| .NET BCL net security |
On Apple platforms these ship as
bundles, so image names may omit
. Match using substring (e.g.,
not
). The app binary may appear
twice in
with different UUIDs.
Key bridge functions in the app binary:
xamarin_process_managed_exception
(managed exception bridged to ObjC NSException),
,
,
.
NativeAOT: Runtime is statically linked into the app binary.
BCL libraries remain separate. The app binary needs its own dSYM from the build output.
Skip
,
, and other Apple system frameworks unless specifically asked.
Step 3: Interpret the Crash
Start with (Application Specific Information) — for .NET crashes, it often contains the managed exception type and message (e.g.,
,
). The root cause may already be visible here.
Then examine the
faulting thread (
). Explain what frames #0 and #1 mean before examining other threads. Cross-thread context (GC state, thread pool) is useful for validation but not evidence of causation.
Also check
for the managed exception path through bridge functions like
xamarin_process_managed_exception
.
Sometimes the .NET runtime version is visible in image paths in
, particularly on macOS when using shared-framework installs or NuGet-pack-style layouts (e.g.,
.../Microsoft.NETCore.App/10.0.4/libcoreclr.dylib
). On iOS, however, image paths are typically inside the app bundle (for example,
.../Frameworks/libcoreclr.framework/libcoreclr
) and do not embed the runtime version, so you usually need to infer it via the Mach-O UUID by matching against SDK packs or symbol-server downloads rather than relying on the path alone.
Step 4: Locate dSYMs
For each .NET library needing symbolication, locate a UUID-matched dSYM:
- Microsoft symbol server (automatic): Download via
https://msdl.microsoft.com/download/symbols/_.dwarf/mach-uuid-sym-{UUID}/_.dwarf
(UUID lowercase, no dashes). Convert to bundle (use the image name from , e.g., ):
bash
mkdir -p libcoreclr.dSYM/Contents/Resources/DWARF
cp _.dwarf libcoreclr.dSYM/Contents/Resources/DWARF/libcoreclr
- Build output:
bin/Debug/net*-ios/ios-arm64/<App>.app.dSYM/
- SDK packs:
$DOTNET_ROOT/packs/Microsoft.NETCore.App.Runtime.<rid>/<version>/runtimes/<rid>/native/
- NuGet cache:
~/.nuget/packages/microsoft.netcore.app.runtime.<rid>/<version>/runtimes/<rid>/native/
- :
dotnet-symbol --symbols -o symbols-out <path-to-binary.dylib>
Always verify:
must match the UUID from the crash log exactly.
Step 5: Symbolicate with atos
bash
atos -arch arm64 -o <path.dSYM/Contents/Resources/DWARF/binary_name> -l <load_address> <frame_addresses...>
- points to the DWARF binary inside the bundle (
Contents/Resources/DWARF/
), not the bundle itself
- is the load address from
- Use the from (usually , may be )
- Pass multiple addresses per invocation for batch symbolication
bash
# Example: symbolicate libcoreclr frames
atos -arch arm64 -o libcoreclr.dSYM/Contents/Resources/DWARF/libcoreclr -l 0x104000000 0x104522098 0x1043c0014
Strip the
CI workspace prefix from output — meaningful paths start at
, mapping to the
dotnet/dotnet VMR.
Automation Script
scripts/Symbolicate-Crash.ps1 automates the full workflow (parsing, dSYM lookup, symbol download, and symbolication). Resolve the path relative to this SKILL.md file.
powershell
# $SKILL_DIR is the directory containing this SKILL.md
pwsh "$SKILL_DIR/scripts/Symbolicate-Crash.ps1" -CrashFile MyApp-2026-02-25.ips
Start with
for a fast overview without requiring
. The script automatically downloads symbols from the Microsoft symbol server when local dSYMs are missing.
Flags:
,
,
,
,
,
,
-DsymSearchPaths path1,path2
.
Retrieving Crash Logs
Pull crash logs from a connected iOS device using
(from
libimobiledevice):
bash
idevicecrashreport -e /tmp/crashlogs/
find /tmp/crashlogs/ -iname '*MyApp*' -name '*.ips'
Also available in
Xcode > Window > Devices and Simulators > View Device Logs, or at
~/Library/Logs/CrashReporter/
(Mac Catalyst),
~/Library/Logs/DiagnosticReports/
(macOS).
Validation
- matches UUID from the crash log
- At least one .NET frame resolves to a function name (not a raw address)
- Resolved paths contain recognizable .NET runtime structure (e.g., , , )
Stop Signals
- Wrong file format: If the file is not JSON (e.g., Android tombstone with stack frames, legacy text format), stop immediately — report the format mismatch to the user and do not proceed with any symbolication. Do not attempt to symbolicate using other tools or workflows.
- No .NET frames found: Report parsed frames and stop.
- All frames resolved: Present symbolicated backtrace with brief crash analysis (faulting thread, exception type, likely area). If the user asks for deeper investigation, proceed.
- dSYM not available / UUID mismatch: Report unsymbolicated frames with UUIDs and addresses. Suggest locating the original build artifacts.
- atos not available: Present the manual commands for the user to run. Do not install Xcode. ships with Xcode Command Line Tools ().
References
- IPS format details: See references/ips-crash-format.md for additional .ips parsing details and macOS symbol package differences.