Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Terminal-only install error for xcode-select on Sierra

Attempts to install command line developer tools with xcode-select --install just returns the following error: xcode-select: note: install requested for command line developer tool but when the dialog box asks me to confirm my request, it says it failed due to a network problem. Obviously I am online, I think the problem is that it isn't properly connecting to the right network.

I have seen in similar threads that on 10.12 Sierra that the command line tools can be installed/updated through the Mac App Store, but after my wireless card and some other components were replaced in my MacBook Pro, I can no longer connect to the App Store (or iCloud and the iTunes or iBooks stores) without getting an error saying my device cannot be verified. I was told by Apple Support to do an erase-and-reinstall to solve the problem, but that didn't work.

This is why I am trying to find a method to install the command line tools directly from Terminal, one which does not require access to the App Store. xcode-select --install` worked fine on El Capitan and below, so I hope this feature is still available, even if the command is different.

Can anyone help me out, or point me toward an alternate solution? If not, I guess I'll have to downgrade.

like image 667
Moscarda Avatar asked Sep 30 '16 22:09

Moscarda


People also ask

How do I install Xcode commandline tools High Sierra?

Go to Terminal in /Applications/Utilities/. In the same way when you are downloading new software and apps, a popup update window will appear asking you: “The xcode-select command requires the command line developer tools. Would you like to install the tools now?” Select confirm by clicking Install.

Can I install Xcode on High Sierra?

Xcode is an integrated development environment (IDE) for macOS containing a suite of software development tools developed by Apple for developing software for macOS, iOS, watchOS, and tvOS.

How do I run Xcode on Mac terminal?

Installing XcodeType “gcc” into the terminal and hit “Enter” (gcc is a compiler that turns source code into executable applications). Alternatively, typing “xcode-select — install” into the terminal works just as well.

Why is Xcode not installing on my Mac?

Open the Mac App Store and sign out of it. Cancel the installation/download. Next, quit the Mac App Store and then restart your Mac. Once you're back on your desktop, open the Mac App Store, sign in again, and then download and install the app.


1 Answers

I looked on the Apple Developer website and found a Developer Tools download for all the versions of Xcode. You need an iCloud ID to download, but not a paid developer account.

https://developer.apple.com/download/more/

like image 197
Moscarda Avatar answered Oct 08 '22 19:10

Moscarda