I'm trying to install the latest version of Qt
for mac (https://www.qt.io/). But when I try to install I get an error.
You need to install Xcode http://developer.apple.com/xcode. If already installed, then set active developer directory with ‘xcode-select’.
I've now installed xcode 7.3.1
, and then ran the following in terminal:
sudo xcode-select -switch /Applications/Xcode.app
But I'm still running into the same error (see screenshot).
Can anyone advise how I might troubleshoot this?
You can install the Command Line Tools package by running the xcode-select --install command. Note: macOS comes bundled with xcode-select , a command-line tool that is installed in /usr/bin . It allows you to manage the active developer directory for Xcode and other BSD development tools.
Start Xcode on the Mac. Choose Preferences from the Xcode menu. In the General window, click the Locations tab. On the Location window, check that the Command Line Tools option shows the Xcode version (with which the Command Line Tools were installed).
This fixed my error.
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
It came from the answer here. https://stackoverflow.com/a/17980786/2009221
The first time I clicked OK the error reappeared. The second time it was accepted and the installation continued.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With