cordova-plugin-firebase-analytics: CocoaPods could not find compatible versions for pod "Firebase/Core"

I’m getting this error trying to set things up.

[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
  In snapshot (Podfile.lock):
    Firebase/Core (= 5.4.0, ~> 5.0)

  In Podfile:
    Firebase/Core (~> 5.4.0)

Specs satisfying the `Firebase/Core (~> 5.4.0), Firebase/Core (= 5.4.0, ~> 5.0)` dependency were found, but they required a higher minimum deployment target.

Not sure which version needs to be fixed, Firebase/Core or CoocaPods version?

pod --version gives me 1.5.3

When I try to build I get the error
FirebaseCore/FirebaseCore.h’ file not found

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 13
  • Comments: 20 (1 by maintainers)

Most upvoted comments

Try

cd platforms/ios && pod update

Try deleting Podfile.lock and then pod update

I am also having this issue… anyone here managed to resolved it?

Known issue: https://github.com/firebase/firebase-ios-sdk/issues/1845 Fixed in Firebase 5.8.1, but this plugin appears to use 5.6: <framework src="Firebase/Core" type="podspec" spec="~> 5.6"/>

I am unable to find Podfile.lock. Can anyone please guide me to the location of it, i can only see Podfile not Podfile.lock

I am getting this error

[!] CocoaPods could not find compatible versions for pod "Firebase/Analytics":
  In Podfile:
    CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.4.8, which depends on
      Firebase/Analytics (~> 8.8.0)

    Firebase/Analytics

Specs satisfying the `Firebase/Analytics, Firebase/Analytics (~> 8.8.0)` dependency were found, but they required a higher minimum deployment target.

I needed to delete Podfile.lock and run pod install again.

Just update the pods, and retry installing. Worked for me.