본문으로 건너뛰기
Skillpedia
모바일 앱5.8k · #14575

apple-crash-symbolication

하는 일

이 스킬은 Apple 플랫폼의 .NET 앱 충돌 로그 중 네이티브 부분을 해독합니다. 원시 주소만 보이는 .NET MAUI나 Mono 앱의 충돌을 분류하는 앱 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓iOS, macOS 또는 Mac Catalyst에서 .NET MAUI 앱이 충돌했고 .ips 로그에 원시 주소가 보일 때.
  • ✓Apple 충돌의 .NET 런타임 프레임에 이름과 위치를 붙여야 할 때.
  • ✓연결된 기기에서 충돌 로그를 가져와 해독하고 싶을 때.

스킬 링크

https://github.com/dotnet/skills/blob/main/plugins/dotnet-diag/skills/apple-crash-symbolication/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/dotnet/skills/blob/main/plugins/dotnet-diag/skills/apple-crash-symbolication/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 iPhone MAUI 앱의 이 .ips 충돌 로그에 있는 네이티브 백트레이스를 해독해서 함수 이름을 보여 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 로그 형식을 확인하고, 이미지 식별자와 주소를 읽고, 맞는 디버그 심볼을 찾은 뒤, Xcode에 들어 있는 심볼 도구를 실행해 읽을 수 있는 이름과 줄을 만듭니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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 (.ips JSON format, iOS 15+ / macOS 12+), atos (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 .ips JSON format. The first line must be valid JSON. If the file is plain text (e.g., Android tombstone with #NN pc frame lines, or legacy Apple .crash text format), stop immediately — this workflow does not apply. Report the format mismatch to the user and do not attempt any symbolication.

The .ips file is two-part JSON: line 1 is a metadata header; the remaining lines are a separate JSON crash body. Parse them separately:

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:

  • usedImages[N] has name, base (load address), uuid, arch for each loaded binary
  • threads[N].frames[M] has imageOffset, imageIndex; frame address = usedImages[imageIndex].base + imageOffset
  • exception.type, exception.signal (e.g., EXC_CRASH / SIGABRT)
  • asi (Application Specific Information) often contains the managed exception message
  • lastExceptionBacktrace has frames from the exception that triggered the crash
  • faultingThread is the index into the threads array

Parsing gotcha: Some .ips files have case-conflicting duplicate keys (vmRegionInfo / vmregioninfo). Pre-process the raw JSON to rename the lowercase duplicate before parsing. The asi field may be absent.

Step 2: Identify .NET Runtime Libraries

Filter usedImages to .NET runtime libraries:

Library Runtime
libcoreclr CoreCLR runtime
libmonosgen-2.0 Mono runtime
libSystem.Native .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 .framework bundles, so image names may omit .dylib. Match using substring (e.g., libcoreclr not libcoreclr.dylib). The app binary may appear twice in usedImages with different UUIDs.

Key bridge functions in the app binary: xamarin_process_managed_exception (managed exception bridged to ObjC NSException), xamarin_main, mono_jit_exec, coreclr_execute_assembly.

NativeAOT: Runtime is statically linked into the app binary. libSystem.* BCL libraries remain separate. The app binary needs its own dSYM from the build output.

Skip libsystem_kernel.dylib, UIKitCore, and other Apple system frameworks unless specifically asked.

Step 3: Interpret the Crash

Start with asi (Application Specific Information) — for .NET crashes, it often contains the managed exception type and message (e.g., XamlParseException, NullReferenceException). The root cause may already be visible here.

Then examine the faulting thread (threads[faultingThread]). 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 lastExceptionBacktrace for the managed exception path through bridge functions like xamarin_process_managed_exception.

Sometimes the .NET runtime version is visible in image paths in usedImages, 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 libr

자주 묻는 질문

어떤 로그 형식이 필요한가요?

iOS 15와 macOS 12 이상에서 쓰는 .ips JSON 충돌 형식이 필요합니다.

일반 텍스트 충돌 파일에도 되나요?

아니요. 이 스킬은 추측하지 않고, 형식이 맞지 않는다고 알리고 멈춥니다.

Xcode가 필요한가요?

네. Xcode에 들어 있는 심볼 도구를 사용합니다.

상세 정보

작성자의 원본 설명

Symbolicate .NET runtime frames in Apple platform .ips crash logs (iOS, tvOS, Mac Catalyst, macOS). Extracts UUIDs and addresses from the native backtrace, locates dSYM debug symbols, and runs atos to produce function names with source file and line numbers. Automatically downloads .dwarf symbols from the Microsoft symbol server using Mach-O UUIDs. USE FOR triaging a .NET MAUI or Mono app crash from an .ips file on any Apple platform, resolving native backtrace frames in libcoreclr or libmonosgen-2.0 to .NET runtime source code, retrieving .ips crash logs from a connected iOS device or iPhone,

repo: dotnet/skills

인기도

GitHub 스타
5.8k
순위
#14575
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬