googlesamples / ios-nearby

69 stars 30 forks source link

NearbyMessages (1.1.0) dependencies conflict with Firebase (5.6.0) dependencies #35

Closed alexmx closed 5 years ago

alexmx commented 5 years ago

Describe your environment

Steps to reproduce:

We can't install latest version of Firebase iOS SDK (5.6.0) using CocoaPods because it's dependencies conflict with NearbyMessages (iOS Nearby SDK) library. We use both Firebase and NearbyMessages (iOS Nearby SDK) libraries in our app.

After we update our Firebase version to 5.6.0, CocoaPods reports that it can't resolve the dependencies. We get the following error:

[!] CocoaPods could not find compatible versions for pod "GoogleUtilities/NSData+zlib":
  In Podfile:
    Firebase (~> 5.6.0) was resolved to 5.6.0, which depends on
      Firebase/Core (= 5.6.0) was resolved to 5.6.0, which depends on
        FirebaseAnalytics (= 5.1.1) was resolved to 5.1.1, which depends on
          GoogleUtilities/NSData+zlib (~> 5.2)

Specs satisfying the `GoogleUtilities/NSData+zlib (~> 5.2)` dependency were found, but they required a higher minimum deployment target.

If we change the order in which dependencies are defined we get the following error:

[!] CocoaPods could not find compatible versions for pod "GoogleUtilities":
  In Podfile:
    NearbyMessages (~> 1.1.0) was resolved to 1.1.0, which depends on
      GoogleUtilities (~> 1.3)

Specs satisfying the `GoogleUtilities (~> 1.3)` dependency were found, but they required a higher minimum deployment target.

Both Firebase and NearbyMessages are the most recent versions and both use GoogleUtilities library, but completely different versions. Firebase depends on GoogleUtilities "~> 5.2" whereas NearbyMessages uses version "~> 1.3".

NearbyMessages seems to be very outdated, the latest version (1.1.0) has been released two years ago. Is there a plan to release a new version with updated dependencies? It is blocking us from using other Google products.

alexmx commented 5 years ago

I reported this issue with Firebase team as well: firebase/firebase-ios-sdk#1736

It seems that they've got Nearby team to release NearbyMessages 1.1.1 which renames GoogleUtilities to GoogleUtilitiesLegacy so dependencies don't collide anymore.

Quite sad to see the NearbyMessages library is such degraded state 😢.