概要
This skill provides a systematic framework for identifying and fixing the primary cause of memory leaks in Objective-C: block retain cycles. It guides developers through mandatory diagnostic procedures using Xcode Instruments and the Memory Debugger to verify leaks before applying code changes. By offering detailed implementation patterns for standard weak-strong references, hidden captures within macros, and complex nested blocks, the skill ensures xOS applications maintain a stable memory baseline and avoid crashes caused by messaging deallocated instances.