草庐IT

uikitformac

全部标签

ios - "UserNotificationsUI"在构建 UIKit for Mac 错误时不可用

我的应用有服务和内容扩展通知目标支持按预期工作的丰富的远程通知iPad/iPhoneiOS13及以下我已经安装了Xcode11-beta和macOSCatalina10.15-beta在使用新的UIKitForMac构建时出现以下错误-"UserNotificationsUI"isnotavailablewhenbuildingforUIKitforMac.Youmayneedtorestricttheplatformsforwhichthisframeworkshouldbelinkedinthetargeteditor.首先尝试在UserNotificationsUI实例周围添加#

ios - 如何编译与 UIKit For Mac/Catalyst 一起使用的第 3 方库?

如果您尝试在iOS13项目中使用第3方库(使用make或cmake编译)并打开“UIKitForMac”选项,Xcode将对该库不满意。它会提示所提供的库是为错误的架构编译的(如果你将它指向iphoneos版本)。或者,它会提示它是为错误的平台编译的(如果你将它指向模拟器或Mac版本)。我需要在Makefile中指定哪些设置才能使Xcode接受“UIKitForMac”选项下的库? 最佳答案 好吧,在研究了一段时间之后,我发现如果您为clang提供以下目标(在调用configure之前设置CFLAGS变量),它会编译库的正确版本(注

ios - Xcode 11 无法识别静态库的架构 : MacCatalyst (aka UIKitForMac)

在对2019年的WWDC公告感到兴奋之后,我尝试使用Xcode11.0beta针对MacOS编译我现有的iOS应用程序。不幸的是,它没有按预期进行。Xcode说我的静态库是为架构构建的:BuildingforUIKitforMac,butthelinkedlibrary'libssl.a'wasbuiltfor.Youmayneedtorestricttheplatformsforwhichthislibraryshouldbelinkedinthetargeteditor.但是当我检查我的静态库时,我可以看到它们确实包含所需的架构x86_64:我认为这个问题可能与XcodeBeta错

swift - 为 UIKitForMac 构建 iPad 应用时出现构建错误

尝试使用Catalyst为Mac构建iPad应用程序时,出现以下错误:FirebaseAnalytics.framework/FirebaseAnalytics(...o),buildingforUIKitForMac,butlinkinginobjectfilebuiltforiOSSimulator,file'/../FirebaseAnalytics.framework/FirebaseAnalytics'forarchitecturex86_64这是Google必须解决的问题吗?版本是FirebaseAnalytics6.0.1 最佳答案