尝试使用Catalyst为Mac构建iPad应用程序时,出现以下错误:
FirebaseAnalytics.framework/FirebaseAnalytics(...o),
building for UIKitForMac, but linking in object file built for iOS Simulator,
file '/../FirebaseAnalytics.framework/FirebaseAnalytics' for architecture x86_64
这是Google必须解决的问题吗?版本是FirebaseAnalytics 6.0.1
答案 0 :(得分:0)
Firebase库尚未移植到UIKitForMac / Catalina,因此最好有条件地编译如下用法:
#if !targetEnvironment(UIKitForMac)
...firebase code...
#endif