EXC_BAD_ACCESS signal received

前端 未结 30 3132
轮回少年
轮回少年 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:16

    Another method for catching EXC_BAD_ACCESS exceptions before they happen is the static analyzer, in XCode 4+.

    Run the static analyzer with Product > Analyze (shift+cmd+B). Clicking on any messages generated by the analyzer will overlay a diagram on your source showing the sequence of retains/releases of the offending object.

    enter image description here

提交回复
热议问题