Unsolved Install from scratch new empty project won't compile
-
Hi,
What do you get if you run
xcodebuild -showsdks
? -
@SGaist said in Install from scratch new empty project won't compile:
xcodebuild -showsdks
07:46 $ xcodebuild -showsdks iOS SDKs: iOS 12.0 -sdk iphoneos12.0 iOS Simulator SDKs: Simulator - iOS 12.0 -sdk iphonesimulator12.0 macOS SDKs: macOS 10.14 -sdk macosx10.14 tvOS SDKs: tvOS 12.0 -sdk appletvos12.0 tvOS Simulator SDKs: Simulator - tvOS 12.0 -sdk appletvsimulator12.0 watchOS SDKs: watchOS 5.0 -sdk watchos5.0 watchOS Simulator SDKs: Simulator - watchOS 5.0 -sdk watchsimulator5.0
-
Which one of these SDK's is referred to when the error mentions "Platform SDK" ?
-
Since you are building for macOS, it's macosx10.14.
I would do a search on your machine in order to find if there's any
.qmake.*
file lying around containing 10.11 -
@SGaist said in Install from scratch new empty project won't compile:
.qmake.*
found all items of .qmake.* and removed them.
still same error.just figured out if i change to use qbs instead of qmake it works..
searched for all instances of qmake :/Users/clogwog/Qt/5.11.2/ios/bin/qmake /Users/clogwog/Qt/5.11.2/android_armv7/bin/qmake /Users/clogwog/Qt/5.11.2/android_x86/bin/qmake /Users/clogwog/Qt/5.11.2/clang_64/bin/qmake /Users/clogwog/Qt/Examples/Qt-5.11.2/qmake /Users/clogwog/Qt/Docs/Qt-5.11.2/qmake /Users/clogwog/Qt/5.11.2/Src/qtbase/tests/auto/tools/qmake /Users/clogwog/Qt/5.11.2/Src/qtbase/qmake/doc/snippets/qmake /Users/clogwog/Qt/5.11.2/Src/qtbase/qmake /Users/clogwog/Qt/5.11.2/Src/qtbase/examples/qmake
and /Users/clogwog/Qt was empty before the install using the online installer.
i guess i can continue just using qbs
just wish i knew what is going on here.
-
Did you try to search for any file containing 10.11 ?
-
@SGaist yes, can't find any Qt related file that still points to 10.11
-
I seem to suffer from same problem, except the error shows different version. Tried following:
shenanigans:qml_tagsutest jartza$ qmake Project WARNING: Qt requires at least version 10.14 of the platform SDK, you're using 10.13. Please upgrade.
but:
shenanigans:qml_tagsutest jartza$ xcrun --show-sdk-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
and
shenanigans:qml_tagsutest jartza$ xcodebuild -showsdks iOS SDKs: iOS 12.0 -sdk iphoneos12.0 iOS Simulator SDKs: Simulator - iOS 12.0 -sdk iphonesimulator12.0 macOS SDKs: macOS 10.14 -sdk macosx10.14 tvOS SDKs: tvOS 12.0 -sdk appletvos12.0 tvOS Simulator SDKs: Simulator - tvOS 12.0 -sdk appletvsimulator12.0 watchOS SDKs: watchOS 5.0 -sdk watchos5.0 watchOS Simulator SDKs: Simulator - watchOS 5.0 -sdk watchsimulator5.0
//Jartza
-
@Jartza i know it's not a fix, but if you switch to the QBS build system instead of qmake it seems to work.
-
Hi... I'm facing the same problem and well... here is what I get looking for 10.11 on "qmake" files:
~/Qt/5.11.2/clang_64/mkspecs/macx-clang/qmake.conf (1)
5 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.11
~/Qt/5.11.2/clang_64/mkspecs/macx-g++/qmake.conf (1)
13 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.11
~/Qt/5.11.2/clang_64/mkspecs/macx-icc/qmake.conf (1)
101 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.11But even if I change this values to 10.14, the error persists
-
I'd like to indicate that I have the sam issue. I ran into the problem because I had an older version of XCode, I upgraded, but the problem persists, i.e. qmake is referring to my using 9.3 of iOS simulators, when I have 10.x installed. Creator build config validates the various versions of iOS simulators I have are in fact new.
-
-
@SVRG Thank you. It worked.
-
@SVRG Worked for me too thanks !
-
@SVRG Worked for me as well, thanks!