加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-14 17:44:09 所属栏目:百科 来源:网络整理
导读:我正在尝试安装最新版本的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,然后在终端
我正在尝试安装最新版本的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,错误再次出现.第二次被接受并且安装继续进行.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读