geofeatures2 icon indicating copy to clipboard operation
geofeatures2 copied to clipboard

Polygon does not resolve properly on OSX using Swift Package Manager (Swift PM)

Open tonystone opened this issue 8 years ago • 1 comments

The following code is required on in this scenario. This needs to be resolved.

#if (os(OSX) || os(iOS) || os(tvOS) || os(watchOS)) && SWIFT_PACKAGE
    /// TODO: Remove this after figuring out why there seems to be a symbol conflict (error: cannot specialize a non-generic definition) with another Polygon on Swift PM on Apple platforms only.
    import struct GeoFeatures.Polygon
#endif

tonystone avatar Sep 04 '17 20:09 tonystone

Further research revealed that this is due to resolution ambiguity when ApplicationServices is also included in the same file. This has mainly happened when importing XCTest which seems to depend on it.

tonystone avatar Apr 06 '18 15:04 tonystone