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.
Related
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
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 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.
I have the following pods listed in my podfile
pod 'AFNetworking', '~> 3.0'
pod 'MBProgressHUD', '~> 1.0.0'
pod 'AFNetworkActivityLogger', git: 'https://github.com/AFNetworking/AFNetworkActivityLogger.git', branch: '3_0_0'
pod 'Fabric'
pod 'Crashlytics'
pod 'CocoaLumberjack'
pod 'Google/SignIn'
But after I installed the above pods using "pod install", I have some additional pods installed in my project as follows,
FirebaseAnalytics
FirebaseCore
FirebaseInstanceID
likewise, May I know why this happens,
If in case its some sort of dependencies related, please let me know along which pod these dependencies are installed.
Recently Firebase linked up with Google.
So Google make some framework mandatory, if you have use any product of google then Below framework is mandatory (If use Pods)
FirebaseAnalytics
FirebaseCore
There is no official docs available from google.
I had said above statement by my personal experience. I have use Google/SignIn and firebase in many Projects of google by using Cocoa Pods, My conclusion is that Above framework mandatory for any specially for Google/SignIn it is mandatory.
I'm developing an swift iOS app and at this "final" stage I'll add Google Analytics.
I'm following their Guide
But it failed at pod install command...
Error Log
Downloading dependencies
Using Alamofire (1.2.2)
Using Bolts (1.2.0)
Using CryptoSwift (0.0.10)
Using FBSDKCoreKit (4.2.0)
Using FBSDKLoginKit (4.2.0)
Using FBSDKShareKit (4.2.0)
Installing Google (1.0.7)
Installing GoogleAnalytics (3.13.0)
Using GoogleMaps (1.10.1)
Installing GoogleNetworkingUtilities (1.0.0)
Installing GoogleSymbolUtilities (1.0.0)
Installing GoogleUtilities (1.0.1)
Using ImageLoader (0.3.2)
Using SQLite.swift (0.1.0.pre)
Using SwiftyJSON (2.2.0)
[!] The 'Pods-<My-Project>' target has transitive dependencies that include static binaries: (<path-to-project-dir>/Pods/Google/Libraries/libGGLAnalytics.a, <path-to-project-dir>/iOS/Pods/Google/Libraries/libGGLCore.a, <path-to-project-dir>/iOS/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a, (...)
As stated in this tutorial, "pods written in Swift must be created as dynamic frameworks" (and that's why the use_frameworks! in the Podfile).
As it seems, this new Google Analytics pod is a static binary.
I tried to change the pod the same as this answer but the pod install command warned me that (obviously) [!] GoogleAnalytics-iOS-SDK has been deprecated in favor of GoogleAnalytics. And I'm not sure it's a good idea to add an already deprecated library to a new project instead of getting the right one to work.
My project has a target dependecy to iOS 8.0+ and the podfile is:
```
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'MyProject' do
pod 'Alamofire', '~> 1.2'
pod 'SwiftyJSON', '~> 2.2.0'
pod 'GoogleMaps'
pod 'ImageLoader', '~> 0.3.0'
pod 'SQLite.swift', git: 'https://github.com/stephencelis/SQLite.swift.git'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'CryptoSwift'
pod 'GoogleAnalytics', '~> 3.13'
end
target 'MyProjectTests' do
end
```
Is anyone having the same problem or know how to solve this using the v3 GA pod?
Replace the line
pod 'GoogleAnalytics-iOS-SDK', '~> 3.10'
in your Podfile with
pod 'GoogleAnalytics', '~> 3.13'
Clean project and run pod install again. The pod you're currently using is the one that is deprecated.