Debug Memory Leaks三步曲
1)Add NSZombieEnabled variable with YES value into "Variables to be set in the environment" of "Excutables" Arguments of side tree of project.
2)"Build and Analyze in Xcode" in top "Build" menu item.
3)"Run with Performance Tool" in top "Run" menu item.
本文介绍了一种利用Xcode进行内存泄漏检测的方法,分为三步:首先,在项目的可执行文件环境中设置AddNSZombieEnabled变量为YES;其次,通过Xcode的“构建并分析”功能;最后,使用性能工具运行应用来定位潜在的内存泄漏问题。
4773

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



