The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LocationPicker, reference master (d8a6f5), with Swift 6.0 for macOS (SPM) on 17 Sep 2025 15:50:47 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alessiorubicini/LocationPickerForSwiftUI.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alessiorubicini/LocationPickerForSwiftUI
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d8a6f58 Fixed README
Cloned https://github.com/alessiorubicini/LocationPickerForSwiftUI.git
Revision (git rev-parse @):
d8a6f58df8e4522df4cf40790bbf1416a1b14af0
SUCCESS checkout https://github.com/alessiorubicini/LocationPickerForSwiftUI.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/alessiorubicini/LocationPickerForSwiftUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/11] Compiling LocationPicker Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Utils.swift:13:24: error: 'View' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension View {
   | `- note: add @available attribute to enclosing extension
12 |     @ViewBuilder
13 |     func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
   |          |             `- error: 'View' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
14 |         if condition {
15 |             transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Utils.swift:13:87: error: 'View' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension View {
   | `- note: add @available attribute to enclosing extension
12 |     @ViewBuilder
13 |     func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
   |          |                                                                            `- error: 'View' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
14 |         if condition {
15 |             transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Utils.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension View {
   | `- note: add @available attribute to enclosing extension
12 |     @ViewBuilder
   |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 |     func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
   |          `- note: add @available attribute to enclosing instance method
14 |         if condition {
15 |             transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Utils.swift:11:11: error: 'View' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension View {
   | |         `- error: 'View' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
12 |     @ViewBuilder
13 |     func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Utils.swift:14:22: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension View {
   | `- note: add @available attribute to enclosing extension
12 |     @ViewBuilder
13 |     func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
   |          `- note: add @available attribute to enclosing instance method
14 |         if condition {
   |                      |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
15 |             transform(self)
16 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Utils.swift:16:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension View {
   | `- note: add @available attribute to enclosing extension
12 |     @ViewBuilder
13 |     func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
   |          `- note: add @available attribute to enclosing instance method
14 |         if condition {
15 |             transform(self)
16 |         } else {
   |                |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
   |                `- note: add 'if #available' version check
17 |             self
18 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Utils.swift:13:92: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 9 | import SwiftUI
10 |
11 | extension View {
   | `- note: add @available attribute to enclosing extension
12 |     @ViewBuilder
13 |     func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
   |          |                                                                                 |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |          |                                                                                 `- note: add 'if #available' version check
   |          `- note: add @available attribute to enclosing instance method
14 |         if condition {
15 |             transform(self)
[4/11] Compiling LocationPicker LocationManagerDelegate.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/11] Compiling LocationPicker LocationError.swift
[6/11] Compiling LocationPicker CLLocationCoordinate2D+Equatable.swift
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/CLLocationCoordinate2D+Equatable.swift:11:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
 9 | import CoreLocation
10 |
11 | extension CLLocationCoordinate2D: Equatable {
   | |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
12 |     public static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
13 |         return lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
[7/11] Compiling LocationPicker LocationPicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
10 | import UniformTypeIdentifiers
11 |
12 | public struct LocationPicker: View {
   |               `- note: add @available attribute to enclosing struct
13 |
14 |     // MARK: - View properties
15 |
16 |     @Binding var coordinates: CLLocationCoordinate2D
   |      `- error: 'Binding' is only available in macOS 10.15 or newer
17 |     var zoomLevel: Double?
18 |     let showCoordinatesOverlay: Bool
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:26:30: error: 'Binding' is only available in macOS 10.15 or newer
10 | import UniformTypeIdentifiers
11 |
12 | public struct LocationPicker: View {
   |               `- note: add @available attribute to enclosing struct
13 |
14 |     // MARK: - View properties
   :
24 |     ///   - zoomLevel: desired zoom level to initialize map
25 |     ///   - showCoordinatesOverlay: show a floating overlay with current coordinates (tap to copy)
26 |     public init(coordinates: Binding<CLLocationCoordinate2D>,
   |            |                 `- error: 'Binding' is only available in macOS 10.15 or newer
   |            `- note: add @available attribute to enclosing initializer
27 |                 zoomLevel: Double? = nil,
28 |                 showCoordinatesOverlay: Bool = true,
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:38:27: error: 'View' is only available in macOS 10.15 or newer
10 | import UniformTypeIdentifiers
11 |
12 | public struct LocationPicker: View {
   |               `- note: add @available attribute to enclosing struct
13 |
14 |     // MARK: - View properties
   :
36 |     // MARK: - View body
37 |
38 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
39 |         ZStack(alignment: .top) {
40 |             MapView(centerCoordinate: $coordinates, zoomLevel: zoomLevel)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:76:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
74 | }
75 |
76 | #Preview {
   |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
77 |     LocationPicker(coordinates: .constant(CLLocationCoordinate2D(latitude: 37.33485149517856, longitude: -122.00903965379115)), zoomLevel: 2000, ignoreSafeArea: true)
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:116:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
114 | }
115 |
116 | #Preview("Sheet Example") {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
117 |     ModalSheetExample()
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:120:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
118 | }
119 |
120 | #Preview("Full Screen Example") {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
121 |     FullScreenExample()
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:124:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
122 | }
123 |
124 | #Preview("Form Example") {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
125 |     FormExample()
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:41:18: error: value of type 'MapView' has no member 'if'
39 |         ZStack(alignment: .top) {
40 |             MapView(centerCoordinate: $coordinates, zoomLevel: zoomLevel)
41 |                 .if(ignoreSafeArea) { view in
   |                  `- error: value of type 'MapView' has no member 'if'
42 |                     view
43 |                         .edgesIgnoringSafeArea(.vertical)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:43:49: error: cannot infer contextual base in reference to member 'vertical'
41 |                 .if(ignoreSafeArea) { view in
42 |                     view
43 |                         .edgesIgnoringSafeArea(.vertical)
   |                                                 `- error: cannot infer contextual base in reference to member 'vertical'
44 |                 }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:71:9: error: cannot find 'UIPasteboard' in scope
69 |
70 |     private func pasteCoordinates() {
71 |         UIPasteboard.general.setValue("\(coordinates.latitude), \(coordinates.longitude)", forPasteboardType: UTType.plainText.identifier)
   |         `- error: cannot find 'UIPasteboard' in scope
72 |     }
73 |
[8/11] Emitting module LocationPicker
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/CLLocationCoordinate2D+Equatable.swift:11:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
 9 | import CoreLocation
10 |
11 | extension CLLocationCoordinate2D: Equatable {
   | |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
12 |     public static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {
13 |         return lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:14:6: error: 'State' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
    |      `- error: 'State' is only available in macOS 10.15 or newer
 15 |
 16 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:36:6: error: 'State' is only available in macOS 10.15 or newer
 32 | }
 33 |
 34 | struct ModalSheetExample: View {
    |        `- note: add @available attribute to enclosing struct
 35 |
 36 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
    |      `- error: 'State' is only available in macOS 10.15 or newer
 37 |     @State private var showSheet = false
 38 |
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:37:6: error: 'State' is only available in macOS 10.15 or newer
 32 | }
 33 |
 34 | struct ModalSheetExample: View {
    |        `- note: add @available attribute to enclosing struct
 35 |
 36 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 37 |     @State private var showSheet = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 38 |
 39 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:39:20: error: 'View' is only available in macOS 10.15 or newer
 32 | }
 33 |
 34 | struct ModalSheetExample: View {
    |        `- note: add @available attribute to enclosing struct
 35 |
 36 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 37 |     @State private var showSheet = false
 38 |
 39 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 40 |         NavigationView {
 41 |             VStack(spacing: 30) {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:77:6: error: 'State' is only available in macOS 10.15 or newer
 73 | }
 74 |
 75 | struct FullScreenExample: View {
    |        `- note: add @available attribute to enclosing struct
 76 |
 77 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
    |      `- error: 'State' is only available in macOS 10.15 or newer
 78 |     @State private var showSheet = false
 79 |
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:78:6: error: 'State' is only available in macOS 10.15 or newer
 73 | }
 74 |
 75 | struct FullScreenExample: View {
    |        `- note: add @available attribute to enclosing struct
 76 |
 77 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 78 |     @State private var showSheet = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 79 |
 80 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:80:20: error: 'View' is only available in macOS 10.15 or newer
 73 | }
 74 |
 75 | struct FullScreenExample: View {
    |        `- note: add @available attribute to enclosing struct
 76 |
 77 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 78 |     @State private var showSheet = false
 79 |
 80 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 81 |         NavigationView {
 82 |             VStack(spacing: 30) {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:116:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
114 | }
115 |
116 | #Preview("Sheet Example") {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
117 |     ModalSheetExample()
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:120:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
118 | }
119 |
120 | #Preview("Full Screen Example") {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
121 |     FullScreenExample()
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:124:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
122 | }
123 |
124 | #Preview("Form Example") {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
125 |     FormExample()
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:76:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
74 | }
75 |
76 | #Preview {
   |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
77 |     LocationPicker(coordinates: .constant(CLLocationCoordinate2D(latitude: 37.33485149517856, longitude: -122.00903965379115)), zoomLevel: 2000, ignoreSafeArea: true)
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationManager.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
 8 | import CoreLocation
 9 |
10 | class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate {
   |       `- note: add @available attribute to enclosing class
11 |
12 |     @Published var currentLocation: CLLocation?
   |      `- error: 'Published' is only available in macOS 10.15 or newer
13 |     public let clLocationManager = CLLocationManager()
14 |     weak var delegate: LocationManagerDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationManager.swift:10:34: error: 'ObservableObject' is only available in macOS 10.15 or newer
 8 | import CoreLocation
 9 |
10 | class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate {
   |       |                          `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |       `- note: add @available attribute to enclosing class
11 |
12 |     @Published var currentLocation: CLLocation?
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:16:6: error: 'Binding' is only available in macOS 10.15 or newer
10 | import UniformTypeIdentifiers
11 |
12 | public struct LocationPicker: View {
   |               `- note: add @available attribute to enclosing struct
13 |
14 |     // MARK: - View properties
15 |
16 |     @Binding var coordinates: CLLocationCoordinate2D
   |      `- error: 'Binding' is only available in macOS 10.15 or newer
17 |     var zoomLevel: Double?
18 |     let showCoordinatesOverlay: Bool
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:26:30: error: 'Binding' is only available in macOS 10.15 or newer
10 | import UniformTypeIdentifiers
11 |
12 | public struct LocationPicker: View {
   |               `- note: add @available attribute to enclosing struct
13 |
14 |     // MARK: - View properties
   :
24 |     ///   - zoomLevel: desired zoom level to initialize map
25 |     ///   - showCoordinatesOverlay: show a floating overlay with current coordinates (tap to copy)
26 |     public init(coordinates: Binding<CLLocationCoordinate2D>,
   |            |                 `- error: 'Binding' is only available in macOS 10.15 or newer
   |            `- note: add @available attribute to enclosing initializer
27 |                 zoomLevel: Double? = nil,
28 |                 showCoordinatesOverlay: Bool = true,
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:38:27: error: 'View' is only available in macOS 10.15 or newer
10 | import UniformTypeIdentifiers
11 |
12 | public struct LocationPicker: View {
   |               `- note: add @available attribute to enclosing struct
13 |
14 |     // MARK: - View properties
   :
36 |     // MARK: - View body
37 |
38 |     public var body: some View {
   |                |          `- error: 'View' is only available in macOS 10.15 or newer
   |                `- note: add @available attribute to enclosing property
39 |         ZStack(alignment: .top) {
40 |             MapView(centerCoordinate: $coordinates, zoomLevel: zoomLevel)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | import CoreLocation
12 |
13 | struct MapView: UIViewRepresentable {
   |        `- note: add @available attribute to enclosing struct
14 |
15 |     @Binding var centerCoordinate: CLLocationCoordinate2D
   |      `- error: 'Binding' is only available in macOS 10.15 or newer
16 |     var zoomLevel: Double?
17 |
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:20:30: error: cannot find type 'Context' in scope
18 |     let mapView = MKMapView()
19 |
20 |     func makeUIView(context: Context) -> MKMapView {
   |                              `- error: cannot find type 'Context' in scope
21 |         mapView.delegate = context.coordinator
22 |         mapView.centerCoordinate = self.centerCoordinate
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:32:51: error: cannot find type 'Context' in scope
30 |     }
31 |
32 |     func updateUIView(_ view: MKMapView, context: Context) {
   |                                                   `- error: cannot find type 'Context' in scope
33 |         //print(#function)
34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:40:53: error: cannot find type 'UIGestureRecognizerDelegate' in scope
38 |     }
39 |
40 |     class Coordinator: NSObject, MKMapViewDelegate, UIGestureRecognizerDelegate {
   |                                                     `- error: cannot find type 'UIGestureRecognizerDelegate' in scope
41 |         var parent: MapView
42 |
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:43:27: error: cannot find 'UITapGestureRecognizer' in scope
41 |         var parent: MapView
42 |
43 |         var gRecognizer = UITapGestureRecognizer()
   |                           `- error: cannot find 'UITapGestureRecognizer' in scope
44 |
45 |         init(_ parent: MapView) {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:53:42: error: cannot find type 'UITapGestureRecognizer' in scope
51 |         }
52 |
53 |         @objc func tapHandler(_ gesture: UITapGestureRecognizer) {
   |                                          `- error: cannot find type 'UITapGestureRecognizer' in scope
54 |
55 |             let location = gRecognizer.location(in: self.parent.mapView)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:13:17: error: cannot find type 'UIViewRepresentable' in scope
11 | import CoreLocation
12 |
13 | struct MapView: UIViewRepresentable {
   |                 `- error: cannot find type 'UIViewRepresentable' in scope
14 |
15 |     @Binding var centerCoordinate: CLLocationCoordinate2D
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Utils.swift:13:24: error: 'View' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension View {
   | `- note: add @available attribute to enclosing extension
12 |     @ViewBuilder
13 |     func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
   |          |             `- error: 'View' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
14 |         if condition {
15 |             transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Utils.swift:13:87: error: 'View' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension View {
   | `- note: add @available attribute to enclosing extension
12 |     @ViewBuilder
13 |     func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
   |          |                                                                            `- error: 'View' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
14 |         if condition {
15 |             transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Utils.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension View {
   | `- note: add @available attribute to enclosing extension
12 |     @ViewBuilder
   |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 |     func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
   |          `- note: add @available attribute to enclosing instance method
14 |         if condition {
15 |             transform(self)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Utils.swift:11:11: error: 'View' is only available in macOS 10.15 or newer
 9 | import SwiftUI
10 |
11 | extension View {
   | |         `- error: 'View' is only available in macOS 10.15 or newer
   | `- note: add @available attribute to enclosing extension
12 |     @ViewBuilder
13 |     func `if`<Content: View>(_ condition: Bool, transform: (Self) -> Content) -> some View {
[9/11] Compiling LocationPicker Examples.swift
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:14:6: error: 'State' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
    |      `- error: 'State' is only available in macOS 10.15 or newer
 15 |
 16 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:16:20: error: 'View' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:36:6: error: 'State' is only available in macOS 10.15 or newer
 32 | }
 33 |
 34 | struct ModalSheetExample: View {
    |        `- note: add @available attribute to enclosing struct
 35 |
 36 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
    |      `- error: 'State' is only available in macOS 10.15 or newer
 37 |     @State private var showSheet = false
 38 |
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:37:6: error: 'State' is only available in macOS 10.15 or newer
 32 | }
 33 |
 34 | struct ModalSheetExample: View {
    |        `- note: add @available attribute to enclosing struct
 35 |
 36 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 37 |     @State private var showSheet = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 38 |
 39 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:39:20: error: 'View' is only available in macOS 10.15 or newer
 32 | }
 33 |
 34 | struct ModalSheetExample: View {
    |        `- note: add @available attribute to enclosing struct
 35 |
 36 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 37 |     @State private var showSheet = false
 38 |
 39 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 40 |         NavigationView {
 41 |             VStack(spacing: 30) {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:77:6: error: 'State' is only available in macOS 10.15 or newer
 73 | }
 74 |
 75 | struct FullScreenExample: View {
    |        `- note: add @available attribute to enclosing struct
 76 |
 77 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
    |      `- error: 'State' is only available in macOS 10.15 or newer
 78 |     @State private var showSheet = false
 79 |
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:78:6: error: 'State' is only available in macOS 10.15 or newer
 73 | }
 74 |
 75 | struct FullScreenExample: View {
    |        `- note: add @available attribute to enclosing struct
 76 |
 77 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 78 |     @State private var showSheet = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 79 |
 80 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:80:20: error: 'View' is only available in macOS 10.15 or newer
 73 | }
 74 |
 75 | struct FullScreenExample: View {
    |        `- note: add @available attribute to enclosing struct
 76 |
 77 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 78 |     @State private var showSheet = false
 79 |
 80 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 81 |         NavigationView {
 82 |             VStack(spacing: 30) {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:116:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
114 | }
115 |
116 | #Preview("Sheet Example") {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
117 |     ModalSheetExample()
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:120:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
118 | }
119 |
120 | #Preview("Full Screen Example") {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
121 |     FullScreenExample()
122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:124:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
122 | }
123 |
124 | #Preview("Form Example") {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
125 |     FormExample()
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationPicker.swift:76:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
74 | }
75 |
76 | #Preview {
   |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
77 |     LocationPicker(coordinates: .constant(CLLocationCoordinate2D(latitude: 37.33485149517856, longitude: -122.00903965379115)), zoomLevel: 2000, ignoreSafeArea: true)
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:17:9: error: 'NavigationView' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
    |         |- error: 'NavigationView' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 18 |             Form {
 19 |                 Section(header: Text("Location")) {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:18:13: error: 'Form' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
    |             |- error: 'Form' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 19 |                 Section(header: Text("Location")) {
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:19:17: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
 17 |         NavigationView {
 18 |             Form {
 19 |                 Section(header: Text("Location")) {
    |                 `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
 21 |                 }
SwiftUICore.ViewBuilder:5:24: note: 'buildExpression' has been explicitly marked unavailable here
 3 |     public static func buildExpression<Content>(_ content: Content) -> Content where Content : View
 4 |     @available(*, unavailable, message: "this expression does not conform to 'View'")
 5 |     public static func buildExpression(_ invalid: Any) -> some View
   |                        `- note: 'buildExpression' has been explicitly marked unavailable here
 6 |
 7 |     public static func buildBlock() -> EmptyView
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:19:17: error: 'Section' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
 19 |                 Section(header: Text("Location")) {
    |                 |- error: 'Section' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
 21 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:19:17: error: 'init(header:content:)' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
 19 |                 Section(header: Text("Location")) {
    |                 |- error: 'init(header:content:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
 21 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:19:33: error: 'Text' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
 19 |                 Section(header: Text("Location")) {
    |                                 |- error: 'Text' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
 21 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:20:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
 19 |                 Section(header: Text("Location")) {
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
    |                     |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                     `- note: add 'if #available' version check
 21 |                 }
 22 |                 Section(header: Text("Location")) {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:20:21: error: 'Text' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
 19 |                 Section(header: Text("Location")) {
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
    |                     |- error: 'Text' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 21 |                 }
 22 |                 Section(header: Text("Location")) {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:19:51: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
 19 |                 Section(header: Text("Location")) {
    |                                                   |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                                                   `- note: add 'if #available' version check
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
 21 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:22:17: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
 21 |                 }
 22 |                 Section(header: Text("Location")) {
    |                 `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
 23 |                     Text("\(coordinates.latitude), \(coordinates.longitude)")
 24 |                     LocationPicker(coordinates: $coordinates, zoomLevel: 90000, showCoordinatesOverlay: false)
SwiftUICore.ViewBuilder:5:24: note: 'buildExpression' has been explicitly marked unavailable here
 3 |     public static func buildExpression<Content>(_ content: Content) -> Content where Content : View
 4 |     @available(*, unavailable, message: "this expression does not conform to 'View'")
 5 |     public static func buildExpression(_ invalid: Any) -> some View
   |                        `- note: 'buildExpression' has been explicitly marked unavailable here
 6 |
 7 |     public static func buildBlock() -> EmptyView
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:22:17: error: 'Section' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
    :
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
 21 |                 }
 22 |                 Section(header: Text("Location")) {
    |                 |- error: 'Section' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 23 |                     Text("\(coordinates.latitude), \(coordinates.longitude)")
 24 |                     LocationPicker(coordinates: $coordinates, zoomLevel: 90000, showCoordinatesOverlay: false)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:22:17: error: 'init(header:content:)' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
    :
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
 21 |                 }
 22 |                 Section(header: Text("Location")) {
    |                 |- error: 'init(header:content:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 23 |                     Text("\(coordinates.latitude), \(coordinates.longitude)")
 24 |                     LocationPicker(coordinates: $coordinates, zoomLevel: 90000, showCoordinatesOverlay: false)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:22:33: error: 'Text' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
    :
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
 21 |                 }
 22 |                 Section(header: Text("Location")) {
    |                                 |- error: 'Text' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 23 |                     Text("\(coordinates.latitude), \(coordinates.longitude)")
 24 |                     LocationPicker(coordinates: $coordinates, zoomLevel: 90000, showCoordinatesOverlay: false)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:23:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
    :
 21 |                 }
 22 |                 Section(header: Text("Location")) {
 23 |                     Text("\(coordinates.latitude), \(coordinates.longitude)")
    |                     |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                     `- note: add 'if #available' version check
 24 |                     LocationPicker(coordinates: $coordinates, zoomLevel: 90000, showCoordinatesOverlay: false)
 25 |                         .frame(height: 400)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:23:21: error: 'Text' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
    :
 21 |                 }
 22 |                 Section(header: Text("Location")) {
 23 |                     Text("\(coordinates.latitude), \(coordinates.longitude)")
    |                     |- error: 'Text' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 24 |                     LocationPicker(coordinates: $coordinates, zoomLevel: 90000, showCoordinatesOverlay: false)
 25 |                         .frame(height: 400)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:25:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
    :
 23 |                     Text("\(coordinates.latitude), \(coordinates.longitude)")
 24 |                     LocationPicker(coordinates: $coordinates, zoomLevel: 90000, showCoordinatesOverlay: false)
 25 |                         .frame(height: 400)
    |                          |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
 26 |                         .cornerRadius(20.0)
 27 |                         //.padding(-15) // Optional: to remove form padding
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:26:26: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
    :
 24 |                     LocationPicker(coordinates: $coordinates, zoomLevel: 90000, showCoordinatesOverlay: false)
 25 |                         .frame(height: 400)
 26 |                         .cornerRadius(20.0)
    |                          |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
 27 |                         //.padding(-15) // Optional: to remove form padding
 28 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:22:51: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
    :
 20 |                     Text("This is an example of using LocationPicker inside a Form. Select a location you like.")
 21 |                 }
 22 |                 Section(header: Text("Location")) {
    |                                                   |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                                                   `- note: add 'if #available' version check
 23 |                     Text("\(coordinates.latitude), \(coordinates.longitude)")
 24 |                     LocationPicker(coordinates: $coordinates, zoomLevel: 90000, showCoordinatesOverlay: false)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:29:15: error: 'navigationTitle' is only available in macOS 11.0 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
    :
 27 |                         //.padding(-15) // Optional: to remove form padding
 28 |                 }
 29 |             }.navigationTitle("Form Example")
    |               |- error: 'navigationTitle' is only available in macOS 11.0 or newer
    |               `- note: add 'if #available' version check
 30 |         }
 31 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:29:31: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 10 | import MapKit
 11 |
 12 | struct FormExample: View {
    |        `- note: add @available attribute to enclosing struct
 13 |
 14 |     @State private var coordinates = CLLocationCoordinate2D(latitude: 37.775472967190595, longitude: -122.41735219250484)
 15 |
 16 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 17 |         NavigationView {
 18 |             Form {
    :
 27 |                         //.padding(-15) // Optional: to remove form padding
 28 |                 }
 29 |             }.navigationTitle("Form Example")
    |                               |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
    |                               `- note: add 'if #available' version check
 30 |         }
 31 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:58:26: error: ambiguous use of 'toolbar(content:)'
 56 |                 NavigationView {
 57 |                     LocationPicker(coordinates: $coordinates, zoomLevel: 100000, showCoordinatesOverlay: false, ignoreSafeArea: true)
 58 |                         .toolbar {
    |                          `- error: ambiguous use of 'toolbar(content:)'
 59 |                             ToolbarItem(placement: .topBarTrailing) {
 60 |                                 Button {
SwiftUI.View:3:29: note: found this candidate in module 'SwiftUI'
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | extension View {
3 |     nonisolated public func toolbar<Content>(@ViewBuilder content: () -> Content) -> some View where Content : View
  |                             `- note: found this candidate in module 'SwiftUI'
4 |
5 |     nonisolated public func toolbar<Content>(@ToolbarContentBuilder content: () -> Content) -> some View where Content : ToolbarContent
  |                             `- note: found this candidate in module 'SwiftUI'
6 |
7 |     nonisolated public func toolbar<Content>(id: String, @ToolbarContentBuilder content: () -> Content) -> some View where Content : CustomizableToolbarContent
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/Examples.swift:99:26: error: ambiguous use of 'toolbar(content:)'
 97 |                 NavigationView {
 98 |                     LocationPicker(coordinates: $coordinates, zoomLevel: 100000, showCoordinatesOverlay: false, ignoreSafeArea: true)
 99 |                         .toolbar {
    |                          `- error: ambiguous use of 'toolbar(content:)'
100 |                             ToolbarItem(placement: .topBarTrailing) {
101 |                                 Button {
SwiftUI.View:3:29: note: found this candidate in module 'SwiftUI'
1 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)
2 | extension View {
3 |     nonisolated public func toolbar<Content>(@ViewBuilder content: () -> Content) -> some View where Content : View
  |                             `- note: found this candidate in module 'SwiftUI'
4 |
5 |     nonisolated public func toolbar<Content>(@ToolbarContentBuilder content: () -> Content) -> some View where Content : ToolbarContent
  |                             `- note: found this candidate in module 'SwiftUI'
6 |
7 |     nonisolated public func toolbar<Content>(id: String, @ToolbarContentBuilder content: () -> Content) -> some View where Content : CustomizableToolbarContent
[10/11] Compiling LocationPicker LocationManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationManager.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
 8 | import CoreLocation
 9 |
10 | class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate {
   |       `- note: add @available attribute to enclosing class
11 |
12 |     @Published var currentLocation: CLLocation?
   |      `- error: 'Published' is only available in macOS 10.15 or newer
13 |     public let clLocationManager = CLLocationManager()
14 |     weak var delegate: LocationManagerDelegate?
<unknown>:0: error: cannot convert value of type 'KeyPath<LocationManager, CLLocation?>' to expected argument type 'ReferenceWritableKeyPath<LocationManager, CLLocation?>'
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationManager.swift:10:34: error: 'ObservableObject' is only available in macOS 10.15 or newer
 8 | import CoreLocation
 9 |
10 | class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate {
   |       |                          `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |       `- note: add @available attribute to enclosing class
11 |
12 |     @Published var currentLocation: CLLocation?
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationManager.swift:25:53: error: 'authorizationStatus' is only available in macOS 11.0 or newer
 8 | import CoreLocation
 9 |
10 | class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate {
   |       `- note: add @available attribute to enclosing class
11 |
12 |     @Published var currentLocation: CLLocation?
   :
22 |     }
23 |
24 |     func startUpdatingLocations() {
   |          `- note: add @available attribute to enclosing instance method
25 |         let authorizationStatus = clLocationManager.authorizationStatus
   |                                                     |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
   |                                                     `- note: add 'if #available' version check
26 |
27 |         switch authorizationStatus {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationManager.swift:40:34: error: 'authorizationStatus' is only available in macOS 11.0 or newer
 8 | import CoreLocation
 9 |
10 | class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate {
   |       `- note: add @available attribute to enclosing class
11 |
12 |     @Published var currentLocation: CLLocation?
   :
37 |     }
38 |
39 |     func getAuthorizationStatus() -> CLAuthorizationStatus {
   |          `- note: add @available attribute to enclosing instance method
40 |         return clLocationManager.authorizationStatus
   |                                  |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
   |                                  `- note: add 'if #available' version check
41 |     }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationManager.swift:45:13: error: setter for 'currentLocation' is only available in macOS 10.15 or newer
 8 | import CoreLocation
 9 |
10 | class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate {
   |       `- note: add @available attribute to enclosing class
11 |
12 |     @Published var currentLocation: CLLocation?
   :
41 |     }
42 |
43 |     func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
   |          `- note: add @available attribute to enclosing instance method
44 |         if let location = locations.first {
45 |             self.currentLocation = location
   |             |- error: setter for 'currentLocation' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
46 |             delegate?.onSuccess(location: location)
47 |             manager.stopUpdatingLocation()
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationManager.swift:58:20: error: 'authorizationStatus' is only available in macOS 11.0 or newer
 8 | import CoreLocation
 9 |
10 | class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate {
   |       `- note: add @available attribute to enclosing class
11 |
12 |     @Published var currentLocation: CLLocation?
   :
55 |     }
56 |
57 |     func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
   |          `- note: add @available attribute to enclosing instance method
58 |         if manager.authorizationStatus == .authorizedWhenInUse || manager.authorizationStatus == .authorizedAlways {
   |                    |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
   |                    `- note: add 'if #available' version check
59 |             if requestLocationUpdates {
60 |                 clLocationManager.startUpdatingLocation()
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationManager.swift:58:44: error: 'authorizedWhenInUse' is unavailable in macOS
56 |
57 |     func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
58 |         if manager.authorizationStatus == .authorizedWhenInUse || manager.authorizationStatus == .authorizedAlways {
   |                                            `- error: 'authorizedWhenInUse' is unavailable in macOS
59 |             if requestLocationUpdates {
60 |                 clLocationManager.startUpdatingLocation()
CoreLocation.CLAuthorizationStatus:20:10: note: 'authorizedWhenInUse' has been explicitly marked unavailable here
18 |     public static var AuthorizedAlways: CLAuthorizationStatus { get }
19 |     @available(macOS, unavailable)
20 |     case authorizedWhenInUse
   |          `- note: 'authorizedWhenInUse' has been explicitly marked unavailable here
21 |     @available(macOS 10.6, *)
22 |     public static var authorized: CLAuthorizationStatus { get }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationManager.swift:58:75: error: 'authorizationStatus' is only available in macOS 11.0 or newer
 8 | import CoreLocation
 9 |
10 | class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate {
   |       `- note: add @available attribute to enclosing class
11 |
12 |     @Published var currentLocation: CLLocation?
   :
55 |     }
56 |
57 |     func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
   |          `- note: add @available attribute to enclosing instance method
58 |         if manager.authorizationStatus == .authorizedWhenInUse || manager.authorizationStatus == .authorizedAlways {
   |                                                                           |- error: 'authorizationStatus' is only available in macOS 11.0 or newer
   |                                                                           `- note: add 'if #available' version check
59 |             if requestLocationUpdates {
60 |                 clLocationManager.startUpdatingLocation()
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/LocationManager.swift:63:31: error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
 8 | import CoreLocation
 9 |
10 | class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate {
   |       `- note: add @available attribute to enclosing class
11 |
12 |     @Published var currentLocation: CLLocation?
   :
55 |     }
56 |
57 |     func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
   |          `- note: add @available attribute to enclosing instance method
58 |         if manager.authorizationStatus == .authorizedWhenInUse || manager.authorizationStatus == .authorizedAlways {
59 |             if requestLocationUpdates {
   :
61 |             }
62 |         } else {
63 |             clLocationManager.requestWhenInUseAuthorization()
   |                               |- error: 'requestWhenInUseAuthorization()' is only available in macOS 10.15 or newer
   |                               `- note: add 'if #available' version check
64 |         }
65 |     }
[11/11] Compiling LocationPicker MapView.swift
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:15:6: error: 'Binding' is only available in macOS 10.15 or newer
11 | import CoreLocation
12 |
13 | struct MapView: UIViewRepresentable {
   |        `- note: add @available attribute to enclosing struct
14 |
15 |     @Binding var centerCoordinate: CLLocationCoordinate2D
   |      `- error: 'Binding' is only available in macOS 10.15 or newer
16 |     var zoomLevel: Double?
17 |
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:20:30: error: cannot find type 'Context' in scope
18 |     let mapView = MKMapView()
19 |
20 |     func makeUIView(context: Context) -> MKMapView {
   |                              `- error: cannot find type 'Context' in scope
21 |         mapView.delegate = context.coordinator
22 |         mapView.centerCoordinate = self.centerCoordinate
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:32:51: error: cannot find type 'Context' in scope
30 |     }
31 |
32 |     func updateUIView(_ view: MKMapView, context: Context) {
   |                                                   `- error: cannot find type 'Context' in scope
33 |         //print(#function)
34 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:40:53: error: cannot find type 'UIGestureRecognizerDelegate' in scope
38 |     }
39 |
40 |     class Coordinator: NSObject, MKMapViewDelegate, UIGestureRecognizerDelegate {
   |                                                     `- error: cannot find type 'UIGestureRecognizerDelegate' in scope
41 |         var parent: MapView
42 |
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:43:27: error: cannot find 'UITapGestureRecognizer' in scope
41 |         var parent: MapView
42 |
43 |         var gRecognizer = UITapGestureRecognizer()
   |                           `- error: cannot find 'UITapGestureRecognizer' in scope
44 |
45 |         init(_ parent: MapView) {
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:53:42: error: cannot find type 'UITapGestureRecognizer' in scope
51 |         }
52 |
53 |         @objc func tapHandler(_ gesture: UITapGestureRecognizer) {
   |                                          `- error: cannot find type 'UITapGestureRecognizer' in scope
54 |
55 |             let location = gRecognizer.location(in: self.parent.mapView)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:13:17: error: cannot find type 'UIViewRepresentable' in scope
11 | import CoreLocation
12 |
13 | struct MapView: UIViewRepresentable {
   |                 `- error: cannot find type 'UIViewRepresentable' in scope
14 |
15 |     @Binding var centerCoordinate: CLLocationCoordinate2D
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:48:32: error: cannot find 'UITapGestureRecognizer' in scope
46 |             self.parent = parent
47 |             super.init()
48 |             self.gRecognizer = UITapGestureRecognizer(target: self, action: #selector(tapHandler))
   |                                `- error: cannot find 'UITapGestureRecognizer' in scope
49 |             self.gRecognizer.delegate = self
50 |             self.parent.mapView.addGestureRecognizer(gRecognizer)
/Users/admin/builder/spi-builder-workspace/Sources/LocationPicker/MapView.swift:66:13: error: 'withAnimation' is only available in macOS 10.15 or newer
38 |     }
39 |
40 |     class Coordinator: NSObject, MKMapViewDelegate, UIGestureRecognizerDelegate {
   |           `- note: add @available attribute to enclosing class
41 |         var parent: MapView
42 |
   :
51 |         }
52 |
53 |         @objc func tapHandler(_ gesture: UITapGestureRecognizer) {
   |                    `- note: add @available attribute to enclosing instance method
54 |
55 |             let location = gRecognizer.location(in: self.parent.mapView)
   :
64 |             annotation.coordinate = clObject
65 |
66 |             withAnimation {
   |             |- error: 'withAnimation' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
67 |                 parent.mapView.removeAnnotations(parent.mapView.annotations)
68 |                 parent.mapView.addAnnotation(annotation)
BUILD FAILURE 6.0 macosSpm