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

今天用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"))))

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



你可能感兴趣的:(QT)