UIKitForMac
I get the following error - "UserNotificationsUI" is not available when building for UIKit for
Mac. You may need to restrict the platforms for which this framework
should be linked in the target editor.
#if canImport() ... #endif
around instances of UserNotificationsUI
which didn't workAnyone facing a similar issue?
A closed source Third party framework that I was using had UserNotificationsUI
linked.
The build error was because UIKitForMac doesn't support Mobile specific frameworks like UserNotifications which is the correct behaviour.
Removing the Third Party dependency resolved the issue for me.