Search code examples
iosfirebasecocoapodsfirebase-remote-configfirebase-in-app-messaging

Adding pod 'Firebase/AppIndexing' and pod 'FirebaseInAppMessaging' together


Unable to have both together due to varying version dependency

`[!] CocoaPods could not find compatible versions for pod "FirebaseAnalytics": In snapshot (Podfile.lock): FirebaseAnalytics (= 3.9.0, ~> 3.7, ~> 3.8, ~> 3.9)

In Podfile: Firebase/Core was resolved to 3.17.0, which depends on FirebaseAnalytics (= 3.9.0)

Firebase/RemoteConfig was resolved to 3.17.0, which depends on
  FirebaseRemoteConfig (= 1.3.4) was resolved to 1.3.4, which depends on
    FirebaseAnalytics (~> 3.7)

FirebaseInAppMessaging was resolved to 0.11.0, which depends on
  FirebaseAnalytics (~> 5.1)`

Solution

  • Do a pod update. FirebaseInAppMessaging was introduced in Firebase 5.x and incompatible with Firebase 3.x. Firebase/RemoteConfig needs to also be updated to 5.x to be compatible.

    Firebase/AppIndexing was deprecated in Firebase 3.x and should be removed in order to use more recent Firebase versions.