iOS错误:在iOS12上运行项目会出现错误,但在iOS11上运行正常

Lju*_*jun -1 ios

该项目进入后台,切换wifi网络,然后进入该项目以发出网络请求。请求过程将报告错误。错误消息如下:

xxx(739,0x16ca7f000)malloc:检测到堆损坏,空闲列表在0x280c78fa0处损坏

***防护值不正确:206401777864449

xxx(739,0x16ca7f000)malloc:***在malloc_error_break中设置一个断点进行调试。

在此处输入图片说明

小智 5

xcode10 -- Edit scheme -- Diagnostics -- select "Address Sanitizer"
Run Code Online (Sandbox Code Playgroud)