mapbox / mapbox-navigation-ios

Turn-by-turn navigation logic and UI in Swift on iOS
https://docs.mapbox.com/ios/navigation/
Other
861 stars 311 forks source link

[Bug]: mapbox-navigation-ios v3 is incompatible with mapbox-maps-ios v11+ #4663

Closed lpeancovschi closed 3 months ago

lpeancovschi commented 4 months ago

Mapbox Navigation SDK version

3+

Steps to reproduce

  1. Create a new iOS project
  2. Using SPM add mapbox-maps-ios v11 (up to next major version)
  3. Using SPM add mapbox-navigation-ios v3 (up to next major version)

Expected behavior

Both libraries should be aded without error and the project should compile

Actual behavior

When trying to add mapbox-navigation-ios library I'm getting an error saying that mapbox-navigation-ios depends on mapbox-maps-ios 10.17.0..<11.0

Is this a one-time issue or a repeatable issue?

one-time

amzada commented 4 months ago

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

azarovalex commented 4 months ago

Thanks for opening the issue, @lpeancovschi. NavSDK and MapsSDK are versioned in sync, v2 corresponds to v10 and v3 to v11. NavSDK already ships with MapsSDK bundled inside, you don't need to depend on both, only on NavSDK.

I'm getting an error saying that mapbox-navigation-ios depends on mapbox-maps-ios 10.17.0..<11.0

Please double check that you are installing NavSDK v3 and not v2, as I mentioned above NavSDK ships MapSDK inside and don't have a direct dependency on mapbox-maps-ios, you can see this in our Package.swift. Considering this, the error you see could only happen with v2.

We plan to replace bundled xcframeworks of MapsSDK with direct dependency when we opensource NavSDK v3 next week, however this doesn't block you from using NavSDK v3 and MapsSDK v11 today.

amzada commented 4 months ago

any ideas on how to resolve my issue @azarovalex ?