"FirebaseCore" version not compatible in react native project - firebase

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.

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

Related

cannot run the flutter app after firebase connection

After i added the GoogleService-Info.plist file to Runner on xcode, I get this error.
(I work on an M1 Chip MacBook Air)
I uninstalled each cocoapods version, and installed again using the ARM version (sudo arch -x86_64 gem install cocoapods).
But nothing changed.
Edit: Just tried the pod install method inside the ios folder and this is what happened;
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '8.11.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '8.11.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.11.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "cloud_firestore":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)
Specs satisfying the `cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)` dependency were found, but they required a higher minimum deployment target.
[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
you need first to upgrade your package by write "pub upgrade" command
after it try to update podfile as below setups :
inside terminal move to ios folder "cd ios"
enter "pod update" command
if above point not working try "pod install" command
Final edit: I solved it thanks to this issue. The problem was that there's no Podfile.lock in the /ios folder.

CocoaPods could not find compatible versions for pod "Firebase/CoreOnly": In Podfile

I am using react-native to build an app, I get the below error when I do pod install.
The below is the complete error.
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
RNFBApp (from `../node_modules/#react-native-firebase/app`) was resolved to 12.4.0, which depends on
Firebase/CoreOnly (= 8.4.0)
None of your spec sources contain a spec satisfying the dependency: `Firebase/CoreOnly (= 8.4.0)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
I had the same issue and I just ran pod install --repo-update in my ios folder and it worked for me.

Flutter - No compatible iOS versions between Flutterfire and Geofire (pods)

I'm trying to get all my dependencies updated for null safety and the following scenario when I run pod install:
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
cloud_functions: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_database: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
In Podfile:
firebase_database (from `.symlinks/plugins/firebase_database/ios`) was resolved to 6.1.2, which depends on
Firebase/Database (= 7.3.0)
flutter_geofire (from `.symlinks/plugins/flutter_geofire/ios`) was resolved to 0.0.1, which depends on
GeoFire (~> 4.2) was resolved to 4.2.0, which depends on
GeoFire/Database (= 4.2.0) was resolved to 4.2.0, which depends on
Firebase/Database (~> 7.8.0)
Checking the native ios geofire and flutterfire library, I realize that the current version from geofire for iOS aims firebase database ~> 7.8 and the previously one database ~> 6.x.x.
Flutterfire null safety aims firebase 7.3.
Turning actually impossible to find a version with null-safety compatible between flutterfire and geofire.
I have tried before completely remove my pods with the commands without success:
cd ios
rm -rf Pods
rm -rf Podfile.lock
rm -rf ~/.pub-cache/hosted/pub.dartlang.org/
pod cache clean --all
pod deintegrate
flutter clean
flutter pub get
pod repo update
pod install
Any suggestions? thank you!

I am unable to install the firebase cocoa pod on my Mac

I am trying to install the above pods but I am getting an error during the installation of firebase.
I cannot understand the error that it is giving.
error:
I don't understand what is above error is referring to and why it says anaconda3 I am not using anaconda anywhere for this code.
as suggested in some answers provided to similar problems I tried
pod repo remove master
and then:
pod setup
but it did not resolve the problem .
Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Flash Chat' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Flash Chat
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'SVProgressHUD'
pod 'ChameleonFramework'
end
(base) Sarthaks-Air:Flash_Chat sarthakdandriyal$ pod install
Analyzing dependencies
Downloading dependencies
Installing ChameleonFramework (2.1.0)
Installing Firebase (6.3.0)
[!] Error installing Firebase
[!] /Users/sarthakdandriyal/anaconda3/bin/curl -f -L -o /var/folders/1f/3fld6d6d3dxfdx2mf363_wxm0000gn/T/d20190620-6634-xjii3m/file.tgz https://dl.google.com/dl/cpdc/f64cf2cc2acbf58d/Firebase-6.3.0.tar.gz --create-dirs --netrc-optional --retry 2
dyld: Library not loaded: #rpath/libssl.1.0.0.dylib
Referenced from: /Users/sarthakdandriyal/anaconda3/lib/libssh2.1.dylib
Reason: image not found
I am using Xcode 9.4 could that be reason for this error?
Running conda install libssh2 solved the problem for me.

problems installing firebase pods

When I attempted to install the pod after modifying and saving the profile file this is what I get (info from terminal window):
Scotts-Mac:SDADishApp Scott$ pod install
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use SDADishApp.xcworkspace for this project from now on.
Sending stats
Pod installation complete! There are 0 dependencies from the Podfile and 0 total
pods installed.
[!] The Podfile does not contain any dependencies.
Scotts-Mac:SDADishApp Scott$
Could you please tell me what I did wrong? And how to correct it? There should be dependencies and pods installed.

Resources