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

前端 未结 10 2081
难免孤独
难免孤独 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:22

    I recently upgraded from OSX 10.8 to 10.12 and ran into this using Qt 5.7

    The issue was resolved by a combination of:

    1) FranklinA's suggestion:

    Open Xcode->Preferences->Locations->command line tools..select the CLT xcode-select active developer directory error

    ..and..

    2) adding to the .pro file the following line: QMAKE_MAC_SDK = macosx10.12

提交回复
热议问题