在Xcode 4中添加一个外部可执行文件 [英] Adding an external executable in Xcode 4

查看:123
本文介绍了在Xcode 4中添加一个外部可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在OS X上调试Firefox代码。
我正在阅读此页,它告诉我:


现在您需要添加可执行文件。选择Project> New Custom
Executable并输入一个漂亮的名字,然后点击Choose按钮到
找到你要调试的.app文件(Mozilla.app,Firefox.app,
DeerParkDebug .app等)。 .app文件是

但是在xcode 4中没有项目菜单。我似乎无法找到如何添加自定义可执行文件。我已经成功地构建了Firefox,但我无法调试它,因为我不知道如何在Xcode 4中添加可执行文件。我怀疑链接中的步骤是针对Xcode 3的。


I would like to debug Firefox code on OS X. I'm reading from this page and it tells me:

Now you need to add the executable. Select Project > New Custom Executable and type a pretty name, then click the Choose button to locate the .app file that you want to debug (Mozilla.app, Firefox.app, DeerParkDebug.app etc). The .app file is

But with xcode 4 there is no Projects menu. I can't seem to find out how to add a custom executable. I have successfully built Firefox but I just can't debug it because I don't know how to add an executable in Xcode 4. I suspect the steps in the link were for Xcode 3.

解决方案

Under Xcode 4 you will have to edit a scheme to run an executable. Select a scheme (or duplicate one for your target) then select the "Run" phase. You will see an "Executable" pop-up menu, select which executable you wish to use then run your target. There are other settings for specifying the arguments, etc just as in Xcode 3.

这篇关于在Xcode 4中添加一个外部可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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