如何使用Zombies仪器运行iPhone程序? [英] How to run iPhone program with Zombies instrument?
问题描述
我在Snow Leopard上运行XCode 3.2而我正试图对我的应用程序运行Zombies乐器,但选择是灰色的,我不知道为什么。我知道NSZombieEnabled环境变量。我的应用程序设置为YES。我不确定这是否重要,但是,该应用程序是我开始使用之前版本的XCode在Leopard上开发的应用程序。以下是我的菜单的截图:
I'm running XCode 3.2 on Snow Leopard and I'm trying to run the Zombies instrument against my app but the selection is grayed out and I don't know why. I know about the NSZombieEnabled environment variable. I have that set to YES on my application. I'm not sure if this matters, but, the app is an app that I started developing on Leopard with the previous version of XCode. Here is a screenshot of what my menu looks like:
推荐答案
您需要从XCode外部使用Zombies仪器启动Instruments应用程序
您可以这样做:
Instruments应用程序通常位于 / Developer / Applications /
,但您也可以使用Spotlight查找它。
The Instruments application is usually located inside /Developer/Applications/
, but you can also use Spotlight to find it.
当仪器启动时,您应该看到一个屏幕,要求您为新的跟踪文档选择一个模板。
When Instruments starts you should be presented with a screen that asks you to choose a template for the new Trace Document.
选择: iPhone模拟器>记忆>僵尸
接下来你需要选择目标。
Next you need to choose a target.
转到:选择目标>选择目标>选择目标...
现在您需要选择应用程序文件:
< ;您的iPhone项目的路径> / build / Debug-iphonesimulator /<应用程序名称>
并按选择
。
Now you need to select the application file:
<Path to your iPhone project>/build/Debug-iphonesimulator/<Application name>
and press Chose
.
现在你已经完成了设置。
Now you are all set.
要启动你的应用程序,请按记录
按钮。
To launch you application press the Record
button.
一些附注:
- 我在Mac OS X 10.6.3上使用了XCode 3.2.3,但我相信它在之前版本中的工作原理相同。
- Zombies乐器只适用于模拟器。
- Zombies乐器不能与Leaks乐器一起使用,因为所有的僵尸都会出现泄漏。
- 我也想知道为什么XCode中的菜单显示为灰色。
- I used XCode 3.2.3 on Mac OS X 10.6.3, but I believe it works the same on previous versions.
- The Zombies instrument only works with the simulator.
- The Zombies instrument cannot be used with the Leaks instrument because all the zombies would appear as leaks.
- I would also like to know why the menu in XCode is grayed out.
这篇关于如何使用Zombies仪器运行iPhone程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!