What problem does it solve?
Quickly identify and resolve crashes, memory leaks, retain cycles, main-thread hangs, and performance regressions in iOS apps by prescribing effective debugging and profiling workflows with LLDB, Xcode's Memory Graph, and Instruments.
Core Features & Use Cases
- LLDB workflows: targeted breakpoints, watchpoints, expression evaluation, and frame navigation to inspect runtime state and reproduce failures.
- Memory debugging: Memory Graph Debugger, malloc stack logging, common retain-cycle patterns, and Instruments Allocations/Leaks templates to locate and fix leaks.
- Hang and performance analysis: Time Profiler, Core Animation, SwiftUI, Network, Energy Log templates, xctrace CLI for CI, and signposts integration for correlating application events with traces.
- Build failure triage and diagnostics: reading compiler output, resolving SPM issues, and troubleshooting linker/module errors to restore a reproducible debug build.
- Use case: Reproduce a UI hang on a device, record a Time Profiler trace, identify a heavy main-thread function via the call tree, and convert that finding into a concrete refactor plan to move blocking work off the main thread.
Quick Start
Use this skill to analyze a reproducible memory leak by running Allocations and Leaks in Instruments, capturing malloc stack traces, inspecting the reference graph, and recommending code changes.