Axiom: Objective-C Block Retain Cycle Fixer
Diagnoses and resolves Objective-C memory leaks by implementing systematic weak-strong patterns for block-based references.
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.
主な機能
01Systematic weak-strong pattern implementation for circular references
02Step-by-step diagnostic workflows for Xcode Instruments and Memory Graph
03233 GitHub stars
04Detection of hidden self-references in macros like NSAssert and NSLog
05Resolution strategies for nested block captures and async callbacks
06Comprehensive decision tree to distinguish leaks from normal memory usage
ユースケース
01Fixing UIViewController instances that fail to deallocate after dismissal
02Resolving crashes caused by blocks executing after their owner has been deallocated
03Optimizing memory usage in networking-heavy iOS and macOS applications