skip to Main Content

In my react native project I started getting an error after I have tried to install the module firebase/crashlytics. I get the error

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

    FirebaseStorageInternal was resolved to 9.6.0, which depends on
      FirebaseCore (~> 9.0)

    RNFBApp (from `../node_modules/@react-native-firebase/app`) was resolved to 16.4.3, which depends on
      Firebase/CoreOnly (= 10.1.0) was resolved to 10.1.0, which depends on
        FirebaseCore (= 10.1.0)

What I tried:

sudo gem install cocoapods-clean
pod deintegrate
pod install
pod update
pod repo update && pod install --repo-update
yarn install

nothing helped. I think before I had the problem the firebase/core version was 8. How can I change the 10.1.0 version? How is this pod installed, I don’t see it in the pod file.

2

Answers


  1. Chosen as BEST ANSWER

    I solved the problem by downgrading all firebase module in package.josn to the version 14.12.0

      "dependencies": {
        "@react-native-firebase/analytics": "14.12.0",
        "@react-native-firebase/app": "14.12.0",
        "@react-native-firebase/auth": "14.12.0",
        "@react-native-firebase/crashlytics": "14.12.0",
        "@react-native-firebase/database": "14.12.0",
        "@react-native-firebase/dynamic-links": "14.12.0",
        "@react-native-firebase/firestore": "14.12.0",
        "@react-native-firebase/in-app-messaging": "14.12.0",
        "@react-native-firebase/messaging": "14.12.0",
        "@react-native-firebase/remote-config": "14.12.0",
        "@react-native-firebase/storage": "14.12.0",
    }
    

  2. FirebaseStorageInternal has been removed from Firebase 10.x and should not be included in Podfiles.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search