Error: Could not resolve SDK path for 'macosx10.8'

前端 未结 10 2092
难免孤独
难免孤独 2020-11-28 08:47

So I just installed qt around 5 minutes ago, and when I wanted to code a simple line of text in the Push Button and try to run it, I got this error:

:-1: error: Coul

10条回答
  •  醉酒成梦
    2020-11-28 09:23

    Using QT 5.7.0, Mac OSX Sierra (10.12), XCode 8.0, I got the typical error coming from searching in:

    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
    

    instead of:

    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
    

    Adding the line

    !host_build:QMAKE_MAC_SDK = macosx10.12
    

    to the Qt/5.7/clang_64/mkspecs/qdevice.pri file, worked for me.

提交回复
热议问题