Running the application on a Mac with an older macOS version
-
Environment : macOS 12.0
Qt Creator 5.0.2
Based on Qt 5.15.2 (Clang 11.0 (Apple), 64 bit)Hello to all !
I'm making my first steps with Qt.
I have created a minimal application (window) and used macdeploy to get an app file; the result is perfect.
However, if I transfer this app file on a Mac using an older version of macOS, a message says: You have macOS 10.16.7. The application requires macOS 11.3 or later.
How to modify the CmakeLists.txt file so that the application compiled on Mac OS 12.0 works on an older version of macOS?
Thanks for your help.
-
Hi,
Which version do you target exactly ?
Depending on that you may have to use an older version of Xcode and the corresponding SDK.See the CMAKE_OSX_DEPLOYMENT_TARGET variable.
-
Hi,
Which version do you target exactly ?
Depending on that you may have to use an older version of Xcode and the corresponding SDK.See the CMAKE_OSX_DEPLOYMENT_TARGET variable.
-
If memory serves well, something like:
if(APPLE) set(CMAKE_MACOSX_DEPLOYMENT_TARGET "10.10") endif()