Build QT6 issue on macOS 11.5 Big Sur by XCode
-
I am working on porting my project from qt5 to qt6.
When I build my project, it will show up the following errorSorry, "MyProject" cannot be run on this version of macOS. Qt requires macOS 11.0.0 or later, you have macOS 10.16.0.
I installed the Qt6 by homebrew and build it by XCode 12.
MacOS version is 11.5
I am looking for the solution for a while, but still cannot solve the issue. -
Hi,
Are you using a preview release of macOS ?
Did you using Qt's pre-built binaries ? -
@SGaist
I just updated my MacOS last month, and it shows the version is 11.5 when I click About This Mac.
I built my project by click the XCode's build button, what do you mean by Qt's pre-built binaries?
Actually, I just got my Mac last month, so, I am not really familiar with MacOS. -
The pre-built binaries from the Qt Company using their online installer.
-
That I understood, I am asking you to try with the pre-built binaries to see if you are having the same issue with them.
-
I created the new project on Qt Creator which install by homebrew, it shows the same error.
But I installed Qt by Qt online installer, and run a random example project, it works properly.After that, I have noticed that when using desktop kit, it will show the same error, but using Qt 6.1.2 kit it works fine which was installed by Qt online installer.
-
Then you should check with the brew folks to see how they are building Qt 6.