QtCreator fails on MacOS SDK 12.3
-
My QT version is 5.12.12
I have MacOS Monterey 12.6
When I create a new standard project in QtCreator I get the following error and the mainwindow didn't came out:
:-1: warning: Project WARNING: Qt has only been tested with version 11.0 of the platform SDK, you're using 12.3. :-1: warning: Project WARNING: This is an unsupported configuration. You may experience build issues, and by using :-1: warning: Project WARNING: the 12.3 SDK you are opting in to new features that Qt has not been prepared for. :-1: warning: Project WARNING: Please downgrade the SDK you use to build your app to version 11.0, or configure :-1: warning: Project WARNING: with CONFIG+=sdk_no_version_check when running qmake to silence this warning.
Below is the screenshot for the error
I've try several methods, including add those commands in the .pro file:
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.15 CONFIG += sdk_no_version_check
It still didn't work out.
When I type xcodebuild -showsdks, I get:
DriverKit SDKs: DriverKit 21.4 -sdk driverkit21.4 iOS SDKs: iOS 16.0 -sdk iphoneos16.0 iOS Simulator SDKs: Simulator - iOS 16.0 -sdk iphonesimulator16.0 macOS SDKs: macOS 12.3 -sdk macosx12.3 macOS 12.3 -sdk macosx12.3 tvOS SDKs: tvOS 16.0 -sdk appletvos16.0 tvOS Simulator SDKs: Simulator - tvOS 16.0 -sdk appletvsimulator16.0 watchOS SDKs: watchOS 9.0 -sdk watchos9.0 watchOS Simulator SDKs: Simulator - watchOS 9.0 -sdk watchsimulator9.0
Do you know how to solve this problem? I've been working on it for days, I'm really appreciate anyone for solving this.
-
Hi and welcome to devnet,
The real solution would be to build Qt with that SDK however it is mainly a warning so unless your application crashes, you can develop it further.
That said, after you added the CONFIG variable, did you re-run qmake before building ?
-
And beside these warnings, do you have issues with your application ?