Bug 479211 - Failure to build on MacOS 12+ due to use of a deprecated framework
Summary: Failure to build on MacOS 12+ due to use of a deprecated framework
Status: RESOLVED FIXED
Alias: None
Product: frameworks-knotifications
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.247.0
Platform: Compiled Sources macOS
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-31 06:20 UTC by embersp@pm.me
Modified: 2024-01-17 13:57 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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