I just downloaded the latest version of Xcode (5.0) and need it to develop some code in Lazarus. However, the installation requires me to use command‐line tools, which experience a problem while downloading.
When I click install, the program returns this error message:
Failed to install 'Command Line Tools' An unknown error occurred. Please try again later.
I have also tried using other IDEs, like lightweight, but they all require Free Pascal, which is the tool that needs command‐line tools.
Does anyone know what the problem is?
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
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 solution is to download directly, see below.
The command line tools are no longer available via Xcode.
They must be downloaded from the Apple Developer site. This requires signing in with a developer account.
Or they can be installed from the terminal using xcode-select --install
for certain version of xcode-select`.
For more complete information see this SO answer
Try again later, it is probably a transient server/network error.
See this SO answer
Xcode 5 screenshot: