imperiumlabs / GeoFirestore-iOS

GeoFirestore for iOS - Realtime location queries with Firestore
MIT License
127 stars 46 forks source link

Dependency conflict #18

Open sarbogast opened 5 years ago

sarbogast commented 5 years ago

When I try to install that library into my project, CocoaPods gives me the following message:

[!] CocoaPods could not find compatible versions for pod "FirebaseFirestore": In snapshot (Podfile.lock): FirebaseFirestore (= 1.2.1)

In Podfile: Firebase/Firestore was resolved to 5.20.2, which depends on FirebaseFirestore (= 1.2.1)

Geofirestore was resolved to 0.1.0, which depends on
  FirebaseFirestore (~> 0.12.3)

What should I do?

tennydesign commented 5 years ago

same here

RNUK commented 5 years ago

Yes. Just tried to install tonight and got the same error

ajself commented 5 years ago

Looks like there was a version bump to the podspec but a new release was never made.

Pointing the Podfile to master instead of 1.2 as a test should compile fine but... that isn't safe for any app wanting to use this in production. Solution should be to prompt the powers that be to cut a new release and push to Cocoapods.

tennydesign commented 5 years ago

I've just switched to use Geofire for Firebase and will, for now, operate the two databases. That was the most reliable choice for us.

RNUK commented 5 years ago

I did notice there was a branch to 1.0.0 so updated my podfile and re-installed. Both Firestore and GeoFirerstore resolved, but I ended up with a deployment target error. Looks like a small fix my side to resolve this issue.

diegogarciar commented 5 years ago

Can you please update your dependencies?

I had to downgrade from Installing Firebase (6.6.0) -> (5.20.2) Installing FirebaseAnalytics (6.1.0) -> (5.8.1) Installing FirebaseAuth (6.2.2) -> (5.4.2) Installing FirebaseCore (6.2.0) -> (5.4.1) Installing FirebaseFirestore (1.4.3) ->(0.16.1) Installing FirebaseInstanceID (4.2.3) -> (3.8.1) Installing FirebaseStorage (3.4.0) -> (3.1.1)

I need to have the latest versions of firebase SDKs

diegogarciar commented 5 years ago

it seems the issue is also caused by GeoFire being outdated. I ended up installing them both as following:

pod 'GeoFire', :git => 'https://github.com/firebase/geofire-objc' pod 'Geofirestore', :git => 'https://github.com/basementaspirations/GeoFirestore-iOS', :branch => 'firebase-upgrade'

blackwiz4rd commented 5 years ago

it seems the issue is also caused by GeoFire being outdated. I ended up installing them both as following:

pod 'GeoFire', :git => 'https://github.com/firebase/geofire-objc' pod 'Geofirestore', :git => 'https://github.com/basementaspirations/GeoFirestore-iOS', :branch => 'firebase-upgrade'

Solved the issue by doing this