xcodenszombie

How to enable NSZombie in Xcode?


I have an app that is crashing with no error tracing. I can see part of what is going on if I debug, but can't figure out which object is "zombie-ing".

Does anybody know how to enable NSZombie in Xcode 4?


Solution

  • Environment variables are now part of the "scheme".

    To edit the scheme and turn on zombies:


    In Xcode 4.1 and above, there's also a checkbox on the "Diagnostics" tab of the "Run" stage to "Enable Zombie Objects".


    With Xcode 6.4:

    Screenshot