Build Information
Failed to build SwiftUIMKMapView with Swift 5.8 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.25.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/darrarski/SwiftUIMKMapView.git
Reference: v0.4.0
Initialized empty Git repository in /Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-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: 5.8
Building package at path: $PWD/checkout
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/7] Compiling SwiftUIMKMapView OverlayRendererFactory.swift
[2/7] Compiling SwiftUIMKMapView AnnotationViewFactory.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/AnnotationViewFactory.swift:73:27: warning: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional
let reuseIdentifier = [annotationClass, viewClass]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
as [Any]
[3/7] Emitting module SwiftUIMKMapView
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:14:12: error: cannot find type 'UIColor' in scope
color: UIColor
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:25:14: error: cannot find type 'UIColor' in scope
let color: UIColor
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:51:25: error: cannot find type 'UIImage' in scope
func renderImage() -> UIImage? {
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:11:12: error: cannot find type 'UIColor' in scope
color: UIColor,
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:23:14: error: cannot find type 'UIColor' in scope
let color: UIColor
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:24: error: cannot find type 'UIViewRepresentable' in scope
public struct MapView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:14:18: error: 'Binding' is only available in macOS 10.15 or newer
visibleRect: Binding<MKMapRect>,
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:13:10: note: add @available attribute to enclosing initializer
public init(
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:15: note: add @available attribute to enclosing struct
public struct MapView: UIViewRepresentable {
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:29:4: error: 'Binding' is only available in macOS 10.15 or newer
@Binding var visibleRect: MKMapRect
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:15: note: add @available attribute to enclosing struct
public struct MapView: UIViewRepresentable {
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:40:35: error: cannot find type 'Context' in scope
public func makeUIView(context: Context) -> MKMapView {
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:47:58: error: cannot find type 'Context' in scope
public func updateUIView(_ uiView: MKMapView, context: Context) {
^~~~~~~
[4/7] Compiling SwiftUIMKMapView MapViewCoordinator.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:24: error: cannot find type 'UIViewRepresentable' in scope
public struct MapView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
[5/7] Compiling SwiftUIMKMapView LineOverlay.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:11:12: error: cannot find type 'UIColor' in scope
color: UIColor,
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:23:14: error: cannot find type 'UIColor' in scope
let color: UIColor
^~~~~~~
[6/7] Compiling SwiftUIMKMapView DotAnnotation.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:14:12: error: cannot find type 'UIColor' in scope
color: UIColor
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:25:14: error: cannot find type 'UIColor' in scope
let color: UIColor
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:51:25: error: cannot find type 'UIImage' in scope
func renderImage() -> UIImage? {
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:53:18: error: cannot find 'UIGraphicsImageRendererFormat' in scope
let format = UIGraphicsImageRendererFormat()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:58:20: error: cannot find 'UIGraphicsImageRenderer' in scope
let renderer = UIGraphicsImageRenderer(bounds: bounds, format: format)
^~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:60:7: error: cannot find 'UIColor' in scope
UIColor.white.setFill()
^~~~~~~
[7/7] Compiling SwiftUIMKMapView MapView.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:24: error: cannot find type 'UIViewRepresentable' in scope
public struct MapView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:14:18: error: 'Binding' is only available in macOS 10.15 or newer
visibleRect: Binding<MKMapRect>,
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:13:10: note: add @available attribute to enclosing initializer
public init(
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:15: note: add @available attribute to enclosing struct
public struct MapView: UIViewRepresentable {
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:29:4: error: 'Binding' is only available in macOS 10.15 or newer
@Binding var visibleRect: MKMapRect
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:15: note: add @available attribute to enclosing struct
public struct MapView: UIViewRepresentable {
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:40:35: error: cannot find type 'Context' in scope
public func makeUIView(context: Context) -> MKMapView {
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:47:58: error: cannot find type 'Context' in scope
public func updateUIView(_ uiView: MKMapView, context: Context) {
^~~~~~~
[0/1] Planning build
Building for debugging...
[1/5] Compiling SwiftUIMKMapView MapViewCoordinator.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:24: error: cannot find type 'UIViewRepresentable' in scope
public struct MapView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
[2/5] Compiling SwiftUIMKMapView MapView.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:24: error: cannot find type 'UIViewRepresentable' in scope
public struct MapView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:14:18: error: 'Binding' is only available in macOS 10.15 or newer
visibleRect: Binding<MKMapRect>,
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:13:10: note: add @available attribute to enclosing initializer
public init(
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:15: note: add @available attribute to enclosing struct
public struct MapView: UIViewRepresentable {
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:29:4: error: 'Binding' is only available in macOS 10.15 or newer
@Binding var visibleRect: MKMapRect
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:15: note: add @available attribute to enclosing struct
public struct MapView: UIViewRepresentable {
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:40:35: error: cannot find type 'Context' in scope
public func makeUIView(context: Context) -> MKMapView {
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:47:58: error: cannot find type 'Context' in scope
public func updateUIView(_ uiView: MKMapView, context: Context) {
^~~~~~~
[3/5] Compiling SwiftUIMKMapView LineOverlay.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:11:12: error: cannot find type 'UIColor' in scope
color: UIColor,
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:23:14: error: cannot find type 'UIColor' in scope
let color: UIColor
^~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module SwiftUIMKMapView
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:14:12: error: cannot find type 'UIColor' in scope
color: UIColor
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:25:14: error: cannot find type 'UIColor' in scope
let color: UIColor
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:51:25: error: cannot find type 'UIImage' in scope
func renderImage() -> UIImage? {
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:11:12: error: cannot find type 'UIColor' in scope
color: UIColor,
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/LineOverlay.swift:23:14: error: cannot find type 'UIColor' in scope
let color: UIColor
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:24: error: cannot find type 'UIViewRepresentable' in scope
public struct MapView: UIViewRepresentable {
^~~~~~~~~~~~~~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:14:18: error: 'Binding' is only available in macOS 10.15 or newer
visibleRect: Binding<MKMapRect>,
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:13:10: note: add @available attribute to enclosing initializer
public init(
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:15: note: add @available attribute to enclosing struct
public struct MapView: UIViewRepresentable {
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:29:4: error: 'Binding' is only available in macOS 10.15 or newer
@Binding var visibleRect: MKMapRect
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:5:15: note: add @available attribute to enclosing struct
public struct MapView: UIViewRepresentable {
^
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:40:35: error: cannot find type 'Context' in scope
public func makeUIView(context: Context) -> MKMapView {
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/MapView.swift:47:58: error: cannot find type 'Context' in scope
public func updateUIView(_ uiView: MKMapView, context: Context) {
^~~~~~~
[5/5] Compiling SwiftUIMKMapView DotAnnotation.swift
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:14:12: error: cannot find type 'UIColor' in scope
color: UIColor
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:25:14: error: cannot find type 'UIColor' in scope
let color: UIColor
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:51:25: error: cannot find type 'UIImage' in scope
func renderImage() -> UIImage? {
^~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:53:18: error: cannot find 'UIGraphicsImageRendererFormat' in scope
let format = UIGraphicsImageRendererFormat()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:58:20: error: cannot find 'UIGraphicsImageRenderer' in scope
let renderer = UIGraphicsImageRenderer(bounds: bounds, format: format)
^~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/o86TiJKT/2/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/SwiftUIMKMapView/DotAnnotation.swift:60:7: error: cannot find 'UIColor' in scope
UIColor.white.setFill()
^~~~~~~
BUILD FAILURE 5.8 macosSpm