apple-crash-symbolication
यह क्या करती है
यह स्किल Apple platforms पर .NET ऐप के crash log के native हिस्से को समझती है। यह उन ऐप डेवलपर के लिए है जो .NET MAUI या Mono ऐप के crashes की जाँच करते हैं, जो सिर्फ़ कच्चे addresses दिखाते हैं।
कब इस्तेमाल करें
- ✓जब .NET MAUI ऐप iOS, macOS या Mac Catalyst पर क्रैश हो और .ips log में कच्चे addresses दिखें।
- ✓जब आपको Apple crash के .NET runtime frames के नाम और स्थान चाहिए।
- ✓जब आप जुड़े device से crash logs लाकर उन्हें डिकोड करना चाहें।
Skill का लिंक
https://github.com/dotnet/skills/blob/main/plugins/dotnet-diag/skills/apple-crash-symbolication/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे iPhone MAUI ऐप के इस .ips crash log का native backtrace डिकोड कीजिए और function नाम दिखाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट log का format जाँचता है, image identifiers और addresses पढ़ता है, मेल खाते debug symbols खोजता है, और Xcode के symbol टूल से पढ़ने योग्य नाम और lines निकालता है।
तकनीकी सामग्री (मूल 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]hasname,base(load address),uuid,archfor each loaded binarythreads[N].frames[M]hasimageOffset,imageIndex; frame address =usedImages[imageIndex].base + imageOffsetexception.type,exception.signal(e.g.,EXC_CRASH/SIGABRT)asi(Application Specific Information) often contains the managed exception messagelastExceptionBacktracehas frames from the exception that triggered the crashfaultingThreadis the index into thethreadsarray
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
अक्सर पूछे जाने वाले सवाल
किस log format की ज़रूरत है?
इसे .ips JSON crash format चाहिए, जो iOS 15 और macOS 12 या बाद के वर्ज़न में इस्तेमाल होता है।
क्या सादे text crash file के साथ काम करेगी?
नहीं। स्किल अनुमान लगाने के बजाय format की गड़बड़ी बताकर रुक जाती है।
क्या इसके लिए Xcode चाहिए?
हाँ। यह Xcode के साथ आने वाला symbol टूल इस्तेमाल करती है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
create-custom-agent
5.8kयह आपके एजेंट को VS Code के custom agent फ़ाइलें बनाने देती है, जिनके अपने tools, निर्देश और दूसरे agents को handoffs होते हैं।
create-skill
5.8kयह आपके एजेंट को सही नाम, साफ़ trigger विवरण और मानक के अनुसार SKILL.md फ़ाइल वाली नई agent skill बनाने में मदद करती है।
csharp-scripts
5.8kयह आपके एजेंट को .NET command line टूल से एक छोटा C# प्रोग्राम एकल फ़ाइल के रूप में चलाने देती है, पूरा प्रोजेक्ट बनाए बिना।
dotnet-pinvoke
5.8kयह आपके एजेंट को .NET से native C या C++ libraries सही तरीके से कॉल करने में मदद करती है, जिसमें signatures, string संभालना, memory और सुरक्षित handles शामिल हैं।
मिलती-जुलती skills
android-clean-architecture
280kयह आपके एजेंट को Android projects को व्यवस्थित तरीके से संभालने देता है। यह code को ऐसा ढांचा देता है कि उसकी देखभाल और नए features जोड़ना आसान हो।
compose-multiplatform-patterns
280kKMP projects में Compose Multiplatform और Jetpack Compose patterns इस्तेमाल करने में आपके एजेंट की मदद करता है। इसमें state, navigation, theming और performance शामिल हैं।
dart-flutter-patterns
280kयह आपके एजेंट को Dart और Flutter apps के लिए code लिखने देता है। यह आधुनिक patterns इस्तेमाल करके मज़बूत और आसानी से संभलने वाले apps बनाता है।