Ambiguous use of 'indices(where:)'
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
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.
CocoaPods
- MapboxDirections (2.14.2):
- Polyline (~> 5.0)
- Turf (~> 2.8.0)
Xcode 26 & Minimum target is also set as 26
I think you should change the name of your custom collection method, as indices(where:) is already provided by Apple.