The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Cluster, reference 3.0.4 (1cb20c), with Swift 6.0 for macOS (SPM) on 8 Jul 2025 22:32:08 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/efremidze/Cluster.git
Reference: 3.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/efremidze/Cluster
 * tag               3.0.4      -> FETCH_HEAD
HEAD is now at 1cb20cb Upgrade Swift Package (#143)
Cloned https://github.com/efremidze/Cluster.git
Revision (git rev-parse @):
1cb20cb1e256c13202a9c370558c2c7ebcdb41ba
SUCCESS checkout https://github.com/efremidze/Cluster.git at 3.0.4
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/efremidze/Cluster.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/8] Compiling Cluster Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Extensions.swift:27:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
 25 | let MKMapPointMax = MKMapPoint(CLLocationCoordinate2DMax)
 26 |
 27 | extension CLLocationCoordinate2D: Hashable {
    | |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 28 |     public func hash(into hasher: inout Hasher) {
 29 |         hasher.combine(latitude)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Compiling Cluster Atomic.swift
[5/8] Compiling Cluster QuadTree.swift
[6/8] Emitting module Cluster
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:47:31: error: cannot find type 'UILabel' in scope
 45 |  */
 46 | open class ClusterAnnotationView: MKAnnotationView {
 47 |     open lazy var countLabel: UILabel = {
    |                               `- error: cannot find type 'UILabel' in scope
 48 |         let label = UILabel()
 49 |         label.autoresizingMask = [.flexibleWidth, .flexibleHeight]
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:84:16: error: cannot find type 'UIColor' in scope
 82 |      - `radius`: The radius of the annotation circle
 83 |      */
 84 |     case color(UIColor, radius: CGFloat)
    |                `- error: cannot find type 'UIColor' in scope
 85 |
 86 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:89:16: error: cannot find type 'UIImage' in scope
 87 |      Displays the annotation as an image.
 88 |      */
 89 |     case image(UIImage?)
    |                `- error: cannot find type 'UIImage' in scope
 90 | }
 91 |
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:145:24: error: method does not override any method from its superclass
143 |     }
144 |
145 |     override open func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
146 |         super.layoutSubviews()
147 |
/Users/admin/builder/spi-builder-workspace/Sources/Extensions.swift:27:1: warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
 25 | let MKMapPointMax = MKMapPoint(CLLocationCoordinate2DMax)
 26 |
 27 | extension CLLocationCoordinate2D: Hashable {
    | |- warning: extension declares a conformance of imported type 'CLLocationCoordinate2D' to imported protocols 'Hashable', 'Equatable'; this will not behave correctly if the owners of 'CoreLocation' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 28 |     public func hash(into hasher: inout Hasher) {
 29 |         hasher.combine(latitude)
[7/8] Compiling Cluster Cluster.swift
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:84:16: error: cannot find type 'UIColor' in scope
 82 |      - `radius`: The radius of the annotation circle
 83 |      */
 84 |     case color(UIColor, radius: CGFloat)
    |                `- error: cannot find type 'UIColor' in scope
 85 |
 86 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:89:16: error: cannot find type 'UIImage' in scope
 87 |      Displays the annotation as an image.
 88 |      */
 89 |     case image(UIImage?)
    |                `- error: cannot find type 'UIImage' in scope
 90 | }
 91 |
[8/8] Compiling Cluster Annotation.swift
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:47:31: error: cannot find type 'UILabel' in scope
 45 |  */
 46 | open class ClusterAnnotationView: MKAnnotationView {
 47 |     open lazy var countLabel: UILabel = {
    |                               `- error: cannot find type 'UILabel' in scope
 48 |         let label = UILabel()
 49 |         label.autoresizingMask = [.flexibleWidth, .flexibleHeight]
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:84:16: error: cannot find type 'UIColor' in scope
 82 |      - `radius`: The radius of the annotation circle
 83 |      */
 84 |     case color(UIColor, radius: CGFloat)
    |                `- error: cannot find type 'UIColor' in scope
 85 |
 86 |     /**
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:89:16: error: cannot find type 'UIImage' in scope
 87 |      Displays the annotation as an image.
 88 |      */
 89 |     case image(UIImage?)
    |                `- error: cannot find type 'UIImage' in scope
 90 | }
 91 |
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:145:24: error: method does not override any method from its superclass
143 |     }
144 |
145 |     override open func layoutSubviews() {
    |                        `- error: method does not override any method from its superclass
146 |         super.layoutSubviews()
147 |
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:127:13: error: cannot find 'backgroundColor' in scope
125 |         switch style {
126 |         case let .image(image):
127 |             backgroundColor = .clear
    |             `- error: cannot find 'backgroundColor' in scope
128 |             self.image = image
129 |         case let .color(color, radius):
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:131:13: error: cannot find 'backgroundColor' in scope
129 |         case let .color(color, radius):
130 |             let count = annotation.annotations.count
131 |             backgroundColor = color
    |             `- error: cannot find 'backgroundColor' in scope
132 |             var diameter = radius * 2
133 |             switch count {
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:146:15: error: value of type 'ClusterAnnotationView' has no member 'layoutSubviews'
144 |
145 |     override open func layoutSubviews() {
146 |         super.layoutSubviews()
    |               `- error: value of type 'ClusterAnnotationView' has no member 'layoutSubviews'
147 |
148 |         if case .color = style {
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:149:13: error: value of optional type 'CALayer?' must be unwrapped to refer to member 'masksToBounds' of wrapped base type 'CALayer'
147 |
148 |         if case .color = style {
149 |             layer.masksToBounds = true
    |             |- error: value of optional type 'CALayer?' must be unwrapped to refer to member 'masksToBounds' of wrapped base type 'CALayer'
    |             |- note: chain the optional using '?' to access member 'masksToBounds' only for non-'nil' base values
    |             `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
150 |             layer.cornerRadius = image == nil ? bounds.width / 2 : 0
151 |             countLabel.frame = bounds
/Users/admin/builder/spi-builder-workspace/Sources/Annotation.swift:150:13: error: value of optional type 'CALayer?' must be unwrapped to refer to member 'cornerRadius' of wrapped base type 'CALayer'
148 |         if case .color = style {
149 |             layer.masksToBounds = true
150 |             layer.cornerRadius = image == nil ? bounds.width / 2 : 0
    |             |- error: value of optional type 'CALayer?' must be unwrapped to refer to member 'cornerRadius' of wrapped base type 'CALayer'
    |             |- note: chain the optional using '?' to access member 'cornerRadius' only for non-'nil' base values
    |             `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
151 |             countLabel.frame = bounds
152 |         }
BUILD FAILURE 6.0 macosSpm