mapbox-maps-ios
mapbox-maps-ios copied to clipboard
Ambiguous type for Polygon on Mac Catalyst target
Environment
- Xcode version: 14.3.1
- iOS version: 16.4
- Devices affected: Mac Catalyst
- Maps SDK Version: 10.15.0
Observed behavior and steps to reproduce
Compiling a project based on the MapboxMaps package leads to multiple occurrence of the compiler error:
'Polygon' is ambiguous for type lookup in this context
Expected behavior
Successful compilation of the project with Mac Catalyst as build target.
Notes / preliminary analysis
Mac SDK already defines a Polygon type:
ApplicationServices.Polygon:1:18: note: found this candidate
public typealias Polygon = MacPolygon
To use the Polygon type from Turf library it has to explicitly referenced or imported.