mapbox-directions-swift icon indicating copy to clipboard operation
mapbox-directions-swift copied to clipboard

Not compatible with mapbox-maps-ios v11.7 or above

Open BinaryDennis opened this issue 1 year ago • 5 comments

mapbox-maps-ios v11.7 and above depends on turf 3.0.0

.package(url: "https://github.com/mapbox/turf-swift.git", exact: "3.0.0"),

but mapbox-directions-swift depends on turf 2.8.0 < 2.9.0

.package(name: "Turf", url: "https://github.com/mapbox/turf-swift.git", "2.8.0"..<"2.9.0"),

When trying to import these 2 packages, Xcode complains

Showing All Errors Only
Failed to resolve dependencies Dependencies could not be resolved because root depends on 'mapbox-directions-swift' 2.14.0..<2.15.0 and root depends on 'mapbox-maps-ios' 11.7.1.
'mapbox-maps-ios' is incompatible with 'mapbox-directions-swift' because no versions of 'mapbox-directions-swift' match the requirement 2.14.1..<2.15.0.
'mapbox-maps-ios' is incompatible with 'mapbox-directions-swift' because 'mapbox-maps-ios' 11.7.1 depends on 'turf-swift' 3.0.0 and 'mapbox-directions-swift' 2.14.0 depends on 'turf-swift' 2.8.0..<2.9.0.

Xcode: 16.1 RC1 macOS: 14.6.1

BinaryDennis avatar Oct 27 '24 07:10 BinaryDennis

Will there be an update in the near future to support to compatibility to maps-ios?

AlfredReisner avatar Feb 04 '25 08:02 AlfredReisner

Hello! When can we expect an update? Best regards

666bsw avatar Feb 08 '25 16:02 666bsw

Any updates?

rouuuge avatar Mar 13 '25 08:03 rouuuge

Now mapbox-maps-ios depends on turf-swift v 4.0.0 🥲

tx-mi avatar Apr 30 '25 08:04 tx-mi

Hi all

The mapbox-directions-swift repo is intended to be used together with the Nav SDK v2 and Maps SDK v10. The Turf v4.0.0 is not compatible with these library versions. If you want to use the Turf v4.0.0, please switch to the MapboxDirections from the Nav SDK v3.

kried avatar Jun 17 '25 10:06 kried

but we don't want the whole Nav SDK 😂

haozes avatar Aug 15 '25 03:08 haozes

Hi everyone

Starting from v3.12.0-beta.1 Nav SDK iOS, you can import a separate MapboxDirections product, so you can import the Directions package compatible with the Turf v4.0.0 without the whole Nav SDK.

kried avatar Sep 04 '25 09:09 kried