Xcode控制台中令人讨厌的Firebase登录 [英] Annoying Firebase Log in Xcode console
问题描述
我在当前的Xcode项目中通过CocoaPods使用Google SignIn和Admob。
我的pod文件如下:
I'm using Google SignIn and Admob via CocoaPods in my current Xcode project. My pod file looks like this:
pod 'Google/SignIn'
pod 'Google-Mobile-Ads-SDK'
当我运行我的项目时,我总是从firebase收到烦人的消息:
when I run my project I always get the annoying message from firebase:
尚未配置默认的Firebase应用。将[FIRApp configure]添加到应用初始化中
"The default Firebase app has not yet been configured. Add [FIRApp configure] to your application initialization"
在项目中,我可以看到有两个Pod FirebaseAnalytice和FirebaseCore是Google登录的这些子Pod还是admob Pod?
in the project I can see that there are 2 pods "FirebaseAnalytice" and FirebaseCore" are theses sub-pods of the google sign in or the admob pod?
是否可以在不配置Firebase的情况下隐藏此消息(我不会使用它)?
is there a way to hide this message without configure firebase (I won't use it)?
推荐答案
已弃用的Google容器依赖于FirebaseAnalytics。将您的Podfile更改为直接依赖GoogleSignIn而不是Google容器中的SignIn子规范:
The deprecated Google pod depends on FirebaseAnalytics. Change your Podfile to directly depend on GoogleSignIn instead of the SignIn subspec in the Google pod:
pod 'GoogleSignIn'
pod 'Google-Mobile-Ads-SDK'
这篇关于Xcode控制台中令人讨厌的Firebase登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!