“Thread 6 com.apple.NSURLConnectionLoader: Program received signal: EXC_BAD_ACCESS”

后端 未结 3 1427
情歌与酒
情歌与酒 2020-12-13 21:12

The app crashes about 15 seconds after launching and XCode just breaks at an address and gives me a pop up that says \"Thread 6 com.apple.NSURLConnectionLoader: Program rece

3条回答
  •  感动是毒
    2020-12-13 21:15

    Set NSZombieEnabled, MallocStackLogging, and guard malloc in the debugger. Then, when your App crashes, type this in the gdb console:

    (gdb) info malloc-history 0x543216
    

    Replace 0x543216 with the address of the object that caused the crash, and you will get a much more useful stack trace and it should help you pinpoint the exact line in your code that is causing the problem.

    See this article for more detailed instructions.

提交回复
热议问题