To find the source of the problem, in XCode go to Product > Scheme > Edit Scheme, and under Diagnostics tab enable all the Malloc settings and Guard Malloc.
With that, run your application again, and XCode will stop at the line causing the problem.

1
参考:点击打开链接
本文将指导您如何使用Xcode诊断功能定位并解决内存泄漏问题。通过启用Malloc设置和GuardMalloc,运行应用程序时Xcode将在出现问题的代码行停止,帮助您快速定位和修复错误。
4631

被折叠的 条评论
为什么被折叠?



