我正在尝试安装最新版本的Qt for mac(
https://www.qt.io/).但是当我尝试安装时,我得到一个错误.
You need to install Xcode 07001. If already
installed,then set active developer directory with ‘xcode-select’.
我现在安装了xcode 7.3.1,然后在终端中运行以下命令:
sudo xcode-select -switch /Applications/Xcode.app
但我仍然遇到同样的错误(见截图).
任何人都可以建议我如何解决这个问题?
解决方法
这解决了我的错误.
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
它来自这里的答案. https://stackoverflow.com/a/17980786/2009221
我第一次点击OK,错误再次出现.第二次被接受并且安装继续进行.