Xcode 缺少命令行实用程序部分 - 无法启动 Foundation 项目模板

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1801009/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:58:30  来源:igfitidea点击:

Xcode missing Command Line Utility section - can't start Foundation project template

iphonexcode

提问by Liza

I downloaded the iPhone SDK from the iPhone dev center a couple of days ago and installed it yesterday. I'm following the Stanford iPhone development tutorials available on iTunes U. On Assignment 1B, the first instruction is to open a new Foundation Project template. The screenshot shows several sections in Xcode which my version doesn't seem to have, including the Command Line Utility section which the Foundation Project template is shown to be in.

几天前我从 iPhone 开发中心下载了 iPhone SDK,并于昨天安装了它。我正在关注 iTunes U 上提供的斯坦福 iPhone 开发教程。在作业 1B 中,第一条指令是打开一个新的 Foundation Project 模板。屏幕截图显示了 Xcode 中我的版本似乎没有的几个部分,包括显示 Foundation Project 模板所在的命令行实用程序部分。

Does this need to be installed manually? I tried searching on Google with no luck. The fact that I'm an OS X newbie doesn't really help any either.

这个需要手动安装吗?我尝试在谷歌上搜索但没有运气。我是 OS X 新手这一事实也无济于事。

Thanks in advance!

提前致谢!

回答by Rob Napier

Are you running on Snow Leopard?(10.6)? I would assume the Stanford class is Leopard (10.5). These have different versions of Xcode. The new layout is actually a bit nicer, but you'll have to poke around a bit to find the equivalents of the old templates. In many cases, they've merged things that used to be separate templates into a single template with options. They one you're probably looking for is now in "Mac OS X>Application>Command Line Tool" and then you select "Foundation" as the type.

你在雪豹上跑步吗?(10.6)?我认为斯坦福班级是 Leopard (10.5)。这些有不同版本的 Xcode。新布局实际上更好一些,但您必须四处寻找一下才能找到旧模板的等效项。在许多情况下,他们将曾经是单独模板的东西合并到一个带有选项的模板中。您可能正在寻找的它们现在位于“Mac OS X>应用程序>命令行工具”中,然后您选择“基础”作为类型。

回答by Edmund

It works! After selecting Command Line Tool, you can find the "Foundation" type that Rob mentioned in a little drop down menu near the middle of the window

有用!选择Command Line Tool后,你可以在靠近窗口中间的一个小下拉菜单中找到Rob提到的“Foundation”类型

To add on, the Type selection is in the same page as selecting Command Line Tool, the default type is : C

另外,类型选择与选择命令行工具在同一页面,默认类型为:C