如何使用’xcode-select’为Qt安装设置活动的开发人员目录?

前端之家收集整理的这篇文章主要介绍了如何使用’xcode-select’为Qt安装设置活动的开发人员目录?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试安装最新版本的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

但我仍然遇到同样的错误(见截图).

enter image description here

任何人都可以建议我如何解决这个问题?

解决方法

解决了我的错误.

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

它来自这里的答案. https://stackoverflow.com/a/17980786/2009221

我第一次点击OK,错误再次出现.第二次被接受并且安装继续进行.

猜你在找的Xcode相关文章