概要
This skill provides a comprehensive methodology for identifying and fixing the leading cause of memory leaks in Objective-C: block retain cycles. It guides developers through mandatory diagnostic workflows using Xcode Instruments and the Memory Debugger to confirm leaks before applying battle-tested implementation patterns. By focusing on the weak-strong 'dance,' handling nested blocks, and identifying hidden self-references in macros like NSAssert and NSLog, this skill ensures xOS applications maintain a clean memory footprint and avoid common 'message sent to deallocated instance' crashes.