点击scheme下拉菜单 -> 编辑scheme -> arguments, 然后将点击”加号”, 将NSZombieEnabled参数加到Environment Variables窗口中, 后面的数值写上”YES”.

xCode3:

target下有个executables

打开它的info  在arguments栏

下半边 加上个参数

name:NSZombieEnabled  value:yes 然后购上

在debug模式下 以前的bad_access会多点log 帮你定位

相关文章:

  • 2021-04-12
  • 2022-12-23
  • 2021-09-15
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-17
  • 2021-06-08
  • 2021-05-10
  • 2021-06-14
  • 2021-09-06
  • 2021-09-23
相关资源
相似解决方案