ios Xcode 5.0 安装命令行工具时出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19066647/
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
Xcode 5.0 Error installing command line tools
提问by lazyboy007
I just downloaded the last version for Xcode (5.0) and need it develop some Pascal codes on Lazarus. However, the installation requires me to use command line tools, which have a problem downloading. When I click install, the program sends me this error message: "Failed to install 'Command Line Tolls' An unknown error occurred. Please try again later."
我刚刚下载了 Xcode (5.0) 的最新版本,需要它在 Lazarus 上开发一些 Pascal 代码。但是,安装需要我使用命令行工具,下载有问题。当我单击安装时,程序向我发送此错误消息:“无法安装‘命令行收费’发生未知错误。请稍后再试。”
I have also tried using other IDEs, like lightweight, but they all require Free Pascal, which is the tool that needs command line tools.
我也尝试过使用其他 IDE,比如轻量级,但它们都需要 Free Pascal,这是需要命令行工具的工具。
Does anyone know what the problem is?
有谁知道问题是什么?
Thanks in advance :)
提前致谢 :)
回答by zaph
Xcode 5.1 and OSX 10.9.
Xcode 5.1 和 OSX 10.9。
xcode-select --install
worked with version 2333, failed with version 2003. So, try xcode-select --install
and if that does not work download as described below.
xcode-select --install
使用版本 2333,使用版本 2003 失败。因此,请尝试xcode-select --install
,如果不起作用,请按如下所述下载。
arly February 2014
2014 年 2 月
xcode-select --install
has been reporting that "Can't install the software because it is not currently available from the Software Update server". In late February 2014 the command started only displaying help. The solutionis to download directly, see below.
xcode-select --install
一直报告“无法安装该软件,因为软件更新服务器当前不可用”。2014 年 2 月下旬,该命令开始仅显示帮助。该解决方案是直接下载,见下文。
Xcode 5.0.1 and Mavericks 10.9
Xcode 5.0.1 和小牛队 10.9
The command line tools are no longer available via Xcode.
命令行工具不再可通过 Xcode 使用。
Direct download
直接下载
They must be downloaded from the Apple Developer site. This requires signing in with a developer account.
它们必须从Apple Developer 站点下载。这需要使用开发者帐户登录。
Or they can be installed from the terminal using xcode-select --install
for certain version of xcode-select`.
或者可以使用xcode-select --install
特定版本的 xcode-select`从终端安装它们。
For more complete information see this SO answer
有关更完整的信息,请参阅此SO 答案
Try again later, it is probably a transient server/network error.
稍后再试,可能是暂时的服务器/网络错误。
See this SO answer
看到这个SO答案
Xcode 5screenshot:
Xcode 5截图:
回答by Bruce Geerdes
Download and re-install didn't work for me. Had to go to Xcode and choose whichinstall to use in Preferences/Locations. (I had accumulated several from Xcode 4, 5 and 6.)
下载并重新安装对我不起作用。不得不去Xcode和选择其安装在首选项/地区使用。(我从 Xcode 4、5 和 6 中积累了几个。)