firebase / geofire-objc

GeoFire for Objective-C - Realtime location queries with Firebase
MIT License
435 stars 176 forks source link

No support for firebase 7.0.0 #144

Closed thatguyhampton closed 3 years ago

thatguyhampton commented 3 years ago

Description

I am unable to integrate geofire through cocoapods on firebase 7.0.0 and up.

pod install error below

[!] CocoaPods could not find compatible versions for pod "Firebase/Database":
  In snapshot (Podfile.lock):
    Firebase/Database (= 7.2.0-M1)

  In Podfile:
    GeoFire/Utils was resolved to 4.1.0, which depends on
      Firebase/Database (~> 6.0)

Specs satisfying the `Firebase/Database (= 7.2.0-M1), Firebase/Database (~> 6.0)` dependency were found, but they required a higher minimum deployment target.
mark-baumann commented 3 years ago

"pod update" should solve your problem

mark-baumann commented 3 years ago

I reproduced your issue. I had the same problem several times........

thatguyhampton commented 3 years ago

@mark-baumann I was able to fix it locally by pulling the repository as a local podspec and updating the dependency in the GeoFire.podspec from

  s.ios.dependency  'Firebase/Database', '~> 6.0'
s.ios.dependency  'Firebase/Database', '~> 7.0'
mark-baumann commented 3 years ago

Nice! Maybe you can help me with my issue? https://github.com/firebase/geofire-objc/issues/143

frios commented 3 years ago

Any timeline when we can expect GeoFire to be updated?

jeffrey-schmitz commented 3 years ago

Updating all of my projects Google packages to null safety has sent me through dependency hell trying to get everything compatible. I think this is my last package. @thatguyhampton I'm not familiar with pulling the repository as a local podspec. Would you mind pointing me in the right direction?

jeffrey-schmitz commented 3 years ago

Wow, what a PITA. I was able to get it working. I had to create a private podspec repo, and the fixed version to its own repo with a custom version tag, update my podspec to use the new version tag, and update the podfile to point to the private source. Maybe there's an easier way, but I couldn't get anything else working.

marcusrohden commented 3 years ago

Hey @parkskier426 could you please give a more detailed explanation of how you did it and paste your podspec? I'm having exactly the same issue... Thank you!

marcusrohden commented 3 years ago

I have submitted a pull request with the updated podspecs. Hope it helps...

147

gregor9494 commented 3 years ago

+1 Can someone upload a version with firebase/database 7 ?

jeffrey-schmitz commented 3 years ago

+1 Can someone upload a version with firebase/database 7 ?

It looks like these changes were merged into master 5 days ago. You should be good to go.

morganchen12 commented 3 years ago

Fixed in 4.2.0.