Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /

来源:互联网 发布:上海企浩 网络推广 编辑:程序博客网 时间:2024/05/14 22:19

今天用Qt Creator打开项目提示Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.

应该是之前更新了xcode的原因,百度发现也有人遇到过 http://blog.csdn.net/firebolt2002/article/details/52549496

照里面的方法操作

1. 命令行输入 

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

2. 命令行输入

sudo xcodebuild -license

输入 agree

3. 前往文件路径

/Users/xxxx/Qt5.7.0/5.7/clang_64/mkspecs/features/mac

编辑default_pre.prf文件,搜索xcrn

isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))))

修改成

isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))))

保存退出  重新打开项目,问题解决



0 0
原创粉丝点击