Firebase Analytics不可用

时间:2016-09-21 13:21:41

标签: ios objective-c firebase firebase-analytics

我无法在iOS上使用Firebase。我正在使用Xcode 8.0和Objective-C。我在AppDelegate实现中添加了所有必要的框架和正确的代码。

我将ObjC添加到其他链接器标志,我添加了GoogleService-Info.plist,但应用程序崩溃时出现此错误:

enter image description here

1 个答案:

答案 0 :(得分:8)

“FIRAnalytics不可用”正是在不使用CocoaPods而不设置-ObjC Linker标志的情况下直接集成Firebase框架时会出现的错误。确保正确设置:

在目标的构建设置中的其他链接器设置中添加-ObjC链接器标记。

enter image description here