UIKitForMac进行构建时,我得到以下错误-"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实例中添加UserNotificationsUI有谁面临类似的问题吗?

发布于 2019-07-04 10:55:53
我使用的一个封闭源代码第三方框架有UserNotificationsUI链接。
构建错误是因为UIKitForMac不支持特定于移动的框架,比如UserNotifications,这是正确的行为。
消除第三方依赖为我解决了这个问题。
https://stackoverflow.com/questions/56476286
复制相似问题