Bug 479211

Summary: Failure to build on MacOS 12+ due to use of a deprecated framework
Product: [Frameworks and Libraries] frameworks-knotifications Reporter: embersp <embersp>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: embersp, kdelibs-bugs, nicolas.fella
Priority: NOR Keywords: qt6
Version: 5.247.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description embersp@pm.me 2023-12-31 06:20:05 UTC
SUMMARY
When building with the make command on MacOS 12+, the make command fails during "Building CXX object src/CMakeFiles/KF6Notifications.dir/notifybymacosnotificationcenter.mm.o" due to "NSUserNotificationCenter" being deprecated. Therefore the framework cannot be compiled with proper support for notifications on modern versions of MacOS.


STEPS TO REPRODUCE
1. Download knotifications sources on a computer running MacOS 12+
2. cmake
3. make

OBSERVED RESULT
Failure to compile due to deprecated notification framework

EXPECTED RESULT
Successful compilation

SOFTWARE/OS VERSIONS
macOS: 14.1.1 ARM64
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Make logs: https://gist.github.com/Bens0/38b39cf76fdd1b89cccc130c055bb6cf
Comment 1 Nicolas Fella 2024-01-17 13:57:20 UTC
The build failure is unrelated to the deprecated framework and was fixed with https://invent.kde.org/frameworks/knotifications/-/merge_requests/118