How to enable NSZombie in Xcode?

后端 未结 15 2063
梦毁少年i
梦毁少年i 2020-11-21 05:20

I have an app that is crashing with no error tracing. I can see part of what is going on if I debug, but can\'t figure out which object is \"zombie-ing\".

Does anyb

15条回答
  •  忘掉有多难
    2020-11-21 06:11

    NSZombieEnabled is used for Debugging BAD_ACCESS,

    enable the NSZombiesEnabled environment variable from Xcode’s schemes sheet.

    Click on Product⇒Edit Scheme to open the sheet and set the Enable Zombie Objects check box

    this video will help you to see what i'm trying to say.

提交回复
热议问题