I need to update my firebase pods to the last version but, I'm getting the following error when I try to run pod update or pod install on my project
Update all pods
Updating local specs repositories
Analyzing dependencies
Pre-downloading: `MessageKit` from `https://github.com/MessageKit/MessageKit.git`, branch `3.0.0-swift5`
[!] CocoaPods could not find compatible versions for pod "FirebaseFirestore":
In Podfile:
Firebase/Firestore was resolved to 6.14.0, which depends on
FirebaseFirestore (~> 1.8.2)
Geofirestore was resolved to 0.1.0, which depends on
FirebaseFirestore (~> 0.12.3)
My podfile is:
platform :ios, '13.0'
target 'ApproachApp' do
use_frameworks!
pod 'Firebase/Auth', '~> 6.14.0'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'FirebaseUI/Storage'
pod 'Toast-Swift', '~> 5.0.0'
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'Geofirestore'
pod 'UPCarouselFlowLayout'
pod 'MessageKit', :git => 'https://github.com/MessageKit/MessageKit.git', :branch => '3.0.0-swift5'
end
I also tried with a fresh new project and same pod config but no luck.
Thanks
The issue is that the Geofirestore pod's Firestore dependency to a very old beta version of Firestore.
You might want to file an issue with Geofirestore, but it looks like there hasn't been an update since July 2018 here.
Related
I am trying to install Geofirestore with Cocoapods. I put pod 'Geofirestore' in my podfile but I get an error:
Geofirestore was resolved to 0.1.0, which depends on FirebaseCore (~> 5.0.3)
How do I install Geofirestore?
My podfile is as such:
pod 'Firebase/Firestore'
pod 'Firebase/Analytics'
pod 'Firebase/Storage'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'FirebaseFirestoreSwift', '~> 7.0-beta'
pod 'SDWebImageSwiftUI'
pod 'Geofirestore'
Geofirestore is not compatible with FirebaseFirestoreSwift since Geofirestore depends on Firebase 5.x and FirebaseFirestoreSwift was introduced in Firebase 6.x.
Two options:
Contact or work with Geofirestore on an update to work with recent Firestore releases.
Drop FirebaseFirestoreSwift and use older Firebase versions for the other Firebase pods.
I'm new to React-Native and developing a project. Previously, it was working fine but when I installed Push Notification (rnfirebase for messaging) related dependencies, I'm getting these errors and I also tried all possible solutions from other questions too but no success.
Here is the complete errors which I'm getting while pod installation.
[!] CocoaPods could not find compatible versions for pod "Firebase/Analytics":
In snapshot (Podfile.lock):
Firebase/Analytics (= 6.13.0)
In Podfile:
Firebase/Analytics
RNFBMessaging (from `../node_modules/#react-native-firebase/messaging`) was resolved to 7.1.5, which depends on
Firebase/Analytics (~> 6.25.0)
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* changed the constraints of dependency `Firebase/Analytics` inside your development pod `RNFBMessaging`.
You should run `pod update Firebase/Analytics` to apply changes you've made.
This is the code in the pod file.
# add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
# pod 'Firebase/Auth'
pod 'Fabric', '~> 1.10.2'
pod 'Crashlytics', '~> 3.14.0'
# add pods for any other desired Firebase products
# https://firebase.google.com/docs/ios/setup#available-pods
I tried the following workaround to resolve this issue.
1. pod install --repo-update
2. pod repo remove master
pod setup
pod install
3. Delete podfile.lock
pod install
But none solution worked for me. Can anyone please help me to resolve this issue? I will really appreciate it.
I'm trying to update my FBSDK pods from version 5.0.0 to 5.6.0 through these lines in my Podfile:
pod 'FBSDKCoreKit', '~> 5.6.0'
pod 'FBSDKLoginKit', '~> 5.6.0'
pod 'FBSDKShareKit', '~> 5.6.0'
I ran pod repo update successfully, but pod install and pod update always give me this:
Specs satisfying the `FBSDKCoreKit (~> 5.6.0), FBSDKCoreKit (~> 5.0.0)` dependency were found, but they required a higher minimum deployment target.
(Sometimes it's the same error, but for FBSDKShareKit.)
My deployment target is everywhere set to 9.0 (in Podfile and project.pbxproj) and according to the podspec, FBSDKCoreKit requires 8.0 (if I read it correctly). I also tried increasing it up to 13.2, but it didn't help.
What am I missing?
After updating to Xcode 9.1 from 8.3.3 a project I am working on has multiple errors stemming from gRPC-Core bundled with Firebase. The errors make no sense whatsoever (to me at least) and I have tried all the usual fixes (removing pods, reinstalled, pod update, clean, build, delete derived data, etc). Cocoapods version is 1.3.1
Pods being used in the project (everything working fine before update, no other errors from other pods).
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'Firebase/Firestore'
pod 'FirebaseUI/Firestore', '~> 4.0'
pod 'FirebaseUI/Storage', '~> 4.0'
pod 'FirebaseUI/Auth', '~> 4.0'
pod 'FirebaseUI/Facebook', '~> 4.0'
pod 'FirebaseUI/Google', '~> 4.0'
pod 'UITextField+Shake', '~> 1.1'
pod 'SJFluidSegmentedControl', :git => 'https://github.com/adornoventura/SJFluidSegmentedControl.git'
pod 'GoogleBooksApiClient'
pod 'Kingfisher', '~> 4.0'
pod 'BarcodeScanner'
pod 'GooglePlaces'
pod 'GooglePlacePicker'
pod 'Stripe'
pod 'Lightbox'
pod 'SwipeCellKit'
Edit: To those with the same problem, this issue is being tracked here: https://github.com/firebase/firebase-ios-sdk/issues/423 and it stems from the Firestore pod.
gRPC Team fixed this issue with the release of pod version 1.7.1. To anyone with this problem, clear your pod cache (pod cache clean) then do a fresh install to get the latest version!
I have the same problem. I guess there is a problem with the gRPC-core and a link is missing..
when I am not mistaken, it is used from Firestore and I guess it is since the last update from gRPC-Core
i only have
pod 'Firebase/Core'
pod 'FirebaseUI/Auth'
pod 'Firebase/Firestore'
developers posted following on Github:
Looks like an issue in gRPC-Core. For the time being you can work around this by putting
pod 'gRPC', 1.6.5
at the top of your Podfile.
I'm trying to add Geofire to my iOS project that uses Google Firebase as a backend. When I add the Geofire pod and run pod update I get this message in terminal...
[!] Unable to satisfy the following requirements:
- `Firebase` required by `Podfile`
- `Firebase (~> 2.1)` required by `GeoFire (1.1.0)`
Specs satisfying the `Firebase, Firebase (~> 2.1)` dependency were found, but they required a higher minimum deployment target.
Here is what my Podfile looks like...
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'HopUp' do
pod 'Firebase'
pod 'FirebaseAuth'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Storage'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'GeoFire', '>= 1.1'
end
Any thoughts as to why this is happening?
All input is appreciated!
One of the solutions was to add the git source to your pod file like so:
pod 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git'
Also, check out this github issue if you have any more problems. This is how I got GeoFire to work with my project.
After they updated Firebase Geofire stopped working, new version of Geofire is coming soon but not known exactly when.
You can try installing an earlier version of Firebase but sooner or later youll have to rewrite quite a bit of code after updating to a new one.