Build Information
Failed to build RouteMapKit, reference main (93a154), with Swift 6.3 for macOS (SPM) on 16 Apr 2026 00:25:01 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Dross52/ParallelRouteMapKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Dross52/ParallelRouteMapKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 93a1548 Adding liscense
Cloned https://github.com/Dross52/ParallelRouteMapKit.git
Revision (git rev-parse @):
93a15487623c67881dd08ea1833bbd6c7771e75f
SUCCESS checkout https://github.com/Dross52/ParallelRouteMapKit.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",
"traits": [
"default"
],
"dependencies": [
{
"identity": "parallelroutemapkit",
"name": "RouteMapKit",
"url": "https://github.com/Dross52/ParallelRouteMapKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ParallelRouteMapKit",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/Dross52/ParallelRouteMapKit.git
[1/56] Fetching parallelroutemapkit
Fetched https://github.com/Dross52/ParallelRouteMapKit.git from cache (1.09s)
Creating working copy for https://github.com/Dross52/ParallelRouteMapKit.git
Working copy of https://github.com/Dross52/ParallelRouteMapKit.git resolved at main (93a1548)
warning: '.resolve-product-dependencies': dependency 'parallelroutemapkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/Dross52/ParallelRouteMapKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
[3/11] Compiling RouteMapKit RoutePolylineRenderer.swift
[4/11] Compiling RouteMapKit RouteSegment.swift
[5/11] Compiling RouteMapKit RouteMapKit.swift
[6/11] Compiling RouteMapKit RoutePolyline.swift
[7/11] Compiling RouteMapKit RouteMapView.swift
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:23:37: error: cannot find type 'Context' in scope
21 | }
22 |
23 | public func makeUIView(context: Context) -> MKMapView {
| `- error: cannot find type 'Context' in scope
24 | let mapView = MKMapView()
25 | mapView.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:49:60: error: cannot find type 'Context' in scope
47 | }
48 |
49 | public func updateUIView(_ uiView: MKMapView, context: Context) {
| `- error: cannot find type 'Context' in scope
50 | // Refresh annotations if routes or zoom level changes.
51 | context.coordinator.updateRouteAnnotations(on: uiView)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:14:29: error: cannot find type 'UIViewRepresentable' in scope
12 |
13 | /// A SwiftUI view that wraps an MKMapView and displays RoutePolylines with custom annotations.
14 | public struct RouteMapView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
15 | public let routePolylines: [RoutePolyline]
16 | public var annotationDistanceInterval: Double
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:82:30: error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
58 | // MARK: - Coordinator
59 |
60 | public class Coordinator: NSObject, MKMapViewDelegate {
| `- note: add '@available' attribute to enclosing class
61 | /// Mapping from overlay identifiers to RoutePolyline.
62 | public var overlayMapping: [ObjectIdentifier: RoutePolyline] = [:]
:
79 | }
80 |
81 | public func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {
| `- note: add '@available' attribute to enclosing instance method
82 | if annotation is RouteAnnotationViewModel {
| |- error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | let identifier = "RouteAnnotationView"
84 | var annotationView = mapView.dequeueReusableAnnotationView(withIdentifier: identifier) as? RouteAnnotationViewWrapper
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:91:33: error: 'zPriority' is only available in macOS 11.0 or newer
58 | // MARK: - Coordinator
59 |
60 | public class Coordinator: NSObject, MKMapViewDelegate {
| `- note: add '@available' attribute to enclosing class
61 | /// Mapping from overlay identifiers to RoutePolyline.
62 | public var overlayMapping: [ObjectIdentifier: RoutePolyline] = [:]
:
79 | }
80 |
81 | public func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {
| `- note: add '@available' attribute to enclosing instance method
82 | if annotation is RouteAnnotationViewModel {
83 | let identifier = "RouteAnnotationView"
:
89 | annotationView?.annotation = annotation
90 | }
91 | annotationView?.zPriority = .min
| |- error: 'zPriority' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
92 | rotateRouteNames(on: mapView)
93 | return annotationView
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:91:46: error: 'min' is only available in macOS 11.0 or newer
58 | // MARK: - Coordinator
59 |
60 | public class Coordinator: NSObject, MKMapViewDelegate {
| `- note: add '@available' attribute to enclosing class
61 | /// Mapping from overlay identifiers to RoutePolyline.
62 | public var overlayMapping: [ObjectIdentifier: RoutePolyline] = [:]
:
79 | }
80 |
81 | public func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {
| `- note: add '@available' attribute to enclosing instance method
82 | if annotation is RouteAnnotationViewModel {
83 | let identifier = "RouteAnnotationView"
:
89 | annotationView?.annotation = annotation
90 | }
91 | annotationView?.zPriority = .min
| |- error: 'min' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
92 | rotateRouteNames(on: mapView)
93 | return annotationView
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:100:74: error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
58 | // MARK: - Coordinator
59 |
60 | public class Coordinator: NSObject, MKMapViewDelegate {
| `- note: add '@available' attribute to enclosing class
61 | /// Mapping from overlay identifiers to RoutePolyline.
62 | public var overlayMapping: [ObjectIdentifier: RoutePolyline] = [:]
:
96 | }
97 |
98 | public func updateRouteAnnotations(on mapView: MKMapView) {
| `- note: add '@available' attribute to enclosing instance method
99 | // Remove existing route annotations (our custom ones)
100 | let existingAnnotations = mapView.annotations.filter { $0 is RouteAnnotationViewModel }
| |- error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | mapView.removeAnnotations(existingAnnotations)
102 |
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:104:34: error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
58 | // MARK: - Coordinator
59 |
60 | public class Coordinator: NSObject, MKMapViewDelegate {
| `- note: add '@available' attribute to enclosing class
61 | /// Mapping from overlay identifiers to RoutePolyline.
62 | public var overlayMapping: [ObjectIdentifier: RoutePolyline] = [:]
:
96 | }
97 |
98 | public func updateRouteAnnotations(on mapView: MKMapView) {
| `- note: add '@available' attribute to enclosing instance method
99 | // Remove existing route annotations (our custom ones)
100 | let existingAnnotations = mapView.annotations.filter { $0 is RouteAnnotationViewModel }
:
102 |
103 | // For each route, add annotations along the route.
104 | var newAnnotations: [RouteAnnotationViewModel] = []
| |- error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | for route in routePolylines {
106 | let annotationCoords = route.annotationCoordinates(every: annotationDistanceInterval)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:108:38: error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
58 | // MARK: - Coordinator
59 |
60 | public class Coordinator: NSObject, MKMapViewDelegate {
| `- note: add '@available' attribute to enclosing class
61 | /// Mapping from overlay identifiers to RoutePolyline.
62 | public var overlayMapping: [ObjectIdentifier: RoutePolyline] = [:]
:
96 | }
97 |
98 | public func updateRouteAnnotations(on mapView: MKMapView) {
| `- note: add '@available' attribute to enclosing instance method
99 | // Remove existing route annotations (our custom ones)
100 | let existingAnnotations = mapView.annotations.filter { $0 is RouteAnnotationViewModel }
:
106 | let annotationCoords = route.annotationCoordinates(every: annotationDistanceInterval)
107 | for (coordinate, angle) in annotationCoords {
108 | let annotation = RouteAnnotationViewModel(route: route, coordinate: coordinate, angle: angle)
| |- error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | newAnnotations.append(annotation)
110 | }
[8/11] Compiling RouteMapKit RouteAnnotationViewWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:15:36: error: cannot find type 'UIHostingController' in scope
13 | public class RouteAnnotationViewWrapper: MKAnnotationView {
14 |
15 | private var hostingController: UIHostingController<RouteAnnotationView>?
| `- error: cannot find type 'UIHostingController' in scope
16 |
17 | public override var annotation: MKAnnotation? {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:19:51: error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
11 | import MapKit
12 |
13 | public class RouteAnnotationViewWrapper: MKAnnotationView {
| `- note: add '@available' attribute to enclosing class
14 |
15 | private var hostingController: UIHostingController<RouteAnnotationView>?
16 |
17 | public override var annotation: MKAnnotation? {
| `- note: add '@available' attribute to enclosing property
18 | didSet {
19 | guard let annotation = annotation as? RouteAnnotationViewModel else { return }
| |- error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | setupSwiftUIView(for: annotation)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:24:51: error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
11 | import MapKit
12 |
13 | public class RouteAnnotationViewWrapper: MKAnnotationView {
| `- note: add '@available' attribute to enclosing class
14 |
15 | private var hostingController: UIHostingController<RouteAnnotationView>?
:
22 | }
23 |
24 | private func setupSwiftUIView(for annotation: RouteAnnotationViewModel) {
| | `- error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
25 | let routeView = RouteAnnotationView(
26 | text: annotation.title ?? "",
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:21:20: error: 'colorScheme' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
19 | var size: CGFloat = 200
20 |
21 | @Environment(\.colorScheme) var colorScheme
| `- error: 'colorScheme' is only available in macOS 10.15 or newer
22 |
23 | var adjustedAngle: Double {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:28:37: warning: left side of nil coalescing operator '??' has non-optional type 'Double', so the right side is never used
26 | text: annotation.title ?? "",
27 | textColor: Color(annotation.route.color),
28 | angle: annotation.angle ?? 0
| `- warning: left side of nil coalescing operator '??' has non-optional type 'Double', so the right side is never used
29 | )
30 |
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:27:24: error: 'Color' is only available in macOS 10.15 or newer
11 | import MapKit
12 |
13 | public class RouteAnnotationViewWrapper: MKAnnotationView {
| `- note: add '@available' attribute to enclosing class
14 |
15 | private var hostingController: UIHostingController<RouteAnnotationView>?
:
22 | }
23 |
24 | private func setupSwiftUIView(for annotation: RouteAnnotationViewModel) {
| `- note: add '@available' attribute to enclosing instance method
25 | let routeView = RouteAnnotationView(
26 | text: annotation.title ?? "",
27 | textColor: Color(annotation.route.color),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | angle: annotation.angle ?? 0
29 | )
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:27:24: error: 'init(_:)' is only available in macOS 10.15 or newer
11 | import MapKit
12 |
13 | public class RouteAnnotationViewWrapper: MKAnnotationView {
| `- note: add '@available' attribute to enclosing class
14 |
15 | private var hostingController: UIHostingController<RouteAnnotationView>?
:
22 | }
23 |
24 | private func setupSwiftUIView(for annotation: RouteAnnotationViewModel) {
| `- note: add '@available' attribute to enclosing instance method
25 | let routeView = RouteAnnotationView(
26 | text: annotation.title ?? "",
27 | textColor: Color(annotation.route.color),
| |- error: 'init(_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | angle: annotation.angle ?? 0
29 | )
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:34:22: error: cannot find 'UIHostingController' in scope
32 | hc.rootView = routeView
33 | } else {
34 | let hc = UIHostingController(rootView: routeView)
| `- error: cannot find 'UIHostingController' in scope
35 | hc.view.backgroundColor = .clear
36 | hostingController = hc
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:35:40: error: cannot infer contextual base in reference to member 'clear'
33 | } else {
34 | let hc = UIHostingController(rootView: routeView)
35 | hc.view.backgroundColor = .clear
| `- error: cannot infer contextual base in reference to member 'clear'
36 | hostingController = hc
37 | addSubview(hc.view)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:52:9: error: cannot find 'transform' in scope
50 | }
51 | // Negate the map's heading
52 | transform = CGAffineTransform(rotationAngle: -CGFloat(map.camera.heading) * (.pi / 180))
| `- error: cannot find 'transform' in scope
53 | }
54 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/11] Compiling RouteMapKit RouteAnnotationViewModel.swift
[10/11] Emitting module RouteMapKit
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:21:20: error: 'colorScheme' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
19 | var size: CGFloat = 200
20 |
21 | @Environment(\.colorScheme) var colorScheme
| `- error: 'colorScheme' is only available in macOS 10.15 or newer
22 |
23 | var adjustedAngle: Double {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:17:20: error: 'Color' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | var angle: Double // in degrees
19 | var size: CGFloat = 200
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
19 | var size: CGFloat = 200
20 |
21 | @Environment(\.colorScheme) var colorScheme
| `- error: 'Environment' is only available in macOS 10.15 or newer
22 |
23 | var adjustedAngle: Double {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:33:27: error: 'View' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
31 | }
32 |
33 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
34 | Text(text)
35 | .font(.system(size: 12, weight: .bold))
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:46:22: error: 'Color' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
46 | var strokeColor: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
47 |
48 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:46:31: error: 'blue' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
46 | var strokeColor: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
47 |
48 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:48:41: error: 'View' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
46 | var strokeColor: Color = .blue
47 |
48 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
49 | if strokeSize > 0 {
50 | appliedStrokeBackground(content: content)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:56:68: error: 'View' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
54 | }
55 |
56 | private func appliedStrokeBackground(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
57 | if #available(iOS 15.0, *) {
58 | return AnyView(
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:74:41: error: 'View' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
76 | if #available(iOS 15.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:98:24: error: 'Color' is only available in macOS 10.15 or newer
95 | }
96 |
97 | extension View {
| `- note: add '@available' attribute to enclosing extension
98 | func stroke(color: Color, width: CGFloat = 1) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
99 | modifier(StrokeModifier(strokeSize: width, strokeColor: color))
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:98:59: error: 'View' is only available in macOS 10.15 or newer
95 | }
96 |
97 | extension View {
| `- note: add '@available' attribute to enclosing extension
98 | func stroke(color: Color, width: CGFloat = 1) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
99 | modifier(StrokeModifier(strokeSize: width, strokeColor: color))
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:97:11: error: 'View' is only available in macOS 10.15 or newer
95 | }
96 |
97 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
98 | func stroke(color: Color, width: CGFloat = 1) -> some View {
99 | modifier(StrokeModifier(strokeSize: width, strokeColor: color))
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:104:48: error: 'ColorScheme' is only available in macOS 10.15 or newer
101 | }
102 |
103 | extension Color {
| `- note: add '@available' attribute to enclosing extension
104 | static func oppositePrimary(_ colorScheme: ColorScheme) -> Color {
| | `- error: 'ColorScheme' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
105 | return colorScheme != .dark ? .white : .black
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:104:64: error: 'Color' is only available in macOS 10.15 or newer
101 | }
102 |
103 | extension Color {
| `- note: add '@available' attribute to enclosing extension
104 | static func oppositePrimary(_ colorScheme: ColorScheme) -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
105 | return colorScheme != .dark ? .white : .black
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:103:11: error: 'Color' is only available in macOS 10.15 or newer
101 | }
102 |
103 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
104 | static func oppositePrimary(_ colorScheme: ColorScheme) -> Color {
105 | return colorScheme != .dark ? .white : .black
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:110:28: error: 'Color' is only available in macOS 10.15 or newer
107 | }
108 |
109 | extension Color {
| `- note: add '@available' attribute to enclosing extension
110 | static var background: Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
111 | #if os(macOS)
112 | Color(.controlBackgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:109:11: error: 'Color' is only available in macOS 10.15 or newer
107 | }
108 |
109 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
110 | static var background: Color {
111 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:15:36: error: cannot find type 'UIHostingController' in scope
13 | public class RouteAnnotationViewWrapper: MKAnnotationView {
14 |
15 | private var hostingController: UIHostingController<RouteAnnotationView>?
| `- error: cannot find type 'UIHostingController' in scope
16 |
17 | public override var annotation: MKAnnotation? {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:19:51: error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
11 | import MapKit
12 |
13 | public class RouteAnnotationViewWrapper: MKAnnotationView {
| `- note: add '@available' attribute to enclosing class
14 |
15 | private var hostingController: UIHostingController<RouteAnnotationView>?
16 |
17 | public override var annotation: MKAnnotation? {
| `- note: add '@available' attribute to enclosing property
18 | didSet {
19 | guard let annotation = annotation as? RouteAnnotationViewModel else { return }
| |- error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | setupSwiftUIView(for: annotation)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationViewWrapper.swift:24:51: error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
11 | import MapKit
12 |
13 | public class RouteAnnotationViewWrapper: MKAnnotationView {
| `- note: add '@available' attribute to enclosing class
14 |
15 | private var hostingController: UIHostingController<RouteAnnotationView>?
:
22 | }
23 |
24 | private func setupSwiftUIView(for annotation: RouteAnnotationViewModel) {
| | `- error: 'RouteAnnotationViewModel' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
25 | let routeView = RouteAnnotationView(
26 | text: annotation.title ?? "",
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:23:37: error: cannot find type 'Context' in scope
21 | }
22 |
23 | public func makeUIView(context: Context) -> MKMapView {
| `- error: cannot find type 'Context' in scope
24 | let mapView = MKMapView()
25 | mapView.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:49:60: error: cannot find type 'Context' in scope
47 | }
48 |
49 | public func updateUIView(_ uiView: MKMapView, context: Context) {
| `- error: cannot find type 'Context' in scope
50 | // Refresh annotations if routes or zoom level changes.
51 | context.coordinator.updateRouteAnnotations(on: uiView)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteMapView.swift:14:29: error: cannot find type 'UIViewRepresentable' in scope
12 |
13 | /// A SwiftUI view that wraps an MKMapView and displays RoutePolylines with custom annotations.
14 | public struct RouteMapView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
15 | public let routePolylines: [RoutePolyline]
16 | public var annotationDistanceInterval: Double
[11/11] Compiling RouteMapKit RouteAnnotationView.swift
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:21:20: error: 'colorScheme' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
19 | var size: CGFloat = 200
20 |
21 | @Environment(\.colorScheme) var colorScheme
| `- error: 'colorScheme' is only available in macOS 10.15 or newer
22 |
23 | var adjustedAngle: Double {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:17:20: error: 'Color' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | var angle: Double // in degrees
19 | var size: CGFloat = 200
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
19 | var size: CGFloat = 200
20 |
21 | @Environment(\.colorScheme) var colorScheme
| `- error: 'Environment' is only available in macOS 10.15 or newer
22 |
23 | var adjustedAngle: Double {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:33:27: error: 'View' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
31 | }
32 |
33 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
34 | Text(text)
35 | .font(.system(size: 12, weight: .bold))
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:46:22: error: 'Color' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
46 | var strokeColor: Color = .blue
| `- error: 'Color' is only available in macOS 10.15 or newer
47 |
48 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:46:31: error: 'blue' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
46 | var strokeColor: Color = .blue
| `- error: 'blue' is only available in macOS 10.15 or newer
47 |
48 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:48:41: error: 'View' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
46 | var strokeColor: Color = .blue
47 |
48 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
49 | if strokeSize > 0 {
50 | appliedStrokeBackground(content: content)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:56:68: error: 'View' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
54 | }
55 |
56 | private func appliedStrokeBackground(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
57 | if #available(iOS 15.0, *) {
58 | return AnyView(
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:74:41: error: 'View' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
76 | if #available(iOS 15.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:98:24: error: 'Color' is only available in macOS 10.15 or newer
95 | }
96 |
97 | extension View {
| `- note: add '@available' attribute to enclosing extension
98 | func stroke(color: Color, width: CGFloat = 1) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
99 | modifier(StrokeModifier(strokeSize: width, strokeColor: color))
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:98:59: error: 'View' is only available in macOS 10.15 or newer
95 | }
96 |
97 | extension View {
| `- note: add '@available' attribute to enclosing extension
98 | func stroke(color: Color, width: CGFloat = 1) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
99 | modifier(StrokeModifier(strokeSize: width, strokeColor: color))
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:97:11: error: 'View' is only available in macOS 10.15 or newer
95 | }
96 |
97 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
98 | func stroke(color: Color, width: CGFloat = 1) -> some View {
99 | modifier(StrokeModifier(strokeSize: width, strokeColor: color))
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:104:48: error: 'ColorScheme' is only available in macOS 10.15 or newer
101 | }
102 |
103 | extension Color {
| `- note: add '@available' attribute to enclosing extension
104 | static func oppositePrimary(_ colorScheme: ColorScheme) -> Color {
| | `- error: 'ColorScheme' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
105 | return colorScheme != .dark ? .white : .black
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:104:64: error: 'Color' is only available in macOS 10.15 or newer
101 | }
102 |
103 | extension Color {
| `- note: add '@available' attribute to enclosing extension
104 | static func oppositePrimary(_ colorScheme: ColorScheme) -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static method
105 | return colorScheme != .dark ? .white : .black
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:103:11: error: 'Color' is only available in macOS 10.15 or newer
101 | }
102 |
103 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
104 | static func oppositePrimary(_ colorScheme: ColorScheme) -> Color {
105 | return colorScheme != .dark ? .white : .black
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:110:28: error: 'Color' is only available in macOS 10.15 or newer
107 | }
108 |
109 | extension Color {
| `- note: add '@available' attribute to enclosing extension
110 | static var background: Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
111 | #if os(macOS)
112 | Color(.controlBackgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:109:11: error: 'Color' is only available in macOS 10.15 or newer
107 | }
108 |
109 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
110 | static var background: Color {
111 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:34:9: error: 'Text' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
31 | }
32 |
33 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
34 | Text(text)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .font(.system(size: 12, weight: .bold))
36 | .foregroundColor(textColor)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:35:14: error: 'font' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
31 | }
32 |
33 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
34 | Text(text)
35 | .font(.system(size: 12, weight: .bold))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .foregroundColor(textColor)
37 | .stroke(color: .oppositePrimary(colorScheme), width: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:35:20: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
31 | }
32 |
33 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
34 | Text(text)
35 | .font(.system(size: 12, weight: .bold))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
36 | .foregroundColor(textColor)
37 | .stroke(color: .oppositePrimary(colorScheme), width: 1.0)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:36:14: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
31 | }
32 |
33 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
34 | Text(text)
35 | .font(.system(size: 12, weight: .bold))
36 | .foregroundColor(textColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | .stroke(color: .oppositePrimary(colorScheme), width: 1.0)
38 | .rotationEffect(Angle(degrees: adjustedAngle))
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:37:14: 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
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
31 | }
32 |
33 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
34 | Text(text)
35 | .font(.system(size: 12, weight: .bold))
36 | .foregroundColor(textColor)
37 | .stroke(color: .oppositePrimary(colorScheme), width: 1.0)
| |- 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
38 | .rotationEffect(Angle(degrees: adjustedAngle))
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:38:14: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
31 | }
32 |
33 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
34 | Text(text)
35 | .font(.system(size: 12, weight: .bold))
36 | .foregroundColor(textColor)
37 | .stroke(color: .oppositePrimary(colorScheme), width: 1.0)
38 | .rotationEffect(Angle(degrees: adjustedAngle))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:38:29: error: 'Angle' is only available in macOS 10.15 or newer
13 | import MapKit
14 |
15 | public struct RouteAnnotationView: View {
| `- note: add '@available' attribute to enclosing struct
16 | var text: String
17 | var textColor: Color
:
31 | }
32 |
33 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
34 | Text(text)
35 | .font(.system(size: 12, weight: .bold))
36 | .foregroundColor(textColor)
37 | .stroke(color: .oppositePrimary(colorScheme), width: 1.0)
38 | .rotationEffect(Angle(degrees: adjustedAngle))
| |- error: 'Angle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:49:27: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
46 | var strokeColor: Color = .blue
47 |
48 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
49 | if strokeSize > 0 {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | appliedStrokeBackground(content: content)
51 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:51:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
46 | var strokeColor: Color = .blue
47 |
48 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
49 | if strokeSize > 0 {
50 | appliedStrokeBackground(content: content)
51 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | content
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:48:46: 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
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
46 | var strokeColor: Color = .blue
47 |
48 | func body(content: 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
49 | if strokeSize > 0 {
50 | appliedStrokeBackground(content: content)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:58:20: error: 'AnyView' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
54 | }
55 |
56 | private func appliedStrokeBackground(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
57 | if #available(iOS 15.0, *) {
58 | return AnyView(
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | content
60 | .padding(strokeSize * 2)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:60:22: error: 'padding' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
54 | }
55 |
56 | private func appliedStrokeBackground(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
57 | if #available(iOS 15.0, *) {
58 | return AnyView(
59 | content
60 | .padding(strokeSize * 2)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .background(
62 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:61:22: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
54 | }
55 |
56 | private func appliedStrokeBackground(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
57 | if #available(iOS 15.0, *) {
58 | return AnyView(
59 | content
60 | .padding(strokeSize * 2)
61 | .background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | Rectangle()
63 | .foregroundColor(strokeColor)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:62:25: error: 'Rectangle' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
54 | }
55 |
56 | private func appliedStrokeBackground(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
57 | if #available(iOS 15.0, *) {
58 | return AnyView(
:
60 | .padding(strokeSize * 2)
61 | .background(
62 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | .foregroundColor(strokeColor)
64 | .mask(alignment: .center) {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:63:30: error: 'foregroundColor' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
54 | }
55 |
56 | private func appliedStrokeBackground(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
57 | if #available(iOS 15.0, *) {
58 | return AnyView(
:
61 | .background(
62 | Rectangle()
63 | .foregroundColor(strokeColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | .mask(alignment: .center) {
65 | mask(content: content)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:64:30: error: 'mask(alignment:_:)' is only available in macOS 12.0 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
54 | }
55 |
56 | private func appliedStrokeBackground(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
57 | if #available(iOS 15.0, *) {
58 | return AnyView(
:
62 | Rectangle()
63 | .foregroundColor(strokeColor)
64 | .mask(alignment: .center) {
| |- error: 'mask(alignment:_:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
65 | mask(content: content)
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:64:47: error: 'center' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
54 | }
55 |
56 | private func appliedStrokeBackground(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
57 | if #available(iOS 15.0, *) {
58 | return AnyView(
:
62 | Rectangle()
63 | .foregroundColor(strokeColor)
64 | .mask(alignment: .center) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | mask(content: content)
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:76:16: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
74 | func mask(content: Content) -> some View {
75 | Group {
76 | if #available(iOS 15.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
77 | Canvas { context, size in
78 | context.addFilter(.alphaThreshold(min: 0.01))
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:75:9: warning: conformance of 'Group<Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
| |- warning: conformance of 'Group<Content>' 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
76 | if #available(iOS 15.0, *) {
77 | Canvas { context, size in
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:75:9: error: 'Group' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | if #available(iOS 15.0, *) {
77 | Canvas { context, size in
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:75:9: error: 'init(content:)' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | if #available(iOS 15.0, *) {
77 | Canvas { context, size in
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:77:17: warning: conformance of 'Canvas<Symbols>' to 'View' is only available in macOS 12.0 or newer; this is an error in the Swift 6 language mode
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
76 | if #available(iOS 15.0, *) {
77 | Canvas { context, size in
| |- warning: conformance of 'Canvas<Symbols>' to 'View' is only available in macOS 12.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
78 | context.addFilter(.alphaThreshold(min: 0.01))
79 | if let resolvedView = context.resolveSymbol(id: id) {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:77:17: error: 'Canvas' is only available in macOS 12.0 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
76 | if #available(iOS 15.0, *) {
77 | Canvas { context, size in
| |- error: 'Canvas' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
78 | context.addFilter(.alphaThreshold(min: 0.01))
79 | if let resolvedView = context.resolveSymbol(id: id) {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:84:26: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
76 | if #available(iOS 15.0, *) {
:
82 | } symbols: {
83 | content
84 | .tag(id)
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .blur(radius: strokeSize)
86 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:85:26: error: 'blur(radius:opaque:)' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
76 | if #available(iOS 15.0, *) {
:
83 | content
84 | .tag(id)
85 | .blur(radius: strokeSize)
| |- error: 'blur(radius:opaque:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:76:40: warning: conformance of 'Canvas<Symbols>' to 'View' is only available in macOS 12.0 or newer; this is an error in the Swift 6 language mode
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
76 | if #available(iOS 15.0, *) {
| |- warning: conformance of 'Canvas<Symbols>' to 'View' is only available in macOS 12.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
77 | Canvas { context, size in
78 | context.addFilter(.alphaThreshold(min: 0.01))
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:76:40: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
76 | if #available(iOS 15.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
77 | Canvas { context, size in
78 | context.addFilter(.alphaThreshold(min: 0.01))
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:76:40: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
76 | if #available(iOS 15.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | Canvas { context, size in
78 | context.addFilter(.alphaThreshold(min: 0.01))
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:87:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
76 | if #available(iOS 15.0, *) {
:
85 | .blur(radius: strokeSize)
86 | }
87 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | // Fallback: just return the blurred content without the Canvas mask.
89 | content
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:75:15: 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
41 |
42 |
43 | struct StrokeModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
44 | private let id = UUID()
45 | var strokeSize: CGFloat = 1
:
72 | }
73 |
74 | func mask(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
75 | Group {
| |- 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
76 | if #available(iOS 15.0, *) {
77 | Canvas { context, size in
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:99:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
95 | }
96 |
97 | extension View {
| `- note: add '@available' attribute to enclosing extension
98 | func stroke(color: Color, width: CGFloat = 1) -> some View {
| `- note: add '@available' attribute to enclosing instance method
99 | modifier(StrokeModifier(strokeSize: width, strokeColor: color))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' 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
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:99:9: error: 'modifier' is only available in macOS 10.15 or newer
95 | }
96 |
97 | extension View {
| `- note: add '@available' attribute to enclosing extension
98 | func stroke(color: Color, width: CGFloat = 1) -> some View {
| `- note: add '@available' attribute to enclosing instance method
99 | modifier(StrokeModifier(strokeSize: width, strokeColor: color))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | }
101 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:105:28: warning: conformance of 'ColorScheme' to 'Equatable' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
101 | }
102 |
103 | extension Color {
| `- note: add '@available' attribute to enclosing extension
104 | static func oppositePrimary(_ colorScheme: ColorScheme) -> Color {
| `- note: add '@available' attribute to enclosing static method
105 | return colorScheme != .dark ? .white : .black
| |- warning: conformance of 'ColorScheme' to 'Equatable' 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
106 | }
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:105:40: error: 'white' is only available in macOS 10.15 or newer
101 | }
102 |
103 | extension Color {
| `- note: add '@available' attribute to enclosing extension
104 | static func oppositePrimary(_ colorScheme: ColorScheme) -> Color {
| `- note: add '@available' attribute to enclosing static method
105 | return colorScheme != .dark ? .white : .black
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | }
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:105:49: error: 'black' is only available in macOS 10.15 or newer
101 | }
102 |
103 | extension Color {
| `- note: add '@available' attribute to enclosing extension
104 | static func oppositePrimary(_ colorScheme: ColorScheme) -> Color {
| `- note: add '@available' attribute to enclosing static method
105 | return colorScheme != .dark ? .white : .black
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | }
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:112:9: error: 'Color' is only available in macOS 10.15 or newer
107 | }
108 |
109 | extension Color {
| `- note: add '@available' attribute to enclosing extension
110 | static var background: Color {
| `- note: add '@available' attribute to enclosing static property
111 | #if os(macOS)
112 | Color(.controlBackgroundColor)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | #else
114 | Color(UIColor.systemBackground)
/Users/admin/builder/spi-builder-workspace/Sources/RouteMapKit/RouteAnnotationView.swift:112:9: error: 'init(_:)' is only available in macOS 10.15 or newer
107 | }
108 |
109 | extension Color {
| `- note: add '@available' attribute to enclosing extension
110 | static var background: Color {
| `- note: add '@available' attribute to enclosing static property
111 | #if os(macOS)
112 | Color(.controlBackgroundColor)
| |- error: 'init(_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | #else
114 | Color(UIColor.systemBackground)
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
BUILD FAILURE 6.3 macosSpm