Xcode对象在打印的时候有值,断点调试却没值, 这是怎么回事?



把对应scheme 的 optimization level 设置成None.
Xcode编译失败(build failed) 但是没有报错

NSZombieEnabled ,解决EXC_BAD_ACCESS错误的一种方法


菜单 Product -> Edit Scheme-> Arguments, 然后将点击”加号”, 将 NSZombieEnabled 参数加到Environment Variables 窗口中, 后面的数值写上 ”YES”.