NSUserNotification is deprecated, and could be replaced with the UserNotifications framework. UserNotifications has been available since macOS 10.14, which is our minimum required macOS.
 0qt/macnotificationhandler.mm:27:9: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
 1        NSUserNotification* userNotification = [[NSUserNotification alloc] init];
 2        ^
 3/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here
 4[@interface](/bitcoin-core-gui/contributor/interface/) NSUserNotification : NSObject <NSCopying> {
 5           ^
 6qt/macnotificationhandler.mm:27:50: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
 7        NSUserNotification* userNotification = [[NSUserNotification alloc] init];
 8                                                 ^
 9/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here
10[@interface](/bitcoin-core-gui/contributor/interface/) NSUserNotification : NSObject <NSCopying> {
11           ^
12qt/macnotificationhandler.mm:30:11: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
13        [[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification: userNotification];
14          ^
15/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here
16[@interface](/bitcoin-core-gui/contributor/interface/) NSUserNotificationCenter : NSObject {
17           ^
18  CXX      qt/libbitcoinqt_a-moc_createwalletdialog.o
193 warnings generated.