Build Information
Failed to build SwiftUIMap, reference main (f3d621
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 22:01:57 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Mcrich23/SwiftUIMap.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Mcrich23/SwiftUIMap
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f3d6215 bug fixes
Cloned https://github.com/Mcrich23/SwiftUIMap.git
Revision (git rev-parse @):
f3d62154a7f6f58011b3a8abb57883f924a9a0bf
SUCCESS checkout https://github.com/Mcrich23/SwiftUIMap.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftuimap",
"name": "SwiftUIMap",
"url": "https://github.com/Mcrich23/SwiftUIMap.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIMap",
"dependencies": [
]
}
]
}
Fetching https://github.com/Mcrich23/SwiftUIMap.git
[1/2619] Fetching swiftuimap
Fetched https://github.com/Mcrich23/SwiftUIMap.git from cache (1.17s)
Creating working copy for https://github.com/Mcrich23/SwiftUIMap.git
Working copy of https://github.com/Mcrich23/SwiftUIMap.git resolved at main (f3d6215)
warning: '.resolve-product-dependencies': dependency 'swiftuimap' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Mcrich23/SwiftUIMap.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/10] Compiling SwiftUIMap Search Bar.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:14:36: error: cannot find type 'UISearchBar' in scope
12 |
13 | struct SearchBar: UIViewRepresentable {
14 | @Binding var searchBarDetails: UISearchBar
| `- error: cannot find type 'UISearchBar' in scope
15 | @Binding var text: String
16 | var onCommit: (_ value: String) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:18:34: error: cannot find type 'UISearchBarDelegate' in scope
16 | var onCommit: (_ value: String) -> Void
17 |
18 | class Coordinator: NSObject, UISearchBarDelegate {
| `- error: cannot find type 'UISearchBarDelegate' in scope
19 |
20 | @Binding var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:28:37: error: cannot find type 'UISearchBar' in scope
26 | }
27 |
28 | func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
| `- error: cannot find type 'UISearchBar' in scope
29 | text = searchText
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:32:56: error: cannot find type 'UISearchBar' in scope
30 | }
31 |
32 | func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
| `- error: cannot find type 'UISearchBar' in scope
33 | print("resign keyboard")
34 | searchBar.resignFirstResponder()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:44:72: error: cannot find type 'UISearchBar' in scope
42 | }
43 |
44 | func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UISearchBar' in scope
45 | let searchBar = searchBarDetails
46 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:44:30: error: cannot find type 'UIViewRepresentableContext' in scope
42 | }
43 |
44 | func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
45 | let searchBar = searchBarDetails
46 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:60:33: error: cannot find type 'UISearchBar' in scope
58 | return searchBar
59 | }
60 | func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UISearchBar' in scope
61 | uiView.text = text
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:60:55: error: cannot find type 'UIViewRepresentableContext' in scope
58 | return searchBar
59 | }
60 | func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
61 | uiView.text = text
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:13:19: error: cannot find type 'UIViewRepresentable' in scope
11 | import MapKit
12 |
13 | struct SearchBar: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
14 | @Binding var searchBarDetails: UISearchBar
15 | @Binding var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:47:53: error: cannot infer contextual base in reference to member 'minimal'
45 | let searchBar = searchBarDetails
46 | searchBar.delegate = context.coordinator
47 | if self.searchBarDetails.searchBarStyle != .minimal {
| `- error: cannot infer contextual base in reference to member 'minimal'
48 | searchBar.searchBarStyle = self.searchBarDetails.searchBarStyle
49 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:50:41: error: cannot infer contextual base in reference to member 'minimal'
48 | searchBar.searchBarStyle = self.searchBarDetails.searchBarStyle
49 | } else {
50 | searchBar.searchBarStyle = .minimal
| `- error: cannot infer contextual base in reference to member 'minimal'
51 | }
52 | if self.searchBarDetails.returnKeyType != .search {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:52:52: error: cannot infer contextual base in reference to member 'search'
50 | searchBar.searchBarStyle = .minimal
51 | }
52 | if self.searchBarDetails.returnKeyType != .search {
| `- error: cannot infer contextual base in reference to member 'search'
53 | searchBar.returnKeyType = self.searchBarDetails.returnKeyType
54 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:55:40: error: cannot infer contextual base in reference to member 'search'
53 | searchBar.returnKeyType = self.searchBarDetails.returnKeyType
54 | } else {
55 | searchBar.returnKeyType = .search
| `- error: cannot infer contextual base in reference to member 'search'
56 | }
57 | self.searchBarDetails = searchBar
[4/10] Compiling SwiftUIMap Search View.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:39:34: error: cannot find type 'UISearchBar' in scope
37 | @State private var isBtnActive = false
38 | @State var completion = MKLocalSearchCompletion()
39 | @State var searchBarDetails: UISearchBar = UISearchBar()
| `- error: cannot find type 'UISearchBar' in scope
40 |
41 | public init(resultTypes: MKLocalSearchCompleter.ResultType, onSelect: @escaping (_ title: String, _ address: String) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:32:6: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
| `- error: 'StateObject' is only available in macOS 11.0 or newer
33 | @Environment(\.presentationMode) var presentationMode
34 | var onSelect: (_ title: String, _ address: String, _ placemark: CLPlacemark) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:138:44: error: cannot find type 'UIBarButtonItem' in scope
136 | }
137 |
138 | public func toolbarButtons(_ buttons: [UIBarButtonItem]) -> Self {
| `- error: cannot find type 'UIBarButtonItem' in scope
139 | let bar = UIToolbar()
140 | bar.items = buttons
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:45:27: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
33 | @Environment(\.presentationMode) var presentationMode
:
39 | @State var searchBarDetails: UISearchBar = UISearchBar()
40 |
41 | public init(resultTypes: MKLocalSearchCompleter.ResultType, onSelect: @escaping (_ title: String, _ address: String) -> Void) {
| `- note: add @available attribute to enclosing initializer
42 | self.onSelect = { title, address, _ in
43 | onSelect(title, address)
44 | }
45 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: nil))
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | }
47 | public init(resultTypes: MKLocalSearchCompleter.ResultType, pointOfInterestFilter: MKPointOfInterestFilter?, onSelect: @escaping (_ title: String, _ address: String) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:51:27: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
33 | @Environment(\.presentationMode) var presentationMode
:
45 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: nil))
46 | }
47 | public init(resultTypes: MKLocalSearchCompleter.ResultType, pointOfInterestFilter: MKPointOfInterestFilter?, onSelect: @escaping (_ title: String, _ address: String) -> Void) {
| `- note: add @available attribute to enclosing initializer
48 | self.onSelect = { title, address, _ in
49 | onSelect(title, address)
50 | }
51 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: pointOfInterestFilter))
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
52 | }
53 | public init(resultTypes: MKLocalSearchCompleter.ResultType, onSelectAdvanced: @escaping (_ title: String, _ placemark: CLPlacemark) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:57:27: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
33 | @Environment(\.presentationMode) var presentationMode
:
51 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: pointOfInterestFilter))
52 | }
53 | public init(resultTypes: MKLocalSearchCompleter.ResultType, onSelectAdvanced: @escaping (_ title: String, _ placemark: CLPlacemark) -> Void) {
| `- note: add @available attribute to enclosing initializer
54 | self.onSelect = { title, _, placemark in
55 | onSelectAdvanced(title, placemark)
56 | }
57 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: nil))
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
58 | }
59 | public init(resultTypes: MKLocalSearchCompleter.ResultType, pointOfInterestFilter: MKPointOfInterestFilter?, onSelectAdvanced: @escaping (_ title: String, _ placemark: CLPlacemark) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:63:27: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
33 | @Environment(\.presentationMode) var presentationMode
:
57 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: nil))
58 | }
59 | public init(resultTypes: MKLocalSearchCompleter.ResultType, pointOfInterestFilter: MKPointOfInterestFilter?, onSelectAdvanced: @escaping (_ title: String, _ placemark: CLPlacemark) -> Void) {
| `- note: add @available attribute to enclosing initializer
60 | self.onSelect = { title, _, placemark in
61 | onSelectAdvanced(title, placemark)
62 | }
63 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: pointOfInterestFilter))
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
64 | }
65 | // public init(address: Binding<String>) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:73:19: error: cannot find 'UIColor' in scope
71 | public var body: some View {
72 | ZStack {
73 | Color(UIColor.systemGroupedBackground)
| `- error: cannot find 'UIColor' in scope
74 | VStack {
75 | SearchBar(searchBarDetails: $searchBarDetails, text: $mapSearch.searchTerm, onCommit: {text in })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:139:19: error: cannot find 'UIToolbar' in scope
137 |
138 | public func toolbarButtons(_ buttons: [UIBarButtonItem]) -> Self {
139 | let bar = UIToolbar()
| `- error: cannot find 'UIToolbar' in scope
140 | bar.items = buttons
141 | bar.sizeToFit()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:164:14: error: 'flatMap(maxPublishers:_:)' is only available in macOS 11.0 or newer
144 | }
145 | }
146 | class MapSearch : NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
147 | @Published var locationResults : [MKLocalSearchCompletion] = []
148 | @Published var searchTerm = ""
:
153 | private var currentPromise : ((Result<[MKLocalSearchCompletion], Error>) -> Void)?
154 |
155 | init(resultTypes: MKLocalSearchCompleter.ResultType, pointOfInterestFilter: MKPointOfInterestFilter?) {
| `- note: add @available attribute to enclosing initializer
156 | super.init()
157 | searchCompleter.delegate = self
:
162 | .debounce(for: .seconds(0.2), scheduler: RunLoop.main)
163 | .removeDuplicates()
164 | .flatMap({ (currentSearchTerm) in
| |- error: 'flatMap(maxPublishers:_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
165 | self.searchTermToResults(searchTerm: currentSearchTerm)
166 | })
[5/10] Compiling SwiftUIMap ReversedGeoLocation.swift
[6/10] Compiling SwiftUIMap MutatableAnnotationMap.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/10] Compiling SwiftUIMap Data Structs.swift
[8/10] Compiling SwiftUIMap AnnotationMapView.swift
[9/10] Emitting module SwiftUIMap
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:62:38: error: cannot find type 'LocationCoordinate' in scope
60 | }
61 | @Binding public var address: String
62 | @Binding public var coordinates: LocationCoordinate
| `- error: cannot find type 'LocationCoordinate' in scope
63 | @Binding var isUserLocationVisible: Bool
64 | @State var refresh = false {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:73:34: error: cannot find type 'Annotations' in scope
71 | }
72 | }
73 | @Binding public var points: [Annotations]
| `- error: cannot find type 'Annotations' in scope
74 | @State private var region: LocationRegion
75 | @State public var modifierMap: MKMapView
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:74:32: error: cannot find type 'LocationRegion' in scope
72 | }
73 | @Binding public var points: [Annotations]
74 | @State private var region: LocationRegion
| `- error: cannot find type 'LocationRegion' in scope
75 | @State public var modifierMap: MKMapView
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:76:83: error: cannot find type 'Location' in scope
74 | @State private var region: LocationRegion
75 | @State public var modifierMap: MKMapView
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
| `- error: cannot find type 'Location' in scope
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:78:83: error: cannot find type 'Annotations' in scope
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
79 | self._zoom = zoom
80 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:78:168: error: cannot find type 'Location' in scope
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
79 | self._zoom = zoom
80 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:95:83: error: cannot find type 'Annotations' in scope
93 | setCoordinatesFromAddress()
94 | }
95 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'Annotations' in scope
96 | self._zoom = zoom
97 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:112:83: error: cannot find type 'Annotations' in scope
110 | setCoordinatesFromAddress()
111 | }
112 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
113 | self._zoom = zoom
114 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:112:168: error: cannot find type 'Location' in scope
110 | setCoordinatesFromAddress()
111 | }
112 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
113 | self._zoom = zoom
114 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:134:83: error: cannot find type 'Annotations' in scope
132 | self.setCoordinatesFromAddress()
133 | }
134 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
135 | self._zoom = zoom
136 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:134:206: error: cannot find type 'Location' in scope
132 | self.setCoordinatesFromAddress()
133 | }
134 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
135 | self._zoom = zoom
136 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:151:83: error: cannot find type 'Annotations' in scope
149 | self.setCoordinatesFromAddress()
150 | }
151 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
152 | self._zoom = zoom
153 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:151:239: error: cannot find type 'Location' in scope
149 | self.setCoordinatesFromAddress()
150 | }
151 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
152 | self._zoom = zoom
153 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:61: error: cannot find type 'LocationCoordinate' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:99: error: cannot find type 'Annotations' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:184: error: cannot find type 'Location' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:189:61: error: cannot find type 'LocationCoordinate' in scope
187 | setDefaultCamera(self.modifierMap)
188 | }
189 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'LocationCoordinate' in scope
190 | self._zoom = zoom
191 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:189:99: error: cannot find type 'Annotations' in scope
187 | setDefaultCamera(self.modifierMap)
188 | }
189 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'Annotations' in scope
190 | self._zoom = zoom
191 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:61: error: cannot find type 'LocationCoordinate' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:99: error: cannot find type 'Annotations' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:184: error: cannot find type 'Location' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:61: error: cannot find type 'LocationCoordinate' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:99: error: cannot find type 'Annotations' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:222: error: cannot find type 'Location' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:61: error: cannot find type 'LocationCoordinate' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:99: error: cannot find type 'Annotations' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:255: error: cannot find type 'Location' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:583:42: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
53 | */
54 |
55 | public struct AnnotationMapView: View {
| `- note: add @available attribute to enclosing struct
56 | @Binding public var zoom: Double {
57 | didSet {
:
581 | ```
582 | */
583 | public func userTrackingMode(_ mode: MKUserTrackingMode) -> AnnotationMapView {
| | `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
584 | modifierMap.userTrackingMode = mode
585 | return self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:14:36: error: cannot find type 'UISearchBar' in scope
12 |
13 | struct SearchBar: UIViewRepresentable {
14 | @Binding var searchBarDetails: UISearchBar
| `- error: cannot find type 'UISearchBar' in scope
15 | @Binding var text: String
16 | var onCommit: (_ value: String) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:18:34: error: cannot find type 'UISearchBarDelegate' in scope
16 | var onCommit: (_ value: String) -> Void
17 |
18 | class Coordinator: NSObject, UISearchBarDelegate {
| `- error: cannot find type 'UISearchBarDelegate' in scope
19 |
20 | @Binding var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:28:37: error: cannot find type 'UISearchBar' in scope
26 | }
27 |
28 | func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
| `- error: cannot find type 'UISearchBar' in scope
29 | text = searchText
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:32:56: error: cannot find type 'UISearchBar' in scope
30 | }
31 |
32 | func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
| `- error: cannot find type 'UISearchBar' in scope
33 | print("resign keyboard")
34 | searchBar.resignFirstResponder()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:44:72: error: cannot find type 'UISearchBar' in scope
42 | }
43 |
44 | func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UISearchBar' in scope
45 | let searchBar = searchBarDetails
46 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:44:30: error: cannot find type 'UIViewRepresentableContext' in scope
42 | }
43 |
44 | func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
45 | let searchBar = searchBarDetails
46 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:60:33: error: cannot find type 'UISearchBar' in scope
58 | return searchBar
59 | }
60 | func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UISearchBar' in scope
61 | uiView.text = text
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:60:55: error: cannot find type 'UIViewRepresentableContext' in scope
58 | return searchBar
59 | }
60 | func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
61 | uiView.text = text
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:13:19: error: cannot find type 'UIViewRepresentable' in scope
11 | import MapKit
12 |
13 | struct SearchBar: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
14 | @Binding var searchBarDetails: UISearchBar
15 | @Binding var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:39:34: error: cannot find type 'UISearchBar' in scope
37 | @State private var isBtnActive = false
38 | @State var completion = MKLocalSearchCompletion()
39 | @State var searchBarDetails: UISearchBar = UISearchBar()
| `- error: cannot find type 'UISearchBar' in scope
40 |
41 | public init(resultTypes: MKLocalSearchCompleter.ResultType, onSelect: @escaping (_ title: String, _ address: String) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:32:6: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
| `- error: 'StateObject' is only available in macOS 11.0 or newer
33 | @Environment(\.presentationMode) var presentationMode
34 | var onSelect: (_ title: String, _ address: String, _ placemark: CLPlacemark) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:138:44: error: cannot find type 'UIBarButtonItem' in scope
136 | }
137 |
138 | public func toolbarButtons(_ buttons: [UIBarButtonItem]) -> Self {
| `- error: cannot find type 'UIBarButtonItem' in scope
139 | let bar = UIToolbar()
140 | bar.items = buttons
[10/10] Compiling SwiftUIMap Public View.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:62:38: error: cannot find type 'LocationCoordinate' in scope
60 | }
61 | @Binding public var address: String
62 | @Binding public var coordinates: LocationCoordinate
| `- error: cannot find type 'LocationCoordinate' in scope
63 | @Binding var isUserLocationVisible: Bool
64 | @State var refresh = false {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:73:34: error: cannot find type 'Annotations' in scope
71 | }
72 | }
73 | @Binding public var points: [Annotations]
| `- error: cannot find type 'Annotations' in scope
74 | @State private var region: LocationRegion
75 | @State public var modifierMap: MKMapView
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:74:32: error: cannot find type 'LocationRegion' in scope
72 | }
73 | @Binding public var points: [Annotations]
74 | @State private var region: LocationRegion
| `- error: cannot find type 'LocationRegion' in scope
75 | @State public var modifierMap: MKMapView
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:76:83: error: cannot find type 'Location' in scope
74 | @State private var region: LocationRegion
75 | @State public var modifierMap: MKMapView
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
| `- error: cannot find type 'Location' in scope
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:78:83: error: cannot find type 'Annotations' in scope
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
79 | self._zoom = zoom
80 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:78:168: error: cannot find type 'Location' in scope
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
79 | self._zoom = zoom
80 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:95:83: error: cannot find type 'Annotations' in scope
93 | setCoordinatesFromAddress()
94 | }
95 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'Annotations' in scope
96 | self._zoom = zoom
97 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:112:83: error: cannot find type 'Annotations' in scope
110 | setCoordinatesFromAddress()
111 | }
112 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
113 | self._zoom = zoom
114 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:112:168: error: cannot find type 'Location' in scope
110 | setCoordinatesFromAddress()
111 | }
112 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
113 | self._zoom = zoom
114 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:134:83: error: cannot find type 'Annotations' in scope
132 | self.setCoordinatesFromAddress()
133 | }
134 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
135 | self._zoom = zoom
136 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:134:206: error: cannot find type 'Location' in scope
132 | self.setCoordinatesFromAddress()
133 | }
134 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
135 | self._zoom = zoom
136 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:151:83: error: cannot find type 'Annotations' in scope
149 | self.setCoordinatesFromAddress()
150 | }
151 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
152 | self._zoom = zoom
153 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:151:239: error: cannot find type 'Location' in scope
149 | self.setCoordinatesFromAddress()
150 | }
151 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
152 | self._zoom = zoom
153 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:61: error: cannot find type 'LocationCoordinate' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:99: error: cannot find type 'Annotations' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:184: error: cannot find type 'Location' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:189:61: error: cannot find type 'LocationCoordinate' in scope
187 | setDefaultCamera(self.modifierMap)
188 | }
189 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'LocationCoordinate' in scope
190 | self._zoom = zoom
191 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:189:99: error: cannot find type 'Annotations' in scope
187 | setDefaultCamera(self.modifierMap)
188 | }
189 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'Annotations' in scope
190 | self._zoom = zoom
191 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:61: error: cannot find type 'LocationCoordinate' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:99: error: cannot find type 'Annotations' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:184: error: cannot find type 'Location' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:61: error: cannot find type 'LocationCoordinate' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:99: error: cannot find type 'Annotations' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:222: error: cannot find type 'Location' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:61: error: cannot find type 'LocationCoordinate' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:99: error: cannot find type 'Annotations' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:255: error: cannot find type 'Location' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:583:42: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
53 | */
54 |
55 | public struct AnnotationMapView: View {
| `- note: add @available attribute to enclosing struct
56 | @Binding public var zoom: Double {
57 | didSet {
:
581 | ```
582 | */
583 | public func userTrackingMode(_ mode: MKUserTrackingMode) -> AnnotationMapView {
| | `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
584 | modifierMap.userTrackingMode = mode
585 | return self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:82:20: error: cannot find 'LocationCoordinate' in scope
80 | self._address = address
81 | self._coordinates = Binding(get: {
82 | return LocationCoordinate(latitude: 0, longitude: 0)
| `- error: cannot find 'LocationCoordinate' in scope
83 | }, set: { _ in
84 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:83:19: error: cannot infer type of closure parameter '_' without a type annotation
81 | self._coordinates = Binding(get: {
82 | return LocationCoordinate(latitude: 0, longitude: 0)
83 | }, set: { _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
84 | })
85 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:99:20: error: cannot find 'LocationCoordinate' in scope
97 | self._address = address
98 | self._coordinates = Binding(get: {
99 | return LocationCoordinate(latitude: 0, longitude: 0)
| `- error: cannot find 'LocationCoordinate' in scope
100 | }, set: { _ in
101 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:100:19: error: cannot infer type of closure parameter '_' without a type annotation
98 | self._coordinates = Binding(get: {
99 | return LocationCoordinate(latitude: 0, longitude: 0)
100 | }, set: { _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
101 | })
102 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:104:26: error: cannot infer type of closure parameter '_' without a type annotation
102 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
103 | self._points = points
104 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
105 | self.deselected = {}
106 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:104:29: error: cannot infer type of closure parameter '_' without a type annotation
102 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
103 | self._points = points
104 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
105 | self.deselected = {}
106 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:104:32: error: cannot infer type of closure parameter '_' without a type annotation
102 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
103 | self._points = points
104 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
105 | self.deselected = {}
106 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:104:35: error: cannot infer type of closure parameter '_' without a type annotation
102 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
103 | self._points = points
104 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
105 | self.deselected = {}
106 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:116:20: error: cannot find 'LocationCoordinate' in scope
114 | self._address = address
115 | self._coordinates = Binding(get: {
116 | return LocationCoordinate(latitude: 0, longitude: 0)
| `- error: cannot find 'LocationCoordinate' in scope
117 | }, set: { _ in
118 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:117:19: error: cannot infer type of closure parameter '_' without a type annotation
115 | self._coordinates = Binding(get: {
116 | return LocationCoordinate(latitude: 0, longitude: 0)
117 | }, set: { _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
118 | })
119 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:138:20: error: cannot find 'LocationCoordinate' in scope
136 | self._address = address
137 | self._coordinates = Binding(get: {
138 | return LocationCoordinate(latitude: 0, longitude: 0)
| `- error: cannot find 'LocationCoordinate' in scope
139 | }, set: { _ in
140 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:139:19: error: cannot infer type of closure parameter '_' without a type annotation
137 | self._coordinates = Binding(get: {
138 | return LocationCoordinate(latitude: 0, longitude: 0)
139 | }, set: { _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
140 | })
141 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:155:20: error: cannot find 'LocationCoordinate' in scope
153 | self._address = address
154 | self._coordinates = Binding(get: {
155 | return LocationCoordinate(latitude: 0, longitude: 0)
| `- error: cannot find 'LocationCoordinate' in scope
156 | }, set: { _ in
157 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:156:19: error: cannot infer type of closure parameter '_' without a type annotation
154 | self._coordinates = Binding(get: {
155 | return LocationCoordinate(latitude: 0, longitude: 0)
156 | }, set: { _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
157 | })
158 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:198:26: error: cannot infer type of closure parameter '_' without a type annotation
196 | self.region = MKCoordinateRegion(center: coordinates.wrappedValue, span: MKCoordinateSpan(latitudeDelta: zoom.wrappedValue, longitudeDelta: zoom.wrappedValue))
197 | self._points = points
198 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
199 | self.deselected = {}
200 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:198:29: error: cannot infer type of closure parameter '_' without a type annotation
196 | self.region = MKCoordinateRegion(center: coordinates.wrappedValue, span: MKCoordinateSpan(latitudeDelta: zoom.wrappedValue, longitudeDelta: zoom.wrappedValue))
197 | self._points = points
198 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
199 | self.deselected = {}
200 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:198:32: error: cannot infer type of closure parameter '_' without a type annotation
196 | self.region = MKCoordinateRegion(center: coordinates.wrappedValue, span: MKCoordinateSpan(latitudeDelta: zoom.wrappedValue, longitudeDelta: zoom.wrappedValue))
197 | self._points = points
198 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
199 | self.deselected = {}
200 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:198:35: error: cannot infer type of closure parameter '_' without a type annotation
196 | self.region = MKCoordinateRegion(center: coordinates.wrappedValue, span: MKCoordinateSpan(latitudeDelta: zoom.wrappedValue, longitudeDelta: zoom.wrappedValue))
197 | self._points = points
198 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
199 | self.deselected = {}
200 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:300:35: error: cannot find 'LocationCoordinate' in scope
298 |
299 | // Use your location
300 | let coordinates = LocationCoordinate(latitude: location.coordinate.latitude, longitude: location.coordinate.longitude)
| `- error: cannot find 'LocationCoordinate' in scope
301 | self.coordinates = coordinates
302 | self.region = MKCoordinateRegion(center: coordinates, span: MKCoordinateSpan(latitudeDelta: self.zoom, longitudeDelta: self.zoom))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:310:17: error: cannot find 'RawExistingAnnotationMap' in scope
308 | VStack {
309 | if !refresh {
310 | RawExistingAnnotationMap(region: $region, points: $points, modifierMap: modifierMap, selected: { Title, Subtitle, Location, Cluster in
| `- error: cannot find 'RawExistingAnnotationMap' in scope
311 | // location = Location
312 | if zoom > 0.05 {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:558:21: error: value of type 'MKMapView' has no dynamic member 'isMultipleTouchEnabled' using key path from root type 'MKMapView'
556 | */
557 | public func isMultipleTouchEnabled(_ enabled: Bool) -> AnnotationMapView {
558 | modifierMap.isMultipleTouchEnabled = enabled
| `- error: value of type 'MKMapView' has no dynamic member 'isMultipleTouchEnabled' using key path from root type 'MKMapView'
559 | return self
560 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:558:9: error: referencing subscript 'subscript(dynamicMember:)' requires wrapper 'Binding<MKMapView>'
556 | */
557 | public func isMultipleTouchEnabled(_ enabled: Bool) -> AnnotationMapView {
558 | modifierMap.isMultipleTouchEnabled = enabled
| `- error: referencing subscript 'subscript(dynamicMember:)' requires wrapper 'Binding<MKMapView>'
559 | return self
560 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:558:46: error: cannot assign value of type 'Bool' to type 'Binding<Subject>'
556 | */
557 | public func isMultipleTouchEnabled(_ enabled: Bool) -> AnnotationMapView {
558 | modifierMap.isMultipleTouchEnabled = enabled
| `- error: cannot assign value of type 'Bool' to type 'Binding<Subject>'
559 | return self
560 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:571:21: error: value of type 'MKMapView' has no dynamic member 'isUserInteractionEnabled' using key path from root type 'MKMapView'
569 | */
570 | public func isUserInteractionEnabled(_ enabled: Bool) -> AnnotationMapView {
571 | modifierMap.isUserInteractionEnabled = enabled
| `- error: value of type 'MKMapView' has no dynamic member 'isUserInteractionEnabled' using key path from root type 'MKMapView'
572 | return self
573 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:571:9: error: referencing subscript 'subscript(dynamicMember:)' requires wrapper 'Binding<MKMapView>'
569 | */
570 | public func isUserInteractionEnabled(_ enabled: Bool) -> AnnotationMapView {
571 | modifierMap.isUserInteractionEnabled = enabled
| `- error: referencing subscript 'subscript(dynamicMember:)' requires wrapper 'Binding<MKMapView>'
572 | return self
573 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:571:48: error: cannot assign value of type 'Bool' to type 'Binding<Subject>'
569 | */
570 | public func isUserInteractionEnabled(_ enabled: Bool) -> AnnotationMapView {
571 | modifierMap.isUserInteractionEnabled = enabled
| `- error: cannot assign value of type 'Bool' to type 'Binding<Subject>'
572 | return self
573 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:584:21: error: 'userTrackingMode' is only available in macOS 11.0 or newer
53 | */
54 |
55 | public struct AnnotationMapView: View {
| `- note: add @available attribute to enclosing struct
56 | @Binding public var zoom: Double {
57 | didSet {
:
581 | ```
582 | */
583 | public func userTrackingMode(_ mode: MKUserTrackingMode) -> AnnotationMapView {
| `- note: add @available attribute to enclosing instance method
584 | modifierMap.userTrackingMode = mode
| |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
585 | return self
586 | }
BUILD FAILURE 6.0 macosSpm