swiftcocoapodsgoogle-tag-managerfirebase-analyticsxcode9.3

GTM (Google Tag Manager) 6.0 and Firebase Analytics 5.0 version conflict


New Firebase version 5.0 is causing version conflict with Google Tag Manager. Has anyone has a solution for this?

Podfile:

# Analytics
pod 'Firebase/RemoteConfig', '~> 5.0.0'
pod 'Firebase/Core', '~> 5.0.0'
pod 'GoogleTagManager', '~> 6.0'
pod 'GoogleIDFASupport'
pod 'GooglePlaces', '~> 2.7.0'

Error i get on pod install:

[!] CocoaPods could not find compatible versions for pod "FirebaseAnalytics":
  In Podfile:

Firebase/Core (~> 5.0.0) was resolved to 5.0.0, which depends on
  FirebaseAnalytics (= 5.0.0)

Firebase/RemoteConfig (~> 5.0.0) was resolved to 5.0.0, which depends on
  FirebaseRemoteConfig (= 3.0.0) was resolved to 3.0.0, which depends on
    FirebaseAnalytics (~> 5.0)

GoogleTagManager (~> 6.0) was resolved to 6.0.0, which depends on
  FirebaseAnalytics (~> 4.0)

Solution

  • At last Google Released Google Tag Manager Pod version 7.0.0 and this problem is solved