mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

Ambiguous type for Polygon on Mac Catalyst target

Open wmanth opened this issue 2 years ago • 0 comments

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.

Additional links and references

wmanth avatar Jul 30 '23 01:07 wmanth