SUMMARY *** Building on macOS 10.15 fails in line 37 because the macOS 11.0+ currentDrawingAppearance feature is used. https://developer.apple.com/documentation/appkit/nsappearance/3674524-currentdrawingappearance KF5 requires Qt 5.15.2 and should support macOS 10.13 or newer. This problem also leads to crashes of nightly builds on macOS 10.15 and older. Possible solution: Use currentAppearance instead on macOS older than 11.0
Georg, could you please have a look at this?
(In reply to Nicolas Fella from comment #1) > Georg, could you please have a look at this? Sure, I will take a look at this this weekend. Need to set up a machine with 10.15 first though.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kguiaddons/-/merge_requests/87
Git commit c28c8b7442cc798d09239c0cf72b741d3e01fee6 by Nicolas Fella, on behalf of Georg Gadinger. Committed on 11/01/2023 at 14:35. Pushed by nicolasfella into branch 'master'. KColorSchemeWatcherMac: do not use new NSAppearance API on older macOS versions On macOS versions older than Big Sur (11.0) the `NSAppearance.currentDrawingAppearance` property does not exist, and trying to use it will crash the app at runtime. This commit makes sure the new property is used on Big Sur or newer macOS releases, and uses the deprecated `NSAppearance.currentAppearance` property on Mojave (10.14) or newer. As the light/dark mode switch was introduced in Mojave, running the app on older releases will always prefer the light mode. Tested on macOS 10.15.5 (x86_64) and 13.1 (arm64) M +12 -1 src/colors/kcolorschemewatcher_mac.mm https://invent.kde.org/frameworks/kguiaddons/commit/c28c8b7442cc798d09239c0cf72b741d3e01fee6
Git commit a0a118111c5d1ef913e630780b64bfa39cf214e2 by Nicolas Fella, on behalf of Georg Gadinger. Committed on 11/01/2023 at 15:19. Pushed by nicolasfella into branch 'kf5'. KColorSchemeWatcherMac: do not use new NSAppearance API on older macOS versions On macOS versions older than Big Sur (11.0) the `NSAppearance.currentDrawingAppearance` property does not exist, and trying to use it will crash the app at runtime. This commit makes sure the new property is used on Big Sur or newer macOS releases, and uses the deprecated `NSAppearance.currentAppearance` property on Mojave (10.14) or newer. As the light/dark mode switch was introduced in Mojave, running the app on older releases will always prefer the light mode. Tested on macOS 10.15.5 (x86_64) and 13.1 (arm64) (cherry picked from commit c28c8b7442cc798d09239c0cf72b741d3e01fee6) M +12 -1 src/colors/kcolorschemewatcher_mac.mm https://invent.kde.org/frameworks/kguiaddons/commit/a0a118111c5d1ef913e630780b64bfa39cf214e2
*** Bug 462674 has been marked as a duplicate of this bug. ***