geofeatures2
geofeatures2 copied to clipboard
Polygon does not resolve properly on OSX using Swift Package Manager (Swift PM)
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
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.