C 编程和 Xcode
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9027606/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
C programming and Xcode
提问by CodeKingPlusPlus
I am currently enrolled in a C systems programming course, I want to use Xcode (instead of vi). What type of project do I create when I open Xcode?
我目前正在参加 C 系统编程课程,我想使用 Xcode(而不是 vi)。当我打开 Xcode 时,我创建了什么类型的项目?
回答by Dietrich Epp
You probably want Command Line Utility> Standard Tool. This will give you just the ordinary C environment you get on every other OS.
您可能需要Command Line Utility> Standard Tool。这将为您提供在所有其他操作系统上获得的普通 C 环境。
回答by Jon B
Open xcode 6,
打开xcode 6,
Create new project (file menu, new, then project...
创建新项目(文件菜单,新建,然后项目...
Then you'll see a screen "choose a template for your new project"
然后你会看到一个屏幕“为你的新项目选择一个模板”
Choose command line tool.
选择命令行工具。
That's it. You could google creating a command line tool in Xcode, how do I... if you have any further queries.
就是这样。你可以谷歌在 Xcode 中创建一个命令行工具,如果你有任何进一步的疑问,我该怎么做。
回答by smparkes
Mac OS X > Application > Command Line Tool. But I suspect you'd be be better off using vi
, emacs
, or something like TextMate
. I'd guess that most C systems programming courses are going to use Makefiles.
Mac OS X > 应用程序 > 命令行工具。但我怀疑你会被关闭使用更好的vi
,emacs
或者类似的东西TextMate
。我猜大多数 C 系统编程课程都将使用 Makefile。
回答by Carl
If all you want is to write C code, you want a command line tool application.
如果您只想编写 C 代码,那么您需要一个命令行工具应用程序。