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

Ambiguous use of 'indices(where:)'

Open ajayPris opened this issue 3 months ago • 3 comments

Method duplicate in iOS26, Found this candidate in module 'Swift' (Swift.Collection.indices)

Minimum Development target set as 26.0. Xcode 26 MacOS Tahoe 26

i think you need to change method name

ajayPris avatar Sep 25 '25 11:09 ajayPris

Hi @ajayPris

Thank you for your report. Could you please elaborate on the steps to reproduce the issue? What dependency manager did you use?

The Package.swift species swift-tools-version:5.5. The podspec for CocoaPods also specifies https://github.com/mapbox/mapbox-directions-swift/blob/main/MapboxDirections.podspec. The method you mentioned is an internal one, so it should not create warnings in the app project, even if it uses Swift 6.

kried avatar Oct 08 '25 11:10 kried

CocoaPods

  • MapboxDirections (2.14.2):
    • Polyline (~> 5.0)
    • Turf (~> 2.8.0)

Xcode 26 & Minimum target is also set as 26

Image

ajayPris avatar Oct 08 '25 12:10 ajayPris

I think you should change the name of your custom collection method, as indices(where:) is already provided by Apple.

Image

ajayPris avatar Oct 08 '25 12:10 ajayPris