Loading...
Loading...
iOS debugging and troubleshooting skills. Used when users need to investigate and diagnose issues such as crashes, exceptions, runtime errors, memory leaks, memory growth, unreleased ViewController, UI lag, frame drops, slow startup, etc. Provides crash type identification, root cause analysis, LLDB commands and repair solutions.
npx skill4agent add choshimwy/iosagentskills debugging| Exception Type | Common Causes | Troubleshooting Direction |
|---|---|---|
| EXC_BAD_ACCESS | wild pointer, force unwrap nil, array out of bounds | Check optional value unwrapping, array boundaries, multi-thread access |
| EXC_BAD_INSTRUCTION | fatalError, preconditionFailure | Check force unwrap, array out of bounds |
| SIGABRT | NSException, unrecognized selector | Check exception information, inspect ObjC interoperation |
| Watchdog | Main thread blocking timeout | Check main thread synchronous I/O, deadlocks |
guard letif let??array[safe: index]Task {}po <variable>btbt allexpr <expression>UIViewAlertForUnsatisfiableConstraintsobjc_exception_throw🔍 Crash 类型: [类型]
📍 崩溃位置: [文件:方法:行]
💡 根因分析: [分析]
🔧 修复方案: [代码]
🛡️ 防御建议: [如何预防]// skill-used: debugging