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

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

Open BinaryDennis opened 3 weeks ago

BinaryDennis commented 3 weeks ago

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