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
I solved the problem by downgrading all firebase module in package.josn to the version 14.12.0
FirebaseStorageInternal
has been removed from Firebase 10.x and should not be included in Podfiles.