From 519f2245f613d14dc2a4e128f496982ef1b41a5c Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Sat, 26 Sep 2026 07:51:31 +0200 Subject: [PATCH] macOS: fix arm64 bundle rejection (-10825) on macOS Sequoia The Info.plist template shipped LSMinimumSystemVersion=12.3.0, but the CMake build embedded the host SDK's deployment target (minos 26.0 on recent build machines) into the binary's LC_BUILD_VERSION. Launch Services relies on the binary's minos, not the plist, so it refused to launch the app on macOS < 26 even though it ran fine when invoked directly. - Set CMAKE_OSX_DEPLOYMENT_TARGET=14.0 explicitly in the cmake configure step, matching the real minimum imposed by the Homebrew Qt6 toolchain used for this build. - Sync misc/Info.plist's LSMinimumSystemVersion to 14.0.0, and have MacQetDeploy_arm64_cmake.sh set it via PlistBuddy at bundle install time so it can't drift from the build target again. Reported-by: guillaume.ruivo (forum) --- misc/Info.plist | 2 +- misc/MacQetDeploy_arm64_cmake.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/Info.plist b/misc/Info.plist index 16da6501c..3d138a781 100644 --- a/misc/Info.plist +++ b/misc/Info.plist @@ -62,6 +62,6 @@ NSPrincipalClass NSApplication LSMinimumSystemVersion - 12.3.0 + 14.0.0 diff --git a/misc/MacQetDeploy_arm64_cmake.sh b/misc/MacQetDeploy_arm64_cmake.sh index e548f24a5..1d247cee7 100644 --- a/misc/MacQetDeploy_arm64_cmake.sh +++ b/misc/MacQetDeploy_arm64_cmake.sh @@ -99,6 +99,7 @@ fi cmake -S . -B "$BUILD_DIR" -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 \ -DQT_VERSION_MAJOR=$QT_MAJOR \ -DBUILD_WITH_KF=$BUILD_WITH_KF \ -DBUILD_KF=OFF \ @@ -258,6 +259,7 @@ echo "Install Info.plist and app icon:" cp -R ${current_dir}/misc/Info.plist $BUNDLE/Contents/ cp -R ${current_dir}/ico/mac_icon/*.icns $BUNDLE/Contents/Resources/ /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $VERSION r$HEAD" "$BUNDLE/Contents/Info.plist" +/usr/libexec/PlistBuddy -c "Set :LSMinimumSystemVersion 14.0.0" "$BUNDLE/Contents/Info.plist" ### add missing files ############################################### echo