EXC_BAD_ACCESS signal received

前端 未结 30 3283
轮回少年
轮回少年 2020-11-22 06:37

When deploying the application to the device, the program will quit after a few cycles with the following error:

Program received signal: \"EXC_BAD_ACCESS\".         


        
30条回答
  •  佛祖请我去吃肉
    2020-11-22 07:03

    I just spent a couple hours tracking an EXC_BAD_ACCESS and found NSZombies and other env vars didn't seem to tell me anything.

    For me, it was a stupid NSLog statement with format specifiers but no args passed.

    NSLog(@"Some silly log message %@-%@");
    

    Fixed by

    NSLog(@"Some silly log message %@-%@", someObj1, someObj2);
    

提交回复
热议问题