Annoying Firebase Log in Xcode console

[亡魂溺海] 提交于 2019-12-11 06:48:10

问题


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'

when I run my project I always get the annoying message from firebase:

"The default Firebase app has not yet been configured. Add [FIRApp configure] to your application initialization"

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?

is there a way to hide this message without configure firebase (I won't use it)?


回答1:


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'


来源:https://stackoverflow.com/questions/46874799/annoying-firebase-log-in-xcode-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!