NSZombie is an Apple OS-specific (OSX and iOS) tool for debugging issues with reference-counting.
NSZombie is an Apple OS-specific (OSX and iOS) tool for debugging issues with reference-counted objects. In particular, it helps you track down objects that are over-released by recording a history of all -retain
and -release
messages sent to all objects created during execution.
When NSZombie is enabled, unbalanced -retain
and -release
messages cause the application to immediately halt and break into the debugger. This allows you to examine the problematic message to determine if there is an extraneous -release
(or -autorelease
), or a missing -retain
.