如何启用Guard Malloc [英] How to Enable Guard Malloc

查看:192
本文介绍了如何启用Guard Malloc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个愚蠢的问题.该文档说:

This is a stupid question. The documentation says:

要使用Guard Malloc启用调试,请在运行项目之前在Xcode中选择运行">启用Guard Malloc"选项.在启用此选项的情况下构建和运行您的应用程序会自动使用Guard Malloc库运行您的应用程序.您既可以在Mac OS X应用程序中使用此选项,也可以在模拟器中运行的iPhone应用程序中使用此选项.

To enable debugging using Guard Malloc, choose the Run > Enable Guard Malloc option in Xcode before running your project. Building and running your application with this option enabled runs your application using the Guard Malloc library automatically. You can use this option both Mac OS X applications and also for iPhone applications running in the simulator.

http://developer.apple .com/library/ios/#documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html

是的,请转到运行">启用Guard Malloc".没有运行"菜单!!!!!

So yea yea go to Run > Enable Guard Malloc. There is no Run menu!!!!!

菜单是Xcode文件编辑视图导航编辑器产品窗口帮助

The menus are Xcode File Edit View Navigate Editor Product Window Help

没有运行"菜单.那我该怎么办?

There is no Run menu. So what the hell I should do?

推荐答案

转到方案(通过产品">编辑方案"),然后选择所需的生成配置,然后导航到诊断"菜单,然后检查启用Guard Malloc"复选框:

Go to your Schemes (via Product > Edit Scheme), then select the build configuration that you want, then navigate to the "Diagnostics" menu, and then check the "Enable Guard Malloc" checkbox:

这篇关于如何启用Guard Malloc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆