NSZombieEnabled does not work

前端 未结 8 1790
谎友^
谎友^ 2020-12-15 07:59

When I set NSZombieEnabled = Yes nothing is written to the console. How can I fix this? Or can you advise me any other tools for an EXC_BAD_ACCESS?

8条回答
  •  悲&欢浪女
    2020-12-15 08:11

    As I just spent a happy 20 minutes staring at this with NSZombieEnabled not working, I thought I'd add this will cause a EXC_BAD_ACCESS

    NSArray *arr = [NSArray arrayWithObjects:@"@dog","@cat",nil];
    

    Note the missing '@' on the second param. I didn't :-)

提交回复
热议问题