Xcode -> Product ->Scheme ->Edit Scheme
1,Arguments -> Environment Varibles 添加 NSZombieEnabled 值为YES
2,Diagnostics -> Enable Zoomble Objects 勾选上
重启Xcode!
OK
程序崩溃时,控制台就会打印谁被dealloc了 ,这个方法专门用来处理EXC_BAD_ACCESS
Xcode -> Product ->Scheme ->Edit Scheme
1,Arguments -> Environment Varibles 添加 NSZombieEnabled 值为YES
2,Diagnostics -> Enable Zoomble Objects 勾选上
重启Xcode!
OK
程序崩溃时,控制台就会打印谁被dealloc了 ,这个方法专门用来处理EXC_BAD_ACCESS