My Podfile is configured to update Firebase to all of the latest versions.
target 'MyApp' do
use_frameworks!
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Crashlytics'
pod 'Firebase/Firestore'
pod 'Firebase/Functions'
pod 'Firebase/Messaging'
pod 'Firebase/Storage'
end
However, when I run pod outdated, I notice that not all dependencies are set to update in the subsequent update, such as the following:
- gRPC-C++ 1.44.0 -> 1.44.0 (latest version 1.50.0)
- gRPC-Core 1.44.0 -> 1.44.0 (latest version 1.52.0-pre2)
Is this because Firebase has determined it does not want the latest version in this update?
Yes, FirebaseFirestore depends specifically on version 1.44.0 of gRPC-C++. See https://github.com/CocoaPods/Specs/blob/master/Specs/0/9/f/FirebaseFirestore/10.4.0/FirebaseFirestore.podspec.json#L87.
gRPC changed its C++ version in later releases that require some Firestore updates. A PR is in progress at https://github.com/firebase/firebase-ios-sdk/pull/10650
Related
[!] CocoaPods could not find compatible versions for pod "Firebase/core":
In Podfile:
Firebase/core
None of your spec sources contain a spec satisfying the dependency: Firebase/core.
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.
[!] Automatically assigning platform iOS with version 14.3 on target Spacechat because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.
Please help as I need to finish this task fast.
My podfile:
#platform :ios, '9.0'
target 'Spacechat' do
use_frameworks!
pod 'Appirater'
#Firebase
pod 'Firebase/core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Analytics'
pod 'Firebase/Crashlytics'
end
From https://github.com/CocoaPods/CocoaPods/issues/10449:
Pod spec/subspec names are case-sensitive. It should be Firebase/Core.
Also, not required, but recommended:
Firebase/Core is no longer recommended usage. Instead, directly specify the needed Firebase libraries. See https://firebase.google.com/docs/ios/setup#available-pods.
So an even better solution is to delete the line since it is redundant with Firebase/Analytics
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 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.
This is my podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
target 'Grabit' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Grabit
pod 'Firebase','>= 2.5.0'
I tried:
Correct podfile like above.
Open project by terminal
Clean and rebuild project.
I tried it many times but I still get the error:
no module such as Firebase
These are my version of Firebase:
Installing Firebase 3.5.2 (was 3.5.2)
Using FirebaseAnalytics (3.3.1)
Using FirebaseInstanceID (1.0.8)
Any help is appreciated.
Things to check when getting this message:
no module such as Firebase
Does your Podfile file have use frameworks!? should look something like
use_frameworks!
target 'Project' do
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Database'
end
target 'Project' do
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Database'
end
Notice that if you want the latest version of a pod, you don't need to specify the version
Do you open your project with MyProject.xcworkspace (white icon) file and not with MyProject.xcodeproj (blue icon)?
Close Xcode and run pod install or pod update. Then open the MyProject.xcworkspace and build the project
Try Cleaning up the Project.
So far this works for me. Also I notice you're missing the "end"
target 'yourProjectname' do
platform :ios, '9.3'
use_frameworks!
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
end
This is working perfectly for me:
use_frameworks!
target 'Project' do
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Firebase/Database'
end
You don't need to set the version, by using just the name, you'll always get the latest version.
In Termin do pod install, then pod update.
Then completely clean your project with [CMD]+[ALT]+[SHIFT]+[K].
Then clean with [CMD]+[SHIFT]+[K].
Then close Xcode, start MyProject.xcworkspace (white icon) and build.
Delete Derived Data,Try Cleaning the Project and then Build, it will work then.
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.