The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LPMapView, reference main (f600c5), with Swift 6.2 for macOS (SPM) on 19 Jun 2025 23:04:26 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
SwiftUI.Environment.init:3:10: note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
1 | generic struct Environment {
2 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
3 |   public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable}
  |          `- note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
4 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:22:18: error: cannot infer key path type from context; consider explicitly specifying a root type
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentValues.swift:71:32: error: cannot find type 'MKMapFeatureOptions' in scope
69 |
70 |     @available(iOS 16.0, *)
71 |     var mapSelectableFeatures: MKMapFeatureOptions {
   |                                `- error: cannot find type 'MKMapFeatureOptions' in scope
72 |         get { self[MapSelectableFeaturesKey.self] }
73 |         set { self[MapSelectableFeaturesKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:30:6: error: no exact matches in call to initializer
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
    |      |- error: no exact matches in call to initializer
    |      `- note: found candidate with type '(_.Type) -> Environment<Optional<_>>'
 31 |     // MARK: UserInteraction
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
SwiftUI.Environment.init:3:10: note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
1 | generic struct Environment {
2 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
3 |   public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable}
  |          `- note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
4 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:30:18: error: cannot infer key path type from context; consider explicitly specifying a root type
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
    |                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 31 |     // MARK: UserInteraction
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:18:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 16 |
 17 |     // MARK: Route
 18 |     @Environment(\.mapRouteVisibility) private var routeVisibility
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
 20 |     // MARK: Annotation
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:19:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 17 |     // MARK: Route
 18 |     @Environment(\.mapRouteVisibility) private var routeVisibility
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:22:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:23:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
 25 |     @Environment(\.mapFitAnnotationsAnimated) private var animated
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:24:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 25 |     @Environment(\.mapFitAnnotationsAnimated) private var animated
 26 |     // MARK: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:25:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
 25 |     @Environment(\.mapFitAnnotationsAnimated) private var animated
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 26 |     // MARK: Configuration
 27 |     @Environment(\.mapConfiguration) private var mapConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:27:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 25 |     @Environment(\.mapFitAnnotationsAnimated) private var animated
 26 |     // MARK: Configuration
 27 |     @Environment(\.mapConfiguration) private var mapConfiguration
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:28:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 26 |     // MARK: Configuration
 27 |     @Environment(\.mapConfiguration) private var mapConfiguration
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:29:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 27 |     @Environment(\.mapConfiguration) private var mapConfiguration
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
 31 |     // MARK: UserInteraction
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:30:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 31 |     // MARK: UserInteraction
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:32:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
 31 |     // MARK: UserInteraction
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 33 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 34 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:33:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 31 |     // MARK: UserInteraction
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
 33 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 34 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
 35 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:34:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
 33 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 34 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 35 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:35:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 33 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 34 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
 35 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 36 |
 37 |     // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:39:6: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 37 |     // MARK: - Properties
 38 |
 39 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 40 |     private var region: MKCoordinateRegion
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:43:35: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 41 |
 42 |     private var showsUserLocation: Bool = false
 43 |     private var userTrackingMode: MKUserTrackingMode = .none
    |                                   `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 44 |
 45 |     @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:45:6: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 43 |     private var userTrackingMode: MKUserTrackingMode = .none
 44 |
 45 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 46 |     private var points: [MapViewAnnotation]
 47 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:49:32: error: cannot find type 'UIGestureRecognizer' in scope
 47 |
 48 |     private var onSelection: ((MKAnnotation) -> Void)?
 49 |     private var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
    |                                `- error: cannot find type 'UIGestureRecognizer' in scope
 50 |     private var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
 51 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:80:24: error: cannot find type 'UIGestureRecognizer' in scope
 78 |         annotations: Binding<[MapViewAnnotation]>,
 79 |         onSelection: ((MKAnnotation) -> Void)? = nil,
 80 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
    |                        `- error: cannot find type 'UIGestureRecognizer' in scope
 81 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
 82 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:75:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 72 |     ///   - userLocationChanged: A callback passing in the changed
 73 |     ///   `MKUserLocation`.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
 76 |         showsUserLocation: Bool = false,
 77 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:77:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 72 |     ///   - userLocationChanged: A callback passing in the changed
 73 |     ///   `MKUserLocation`.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         region: Binding<MKCoordinateRegion>,
 76 |         showsUserLocation: Bool = false,
 77 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 78 |         annotations: Binding<[MapViewAnnotation]>,
 79 |         onSelection: ((MKAnnotation) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:78:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 72 |     ///   - userLocationChanged: A callback passing in the changed
 73 |     ///   `MKUserLocation`.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         region: Binding<MKCoordinateRegion>,
 76 |         showsUserLocation: Bool = false,
 77 |         userTrackingMode: MKUserTrackingMode = .none,
 78 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
 79 |         onSelection: ((MKAnnotation) -> Void)? = nil,
 80 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:113:24: error: cannot find type 'UIGestureRecognizer' in scope
111 |         userTrackingMode: MKUserTrackingMode = .none,
112 |         annotations: Binding<[MapViewAnnotation]>,
113 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
    |                        `- error: cannot find type 'UIGestureRecognizer' in scope
114 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
115 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:109:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
106 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
107 |     ///   from where the gesture happened on the ``MapView``.
108 |     public init(
    |            `- note: add @available attribute to enclosing initializer
109 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
110 |         showsUserLocation: Bool = false,
111 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:111:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
106 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
107 |     ///   from where the gesture happened on the ``MapView``.
108 |     public init(
    |            `- note: add @available attribute to enclosing initializer
109 |         region: Binding<MKCoordinateRegion>,
110 |         showsUserLocation: Bool = false,
111 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
112 |         annotations: Binding<[MapViewAnnotation]>,
113 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:112:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
106 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
107 |     ///   from where the gesture happened on the ``MapView``.
108 |     public init(
    |            `- note: add @available attribute to enclosing initializer
109 |         region: Binding<MKCoordinateRegion>,
110 |         showsUserLocation: Bool = false,
111 |         userTrackingMode: MKUserTrackingMode = .none,
112 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
113 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
114 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:141:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
138 |     ///   - onSelection: A callback passing in a `MKAnnotation`
139 |     ///   item that was selected in the ``MapView``.
140 |     public init(
    |            `- note: add @available attribute to enclosing initializer
141 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
142 |         showsUserLocation: Bool = false,
143 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:143:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
138 |     ///   - onSelection: A callback passing in a `MKAnnotation`
139 |     ///   item that was selected in the ``MapView``.
140 |     public init(
    |            `- note: add @available attribute to enclosing initializer
141 |         region: Binding<MKCoordinateRegion>,
142 |         showsUserLocation: Bool = false,
143 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
144 |         annotations: Binding<[MapViewAnnotation]>,
145 |         onSelection: ((MKAnnotation) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:144:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
138 |     ///   - onSelection: A callback passing in a `MKAnnotation`
139 |     ///   item that was selected in the ``MapView``.
140 |     public init(
    |            `- note: add @available attribute to enclosing initializer
141 |         region: Binding<MKCoordinateRegion>,
142 |         showsUserLocation: Bool = false,
143 |         userTrackingMode: MKUserTrackingMode = .none,
144 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
145 |         onSelection: ((MKAnnotation) -> Void)?,
146 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:159:37: error: cannot find type 'Context' in scope
157 |     // MARK: - UIViewRepresentable
158 |
159 |     public func makeUIView(context: Context) -> MKMapView {
    |                                     `- error: cannot find type 'Context' in scope
160 |         let mapView = MKMapView()
161 |         mapView.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:176:61: error: cannot find type 'Context' in scope
174 |     }
175 |
176 |     public func updateUIView(_ mapView: MKMapView, context: Context) {
    |                                                             `- error: cannot find type 'Context' in scope
177 |         mapView.removeOverlays(mapView.overlays)
178 |         mapView.removeAnnotations(mapView.annotations)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:222:46: error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
220 |     // MARK: - Methods
221 |
222 |     private func preferredConfiguration() -> MKMapConfiguration {
    |                  |                           `- error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
223 |         let preferredConfig: MKMapConfiguration
224 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:242:59: error: cannot find type 'UILongPressGestureRecognizer' in scope
240 |     }
241 |
242 |     private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
    |                                                           `- error: cannot find type 'UILongPressGestureRecognizer' in scope
243 |         UILongPressGestureRecognizer(
244 |             target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:242:47: error: cannot find type 'Context' in scope
240 |     }
241 |
242 |     private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
    |                                               `- error: cannot find type 'Context' in scope
243 |         UILongPressGestureRecognizer(
244 |             target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:12:24: error: cannot find type 'UIViewRepresentable' in scope
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |                        `- error: cannot find type 'UIViewRepresentable' in scope
 13 |     public typealias UIViewType = MKMapView
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:164:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
157 |     // MARK: - UIViewRepresentable
158 |
159 |     public func makeUIView(context: Context) -> MKMapView {
    |                 `- note: add @available attribute to enclosing instance method
160 |         let mapView = MKMapView()
161 |         mapView.delegate = context.coordinator
162 |         mapView.setRegion(region, animated: animated)
163 |         mapView.showsUserLocation = showsUserLocation
164 |         mapView.userTrackingMode = userTrackingMode
    |                 |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
    |                 `- note: add 'if #available' version check
165 |         mapView.selectableMapFeatures = selectableFeatures
166 |         mapView.isZoomEnabled = zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:165:17: error: value of type 'MKMapView' has no member 'selectableMapFeatures'
163 |         mapView.showsUserLocation = showsUserLocation
164 |         mapView.userTrackingMode = userTrackingMode
165 |         mapView.selectableMapFeatures = selectableFeatures
    |                 `- error: value of type 'MKMapView' has no member 'selectableMapFeatures'
166 |         mapView.isZoomEnabled = zoomEnabled
167 |         mapView.isScrollEnabled = scrollEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:171:17: error: 'preferredConfiguration' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
157 |     // MARK: - UIViewRepresentable
158 |
159 |     public func makeUIView(context: Context) -> MKMapView {
    |                 `- note: add @available attribute to enclosing instance method
160 |         let mapView = MKMapView()
161 |         mapView.delegate = context.coordinator
    :
169 |         mapView.isRotateEnabled = rotateEnabled
170 |
171 |         mapView.preferredConfiguration = preferredConfiguration()
    |                 |- error: 'preferredConfiguration' is only available in macOS 13.0 or newer
    |                 `- note: add 'if #available' version check
172 |         mapView.addGestureRecognizer(longPressGesture(in: context))
173 |         return mapView
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:181:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
174 |     }
175 |
176 |     public func updateUIView(_ mapView: MKMapView, context: Context) {
    |                 `- note: add @available attribute to enclosing instance method
177 |         mapView.removeOverlays(mapView.overlays)
178 |         mapView.removeAnnotations(mapView.annotations)
179 |
180 |         mapView.showsUserLocation = showsUserLocation
181 |         mapView.userTrackingMode = userTrackingMode
    |                 |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
    |                 `- note: add 'if #available' version check
182 |         mapView.selectableMapFeatures = selectableFeatures
183 |         mapView.isZoomEnabled = zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:182:17: error: value of type 'MKMapView' has no member 'selectableMapFeatures'
180 |         mapView.showsUserLocation = showsUserLocation
181 |         mapView.userTrackingMode = userTrackingMode
182 |         mapView.selectableMapFeatures = selectableFeatures
    |                 `- error: value of type 'MKMapView' has no member 'selectableMapFeatures'
183 |         mapView.isZoomEnabled = zoomEnabled
184 |         mapView.isScrollEnabled = scrollEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:187:17: error: 'preferredConfiguration' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
174 |     }
175 |
176 |     public func updateUIView(_ mapView: MKMapView, context: Context) {
    |                 `- note: add @available attribute to enclosing instance method
177 |         mapView.removeOverlays(mapView.overlays)
178 |         mapView.removeAnnotations(mapView.annotations)
    :
185 |         mapView.isPitchEnabled = pitchEnabled
186 |         mapView.isRotateEnabled = rotateEnabled
187 |         mapView.preferredConfiguration = preferredConfiguration()
    |                 |- error: 'preferredConfiguration' is only available in macOS 13.0 or newer
    |                 `- note: add 'if #available' version check
188 |
189 |         if routeVisibility == .visible {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:14:29: error: cannot find type 'UIColor' in scope
12 |
13 |     struct Configuration {
14 |         var annotationTint: UIColor
   |                             `- error: cannot find type 'UIColor' in scope
15 |         var showCallout: Bool
16 |         var routeStyle: MapRouteStyle
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:18:28: error: cannot find type 'UIGestureRecognizer' in scope
16 |         var routeStyle: MapRouteStyle
17 |         var onSelection: ((MKAnnotation) -> Void)?
18 |         var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
   |                            `- error: cannot find type 'UIGestureRecognizer' in scope
19 |         var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
20 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:223:30: error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
220 |     // MARK: - Methods
221 |
222 |     private func preferredConfiguration() -> MKMapConfiguration {
    |                  `- note: add @available attribute to enclosing instance method
223 |         let preferredConfig: MKMapConfiguration
    |                              |- error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
    |                              `- note: add 'if #available' version check
224 |
225 |         switch mapConfiguration {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:227:26: error: 'MKStandardMapConfiguration' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
220 |     // MARK: - Methods
221 |
222 |     private func preferredConfiguration() -> MKMapConfiguration {
    |                  `- note: add @available attribute to enclosing instance method
223 |         let preferredConfig: MKMapConfiguration
224 |
225 |         switch mapConfiguration {
226 |         case .standard:
227 |             let config = MKStandardMapConfiguration(elevationStyle: elevationStyle)
    |                          |- error: 'MKStandardMapConfiguration' is only available in macOS 13.0 or newer
    |                          `- note: add 'if #available' version check
228 |             config.pointOfInterestFilter = poiFilter
229 |             preferredConfig = config
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:231:26: error: 'MKHybridMapConfiguration' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
220 |     // MARK: - Methods
221 |
222 |     private func preferredConfiguration() -> MKMapConfiguration {
    |                  `- note: add @available attribute to enclosing instance method
223 |         let preferredConfig: MKMapConfiguration
224 |
    :
229 |             preferredConfig = config
230 |         case .hybrid:
231 |             let config = MKHybridMapConfiguration(elevationStyle: elevationStyle)
    |                          |- error: 'MKHybridMapConfiguration' is only available in macOS 13.0 or newer
    |                          `- note: add 'if #available' version check
232 |             config.pointOfInterestFilter = poiFilter
233 |             preferredConfig = config
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:235:26: error: 'MKImageryMapConfiguration' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
220 |     // MARK: - Methods
221 |
222 |     private func preferredConfiguration() -> MKMapConfiguration {
    |                  `- note: add @available attribute to enclosing instance method
223 |         let preferredConfig: MKMapConfiguration
224 |
    :
233 |             preferredConfig = config
234 |         case .satellite:
235 |             let config = MKImageryMapConfiguration(elevationStyle: elevationStyle)
    |                          |- error: 'MKImageryMapConfiguration' is only available in macOS 13.0 or newer
    |                          `- note: add 'if #available' version check
236 |             preferredConfig = config
237 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewAnnotation.swift:48:15: error: cannot find type 'UIColor' in scope
46 |         subtitle: String? = nil,
47 |         systemImage: String? = nil,
48 |         tint: UIColor? = nil,
   |               `- error: cannot find type 'UIColor' in scope
49 |         displayPriotity: MKFeatureDisplayPriority = .required
50 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewAnnotation.swift:27:22: error: cannot find type 'UIColor' in scope
25 |
26 |     /// The color which will be used to tint the annotation marker.
27 |     public var tint: UIColor?
   |                      `- error: cannot find type 'UIColor' in scope
28 |
29 |     /// The display priority of the annotation view.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/15] Emitting module LPMapView
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:14:29: error: cannot find type 'UIColor' in scope
12 |
13 |     struct Configuration {
14 |         var annotationTint: UIColor
   |                             `- error: cannot find type 'UIColor' in scope
15 |         var showCallout: Bool
16 |         var routeStyle: MapRouteStyle
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:18:28: error: cannot find type 'UIGestureRecognizer' in scope
16 |         var routeStyle: MapRouteStyle
17 |         var onSelection: ((MKAnnotation) -> Void)?
18 |         var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
   |                            `- error: cannot find type 'UIGestureRecognizer' in scope
19 |         var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
20 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/MapRouteStyle.swift:13:15: error: cannot find type 'UIColor' in scope
11 | public protocol MapRouteStyle {
12 |     /// The line's tint color.
13 |     var tint: UIColor { get set }
   |               `- error: cannot find type 'UIColor' in scope
14 |
15 |     /// The line's width in points.
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:60:78: error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
 9 | import MapKit
10 |
11 | public class MapCoordinator: NSObject, MKMapViewDelegate {
   |              `- note: add @available attribute to enclosing class
12 |
13 |     struct Configuration {
   :
58 |     }
59 |
60 |     private func markerAnnotationView(from annotation: MapViewAnnotation) -> MKMarkerAnnotationView {
   |                  |                                                           `- error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
   |                  `- note: add @available attribute to enclosing instance method
61 |         let annotationView = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: nil)
62 |         annotationView.animatesWhenAdded = false
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:48:17: error: cannot override 'mapView' which has been marked unavailable
46 |     }
47 |
48 |     public func mapView(_ mapView: MKMapView, didSelect annotation: MKAnnotation) {
   |                 `- error: cannot override 'mapView' which has been marked unavailable
49 |         configuration.onSelection?(annotation)
50 |     }
MapKit.MKMapViewDelegate.mapView:3:17: note: 'mapView(_:didSelect:)' has been explicitly marked unavailable here
1 | protocol MKMapViewDelegate {
2 | @available(macOS, unavailable)
3 |   optional func mapView(_ mapView: MKMapView, didSelect annotation: any MKAnnotation)}
  |                 `- note: 'mapView(_:didSelect:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentValues.swift:32:28: error: cannot find type 'UIColor' in scope
30 |     }
31 |
32 |     var mapAnnotationTint: UIColor {
   |                            `- error: cannot find type 'UIColor' in scope
33 |         get { self[MapAnnotationTintKey.self] }
34 |         set { self[MapAnnotationTintKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:6: error: no exact matches in call to initializer
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |      |- error: no exact matches in call to initializer
    |      `- note: found candidate with type '(_.Type) -> Environment<Optional<_>>'
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
SwiftUI.Environment.init:3:10: note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
1 | generic struct Environment {
2 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
3 |   public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable}
  |          `- note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
4 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:18: error: cannot infer key path type from context; consider explicitly specifying a root type
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:18:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 16 |
 17 |     // MARK: Route
 18 |     @Environment(\.mapRouteVisibility) private var routeVisibility
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
 20 |     // MARK: Annotation
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:19:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 17 |     // MARK: Route
 18 |     @Environment(\.mapRouteVisibility) private var routeVisibility
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:23:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
 25 |     // MARK: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:24:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 25 |     // MARK: Configuration
 26 |     @Environment(\.mapConfiguration) private var mapConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:26:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
 25 |     // MARK: Configuration
 26 |     @Environment(\.mapConfiguration) private var mapConfiguration
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 27 |     @Environment(\.mapPOIFilter) private var poiFilter
 28 |     // MARK: UserInteraction
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:27:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 25 |     // MARK: Configuration
 26 |     @Environment(\.mapConfiguration) private var mapConfiguration
 27 |     @Environment(\.mapPOIFilter) private var poiFilter
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 28 |     // MARK: UserInteraction
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:29:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 27 |     @Environment(\.mapPOIFilter) private var poiFilter
 28 |     // MARK: UserInteraction
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:30:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 28 |     // MARK: UserInteraction
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:31:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:32:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 33 |
 34 |     @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:34:6: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
 33 |
 34 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 35 |     private var region: MKCoordinateRegion
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:38:35: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 36 |
 37 |     private var showsUserLocation: Bool = false
 38 |     private var userTrackingMode: MKUserTrackingMode = .none
    |                                   `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 39 |
 40 |     @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:40:6: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 38 |     private var userTrackingMode: MKUserTrackingMode = .none
 39 |
 40 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 41 |     private var points: [MapViewAnnotation]
 42 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:44:32: error: cannot find type 'UIGestureRecognizer' in scope
 42 |
 43 |     private var onSelection: ((MKAnnotation) -> Void)?
 44 |     private var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
    |                                `- error: cannot find type 'UIGestureRecognizer' in scope
 45 |     private var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
 46 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:75:24: error: cannot find type 'UIGestureRecognizer' in scope
 73 |         annotations: Binding<[MapViewAnnotation]>,
 74 |         onSelection: ((MKAnnotation) -> Void)? = nil,
 75 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
    |                        `- error: cannot find type 'UIGestureRecognizer' in scope
 76 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
 77 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:70:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 67 |     ///   - userLocationChanged: A callback passing in the changed
 68 |     ///   `MKUserLocation`.
 69 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 70 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
 71 |         showsUserLocation: Bool = false,
 72 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:72:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 67 |     ///   - userLocationChanged: A callback passing in the changed
 68 |     ///   `MKUserLocation`.
 69 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 70 |         region: Binding<MKCoordinateRegion>,
 71 |         showsUserLocation: Bool = false,
 72 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 73 |         annotations: Binding<[MapViewAnnotation]>,
 74 |         onSelection: ((MKAnnotation) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:73:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 67 |     ///   - userLocationChanged: A callback passing in the changed
 68 |     ///   `MKUserLocation`.
 69 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 70 |         region: Binding<MKCoordinateRegion>,
 71 |         showsUserLocation: Bool = false,
 72 |         userTrackingMode: MKUserTrackingMode = .none,
 73 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
 74 |         onSelection: ((MKAnnotation) -> Void)? = nil,
 75 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:108:24: error: cannot find type 'UIGestureRecognizer' in scope
106 |         userTrackingMode: MKUserTrackingMode = .none,
107 |         annotations: Binding<[MapViewAnnotation]>,
108 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
    |                        `- error: cannot find type 'UIGestureRecognizer' in scope
109 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
110 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:104:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
101 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 |     ///   from where the gesture happened on the ``MapView``.
103 |     public init(
    |            `- note: add @available attribute to enclosing initializer
104 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
105 |         showsUserLocation: Bool = false,
106 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:106:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
101 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 |     ///   from where the gesture happened on the ``MapView``.
103 |     public init(
    |            `- note: add @available attribute to enclosing initializer
104 |         region: Binding<MKCoordinateRegion>,
105 |         showsUserLocation: Bool = false,
106 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
107 |         annotations: Binding<[MapViewAnnotation]>,
108 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:107:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
101 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 |     ///   from where the gesture happened on the ``MapView``.
103 |     public init(
    |            `- note: add @available attribute to enclosing initializer
104 |         region: Binding<MKCoordinateRegion>,
105 |         showsUserLocation: Bool = false,
106 |         userTrackingMode: MKUserTrackingMode = .none,
107 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
108 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
109 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:136:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
133 |     ///   - onSelection: A callback passing in a `MKAnnotation`
134 |     ///   item that was selected in the ``MapView``.
135 |     public init(
    |            `- note: add @available attribute to enclosing initializer
136 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
137 |         showsUserLocation: Bool = false,
138 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:138:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
133 |     ///   - onSelection: A callback passing in a `MKAnnotation`
134 |     ///   item that was selected in the ``MapView``.
135 |     public init(
    |            `- note: add @available attribute to enclosing initializer
136 |         region: Binding<MKCoordinateRegion>,
137 |         showsUserLocation: Bool = false,
138 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
139 |         annotations: Binding<[MapViewAnnotation]>,
140 |         onSelection: ((MKAnnotation) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:139:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
133 |     ///   - onSelection: A callback passing in a `MKAnnotation`
134 |     ///   item that was selected in the ``MapView``.
135 |     public init(
    |            `- note: add @available attribute to enclosing initializer
136 |         region: Binding<MKCoordinateRegion>,
137 |         showsUserLocation: Bool = false,
138 |         userTrackingMode: MKUserTrackingMode = .none,
139 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
140 |         onSelection: ((MKAnnotation) -> Void)?,
141 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:152:37: error: cannot find type 'Context' in scope
150 |     }
151 |
152 |     public func makeUIView(context: Context) -> MKMapView {
    |                                     `- error: cannot find type 'Context' in scope
153 |         let mapView = MKMapView()
154 |         mapView.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:169:61: error: cannot find type 'Context' in scope
167 |     }
168 |
169 |     public func updateUIView(_ mapView: MKMapView, context: Context) {
    |                                                             `- error: cannot find type 'Context' in scope
170 |         mapView.removeOverlays(mapView.overlays)
171 |         mapView.removeAnnotations(mapView.annotations)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:226:59: error: cannot find type 'UILongPressGestureRecognizer' in scope
224 |     }
225 |
226 |     private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
    |                                                           `- error: cannot find type 'UILongPressGestureRecognizer' in scope
227 |         UILongPressGestureRecognizer(
228 |             target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:226:47: error: cannot find type 'Context' in scope
224 |     }
225 |
226 |     private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
    |                                               `- error: cannot find type 'Context' in scope
227 |         UILongPressGestureRecognizer(
228 |             target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:12:25: error: cannot find type 'UIViewRepresentable' in scope
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |                         `- error: cannot find type 'UIViewRepresentable' in scope
 13 |     public typealias UIViewType = MKMapView
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:22:6: error: no exact matches in call to initializer
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |      |- error: no exact matches in call to initializer
    |      `- note: found candidate with type '(_.Type) -> Environment<Optional<_>>'
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
SwiftUI.Environment.init:3:10: note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
1 | generic struct Environment {
2 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
3 |   public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable}
  |          `- note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
4 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:22:18: error: cannot infer key path type from context; consider explicitly specifying a root type
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentValues.swift:71:32: error: cannot find type 'MKMapFeatureOptions' in scope
69 |
70 |     @available(iOS 16.0, *)
71 |     var mapSelectableFeatures: MKMapFeatureOptions {
   |                                `- error: cannot find type 'MKMapFeatureOptions' in scope
72 |         get { self[MapSelectableFeaturesKey.self] }
73 |         set { self[MapSelectableFeaturesKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:30:6: error: no exact matches in call to initializer
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
    |      |- error: no exact matches in call to initializer
    |      `- note: found candidate with type '(_.Type) -> Environment<Optional<_>>'
 31 |     // MARK: UserInteraction
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
SwiftUI.Environment.init:3:10: note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
1 | generic struct Environment {
2 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
3 |   public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable}
  |          `- note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
4 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:30:18: error: cannot infer key path type from context; consider explicitly specifying a root type
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
    |                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 31 |     // MARK: UserInteraction
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:18:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 16 |
 17 |     // MARK: Route
 18 |     @Environment(\.mapRouteVisibility) private var routeVisibility
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
 20 |     // MARK: Annotation
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:19:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 17 |     // MARK: Route
 18 |     @Environment(\.mapRouteVisibility) private var routeVisibility
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:22:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:23:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
 25 |     @Environment(\.mapFitAnnotationsAnimated) private var animated
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:24:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 25 |     @Environment(\.mapFitAnnotationsAnimated) private var animated
 26 |     // MARK: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:25:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
 25 |     @Environment(\.mapFitAnnotationsAnimated) private var animated
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 26 |     // MARK: Configuration
 27 |     @Environment(\.mapConfiguration) private var mapConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:27:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 25 |     @Environment(\.mapFitAnnotationsAnimated) private var animated
 26 |     // MARK: Configuration
 27 |     @Environment(\.mapConfiguration) private var mapConfiguration
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:28:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 26 |     // MARK: Configuration
 27 |     @Environment(\.mapConfiguration) private var mapConfiguration
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:29:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 27 |     @Environment(\.mapConfiguration) private var mapConfiguration
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
 31 |     // MARK: UserInteraction
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:30:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 28 |     @Environment(\.mapElevationStyle) private var elevationStyle
 29 |     @Environment(\.mapPOIFilter) private var poiFilter
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 31 |     // MARK: UserInteraction
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:32:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 30 |     @Environment(\.mapSelectableFeatures) private var selectableFeatures
 31 |     // MARK: UserInteraction
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 33 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 34 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:33:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 31 |     // MARK: UserInteraction
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
 33 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 34 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
 35 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:34:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 32 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
 33 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 34 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 35 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:35:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 33 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 34 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
 35 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 36 |
 37 |     // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:39:6: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 37 |     // MARK: - Properties
 38 |
 39 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 40 |     private var region: MKCoordinateRegion
 41 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:43:35: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 41 |
 42 |     private var showsUserLocation: Bool = false
 43 |     private var userTrackingMode: MKUserTrackingMode = .none
    |                                   `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 44 |
 45 |     @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:45:6: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 43 |     private var userTrackingMode: MKUserTrackingMode = .none
 44 |
 45 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 46 |     private var points: [MapViewAnnotation]
 47 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:49:32: error: cannot find type 'UIGestureRecognizer' in scope
 47 |
 48 |     private var onSelection: ((MKAnnotation) -> Void)?
 49 |     private var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
    |                                `- error: cannot find type 'UIGestureRecognizer' in scope
 50 |     private var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
 51 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:80:24: error: cannot find type 'UIGestureRecognizer' in scope
 78 |         annotations: Binding<[MapViewAnnotation]>,
 79 |         onSelection: ((MKAnnotation) -> Void)? = nil,
 80 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
    |                        `- error: cannot find type 'UIGestureRecognizer' in scope
 81 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
 82 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:75:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 72 |     ///   - userLocationChanged: A callback passing in the changed
 73 |     ///   `MKUserLocation`.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
 76 |         showsUserLocation: Bool = false,
 77 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:77:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 72 |     ///   - userLocationChanged: A callback passing in the changed
 73 |     ///   `MKUserLocation`.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         region: Binding<MKCoordinateRegion>,
 76 |         showsUserLocation: Bool = false,
 77 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 78 |         annotations: Binding<[MapViewAnnotation]>,
 79 |         onSelection: ((MKAnnotation) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:78:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 72 |     ///   - userLocationChanged: A callback passing in the changed
 73 |     ///   `MKUserLocation`.
 74 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 75 |         region: Binding<MKCoordinateRegion>,
 76 |         showsUserLocation: Bool = false,
 77 |         userTrackingMode: MKUserTrackingMode = .none,
 78 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
 79 |         onSelection: ((MKAnnotation) -> Void)? = nil,
 80 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:113:24: error: cannot find type 'UIGestureRecognizer' in scope
111 |         userTrackingMode: MKUserTrackingMode = .none,
112 |         annotations: Binding<[MapViewAnnotation]>,
113 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
    |                        `- error: cannot find type 'UIGestureRecognizer' in scope
114 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
115 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:109:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
106 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
107 |     ///   from where the gesture happened on the ``MapView``.
108 |     public init(
    |            `- note: add @available attribute to enclosing initializer
109 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
110 |         showsUserLocation: Bool = false,
111 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:111:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
106 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
107 |     ///   from where the gesture happened on the ``MapView``.
108 |     public init(
    |            `- note: add @available attribute to enclosing initializer
109 |         region: Binding<MKCoordinateRegion>,
110 |         showsUserLocation: Bool = false,
111 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
112 |         annotations: Binding<[MapViewAnnotation]>,
113 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:112:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
106 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
107 |     ///   from where the gesture happened on the ``MapView``.
108 |     public init(
    |            `- note: add @available attribute to enclosing initializer
109 |         region: Binding<MKCoordinateRegion>,
110 |         showsUserLocation: Bool = false,
111 |         userTrackingMode: MKUserTrackingMode = .none,
112 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
113 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
114 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:141:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
138 |     ///   - onSelection: A callback passing in a `MKAnnotation`
139 |     ///   item that was selected in the ``MapView``.
140 |     public init(
    |            `- note: add @available attribute to enclosing initializer
141 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
142 |         showsUserLocation: Bool = false,
143 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:143:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
138 |     ///   - onSelection: A callback passing in a `MKAnnotation`
139 |     ///   item that was selected in the ``MapView``.
140 |     public init(
    |            `- note: add @available attribute to enclosing initializer
141 |         region: Binding<MKCoordinateRegion>,
142 |         showsUserLocation: Bool = false,
143 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
144 |         annotations: Binding<[MapViewAnnotation]>,
145 |         onSelection: ((MKAnnotation) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:144:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
138 |     ///   - onSelection: A callback passing in a `MKAnnotation`
139 |     ///   item that was selected in the ``MapView``.
140 |     public init(
    |            `- note: add @available attribute to enclosing initializer
141 |         region: Binding<MKCoordinateRegion>,
142 |         showsUserLocation: Bool = false,
143 |         userTrackingMode: MKUserTrackingMode = .none,
144 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
145 |         onSelection: ((MKAnnotation) -> Void)?,
146 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:159:37: error: cannot find type 'Context' in scope
157 |     // MARK: - UIViewRepresentable
158 |
159 |     public func makeUIView(context: Context) -> MKMapView {
    |                                     `- error: cannot find type 'Context' in scope
160 |         let mapView = MKMapView()
161 |         mapView.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:176:61: error: cannot find type 'Context' in scope
174 |     }
175 |
176 |     public func updateUIView(_ mapView: MKMapView, context: Context) {
    |                                                             `- error: cannot find type 'Context' in scope
177 |         mapView.removeOverlays(mapView.overlays)
178 |         mapView.removeAnnotations(mapView.annotations)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:222:46: error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
220 |     // MARK: - Methods
221 |
222 |     private func preferredConfiguration() -> MKMapConfiguration {
    |                  |                           `- error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
    |                  `- note: add @available attribute to enclosing instance method
223 |         let preferredConfig: MKMapConfiguration
224 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:242:59: error: cannot find type 'UILongPressGestureRecognizer' in scope
240 |     }
241 |
242 |     private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
    |                                                           `- error: cannot find type 'UILongPressGestureRecognizer' in scope
243 |         UILongPressGestureRecognizer(
244 |             target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:242:47: error: cannot find type 'Context' in scope
240 |     }
241 |
242 |     private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
    |                                               `- error: cannot find type 'Context' in scope
243 |         UILongPressGestureRecognizer(
244 |             target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:12:24: error: cannot find type 'UIViewRepresentable' in scope
 10 |
 11 | @available(iOS 16.0, *)
 12 | public struct MapView: UIViewRepresentable {
    |                        `- error: cannot find type 'UIViewRepresentable' in scope
 13 |     public typealias UIViewType = MKMapView
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewAnnotation.swift:48:15: error: cannot find type 'UIColor' in scope
46 |         subtitle: String? = nil,
47 |         systemImage: String? = nil,
48 |         tint: UIColor? = nil,
   |               `- error: cannot find type 'UIColor' in scope
49 |         displayPriotity: MKFeatureDisplayPriority = .required
50 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewAnnotation.swift:27:22: error: cannot find type 'UIColor' in scope
25 |
26 |     /// The color which will be used to tint the annotation marker.
27 |     public var tint: UIColor?
   |                      `- error: cannot find type 'UIColor' in scope
28 |
29 |     /// The display priority of the annotation view.
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/SolidMapRouteStyle.swift:34:55: error: 'blue' is only available in macOS 10.15 or newer
26 | }
27 |
28 | public extension MapRouteStyle where Self == SolidMapRouteStyle {
   |        `- note: add @available attribute to enclosing extension
29 |     /// A solid line with the given width and tint color.
30 |     /// - Parameters:
   :
32 |     ///   - tint: The line's tint color.
33 |     /// - Returns: A ``SolidMapRouteStyle``
34 |     static func solid(_ width: Double, tint: Color = .blue) -> SolidMapRouteStyle {
   |                 |                                     `- error: 'blue' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing static method
35 |         SolidMapRouteStyle(width, tint: tint)
36 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentKeys.swift:28:31: error: cannot find 'UIColor' in scope
26 |
27 | struct MapAnnotationTintKey: EnvironmentKey {
28 |     static let defaultValue = UIColor.systemRed
   |                               `- error: cannot find 'UIColor' in scope
29 | }
30 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentKeys.swift:27:8: error: type 'MapAnnotationTintKey' does not conform to protocol 'EnvironmentKey'
25 | }
26 |
27 | struct MapAnnotationTintKey: EnvironmentKey {
   |        |- error: type 'MapAnnotationTintKey' does not conform to protocol 'EnvironmentKey'
   |        `- note: add stubs for conformance
28 |     static let defaultValue = UIColor.systemRed
29 | }
SwiftUI.EnvironmentKey.Value:2:16: note: protocol requires nested type 'Value'
1 | protocol EnvironmentKey {
2 | associatedtype Value}
  |                `- note: protocol requires nested type 'Value'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentKeys.swift:51:31: error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
48 |
49 | @available(iOS 16.0, *)
50 | struct MapElevationStyleKey: EnvironmentKey {
   |        `- note: add @available attribute to enclosing struct
51 |     static let defaultValue = MKMapConfiguration.ElevationStyle.flat
   |                |              `- error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
   |                `- note: add @available attribute to enclosing static property
52 | }
53 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentKeys.swift:55:31: error: 'MKPointOfInterestFilter' is only available in macOS 10.15 or newer
52 | }
53 |
54 | struct MapPOIKey: EnvironmentKey {
   |        `- note: add @available attribute to enclosing struct
55 |     static let defaultValue = MKPointOfInterestFilter.includingAll
   |                |              `- error: 'MKPointOfInterestFilter' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing static property
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentKeys.swift:60:30: error: cannot find type 'MKMapFeatureOptions' in scope
58 | @available(iOS 16.0, *)
59 | struct MapSelectableFeaturesKey: EnvironmentKey {
60 |     static let defaultValue: MKMapFeatureOptions = []
   |                              `- error: cannot find type 'MKMapFeatureOptions' in scope
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentKeys.swift:59:8: error: type 'MapSelectableFeaturesKey' does not conform to protocol 'EnvironmentKey'
57 |
58 | @available(iOS 16.0, *)
59 | struct MapSelectableFeaturesKey: EnvironmentKey {
   |        |- error: type 'MapSelectableFeaturesKey' does not conform to protocol 'EnvironmentKey'
   |        `- note: add stubs for conformance
60 |     static let defaultValue: MKMapFeatureOptions = []
61 | }
SwiftUI.EnvironmentKey.Value:2:16: note: protocol requires nested type 'Value'
1 | protocol EnvironmentKey {
2 | associatedtype Value}
  |                `- note: protocol requires nested type 'Value'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentValues.swift:60:28: error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
 9 | import SwiftUI
10 |
11 | extension EnvironmentValues {
   | `- note: add @available attribute to enclosing extension
12 |
13 |     // MARK: Route
   :
58 |
59 |     @available(iOS 16.0, *)
60 |     var mapElevationStyle: MKMapConfiguration.ElevationStyle {
   |         |                  `- error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
   |         `- note: add @available attribute to enclosing property
61 |         get { self[MapElevationStyleKey.self] }
62 |         set { self[MapElevationStyleKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentValues.swift:65:23: error: 'MKPointOfInterestFilter' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension EnvironmentValues {
   | `- note: add @available attribute to enclosing extension
12 |
13 |     // MARK: Route
   :
63 |     }
64 |
65 |     var mapPOIFilter: MKPointOfInterestFilter {
   |         |             `- error: 'MKPointOfInterestFilter' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing property
66 |         get { self[MapPOIKey.self] }
67 |         set { self[MapPOIKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentValues.swift:11:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension EnvironmentValues {
   | |         `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
12 |
13 |     // MARK: Route
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/DashedMapRouteStyle.swift:12:22: error: cannot find type 'UIColor' in scope
10 | /// A ``MapRouteStyle`` defining a dashed line with the given width and tint color.
11 | public struct DashedMapRouteStyle: MapRouteStyle {
12 |     public var tint: UIColor
   |                      `- error: cannot find type 'UIColor' in scope
13 |
14 |     public var lineWidth: Double
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/DashedMapRouteStyle.swift:22:40: error: 'Color' is only available in macOS 10.15 or newer
 9 |
10 | /// A ``MapRouteStyle`` defining a dashed line with the given width and tint color.
11 | public struct DashedMapRouteStyle: MapRouteStyle {
   |               `- note: add @available attribute to enclosing struct
12 |     public var tint: UIColor
13 |
   :
20 |     public var lineDashPattern: [NSNumber]?
21 |
22 |     public init(_ width: Double, tint: Color = .blue) {
   |            |                           `- error: 'Color' is only available in macOS 10.15 or newer
   |            `- note: add @available attribute to enclosing initializer
23 |         self.lineWidth = width / 2
24 |         self.tint = UIColor(tint)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/DashedMapRouteStyle.swift:22:49: error: 'blue' is only available in macOS 10.15 or newer
 9 |
10 | /// A ``MapRouteStyle`` defining a dashed line with the given width and tint color.
11 | public struct DashedMapRouteStyle: MapRouteStyle {
   |               `- note: add @available attribute to enclosing struct
12 |     public var tint: UIColor
13 |
   :
20 |     public var lineDashPattern: [NSNumber]?
21 |
22 |     public init(_ width: Double, tint: Color = .blue) {
   |            |                                    `- error: 'blue' is only available in macOS 10.15 or newer
   |            `- note: add @available attribute to enclosing initializer
23 |         self.lineWidth = width / 2
24 |         self.tint = UIColor(tint)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/DashedMapRouteStyle.swift:36:47: error: 'Color' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public extension MapRouteStyle where Self == DashedMapRouteStyle {
   |        `- note: add @available attribute to enclosing extension
30 |     /// A dashed line with the given width and tint color.
31 |     ///
   :
34 |     ///   - tint: The line's tint color.
35 |     /// - Returns: A ``DashedMapRouteStyle``
36 |     static func dashed(_ width: Double, tint: Color = .blue) -> DashedMapRouteStyle {
   |                 |                             `- error: 'Color' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing static method
37 |         DashedMapRouteStyle(width, tint: tint)
38 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/DashedMapRouteStyle.swift:36:56: error: 'blue' is only available in macOS 10.15 or newer
27 | }
28 |
29 | public extension MapRouteStyle where Self == DashedMapRouteStyle {
   |        `- note: add @available attribute to enclosing extension
30 |     /// A dashed line with the given width and tint color.
31 |     ///
   :
34 |     ///   - tint: The line's tint color.
35 |     /// - Returns: A ``DashedMapRouteStyle``
36 |     static func dashed(_ width: Double, tint: Color = .blue) -> DashedMapRouteStyle {
   |                 |                                      `- error: 'blue' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing static method
37 |         DashedMapRouteStyle(width, tint: tint)
38 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/SolidMapRouteStyle.swift:12:22: error: cannot find type 'UIColor' in scope
10 | /// A ``MapRouteStyle`` defining a solid line with the given width and tint color.
11 | public struct SolidMapRouteStyle: MapRouteStyle {
12 |     public var tint: UIColor
   |                      `- error: cannot find type 'UIColor' in scope
13 |
14 |     public var lineWidth: Double
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/SolidMapRouteStyle.swift:22:40: error: 'Color' is only available in macOS 10.15 or newer
 9 |
10 | /// A ``MapRouteStyle`` defining a solid line with the given width and tint color.
11 | public struct SolidMapRouteStyle: MapRouteStyle {
   |               `- note: add @available attribute to enclosing struct
12 |     public var tint: UIColor
13 |
   :
20 |     public var lineDashPattern: [NSNumber]?
21 |
22 |     public init(_ width: Double, tint: Color = .blue) {
   |            |                           `- error: 'Color' is only available in macOS 10.15 or newer
   |            `- note: add @available attribute to enclosing initializer
23 |         self.lineWidth = width
24 |         self.tint = UIColor(tint)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/SolidMapRouteStyle.swift:22:49: error: 'blue' is only available in macOS 10.15 or newer
 9 |
10 | /// A ``MapRouteStyle`` defining a solid line with the given width and tint color.
11 | public struct SolidMapRouteStyle: MapRouteStyle {
   |               `- note: add @available attribute to enclosing struct
12 |     public var tint: UIColor
13 |
   :
20 |     public var lineDashPattern: [NSNumber]?
21 |
22 |     public init(_ width: Double, tint: Color = .blue) {
   |            |                                    `- error: 'blue' is only available in macOS 10.15 or newer
   |            `- note: add @available attribute to enclosing initializer
23 |         self.lineWidth = width
24 |         self.tint = UIColor(tint)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/SolidMapRouteStyle.swift:34:46: error: 'Color' is only available in macOS 10.15 or newer
26 | }
27 |
28 | public extension MapRouteStyle where Self == SolidMapRouteStyle {
   |        `- note: add @available attribute to enclosing extension
29 |     /// A solid line with the given width and tint color.
30 |     /// - Parameters:
   :
32 |     ///   - tint: The line's tint color.
33 |     /// - Returns: A ``SolidMapRouteStyle``
34 |     static func solid(_ width: Double, tint: Color = .blue) -> SolidMapRouteStyle {
   |                 |                            `- error: 'Color' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing static method
35 |         SolidMapRouteStyle(width, tint: tint)
36 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:19:15: error: 'View' is only available in macOS 10.15 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
    :
 15 |     /// - Parameters:
 16 |     ///   - visibility: Whether or not the route will be visible.
 17 |     func mapDisplayRoute(
    |          `- note: add @available attribute to enclosing instance method
 18 |         _ visibility: MapViewVisibility = .visible
 19 |     ) -> some View {
    |               `- error: 'View' is only available in macOS 10.15 or newer
 20 |         self
 21 |             .environment(\.mapRouteVisibility, visibility)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:30:56: error: 'View' is only available in macOS 10.15 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
    :
 28 |     ///
 29 |     /// - Parameter style: The route line style to use.
 30 |     func mapRouteStyle(_ style: MapRouteStyle) -> some View {
    |          |                                             `- error: 'View' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
 31 |         self
 32 |             .environment(\.mapRouteStyle, style)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:51:15: error: 'Color' is only available in macOS 10.15 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
    :
 47 |     ///   map zoom to fit all annotations.
 48 |     ///   - animated: Whether or not to animate changes.
 49 |     func mapAnnotations(
    |          `- note: add @available attribute to enclosing instance method
 50 |         _ visibility: MapViewVisibility = .visible,
 51 |         tint: Color = .red,
    |               `- error: 'Color' is only available in macOS 10.15 or newer
 52 |         calloutEnabled: Bool = false,
 53 |         fitInVisibleRect: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:55:15: error: 'View' is only available in macOS 10.15 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
    :
 47 |     ///   map zoom to fit all annotations.
 48 |     ///   - animated: Whether or not to animate changes.
 49 |     func mapAnnotations(
    |          `- note: add @available attribute to enclosing instance method
 50 |         _ visibility: MapViewVisibility = .visible,
 51 |         tint: Color = .red,
    :
 53 |         fitInVisibleRect: Bool = false,
 54 |         animated: Bool = true
 55 |     ) -> some View {
    |               `- error: 'View' is only available in macOS 10.15 or newer
 56 |         self
 57 |             .environment(\.mapAnnotationVisibility, visibility)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:51:24: error: 'red' is only available in macOS 10.15 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
    :
 47 |     ///   map zoom to fit all annotations.
 48 |     ///   - animated: Whether or not to animate changes.
 49 |     func mapAnnotations(
    |          `- note: add @available attribute to enclosing instance method
 50 |         _ visibility: MapViewVisibility = .visible,
 51 |         tint: Color = .red,
    |                        `- error: 'red' is only available in macOS 10.15 or newer
 52 |         calloutEnabled: Bool = false,
 53 |         fitInVisibleRect: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:81:29: error: cannot find type 'MKMapFeatureOptions' in scope
 79 |         elevationStyle: MKMapConfiguration.ElevationStyle = .flat,
 80 |         poiFilter: MKPointOfInterestFilter = .includingAll,
 81 |         selectableFeatures: MKMapFeatureOptions = []
    |                             `- error: cannot find type 'MKMapFeatureOptions' in scope
 82 |     ) -> some View {
 83 |         self
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:79:25: error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
    :
 75 |     ///   the map responds to.
 76 |     @available(iOS 16.0, *)
 77 |     func mapConfiguration(
    |          `- note: add @available attribute to enclosing instance method
 78 |         _ configuration: MapViewConfiguration,
 79 |         elevationStyle: MKMapConfiguration.ElevationStyle = .flat,
    |                         `- error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
 80 |         poiFilter: MKPointOfInterestFilter = .includingAll,
 81 |         selectableFeatures: MKMapFeatureOptions = []
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:80:20: error: 'MKPointOfInterestFilter' is only available in macOS 10.15 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
    :
 75 |     ///   the map responds to.
 76 |     @available(iOS 16.0, *)
 77 |     func mapConfiguration(
    |          `- note: add @available attribute to enclosing instance method
 78 |         _ configuration: MapViewConfiguration,
 79 |         elevationStyle: MKMapConfiguration.ElevationStyle = .flat,
 80 |         poiFilter: MKPointOfInterestFilter = .includingAll,
    |                    `- error: 'MKPointOfInterestFilter' is only available in macOS 10.15 or newer
 81 |         selectableFeatures: MKMapFeatureOptions = []
 82 |     ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:82:15: error: 'View' is only available in macOS 10.15 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
    :
 75 |     ///   the map responds to.
 76 |     @available(iOS 16.0, *)
 77 |     func mapConfiguration(
    |          `- note: add @available attribute to enclosing instance method
 78 |         _ configuration: MapViewConfiguration,
 79 |         elevationStyle: MKMapConfiguration.ElevationStyle = .flat,
 80 |         poiFilter: MKPointOfInterestFilter = .includingAll,
 81 |         selectableFeatures: MKMapFeatureOptions = []
 82 |     ) -> some View {
    |               `- error: 'View' is only available in macOS 10.15 or newer
 83 |         self
 84 |             .environment(\.mapConfiguration, configuration)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:101:20: error: 'MKPointOfInterestFilter' is only available in macOS 10.15 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
    :
 97 |     ///   search completer.
 98 |     @available(iOS, deprecated: 16.0)
 99 |     func mapConfiguration(
    |          `- note: add @available attribute to enclosing instance method
100 |         _ configuration: MapViewConfiguration,
101 |         poiFilter: MKPointOfInterestFilter = .includingAll
    |                    `- error: 'MKPointOfInterestFilter' is only available in macOS 10.15 or newer
102 |     ) -> some View {
103 |         self
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:102:15: error: 'View' is only available in macOS 10.15 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
    :
 97 |     ///   search completer.
 98 |     @available(iOS, deprecated: 16.0)
 99 |     func mapConfiguration(
    |          `- note: add @available attribute to enclosing instance method
100 |         _ configuration: MapViewConfiguration,
101 |         poiFilter: MKPointOfInterestFilter = .includingAll
102 |     ) -> some View {
    |               `- error: 'View' is only available in macOS 10.15 or newer
103 |         self
104 |             .environment(\.mapConfiguration, configuration)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:125:15: error: 'View' is only available in macOS 10.15 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
    :
118 |     ///   - rotate: A Boolean value that indicates whether the map uses
119 |     ///   the camera’s heading information.
120 |     func mapUserInteraction(
    |          `- note: add @available attribute to enclosing instance method
121 |         zoom: Bool = true,
122 |         scroll: Bool = true,
123 |         pitch: Bool = true,
124 |         rotate: Bool = true
125 |     ) -> some View {
    |               `- error: 'View' is only available in macOS 10.15 or newer
126 |         self
127 |             .environment(\.mapInteractionZoom, zoom)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/View+MapModifiers.swift:11:18: error: 'View' is only available in macOS 10.15 or newer
  9 | import SwiftUI
 10 |
 11 | public extension View {
    |        |         `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing extension
 12 |
 13 |     /// Setup options for displaying a route between annotations.
[14/15] Compiling LPMapView MapCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:14:29: error: cannot find type 'UIColor' in scope
12 |
13 |     struct Configuration {
14 |         var annotationTint: UIColor
   |                             `- error: cannot find type 'UIColor' in scope
15 |         var showCallout: Bool
16 |         var routeStyle: MapRouteStyle
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:18:28: error: cannot find type 'UIGestureRecognizer' in scope
16 |         var routeStyle: MapRouteStyle
17 |         var onSelection: ((MKAnnotation) -> Void)?
18 |         var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
   |                            `- error: cannot find type 'UIGestureRecognizer' in scope
19 |         var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
20 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/MapRouteStyle.swift:13:15: error: cannot find type 'UIColor' in scope
11 | public protocol MapRouteStyle {
12 |     /// The line's tint color.
13 |     var tint: UIColor { get set }
   |               `- error: cannot find type 'UIColor' in scope
14 |
15 |     /// The line's width in points.
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:60:78: error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
 9 | import MapKit
10 |
11 | public class MapCoordinator: NSObject, MKMapViewDelegate {
   |              `- note: add @available attribute to enclosing class
12 |
13 |     struct Configuration {
   :
58 |     }
59 |
60 |     private func markerAnnotationView(from annotation: MapViewAnnotation) -> MKMarkerAnnotationView {
   |                  |                                                           `- error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
   |                  `- note: add @available attribute to enclosing instance method
61 |         let annotationView = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: nil)
62 |         annotationView.animatesWhenAdded = false
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:48:17: error: cannot override 'mapView' which has been marked unavailable
46 |     }
47 |
48 |     public func mapView(_ mapView: MKMapView, didSelect annotation: MKAnnotation) {
   |                 `- error: cannot override 'mapView' which has been marked unavailable
49 |         configuration.onSelection?(annotation)
50 |     }
MapKit.MKMapViewDelegate.mapView:3:17: note: 'mapView(_:didSelect:)' has been explicitly marked unavailable here
1 | protocol MKMapViewDelegate {
2 | @available(macOS, unavailable)
3 |   optional func mapView(_ mapView: MKMapView, didSelect annotation: any MKAnnotation)}
  |                 `- note: 'mapView(_:didSelect:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:61:30: error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
 9 | import MapKit
10 |
11 | public class MapCoordinator: NSObject, MKMapViewDelegate {
   |              `- note: add @available attribute to enclosing class
12 |
13 |     struct Configuration {
   :
58 |     }
59 |
60 |     private func markerAnnotationView(from annotation: MapViewAnnotation) -> MKMarkerAnnotationView {
   |                  `- note: add @available attribute to enclosing instance method
61 |         let annotationView = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: nil)
   |                              |- error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
   |                              `- note: add 'if #available' version check
62 |         annotationView.animatesWhenAdded = false
63 |         annotationView.markerTintColor = annotation.tint ?? configuration.annotationTint
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewAnnotation.swift:27:22: error: cannot find type 'UIColor' in scope
25 |
26 |     /// The color which will be used to tint the annotation marker.
27 |     public var tint: UIColor?
   |                      `- error: cannot find type 'UIColor' in scope
28 |
29 |     /// The display priority of the annotation view.
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:66:41: error: cannot find 'UIImage' in scope
64 |         annotationView.displayPriority = annotation.displayPriority
65 |         if let systemImage = annotation.systemImage {
66 |             annotationView.glyphImage = UIImage(systemName: systemImage)
   |                                         `- error: cannot find 'UIImage' in scope
67 |             annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
68 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:67:55: error: cannot find 'UIImageView' in scope
65 |         if let systemImage = annotation.systemImage {
66 |             annotationView.glyphImage = UIImage(systemName: systemImage)
67 |             annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
   |                                                       `- error: cannot find 'UIImageView' in scope
68 |         }
69 |         if annotation.title != nil {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:67:75: error: cannot infer contextual base in reference to member 'init'
65 |         if let systemImage = annotation.systemImage {
66 |             annotationView.glyphImage = UIImage(systemName: systemImage)
67 |             annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
   |                                                                           `- error: cannot infer contextual base in reference to member 'init'
68 |         }
69 |         if annotation.title != nil {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:71:56: error: cannot find 'UIView' in scope
69 |         if annotation.title != nil {
70 |             annotationView.canShowCallout = configuration.showCallout
71 |             annotationView.rightCalloutAccessoryView = UIView(frame: .zero)
   |                                                        `- error: cannot find 'UIView' in scope
72 |         }
73 |         return annotationView
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:71:71: error: cannot infer contextual base in reference to member 'zero'
69 |         if annotation.title != nil {
70 |             annotationView.canShowCallout = configuration.showCallout
71 |             annotationView.rightCalloutAccessoryView = UIView(frame: .zero)
   |                                                                       `- error: cannot infer contextual base in reference to member 'zero'
72 |         }
73 |         return annotationView
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:77:39: error: cannot find type 'UILongPressGestureRecognizer' in scope
75 |
76 |     @objc func action(sender: Any?) {
77 |         if let longPress = sender as? UILongPressGestureRecognizer,
   |                                       `- error: cannot find type 'UILongPressGestureRecognizer' in scope
78 |            let mapView = longPress.view as? MKMapView {
79 |             let location = longPress.location(in: mapView)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentValues.swift:32:28: error: cannot find type 'UIColor' in scope
30 |     }
31 |
32 |     var mapAnnotationTint: UIColor {
   |                            `- error: cannot find type 'UIColor' in scope
33 |         get { self[MapAnnotationTintKey.self] }
34 |         set { self[MapAnnotationTintKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:6: error: no exact matches in call to initializer
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |      |- error: no exact matches in call to initializer
    |      `- note: found candidate with type '(_.Type) -> Environment<Optional<_>>'
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
SwiftUI.Environment.init:3:10: note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
1 | generic struct Environment {
2 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
3 |   public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable}
  |          `- note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
4 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:18: error: cannot infer key path type from context; consider explicitly specifying a root type
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:18:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 16 |
 17 |     // MARK: Route
 18 |     @Environment(\.mapRouteVisibility) private var routeVisibility
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
 20 |     // MARK: Annotation
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:19:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 17 |     // MARK: Route
 18 |     @Environment(\.mapRouteVisibility) private var routeVisibility
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:23:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
 25 |     // MARK: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:24:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 25 |     // MARK: Configuration
 26 |     @Environment(\.mapConfiguration) private var mapConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:26:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
 25 |     // MARK: Configuration
 26 |     @Environment(\.mapConfiguration) private var mapConfiguration
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 27 |     @Environment(\.mapPOIFilter) private var poiFilter
 28 |     // MARK: UserInteraction
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:27:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 25 |     // MARK: Configuration
 26 |     @Environment(\.mapConfiguration) private var mapConfiguration
 27 |     @Environment(\.mapPOIFilter) private var poiFilter
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 28 |     // MARK: UserInteraction
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:29:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 27 |     @Environment(\.mapPOIFilter) private var poiFilter
 28 |     // MARK: UserInteraction
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:30:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 28 |     // MARK: UserInteraction
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:31:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:32:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 33 |
 34 |     @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:34:6: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
 33 |
 34 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 35 |     private var region: MKCoordinateRegion
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:38:35: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 36 |
 37 |     private var showsUserLocation: Bool = false
 38 |     private var userTrackingMode: MKUserTrackingMode = .none
    |                                   `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 39 |
 40 |     @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:40:6: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 38 |     private var userTrackingMode: MKUserTrackingMode = .none
 39 |
 40 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 41 |     private var points: [MapViewAnnotation]
 42 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:44:32: error: cannot find type 'UIGestureRecognizer' in scope
 42 |
 43 |     private var onSelection: ((MKAnnotation) -> Void)?
 44 |     private var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
    |                                `- error: cannot find type 'UIGestureRecognizer' in scope
 45 |     private var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
 46 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:75:24: error: cannot find type 'UIGestureRecognizer' in scope
 73 |         annotations: Binding<[MapViewAnnotation]>,
 74 |         onSelection: ((MKAnnotation) -> Void)? = nil,
 75 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
    |                        `- error: cannot find type 'UIGestureRecognizer' in scope
 76 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
 77 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:70:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 67 |     ///   - userLocationChanged: A callback passing in the changed
 68 |     ///   `MKUserLocation`.
 69 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 70 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
 71 |         showsUserLocation: Bool = false,
 72 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:72:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 67 |     ///   - userLocationChanged: A callback passing in the changed
 68 |     ///   `MKUserLocation`.
 69 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 70 |         region: Binding<MKCoordinateRegion>,
 71 |         showsUserLocation: Bool = false,
 72 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 73 |         annotations: Binding<[MapViewAnnotation]>,
 74 |         onSelection: ((MKAnnotation) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:73:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 67 |     ///   - userLocationChanged: A callback passing in the changed
 68 |     ///   `MKUserLocation`.
 69 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 70 |         region: Binding<MKCoordinateRegion>,
 71 |         showsUserLocation: Bool = false,
 72 |         userTrackingMode: MKUserTrackingMode = .none,
 73 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
 74 |         onSelection: ((MKAnnotation) -> Void)? = nil,
 75 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:108:24: error: cannot find type 'UIGestureRecognizer' in scope
106 |         userTrackingMode: MKUserTrackingMode = .none,
107 |         annotations: Binding<[MapViewAnnotation]>,
108 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
    |                        `- error: cannot find type 'UIGestureRecognizer' in scope
109 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
110 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:104:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
101 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 |     ///   from where the gesture happened on the ``MapView``.
103 |     public init(
    |            `- note: add @available attribute to enclosing initializer
104 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
105 |         showsUserLocation: Bool = false,
106 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:106:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
101 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 |     ///   from where the gesture happened on the ``MapView``.
103 |     public init(
    |            `- note: add @available attribute to enclosing initializer
104 |         region: Binding<MKCoordinateRegion>,
105 |         showsUserLocation: Bool = false,
106 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
107 |         annotations: Binding<[MapViewAnnotation]>,
108 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:107:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
101 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 |     ///   from where the gesture happened on the ``MapView``.
103 |     public init(
    |            `- note: add @available attribute to enclosing initializer
104 |         region: Binding<MKCoordinateRegion>,
105 |         showsUserLocation: Bool = false,
106 |         userTrackingMode: MKUserTrackingMode = .none,
107 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
108 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
109 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:136:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
133 |     ///   - onSelection: A callback passing in a `MKAnnotation`
134 |     ///   item that was selected in the ``MapView``.
135 |     public init(
    |            `- note: add @available attribute to enclosing initializer
136 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
137 |         showsUserLocation: Bool = false,
138 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:138:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
133 |     ///   - onSelection: A callback passing in a `MKAnnotation`
134 |     ///   item that was selected in the ``MapView``.
135 |     public init(
    |            `- note: add @available attribute to enclosing initializer
136 |         region: Binding<MKCoordinateRegion>,
137 |         showsUserLocation: Bool = false,
138 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
139 |         annotations: Binding<[MapViewAnnotation]>,
140 |         onSelection: ((MKAnnotation) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:139:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
133 |     ///   - onSelection: A callback passing in a `MKAnnotation`
134 |     ///   item that was selected in the ``MapView``.
135 |     public init(
    |            `- note: add @available attribute to enclosing initializer
136 |         region: Binding<MKCoordinateRegion>,
137 |         showsUserLocation: Bool = false,
138 |         userTrackingMode: MKUserTrackingMode = .none,
139 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
140 |         onSelection: ((MKAnnotation) -> Void)?,
141 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:152:37: error: cannot find type 'Context' in scope
150 |     }
151 |
152 |     public func makeUIView(context: Context) -> MKMapView {
    |                                     `- error: cannot find type 'Context' in scope
153 |         let mapView = MKMapView()
154 |         mapView.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:169:61: error: cannot find type 'Context' in scope
167 |     }
168 |
169 |     public func updateUIView(_ mapView: MKMapView, context: Context) {
    |                                                             `- error: cannot find type 'Context' in scope
170 |         mapView.removeOverlays(mapView.overlays)
171 |         mapView.removeAnnotations(mapView.annotations)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:226:59: error: cannot find type 'UILongPressGestureRecognizer' in scope
224 |     }
225 |
226 |     private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
    |                                                           `- error: cannot find type 'UILongPressGestureRecognizer' in scope
227 |         UILongPressGestureRecognizer(
228 |             target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:226:47: error: cannot find type 'Context' in scope
224 |     }
225 |
226 |     private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
    |                                               `- error: cannot find type 'Context' in scope
227 |         UILongPressGestureRecognizer(
228 |             target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:12:25: error: cannot find type 'UIViewRepresentable' in scope
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |                         `- error: cannot find type 'UIViewRepresentable' in scope
 13 |     public typealias UIViewType = MKMapView
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:157:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
150 |     }
151 |
152 |     public func makeUIView(context: Context) -> MKMapView {
    |                 `- note: add @available attribute to enclosing instance method
153 |         let mapView = MKMapView()
154 |         mapView.delegate = context.coordinator
155 |         mapView.setRegion(region, animated: true)
156 |         mapView.showsUserLocation = showsUserLocation
157 |         mapView.userTrackingMode = userTrackingMode
    |                 |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
    |                 `- note: add 'if #available' version check
158 |         mapView.mapType = mapStyle()
159 |         mapView.pointOfInterestFilter = poiFilter
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:159:17: error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
150 |     }
151 |
152 |     public func makeUIView(context: Context) -> MKMapView {
    |                 `- note: add @available attribute to enclosing instance method
153 |         let mapView = MKMapView()
154 |         mapView.delegate = context.coordinator
    :
157 |         mapView.userTrackingMode = userTrackingMode
158 |         mapView.mapType = mapStyle()
159 |         mapView.pointOfInterestFilter = poiFilter
    |                 |- error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
160 |         mapView.isZoomEnabled = zoomEnabled
161 |         mapView.isScrollEnabled = scrollEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:174:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
167 |     }
168 |
169 |     public func updateUIView(_ mapView: MKMapView, context: Context) {
    |                 `- note: add @available attribute to enclosing instance method
170 |         mapView.removeOverlays(mapView.overlays)
171 |         mapView.removeAnnotations(mapView.annotations)
172 |
173 |         mapView.showsUserLocation = showsUserLocation
174 |         mapView.userTrackingMode = userTrackingMode
    |                 |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
    |                 `- note: add 'if #available' version check
175 |         mapView.mapType = mapStyle()
176 |         mapView.pointOfInterestFilter = poiFilter
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:176:17: error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
167 |     }
168 |
169 |     public func updateUIView(_ mapView: MKMapView, context: Context) {
    |                 `- note: add @available attribute to enclosing instance method
170 |         mapView.removeOverlays(mapView.overlays)
171 |         mapView.removeAnnotations(mapView.annotations)
    :
174 |         mapView.userTrackingMode = userTrackingMode
175 |         mapView.mapType = mapStyle()
176 |         mapView.pointOfInterestFilter = poiFilter
    |                 |- error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
177 |         mapView.isZoomEnabled = zoomEnabled
178 |         mapView.isScrollEnabled = scrollEnabled
[15/15] Compiling LPMapView MapView+Compatibility.swift
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:14:29: error: cannot find type 'UIColor' in scope
12 |
13 |     struct Configuration {
14 |         var annotationTint: UIColor
   |                             `- error: cannot find type 'UIColor' in scope
15 |         var showCallout: Bool
16 |         var routeStyle: MapRouteStyle
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:18:28: error: cannot find type 'UIGestureRecognizer' in scope
16 |         var routeStyle: MapRouteStyle
17 |         var onSelection: ((MKAnnotation) -> Void)?
18 |         var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
   |                            `- error: cannot find type 'UIGestureRecognizer' in scope
19 |         var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
20 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/MapRouteStyle.swift:13:15: error: cannot find type 'UIColor' in scope
11 | public protocol MapRouteStyle {
12 |     /// The line's tint color.
13 |     var tint: UIColor { get set }
   |               `- error: cannot find type 'UIColor' in scope
14 |
15 |     /// The line's width in points.
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:60:78: error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
 9 | import MapKit
10 |
11 | public class MapCoordinator: NSObject, MKMapViewDelegate {
   |              `- note: add @available attribute to enclosing class
12 |
13 |     struct Configuration {
   :
58 |     }
59 |
60 |     private func markerAnnotationView(from annotation: MapViewAnnotation) -> MKMarkerAnnotationView {
   |                  |                                                           `- error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
   |                  `- note: add @available attribute to enclosing instance method
61 |         let annotationView = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: nil)
62 |         annotationView.animatesWhenAdded = false
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:48:17: error: cannot override 'mapView' which has been marked unavailable
46 |     }
47 |
48 |     public func mapView(_ mapView: MKMapView, didSelect annotation: MKAnnotation) {
   |                 `- error: cannot override 'mapView' which has been marked unavailable
49 |         configuration.onSelection?(annotation)
50 |     }
MapKit.MKMapViewDelegate.mapView:3:17: note: 'mapView(_:didSelect:)' has been explicitly marked unavailable here
1 | protocol MKMapViewDelegate {
2 | @available(macOS, unavailable)
3 |   optional func mapView(_ mapView: MKMapView, didSelect annotation: any MKAnnotation)}
  |                 `- note: 'mapView(_:didSelect:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:61:30: error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
 9 | import MapKit
10 |
11 | public class MapCoordinator: NSObject, MKMapViewDelegate {
   |              `- note: add @available attribute to enclosing class
12 |
13 |     struct Configuration {
   :
58 |     }
59 |
60 |     private func markerAnnotationView(from annotation: MapViewAnnotation) -> MKMarkerAnnotationView {
   |                  `- note: add @available attribute to enclosing instance method
61 |         let annotationView = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: nil)
   |                              |- error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
   |                              `- note: add 'if #available' version check
62 |         annotationView.animatesWhenAdded = false
63 |         annotationView.markerTintColor = annotation.tint ?? configuration.annotationTint
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewAnnotation.swift:27:22: error: cannot find type 'UIColor' in scope
25 |
26 |     /// The color which will be used to tint the annotation marker.
27 |     public var tint: UIColor?
   |                      `- error: cannot find type 'UIColor' in scope
28 |
29 |     /// The display priority of the annotation view.
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:66:41: error: cannot find 'UIImage' in scope
64 |         annotationView.displayPriority = annotation.displayPriority
65 |         if let systemImage = annotation.systemImage {
66 |             annotationView.glyphImage = UIImage(systemName: systemImage)
   |                                         `- error: cannot find 'UIImage' in scope
67 |             annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
68 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:67:55: error: cannot find 'UIImageView' in scope
65 |         if let systemImage = annotation.systemImage {
66 |             annotationView.glyphImage = UIImage(systemName: systemImage)
67 |             annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
   |                                                       `- error: cannot find 'UIImageView' in scope
68 |         }
69 |         if annotation.title != nil {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:67:75: error: cannot infer contextual base in reference to member 'init'
65 |         if let systemImage = annotation.systemImage {
66 |             annotationView.glyphImage = UIImage(systemName: systemImage)
67 |             annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
   |                                                                           `- error: cannot infer contextual base in reference to member 'init'
68 |         }
69 |         if annotation.title != nil {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:71:56: error: cannot find 'UIView' in scope
69 |         if annotation.title != nil {
70 |             annotationView.canShowCallout = configuration.showCallout
71 |             annotationView.rightCalloutAccessoryView = UIView(frame: .zero)
   |                                                        `- error: cannot find 'UIView' in scope
72 |         }
73 |         return annotationView
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:71:71: error: cannot infer contextual base in reference to member 'zero'
69 |         if annotation.title != nil {
70 |             annotationView.canShowCallout = configuration.showCallout
71 |             annotationView.rightCalloutAccessoryView = UIView(frame: .zero)
   |                                                                       `- error: cannot infer contextual base in reference to member 'zero'
72 |         }
73 |         return annotationView
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:77:39: error: cannot find type 'UILongPressGestureRecognizer' in scope
75 |
76 |     @objc func action(sender: Any?) {
77 |         if let longPress = sender as? UILongPressGestureRecognizer,
   |                                       `- error: cannot find type 'UILongPressGestureRecognizer' in scope
78 |            let mapView = longPress.view as? MKMapView {
79 |             let location = longPress.location(in: mapView)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentValues.swift:32:28: error: cannot find type 'UIColor' in scope
30 |     }
31 |
32 |     var mapAnnotationTint: UIColor {
   |                            `- error: cannot find type 'UIColor' in scope
33 |         get { self[MapAnnotationTintKey.self] }
34 |         set { self[MapAnnotationTintKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:6: error: no exact matches in call to initializer
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |      |- error: no exact matches in call to initializer
    |      `- note: found candidate with type '(_.Type) -> Environment<Optional<_>>'
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
SwiftUI.Environment.init:3:10: note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
1 | generic struct Environment {
2 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
3 |   public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable}
  |          `- note: candidate expects value of type 'Value.Type' for parameter #1 (got 'KeyPath<Root, Value>')
4 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:18: error: cannot infer key path type from context; consider explicitly specifying a root type
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |                  `- error: cannot infer key path type from context; consider explicitly specifying a root type
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:18:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 16 |
 17 |     // MARK: Route
 18 |     @Environment(\.mapRouteVisibility) private var routeVisibility
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
 20 |     // MARK: Annotation
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:19:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 17 |     // MARK: Route
 18 |     @Environment(\.mapRouteVisibility) private var routeVisibility
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 19 |     @Environment(\.mapRouteStyle) private var routeStyle
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 20 |     // MARK: Annotation
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:23:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 21 |     @Environment(\.mapAnnotationVisibility) private var annotationVisibility
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
 25 |     // MARK: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:24:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 22 |     @Environment(\.mapAnnotationTint) private var annotationTint
 23 |     @Environment(\.mapShowCallout) private var showCallout
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 25 |     // MARK: Configuration
 26 |     @Environment(\.mapConfiguration) private var mapConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:26:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 24 |     @Environment(\.mapFitAnnotations) private var fitAnnotations
 25 |     // MARK: Configuration
 26 |     @Environment(\.mapConfiguration) private var mapConfiguration
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 27 |     @Environment(\.mapPOIFilter) private var poiFilter
 28 |     // MARK: UserInteraction
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:27:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 25 |     // MARK: Configuration
 26 |     @Environment(\.mapConfiguration) private var mapConfiguration
 27 |     @Environment(\.mapPOIFilter) private var poiFilter
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 28 |     // MARK: UserInteraction
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:29:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 27 |     @Environment(\.mapPOIFilter) private var poiFilter
 28 |     // MARK: UserInteraction
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:30:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 28 |     // MARK: UserInteraction
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:31:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 29 |     @Environment(\.mapInteractionZoom) private var zoomEnabled
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
 33 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:32:6: error: 'Environment' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 30 |     @Environment(\.mapInteractionScroll) private var scrollEnabled
 31 |     @Environment(\.mapInteractionPitch) private var pitchEnabled
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
    |      `- error: 'Environment' is only available in macOS 10.15 or newer
 33 |
 34 |     @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:34:6: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 32 |     @Environment(\.mapInteractionRotate) private var rotateEnabled
 33 |
 34 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 35 |     private var region: MKCoordinateRegion
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:38:35: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 36 |
 37 |     private var showsUserLocation: Bool = false
 38 |     private var userTrackingMode: MKUserTrackingMode = .none
    |                                   `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 39 |
 40 |     @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:40:6: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 38 |     private var userTrackingMode: MKUserTrackingMode = .none
 39 |
 40 |     @Binding
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 41 |     private var points: [MapViewAnnotation]
 42 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:44:32: error: cannot find type 'UIGestureRecognizer' in scope
 42 |
 43 |     private var onSelection: ((MKAnnotation) -> Void)?
 44 |     private var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
    |                                `- error: cannot find type 'UIGestureRecognizer' in scope
 45 |     private var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
 46 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:75:24: error: cannot find type 'UIGestureRecognizer' in scope
 73 |         annotations: Binding<[MapViewAnnotation]>,
 74 |         onSelection: ((MKAnnotation) -> Void)? = nil,
 75 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
    |                        `- error: cannot find type 'UIGestureRecognizer' in scope
 76 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
 77 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:70:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 67 |     ///   - userLocationChanged: A callback passing in the changed
 68 |     ///   `MKUserLocation`.
 69 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 70 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
 71 |         showsUserLocation: Bool = false,
 72 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:72:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 67 |     ///   - userLocationChanged: A callback passing in the changed
 68 |     ///   `MKUserLocation`.
 69 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 70 |         region: Binding<MKCoordinateRegion>,
 71 |         showsUserLocation: Bool = false,
 72 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 73 |         annotations: Binding<[MapViewAnnotation]>,
 74 |         onSelection: ((MKAnnotation) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:73:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
 67 |     ///   - userLocationChanged: A callback passing in the changed
 68 |     ///   `MKUserLocation`.
 69 |     public init(
    |            `- note: add @available attribute to enclosing initializer
 70 |         region: Binding<MKCoordinateRegion>,
 71 |         showsUserLocation: Bool = false,
 72 |         userTrackingMode: MKUserTrackingMode = .none,
 73 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
 74 |         onSelection: ((MKAnnotation) -> Void)? = nil,
 75 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:108:24: error: cannot find type 'UIGestureRecognizer' in scope
106 |         userTrackingMode: MKUserTrackingMode = .none,
107 |         annotations: Binding<[MapViewAnnotation]>,
108 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
    |                        `- error: cannot find type 'UIGestureRecognizer' in scope
109 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
110 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:104:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
101 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 |     ///   from where the gesture happened on the ``MapView``.
103 |     public init(
    |            `- note: add @available attribute to enclosing initializer
104 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
105 |         showsUserLocation: Bool = false,
106 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:106:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
101 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 |     ///   from where the gesture happened on the ``MapView``.
103 |     public init(
    |            `- note: add @available attribute to enclosing initializer
104 |         region: Binding<MKCoordinateRegion>,
105 |         showsUserLocation: Bool = false,
106 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
107 |         annotations: Binding<[MapViewAnnotation]>,
108 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:107:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
101 |     ///   `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 |     ///   from where the gesture happened on the ``MapView``.
103 |     public init(
    |            `- note: add @available attribute to enclosing initializer
104 |         region: Binding<MKCoordinateRegion>,
105 |         showsUserLocation: Bool = false,
106 |         userTrackingMode: MKUserTrackingMode = .none,
107 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
108 |         onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
109 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:136:17: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
133 |     ///   - onSelection: A callback passing in a `MKAnnotation`
134 |     ///   item that was selected in the ``MapView``.
135 |     public init(
    |            `- note: add @available attribute to enclosing initializer
136 |         region: Binding<MKCoordinateRegion>,
    |                 `- error: 'Binding' is only available in macOS 10.15 or newer
137 |         showsUserLocation: Bool = false,
138 |         userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:138:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
133 |     ///   - onSelection: A callback passing in a `MKAnnotation`
134 |     ///   item that was selected in the ``MapView``.
135 |     public init(
    |            `- note: add @available attribute to enclosing initializer
136 |         region: Binding<MKCoordinateRegion>,
137 |         showsUserLocation: Bool = false,
138 |         userTrackingMode: MKUserTrackingMode = .none,
    |                           `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
139 |         annotations: Binding<[MapViewAnnotation]>,
140 |         onSelection: ((MKAnnotation) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:139:22: error: 'Binding' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
133 |     ///   - onSelection: A callback passing in a `MKAnnotation`
134 |     ///   item that was selected in the ``MapView``.
135 |     public init(
    |            `- note: add @available attribute to enclosing initializer
136 |         region: Binding<MKCoordinateRegion>,
137 |         showsUserLocation: Bool = false,
138 |         userTrackingMode: MKUserTrackingMode = .none,
139 |         annotations: Binding<[MapViewAnnotation]>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
140 |         onSelection: ((MKAnnotation) -> Void)?,
141 |         userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:152:37: error: cannot find type 'Context' in scope
150 |     }
151 |
152 |     public func makeUIView(context: Context) -> MKMapView {
    |                                     `- error: cannot find type 'Context' in scope
153 |         let mapView = MKMapView()
154 |         mapView.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:169:61: error: cannot find type 'Context' in scope
167 |     }
168 |
169 |     public func updateUIView(_ mapView: MKMapView, context: Context) {
    |                                                             `- error: cannot find type 'Context' in scope
170 |         mapView.removeOverlays(mapView.overlays)
171 |         mapView.removeAnnotations(mapView.annotations)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:226:59: error: cannot find type 'UILongPressGestureRecognizer' in scope
224 |     }
225 |
226 |     private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
    |                                                           `- error: cannot find type 'UILongPressGestureRecognizer' in scope
227 |         UILongPressGestureRecognizer(
228 |             target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:226:47: error: cannot find type 'Context' in scope
224 |     }
225 |
226 |     private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
    |                                               `- error: cannot find type 'Context' in scope
227 |         UILongPressGestureRecognizer(
228 |             target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:12:25: error: cannot find type 'UIViewRepresentable' in scope
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |                         `- error: cannot find type 'UIViewRepresentable' in scope
 13 |     public typealias UIViewType = MKMapView
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:157:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
150 |     }
151 |
152 |     public func makeUIView(context: Context) -> MKMapView {
    |                 `- note: add @available attribute to enclosing instance method
153 |         let mapView = MKMapView()
154 |         mapView.delegate = context.coordinator
155 |         mapView.setRegion(region, animated: true)
156 |         mapView.showsUserLocation = showsUserLocation
157 |         mapView.userTrackingMode = userTrackingMode
    |                 |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
    |                 `- note: add 'if #available' version check
158 |         mapView.mapType = mapStyle()
159 |         mapView.pointOfInterestFilter = poiFilter
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:159:17: error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
150 |     }
151 |
152 |     public func makeUIView(context: Context) -> MKMapView {
    |                 `- note: add @available attribute to enclosing instance method
153 |         let mapView = MKMapView()
154 |         mapView.delegate = context.coordinator
    :
157 |         mapView.userTrackingMode = userTrackingMode
158 |         mapView.mapType = mapStyle()
159 |         mapView.pointOfInterestFilter = poiFilter
    |                 |- error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
160 |         mapView.isZoomEnabled = zoomEnabled
161 |         mapView.isScrollEnabled = scrollEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:174:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
167 |     }
168 |
169 |     public func updateUIView(_ mapView: MKMapView, context: Context) {
    |                 `- note: add @available attribute to enclosing instance method
170 |         mapView.removeOverlays(mapView.overlays)
171 |         mapView.removeAnnotations(mapView.annotations)
172 |
173 |         mapView.showsUserLocation = showsUserLocation
174 |         mapView.userTrackingMode = userTrackingMode
    |                 |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
    |                 `- note: add 'if #available' version check
175 |         mapView.mapType = mapStyle()
176 |         mapView.pointOfInterestFilter = poiFilter
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:176:17: error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
 10 |
 11 | @available(iOS, deprecated: 16, renamed: "MapView")
 12 | public struct LMapView: UIViewRepresentable {
    |               `- note: add @available attribute to enclosing struct
 13 |     public typealias UIViewType = MKMapView
 14 |
    :
167 |     }
168 |
169 |     public func updateUIView(_ mapView: MKMapView, context: Context) {
    |                 `- note: add @available attribute to enclosing instance method
170 |         mapView.removeOverlays(mapView.overlays)
171 |         mapView.removeAnnotations(mapView.annotations)
    :
174 |         mapView.userTrackingMode = userTrackingMode
175 |         mapView.mapType = mapStyle()
176 |         mapView.pointOfInterestFilter = poiFilter
    |                 |- error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
177 |         mapView.isZoomEnabled = zoomEnabled
178 |         mapView.isScrollEnabled = scrollEnabled
BUILD FAILURE 6.2 macosSpm