由于Firebase初始化,应用程序委托崩溃 [英] App Delegate crashes because of Firebase initialization

查看:991
本文介绍了由于Firebase初始化,应用程序委托崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


$ b


由于未捕获的异常com.google.greenhouse,终止应用程序,导致AppDelegate崩溃,原因:错误域= com.google.greenhouse代码= -102无法正确配置subspec分析UserInfo = {NSLocalizedFailureReason =跟踪ID不能为零或空,NSLocalizedDescription =无法正确配置subspec Analytics} p>

我已经按照Firebase指南从

解决方案

我询问了Firebase小组在这个问题上的反应。


你可以检查问题是否仍然存在。
检查GoogleService-Info.plist文件是否在正确的位置,即在项目根目录下。
在Google plist中检查您的IS_ANALYTICS_ENABLED。尝试改变它。
尝试移除Google / Google Analytics(分析)窗格。
添加-FIRAnalyticsDebugEnabled以获取更多调试信息。

我的问题是通过删除Google / Analytics窗格解决的。

I am getting this error that's causing the AppDelegate to crash

Terminating app due to uncaught exception 'com.google.greenhouse', reason: 'Error Domain=com.google.greenhouse Code=-102 "Unable to correctly configure subspec Analytics" UserInfo={NSLocalizedFailureReason=Tracking ID must not be nil or empty., NSLocalizedDescription=Unable to correctly configure subspec Analytics}'

I have followed the Firebase guide from here

What can be the reason? Also I don't intend to use google analytics as for now. Any fix?

EDIT:

Note: I have removed the IDs and the Keys for this screenshot

解决方案

I asked the Firebase team on this issue and they have responded.

Things you can check if the issue still persist. Check to see that the GoogleService-Info.plist file is at the correct location i.e at the project root. Check your IS_ANALYTICS_ENABLED in the google plist. Try changing it. Try removing pod 'Google/Analytics'. Add -FIRAnalyticsDebugEnabled to get more debugging information.

My problem was solved by removing Google/Analytics pod.

这篇关于由于Firebase初始化,应用程序委托崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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