解決mac下qt工程編譯錯誤:Xcode not set up properly. You may need to confirm the license agreement by running

1.qt版本5.5.1(其它版本應該也類似)

2.系統:mac os 10.12.5


xcode版本>= 8.x

打開:qt安裝目錄/5.5.1/clang_64/mkspecs/features/mac/default_pre.prf

將:

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

裏面的  xcrun 替換爲:

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

xcode版本<8.0

先:

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

然後:

sudo xcodebuild -license

然後選擇agree


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章