You have macOS 11.3.1. The application requires macOS 13.0 or later.
-
I used macdeploy to package the qt program in macOS 13.4, and then on the machine in macOS 11.3, I double-click the app and this error occurs.

Does the Qt program rely on the macOS version? I am using Qt 6.5.
Strangely, this issue did not occur on Macs with x64 architecture.
What is the reason for this problem and is there a solution? thanks
-
I used macdeploy to package the qt program in macOS 13.4, and then on the machine in macOS 11.3, I double-click the app and this error occurs.

Does the Qt program rely on the macOS version? I am using Qt 6.5.
Strangely, this issue did not occur on Macs with x64 architecture.
What is the reason for this problem and is there a solution? thanks
@wang1 According to https://doc.qt.io/qt-6/macos.html Qt 6.5 supports MacOS 11, 12 and13.
Could it be that CMAKE_OSX_DEPLOYMENT_TARGET or QMAKE_MACOSX_DEPLOYMENT_TARGET was set to 13.0? -
@wang1 According to https://doc.qt.io/qt-6/macos.html Qt 6.5 supports MacOS 11, 12 and13.
Could it be that CMAKE_OSX_DEPLOYMENT_TARGET or QMAKE_MACOSX_DEPLOYMENT_TARGET was set to 13.0?@jsulm Thank you for your reply! There is no CMAKE_ OSX_ DEPLOYMENT_ TARGET in my CMakeLists.txt, the only statements related to macOS are the following. Will these have an impact? Among them, PROJECT_ VERSION is 0.1

Also, I am very sorry for my repeated submission of the same issue!
-
If you newly install XCode it will install only the macOS framework for the newest macOS version. You need to take extra steps to 1) convince Qt to compile for an older OS than the one you are compiling on and 2) install the proper framework version by hand. I believe every update of XCode can mess that up again. The easiest way is to compile on the lowest OS version that you want to target.
I am not a macOS expert because it is not my primary platform for development. I hope what I said is correct. I only remember it to be quite cumbersome and Apple does not want you to do it this way.
-
If you newly install XCode it will install only the macOS framework for the newest macOS version. You need to take extra steps to 1) convince Qt to compile for an older OS than the one you are compiling on and 2) install the proper framework version by hand. I believe every update of XCode can mess that up again. The easiest way is to compile on the lowest OS version that you want to target.
I am not a macOS expert because it is not my primary platform for development. I hope what I said is correct. I only remember it to be quite cumbersome and Apple does not want you to do it this way.
@SimonSchroeder @jsulm Thank you all! I built the project in macOS 13.4 and set CMAKE_OSX_DEPLOYMENT_TARGET to 11.0, and the problem was resolved.
Although I am not yet sure what the specific reason for this issue is, it does not seem to be a problem with the QT library, as I am confident that there is only one version (latest version) of the library on my computer. Perhaps when double clicking on the app folder, macOS made some judgment action
-
W wang1 has marked this topic as solved on