mapbox / mapbox-directions-swift

Traffic-aware directions and map matching in Swift on iOS, macOS, tvOS, watchOS, and Linux
https://www.mapbox.com/navigation/
ISC License
184 stars 90 forks source link

Incompatible versions of Turf between MapboxMaps 11.4 and MapboxDirections 2.12 #824

Closed f-gonzalez closed 5 months ago

f-gonzalez commented 6 months ago

MapboxMaps version 11.4 specifies the dependency Turf to be 2.8.0: https://github.com/mapbox/mapbox-maps-ios/blob/v11.4.0/MapboxMaps.podspec

While MapboxDirections is on 2.7, so they can't be used together.

Error:

[!] CocoaPods could not find compatible versions for pod "Turf":
  In Podfile:
    MapboxDirections (= 2.12.0) was resolved to 2.12.0, which depends on
      Turf (~> 2.7.0)

    MapboxMaps (= 11.4.0) was resolved to 11.4.0, which depends on
      Turf (= 2.8.0)
kried commented 6 months ago

Hi @f-gonzalez

Please use Navigation SDK v3 together with MapboxMaps version 11.4. The latest stable version is v3.0.2. Then you can import the compatible MapboxDirections module.

f-gonzalez commented 5 months ago

Hi @kried . That Navigation SDK library has features that we don't need nor want, and we don't like to add extra pods "just because" with functionality that we are not going to use, just to solve a dependencies conflict.

Can it be possible for your team to please plan an update of Turf and a new tag/version with it for the users that just want to use MapboxDirections alone? (Hopefully it would only be a simple Carthage update) CC @Udumft

amzada commented 5 months ago

Related issue: https://github.com/mapbox/mapbox-maps-ios/issues/2188#issuecomment-2127300086

azarovalex commented 5 months ago

Can it be possible for your team to please plan an update of Turf and a new tag/version with it for the users that just want to use MapboxDirections alone?

@f-gonzalez Looks like bumping Turf in mapbox-directions-swift and releasing a new minor release will solve your issue, I'm going to do this today/tomorrow. In the meanwhile you can pin your dependencies to a previous compatible release of MapsSDK – v11.1.0.