iosxcodemacospush-notificationuikitformac

"UserNotificationsUI" is not available when building for UIKit for Mac 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.

Anyone facing a similar issue?

Xcode11 screenshot


Solution

  • 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.