,利用makefile以x code 4运行C程序 [英] Run C program in Xcode 4 using makefile

查看:146
本文介绍了,利用makefile以x code 4运行C程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了X $ C $的C 4外部生成项目使用一个makefile。该项目建立完美的,但我知道如何得到它运行在终端的唯一途径。

I have created an 'External Build Project' in Xcode 4 using a makefile. The project builds perfectly, except the only way I know how to get it to run is in Terminal.

有没有一种方法,我可以在X code 4节目或者是终端呢?

Is there a way I can run the program in Xcode 4 or is Terminal it ?

推荐答案

是的,你需要创建一个自定义的可执行文件,所以x code已经知道了您生成的可执行文件所在以及如何运行它。在第X code 3是项目 - > 新建自定义可执行文件...

Yes, you need to create a Custom Executable, so that Xcode knows where your built executable resides and how to run it. In Xcode 3 it's Project -> New Custom Executable....

这将允许您运行可执行,甚至做源代码级调试,如果你已经添加源$ C ​​$ C到项目中。唯一的小麻烦是,你必须手动选择哪些自定义的可执行文件是积极的,当你如之间切换调试和发布版本。

This will allow you to to run your executable and even do source level debugging if you have added the source code to the project. The only minor hassle is that you have to manually select which custom executable is "active" when you switch between e.g. debug and release builds.

请注意重X $ C $的C 4:我不使用的是X code 4,但看的联机帮助在最近的等价于x code 3的自定义的可执行文件似乎是:

Note re Xcode 4: I don't use Xcode 4 but looking at the online help the nearest equivalent to Xcode 3's "custom executable" seems to be:

自定义在方案编辑器结果可执行文件
要自定义一个产品是指X code 3推出的环境中,您单击组和放可执行;文件列表,然后打开信息窗口。在第X code 4,选择从计划弹出的编辑活动方案,并选择要运行(图3-10)的产品。请注意,您可以选择以更高的UI分辨率显示正在运行的产品,以模拟在不同的显示分辨率运行。

这篇关于,利用makefile以x code 4运行C程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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