安装命令行工具 Xcode 5

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

Installing command line tools Xcode 5

xcodecommand-linexcode5osx-maverickscommand-line-tool

提问by Peter Kaminski

I have tried and tried (looked at many headings for this) and I still don't have an answer to my problem. I am trying to install the Pebble SDK 1.12 and install command line tools of Xcode 5.

我已经尝试并尝试过(为此查看了许多标题),但我仍然没有解决我的问题。我正在尝试安装 Pebble SDK 1.12 并安装 Xcode 5 的命令行工具。

Everytime I try xcode-select --install in terminal I get "Can't install software because it is not currently available in the Software Update server"

每次我在终端中尝试 xcode-select --install 时,我都会收到“无法安装软件,因为它目前在软件更新服务器中不可用”

I have tried to reinstall Xcode and that didn't work. When I got to Xcode-preferences-downloads there isn't a section for the command line tools.

我试图重新安装 Xcode,但没有奏效。当我进入 Xcode-preferences-downloads 时,没有命令行工具部分。

I have also tried installing them from the Developer site but to no avail. The download looks correct and then I go to Xcode to see the preferences and the command line tools aren't listed.

我也尝试从开发人员站点安装它们,但无济于事。下载看起来正确,然后我转到 Xcode 查看首选项,但未列出命令行工具。

Anything you all can suggest?

大家有什么可以推荐的吗?

回答by Ngo Quang Huy

Using xcode-select --install in Terminal and choose install tools

在终端中使用 xcode-select --install 并选择安装工具

回答by Ned Deily

On OS X 10.9, the Command Line Toolscomponent no longer appears in the Preferencespane for Xcode 5, unlike on OS X 10.8. Also, the not currently availablemessage appears to be a bug in OS X 10.9 when the currently installed Command Line Toolsare already up-to-date. If you have a populated /usr/includedirectory and /usr/bin/cc --versiongives you something, you're probably fine.

在 OS X 10.9 上,该Command Line Tools组件不再出现在PreferencesXcode 5的面板中,这与 OS X 10.8 不同。此外,not currently available当当前安装Command Line Tools的已经是最新的时,该消息似乎是 OS X 10.9 中的一个错误。如果您有一个已填充的/usr/include目录并/usr/bin/cc --version为您提供了一些东西,那么您可能没问题。