原文: http://www.cnblogs.com/mac_arthur/archive/2010/04/09/1708364.html
xcode 4
Edit Scheme --- Argument ---Environment Variables里添加NSZombieEnabled属性,value为yes
当过度释放对象时,会在控制台上出现如下信息:
-[GameLayer retain]: message sent
to deallocated instance 0x59bf670
当问题解决后,要将NSZombieEnabled设置为无效,不需要删除变量,将变量前的对号去掉就可以了: