Build Information
Failed to build SwiftUIMKMapView, reference v0.4.0 (7b45f4
), with Swift 6.2 (beta) for macOS (SPM) on 19 Jun 2025 08:05:10 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/darrarski/SwiftUIMKMapView.git
Reference: v0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/darrarski/SwiftUIMKMapView
* tag v0.4.0 -> FETCH_HEAD
HEAD is now at 7b45f4e Show user location on the map
Cloned https://github.com/darrarski/SwiftUIMKMapView.git
Revision (git rev-parse @):
7b45f4e56045ecd8600c65416a6496ba7e7891a9
SUCCESS checkout https://github.com/darrarski/SwiftUIMKMapView.git at v0.4.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/darrarski/SwiftUIMKMapView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/9] Compiling SwiftUIMKMapView LineOverlay.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:11:12: error: cannot find type 'UIColor' in scope
9 | public init(
10 | coordinates: [CLLocationCoordinate2D],
11 | color: UIColor,
| `- error: cannot find type 'UIColor' in scope
12 | width: CGFloat
13 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:23:14: error: cannot find type 'UIColor' in scope
21 |
22 | let coordinates: [CLLocationCoordinate2D]
23 | let color: UIColor
| `- error: cannot find type 'UIColor' in scope
24 | let width: CGFloat
25 | let polyline: MKPolyline
[4/9] Compiling SwiftUIMKMapView MapViewCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapViewCoordinator.swift:13:5: error: setter for 'visibleRect' is only available in macOS 10.15 or newer
2 |
3 | /// Coordinator for the MapView UIViewRepresentable.
4 | public final class MapViewCoordinator: NSObject, MKMapViewDelegate {
| `- note: add @available attribute to enclosing class
5 | init(view: MapView) {
6 | self.view = view
:
10 | let view: MapView
11 |
12 | public func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool) {
| `- note: add @available attribute to enclosing instance method
13 | view.visibleRect = mapView.visibleMapRect
| |- error: setter for 'visibleRect' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | }
15 |
[5/9] Compiling SwiftUIMKMapView AnnotationViewFactory.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Emitting module SwiftUIMKMapView
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:14:12: error: cannot find type 'UIColor' in scope
12 | size: CGFloat,
13 | border: CGFloat,
14 | color: UIColor
| `- error: cannot find type 'UIColor' in scope
15 | ) {
16 | self.coordinate = coordinate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:25:14: error: cannot find type 'UIColor' in scope
23 | let size: CGFloat
24 | let border: CGFloat
25 | let color: UIColor
| `- error: cannot find type 'UIColor' in scope
26 |
27 | public override func isEqual(_ object: Any?) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:51:25: error: cannot find type 'UIImage' in scope
49 | }
50 |
51 | func renderImage() -> UIImage? {
| `- error: cannot find type 'UIImage' in scope
52 | guard let annotation = annotation as? DotAnnotation else { return nil }
53 | let format = UIGraphicsImageRendererFormat()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:11:12: error: cannot find type 'UIColor' in scope
9 | public init(
10 | coordinates: [CLLocationCoordinate2D],
11 | color: UIColor,
| `- error: cannot find type 'UIColor' in scope
12 | width: CGFloat
13 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:23:14: error: cannot find type 'UIColor' in scope
21 |
22 | let coordinates: [CLLocationCoordinate2D]
23 | let color: UIColor
| `- error: cannot find type 'UIColor' in scope
24 | let width: CGFloat
25 | let polyline: MKPolyline
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:14:18: error: 'Binding' is only available in macOS 10.15 or newer
3 |
4 | /// MapKit's MKMapView representable.
5 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
6 | /// - Parameters:
7 | /// - visibleRect: Binding for map's visible rect.
:
11 | /// - overlays: Array of MKOverlay objects to render on the map. Defaults to an empty array.
12 | /// - overlayRendererFactory: Factory that returns renderer object to use when drawing the specified overlay. Defaults to an empty factory.
13 | public init(
| `- note: add @available attribute to enclosing initializer
14 | visibleRect: Binding<MKMapRect>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | showsUserLocation: Bool = false,
16 | annotations: [MKAnnotation] = [],
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:29:4: error: 'Binding' is only available in macOS 10.15 or newer
3 |
4 | /// MapKit's MKMapView representable.
5 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
6 | /// - Parameters:
7 | /// - visibleRect: Binding for map's visible rect.
:
27 | }
28 |
29 | @Binding var visibleRect: MKMapRect
| `- error: 'Binding' is only available in macOS 10.15 or newer
30 | var showsUserLocation: Bool
31 | var annotations: [MKAnnotation]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:40:35: error: cannot find type 'Context' in scope
38 | }
39 |
40 | public func makeUIView(context: Context) -> MKMapView {
| `- error: cannot find type 'Context' in scope
41 | let view = MKMapView()
42 | annotationViewFactory.register(in: view)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:47:58: error: cannot find type 'Context' in scope
45 | }
46 |
47 | public func updateUIView(_ uiView: MKMapView, context: Context) {
| `- error: cannot find type 'Context' in scope
48 | uiView.setVisibleMapRect(visibleRect, animated: false)
49 | uiView.showsUserLocation = showsUserLocation
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:24: error: cannot find type 'UIViewRepresentable' in scope
3 |
4 | /// MapKit's MKMapView representable.
5 | public struct MapView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
6 | /// - Parameters:
7 | /// - visibleRect: Binding for map's visible rect.
[7/9] Compiling SwiftUIMKMapView OverlayRendererFactory.swift
[8/9] Compiling SwiftUIMKMapView DotAnnotation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:14:12: error: cannot find type 'UIColor' in scope
12 | size: CGFloat,
13 | border: CGFloat,
14 | color: UIColor
| `- error: cannot find type 'UIColor' in scope
15 | ) {
16 | self.coordinate = coordinate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:25:14: error: cannot find type 'UIColor' in scope
23 | let size: CGFloat
24 | let border: CGFloat
25 | let color: UIColor
| `- error: cannot find type 'UIColor' in scope
26 |
27 | public override func isEqual(_ object: Any?) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:51:25: error: cannot find type 'UIImage' in scope
49 | }
50 |
51 | func renderImage() -> UIImage? {
| `- error: cannot find type 'UIImage' in scope
52 | guard let annotation = annotation as? DotAnnotation else { return nil }
53 | let format = UIGraphicsImageRendererFormat()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:53:18: error: cannot find 'UIGraphicsImageRendererFormat' in scope
51 | func renderImage() -> UIImage? {
52 | guard let annotation = annotation as? DotAnnotation else { return nil }
53 | let format = UIGraphicsImageRendererFormat()
| `- error: cannot find 'UIGraphicsImageRendererFormat' in scope
54 | let bounds = CGRect(
55 | origin: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:58:20: error: cannot find 'UIGraphicsImageRenderer' in scope
56 | size: .init(width: annotation.size, height: annotation.size)
57 | )
58 | let renderer = UIGraphicsImageRenderer(bounds: bounds, format: format)
| `- error: cannot find 'UIGraphicsImageRenderer' in scope
59 | let image = renderer.image { context in
60 | UIColor.white.setFill()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:60:7: error: cannot find 'UIColor' in scope
58 | let renderer = UIGraphicsImageRenderer(bounds: bounds, format: format)
59 | let image = renderer.image { context in
60 | UIColor.white.setFill()
| `- error: cannot find 'UIColor' in scope
61 | context.cgContext.fillEllipse(in: bounds)
62 | annotation.color.setFill()
[9/9] Compiling SwiftUIMKMapView MapView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:14:18: error: 'Binding' is only available in macOS 10.15 or newer
3 |
4 | /// MapKit's MKMapView representable.
5 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
6 | /// - Parameters:
7 | /// - visibleRect: Binding for map's visible rect.
:
11 | /// - overlays: Array of MKOverlay objects to render on the map. Defaults to an empty array.
12 | /// - overlayRendererFactory: Factory that returns renderer object to use when drawing the specified overlay. Defaults to an empty factory.
13 | public init(
| `- note: add @available attribute to enclosing initializer
14 | visibleRect: Binding<MKMapRect>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | showsUserLocation: Bool = false,
16 | annotations: [MKAnnotation] = [],
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:29:4: error: 'Binding' is only available in macOS 10.15 or newer
3 |
4 | /// MapKit's MKMapView representable.
5 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
6 | /// - Parameters:
7 | /// - visibleRect: Binding for map's visible rect.
:
27 | }
28 |
29 | @Binding var visibleRect: MKMapRect
| `- error: 'Binding' is only available in macOS 10.15 or newer
30 | var showsUserLocation: Bool
31 | var annotations: [MKAnnotation]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:40:35: error: cannot find type 'Context' in scope
38 | }
39 |
40 | public func makeUIView(context: Context) -> MKMapView {
| `- error: cannot find type 'Context' in scope
41 | let view = MKMapView()
42 | annotationViewFactory.register(in: view)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:47:58: error: cannot find type 'Context' in scope
45 | }
46 |
47 | public func updateUIView(_ uiView: MKMapView, context: Context) {
| `- error: cannot find type 'Context' in scope
48 | uiView.setVisibleMapRect(visibleRect, animated: false)
49 | uiView.showsUserLocation = showsUserLocation
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:24: error: cannot find type 'UIViewRepresentable' in scope
3 |
4 | /// MapKit's MKMapView representable.
5 | public struct MapView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
6 | /// - Parameters:
7 | /// - visibleRect: Binding for map's visible rect.
BUILD FAILURE 6.2 macosSpm