iOS: CocoaPods issue with Google Analytics and AdMob iOS: CocoaPods issue with Google Analytics and AdMob swift swift

iOS: CocoaPods issue with Google Analytics and AdMob


Its easy to maintain using GoogleService-Info.plist file.

Just enable/disable services you want:

enter image description here

If you choosed you want to use some of them, then you need to specify them in your Podfile. Eg.

pod 'Google/CloudMessaging'

Full list of Google SDKs is available here.

Another way is to specify that you want to use Firebase. Just modufy your Podfile:

pod 'Firebase/Core'


Have you tried to edit GoogleService-Info.plist and change "IS_ADS_ENABLED" to "NO"? If you are using "Google-Mobile-Ads-SDK" instead of "Google/AdMob" then your Ads should still work. "GoogleService-Info.plist" is not a requisite for AdMob (https://developers.google.com/admob/ios/quick-start#prerequisites).


I had the same issue

Change

pod 'Google-Mobile-Ads-SDK', '~> 7.0'

to

pod 'Google/AdMob'

Only problem is pod 'Google/AdMob' is one release behind (7.6)