Firebase Analytics不可用 [英] Firebase Analytics not available

查看:476
本文介绍了Firebase Analytics不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I can't use Firebase with iOS. I'm using Xcode 8.0 and Objective-C. I added all the necessary framework and the right code to my AppDelegate implementation.

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

I added the ObjC to Other Linker Flags and I added the GoogleService-Info.plist but the App crashes with this error:

推荐答案

FIRAnalytics不可用正是在不使用CocoaPods而不设置-ObjC链接器标志的情况下直接集成Firebase框架时会发生的错误。确保正确设置:

"FIRAnalytics is not available" is exactly the error that will occur when directly integrating the Firebase frameworks without using CocoaPods and not setting the -ObjC Linker flag. Make sure you set it properly:

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

Add the -ObjC linker flag in Other Linker Settings in your target's build settings.

这篇关于Firebase Analytics不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆