您的位置:首页 > 编程语言

EXC_BAD_ACCESS & NSZombieEnabled & 设置Global Breakpoint定位错误代码所在位置

2011-10-11 10:45 621 查看
原文: 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设置为无效,不需要删除变量,将变量前的对号去掉就可以了:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: