Firebase configuration
I am developing an iOS app and my pod file looks like
platform :ios, '8.0'
use_frameworks!
target 'MYAPP' do
pod 'Google-Mobile-Ads-SDK'
pod 'Google/SignIn'
pod 'Alamofire', '~> 4.0'
pod 'AlamofireImage', '~> 3.1'
end
target 'MYAPPTests' do
pod 'Google-Mobile-Ads-SDK'
pod 'Google/SignIn'
pod 'Alamofire', '~> 4.0'
pod 'AlamofireImage', '~> 3.1'
end
target 'MYAPPUITests' do
pod 'Google-Mobile-Ads-SDK'
pod 'Google/SignIn'
pod 'Alamofire', '~> 4.0'
pod 'AlamofireImage', '~> 3.1'
end
When I run the application and keep finding the following warning in the console:
[Firebase / Core] [I-COR000003] The default Firebase application has not yet been configured. Add [FIRApp configure] to your application init. More details: ".
So, in my appdelegate, I added FIRApp.configure()
which crashes
'[Firebase / Messaging] [I-IID001000] Firebase is not configured correctly. Sender ID is zero or empty. 2017-06-14 18: 25: 37.044 MYAPP [10520: 128089] *** Application terminated due to uncaught exception 'com.firebase.instanceid', Reason: 'Failed to configure Firebase InstanceID. Google Sender ID must not be null or empty. ''
Is GoogleModbileAdsSDK
it that Firebase configuration requires? What am I missing here?
Check it out https://firebase.google.com/docs/ios/setup You need to add to the pod file the ones you need to use from the database
If you don't want to install other google packages use
pod 'GoogleSignIn'
it will install the package for googleSignIn only