firebase_database and flutter_geofire compatibility issue on iOS - ios

I want to add flutter_geofire to my YAML file but I keep getting this error
[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
In Podfile:
firebase_database (from `.symlinks/plugins/firebase_database/ios`) was resolved to 9.1.5, which depends on
Firebase/Database (= 9.5.0)
flutter_geofire (from `.symlinks/plugins/flutter_geofire/ios`) was resolved to 0.0.1, which depends on
GeoFire (~> 4.0) was resolved to 4.1.0, which depends on
Firebase/Database (~> 6.0)
Any help please.

Related

Errors appearing after updating the Firebase auth package -- Flutter

I added the firebase auth package then got an error in the ios podfile
[!] CocoaPods could not find compatible versions for pod "Firebase/Auth":
In Podfile:
Firebase/Auth
firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 0.0.1, which depends on
Firebase/Auth (~> 6.3)
CocoaPods could not find compatible versions for pod "GoogleUtilities/Environment":
In Podfile:
firebase_auth (from .symlinks/plugins/firebase_auth/ios) was resolved to 0.0.1, which depends on
Firebase/Auth (~> 6.3) was resolved to 6.3.0, which depends on
FirebaseAuth (~> 6.1.2) was resolved to 6.1.2, which depends on
GoogleUtilities/Environment (~> 6.2)
google_mlkit_face_detection (from `.symlinks/plugins/google_mlkit_face_detection/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/FaceDetection (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitFaceDetection (~> 2.1.0) was resolved to 2.1.0, which depends on
MLKitCommon (~> 7.0) was resolved to 7.0.0, which depends on
GoogleDataTransport (~> 9.0) was resolved to 9.1.2, which depends on
GoogleUtilities/Environment (~> 7.2)
CocoaPods could not find compatible versions for pod "MLKitCommon":
In Podfile:
google_mlkit_digital_ink_recognition (from .symlinks/plugins/google_mlkit_digital_ink_recognition/ios) was resolved to 0.5.0, which depends on
GoogleMLKit/DigitalInkRecognition (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitDigitalInkRecognition (~> 2.1.0) was resolved to 2.1.0, which depends on
MLKitMDD (~> 4.1) was resolved to 4.2.0, which depends on
MLKitCommon (~> 8.0)
google_mlkit_face_detection (from `.symlinks/plugins/google_mlkit_face_detection/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/FaceDetection (~> 3.1.0) was resolved to 3.1.0, which depends on
GoogleMLKit/MLKitCore (= 3.1.0) was resolved to 3.1.0, which depends on
MLKitCommon (~> 7.0.0)
google_mlkit_face_detection (from `.symlinks/plugins/google_mlkit_face_detection/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/FaceDetection (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitFaceDetection (~> 2.1.0) was resolved to 2.1.0, which depends on
MLKitCommon (~> 7.0)
CocoaPods could not find compatible versions for pod "MLKitLanguageID":
In Podfile:
google_mlkit_language_id (from .symlinks/plugins/google_mlkit_language_id/ios) was resolved to 0.4.0, which depends on
GoogleMLKit/LanguageID (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitLanguageID (~> 3.1.0)
google_mlkit_smart_reply (from `.symlinks/plugins/google_mlkit_smart_reply/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/SmartReply (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitSmartReply (~> 2.1.0) was resolved to 2.1.0, which depends on
MLKitLanguageID (~> 3.1)
CocoaPods could not find compatible versions for pod "MLKitTextRecognitionCommon":
In Podfile:
google_mlkit_text_recognition (from .symlinks/plugins/google_mlkit_text_recognition/ios) was resolved to 0.4.0, which depends on
GoogleMLKit/TextRecognition (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitTextRecognition (~> 1.4.0-beta5) was resolved to 1.4.0-beta5, which depends on
MLKitTextRecognitionCommon (= 1.0.0-beta5)
google_mlkit_text_recognition (from `.symlinks/plugins/google_mlkit_text_recognition/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/TextRecognitionJapanese (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitTextRecognitionJapanese (~> 1.0.0-beta5) was resolved to 1.0.0-beta6, which depends on
MLKitTextRecognitionCommon (= 1.0.0-beta6)
CocoaPods could not find compatible versions for pod "MLKitVision":
In Podfile:
google_mlkit_commons (from .symlinks/plugins/google_mlkit_commons/ios) was resolved to 0.2.0, which depends on
MLKitVision
google_mlkit_face_detection (from `.symlinks/plugins/google_mlkit_face_detection/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/FaceDetection (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitFaceDetection (~> 2.1.0) was resolved to 2.1.0, which depends on
MLKitVision (~> 4.1)
google_mlkit_object_detection (from `.symlinks/plugins/google_mlkit_object_detection/ios`) was resolved to 0.5.0, which depends on
GoogleMLKit/ObjectDetectionCustom (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitObjectDetectionCustom (~> 2.1.0) was resolved to 2.1.0, which depends on
MLKitObjectDetectionCommon (~> 4.1) was resolved to 4.2.0, which depends on
MLKitVision (~> 4.2)
CocoaPods could not find compatible versions for pod "MLKitXenoCommon":
In Podfile:
google_mlkit_pose_detection (from .symlinks/plugins/google_mlkit_pose_detection/ios) was resolved to 0.4.0, which depends on
GoogleMLKit/PoseDetection (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitPoseDetection (~> 1.0.0-beta9) was resolved to 1.0.0-beta10, which depends on
MLKitXenoCommon (= 1.0.0-beta10)
google_mlkit_pose_detection (from `.symlinks/plugins/google_mlkit_pose_detection/ios`) was resolved to 0.4.0, which depends on
GoogleMLKit/PoseDetectionAccurate (~> 3.1.0) was resolved to 3.1.0, which depends on
MLKitPoseDetectionAccurate (~> 1.0.0-beta9) was resolved to 1.0.0-beta9, which depends on
MLKitXenoCommon (= 1.0.0-beta9)
in your terminal do
cd ios
pod install
If the problem persists, I recommend deleting the Podfile.lock file from your iOS repository and in the repo's terminal, type in:
cd iOS
pod deintegrate
pod install --repo-update
This shall update all your cocoa pods to the latest possible version. If you do that and you keep getting the same error, I'd recommend looking into the version of your dependencies in the pubspec.yaml file and updating all those that are outdated as well.

CocoaPods could not find compatible versions for pod "Protobuf"

any of you who knows how to solve this issue having 2 libraries using a different version of another library in iOS flutter pods?
I've seen a lot of posts but not sure if I'm doing something wrong because they did not work for me.
Also, I've tried pod update and does not solve my issue
[!] CocoaPods could not find compatible versions for pod "Protobuf":
In snapshot (Podfile.lock):
Protobuf
In Podfile:
flutter_blue (from `.symlinks/plugins/flutter_blue/ios`) was resolved to 0.0.1, which depends on
flutter_blue/Protos (= 0.0.1) was resolved to 0.0.1, which depends on
Protobuf (~> 3.11.4)
mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`) was resolved to 0.0.1, which depends on
GoogleMLKit/BarcodeScanning (~> 2.6.0) was resolved to 2.6.0, which depends on
MLKitBarcodeScanning (~> 1.7.0) was resolved to 1.7.0, which depends on
MLKitVision (~> 3.0) was resolved to 3.0.0, which depends on
Protobuf (~> 3.12)
Any help would be really appreciated.
The issue as the logs states is that you are using a specific version of Protobuf while mobile_scanner depends on a different version which can't be resolved.
you can either try to upgrade Protobuf to using version 3.12 or downgrading mobile_scanner to use Protobuf 3.11.4(which I don't recommend since it is a dependency).

Error: CocoaPods could not find compatible versions for pod "FBSDKCoreKit"

I am trying to build a simple Cordova app for iOS, but running pod install fails with the following error:
[!] CocoaPods could not find compatible versions for pod "FBSDKCoreKit":
In Podfile:
CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.4.2, which depends on
FBSDKCoreKit (= 5.15.0)
CordovaPluginsStatic (from `../capacitor-cordova-ios-plugins`) was resolved to 2.4.2, which depends on
FBSDKShareKit (= 5.15.0) was resolved to 5.15.0, which depends on
FBSDKShareKit/Share (= 5.15.0) was resolved to 5.15.0, which depends on
FBSDKCoreKit (~> 5.0)
As far as I understand, FBSDKCoreKit (~> 5.0) should actually match = 5.15.0 so it looks like CocoaPods fails to figure this out.
How do I troubleshoot this?
CocoaPods: 1.10.0

React Native pod install fails [nanopb]

pod install fails with this error, anyone know what to do?
[!] CocoaPods could not find compatible versions for pod "nanopb":
In Podfile:
EXFirebaseAnalytics (from `../node_modules/expo-firebase-analytics/ios`) was resolved to 2.4.1, which depends on
Firebase/Core (= 6.14.0) was resolved to 6.14.0, which depends on
FirebaseAnalytics (= 6.1.7) was resolved to 6.1.7, which depends on
nanopb (= 0.3.9011)
RNFBCrashlytics (from `../node_modules/#react-native-firebase/crashlytics`) was resolved to 8.4.2, which depends on
Firebase/Crashlytics (~> 6.30.0) was resolved to 6.30.0, which depends on
FirebaseCrashlytics (~> 4.4.0) was resolved to 4.4.0, which depends on
nanopb (~> 1.30905.0)

Installing Geofirestore for Firebase 6.5.0

I'd like to use the Geofirestore library to do some location based queries. If I install it using CocoaPods, it will downgrade most of the firebase libraries to a compatible version. I'd like to keep up to date with Firebase but still be able to run Geofirestore/Geofire
This is the error I'm getting
[!] CocoaPods could not find compatible versions for pod "FirebaseCore":
In Podfile:
GeoFire (from `https://github.com/firebase/geofire-objc.git`) was resolved to 3.0.0, which depends on
Firebase/Database (~> 6.0) was resolved to 6.5.0, which depends on
Firebase/CoreOnly (= 6.5.0) was resolved to 6.5.0, which depends on
FirebaseCore (= 6.1.0)
GeoFire (from `https://github.com/firebase/geofire-objc.git`) was resolved to 3.0.0, which depends on
Firebase/Database (~> 6.0) was resolved to 6.5.0, which depends on
FirebaseDatabase (~> 6.0.0) was resolved to 6.0.0, which depends on
FirebaseCore (~> 6.0)
Geofirestore (from `https://github.com/imperiumlabs/GeoFirestore-iOS.git`) was resolved to 1.0.0, which depends on
FirebaseCore (~> 5.0)
Can someone help me out with this? I've read that people have been installing it manually..but I have no idea how to do that.
Any help is greatly appreciated.
Arvid
The GeoFirestore CocoaPod needs to be updated. See https://github.com/imperiumlabs/GeoFirestore-iOS/issues/19

Resources