The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CodeMeasureKit, reference 0.1.2 (fa5160), with Swift 6.2 for macOS (SPM) on 22 Jun 2025 08:13:44 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/ipavlidakis/code-measure-kit.git
Reference: 0.1.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ipavlidakis/code-measure-kit
 * tag               0.1.2      -> FETCH_HEAD
HEAD is now at fa51601 Add measurer for executionTime
Cloned https://github.com/ipavlidakis/code-measure-kit.git
Revision (git rev-parse @):
fa51601449f8bd8d696a5d3d2ebc3cbad238be7f
SUCCESS checkout https://github.com/ipavlidakis/code-measure-kit.git at 0.1.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ipavlidakis/code-measure-kit.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/5] Compiling CodeMeasureKit UnfairQueue.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module CodeMeasureKit
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:100:14: error: 'Logger' is only available in macOS 11.0 or newer
 98 |
 99 | /// A logger instance used for logging performance-related information.
100 | let logger = Logger(
    |     |        `- error: 'Logger' is only available in macOS 11.0 or newer
    |     `- note: add @available attribute to enclosing let
101 |     subsystem: "dev.ipavlidakis.code-measure-kit",
102 |     category: "performance"
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:119:30: error: 'AnyCancellable' is only available in macOS 10.15 or newer
109 | /// each file/function/line combination. It also uses a timer to trigger
110 | /// periodic updates of the call rate.
111 | private final class MeasureCallRateStorage: @unchecked Sendable {
    |                     `- note: add @available attribute to enclosing class
112 |     /// The shared instance of `MeasureCallRateStorage` (singleton).
113 |     static let `shared` = MeasureCallRateStorage()
    :
117 |
118 |     /// A Combine cancellable for handling the periodic timer events.
119 |     private var cancellable: AnyCancellable?
    |                              `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
120 |
121 |     /// The storage dictionary that maps a unique string (file:function:line)
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:293:26: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
277 | }
278 |
279 | private final class ExecutionTimeMeter {
    |                     `- note: add @available attribute to enclosing class
280 |     /// The name of the file where this meter is measuring calls.
281 |     private let fileName: StaticString
    :
291 |
292 |     private let sourceLine: String
293 |     private let subject: PassthroughSubject<TimeInterval, Never> = .init()
    |                          `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
294 |
295 |     /// The current number of calls since the last update.
[5/5] Compiling CodeMeasureKit CodeMeasureKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:100:14: error: 'Logger' is only available in macOS 11.0 or newer
 98 |
 99 | /// A logger instance used for logging performance-related information.
100 | let logger = Logger(
    |     |        `- error: 'Logger' is only available in macOS 11.0 or newer
    |     `- note: add @available attribute to enclosing let
101 |     subsystem: "dev.ipavlidakis.code-measure-kit",
102 |     category: "performance"
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:119:30: error: 'AnyCancellable' is only available in macOS 10.15 or newer
109 | /// each file/function/line combination. It also uses a timer to trigger
110 | /// periodic updates of the call rate.
111 | private final class MeasureCallRateStorage: @unchecked Sendable {
    |                     `- note: add @available attribute to enclosing class
112 |     /// The shared instance of `MeasureCallRateStorage` (singleton).
113 |     static let `shared` = MeasureCallRateStorage()
    :
117 |
118 |     /// A Combine cancellable for handling the periodic timer events.
119 |     private var cancellable: AnyCancellable?
    |                              `- error: 'AnyCancellable' is only available in macOS 10.15 or newer
120 |
121 |     /// The storage dictionary that maps a unique string (file:function:line)
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:293:26: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
277 | }
278 |
279 | private final class ExecutionTimeMeter {
    |                     `- note: add @available attribute to enclosing class
280 |     /// The name of the file where this meter is measuring calls.
281 |     private let fileName: StaticString
    :
291 |
292 |     private let sourceLine: String
293 |     private let subject: PassthroughSubject<TimeInterval, Never> = .init()
    |                          `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
294 |
295 |     /// The current number of calls since the last update.
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:132:14: error: 'publish(every:tolerance:on:in:options:)' is only available in macOS 10.15 or newer
109 | /// each file/function/line combination. It also uses a timer to trigger
110 | /// periodic updates of the call rate.
111 | private final class MeasureCallRateStorage: @unchecked Sendable {
    |                     `- note: add @available attribute to enclosing class
112 |     /// The shared instance of `MeasureCallRateStorage` (singleton).
113 |     static let `shared` = MeasureCallRateStorage()
    :
127 |     /// triggers every second. On each timer tick, it updates the call rate
128 |     /// for all stored meters.
129 |     private init() {
    |             `- note: add @available attribute to enclosing initializer
130 |         cancellable = Foundation
131 |             .Timer
132 |             .publish(every: 1, on: .main, in: .default)
    |              |- error: 'publish(every:tolerance:on:in:options:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
133 |             .autoconnect()
134 |             .sink { [weak self] _ in self?.didTrigger() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:133:14: error: 'autoconnect()' is only available in macOS 10.15 or newer
109 | /// each file/function/line combination. It also uses a timer to trigger
110 | /// periodic updates of the call rate.
111 | private final class MeasureCallRateStorage: @unchecked Sendable {
    |                     `- note: add @available attribute to enclosing class
112 |     /// The shared instance of `MeasureCallRateStorage` (singleton).
113 |     static let `shared` = MeasureCallRateStorage()
    :
127 |     /// triggers every second. On each timer tick, it updates the call rate
128 |     /// for all stored meters.
129 |     private init() {
    |             `- note: add @available attribute to enclosing initializer
130 |         cancellable = Foundation
131 |             .Timer
132 |             .publish(every: 1, on: .main, in: .default)
133 |             .autoconnect()
    |              |- error: 'autoconnect()' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
134 |             .sink { [weak self] _ in self?.didTrigger() }
135 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:134:14: error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
109 | /// each file/function/line combination. It also uses a timer to trigger
110 | /// periodic updates of the call rate.
111 | private final class MeasureCallRateStorage: @unchecked Sendable {
    |                     `- note: add @available attribute to enclosing class
112 |     /// The shared instance of `MeasureCallRateStorage` (singleton).
113 |     static let `shared` = MeasureCallRateStorage()
    :
127 |     /// triggers every second. On each timer tick, it updates the call rate
128 |     /// for all stored meters.
129 |     private init() {
    |             `- note: add @available attribute to enclosing initializer
130 |         cancellable = Foundation
131 |             .Timer
132 |             .publish(every: 1, on: .main, in: .default)
133 |             .autoconnect()
134 |             .sink { [weak self] _ in self?.didTrigger() }
    |              |- error: 'sink(receiveValue:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
135 |     }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:264:17: error: 'OSLogMessage' is only available in macOS 11.0 or newer
210 | /// records both the maximum and minimum call counts within each update
211 | /// cycle.
212 | private final class CallRateMeter {
    |                     `- note: add @available attribute to enclosing class
213 |     /// The name of the file where this meter is measuring calls.
214 |     private let fileName: StaticString
    :
257 |     /// update the maximum and minimum call counts and reset the current
258 |     /// call count for the next period.
259 |     func didUpdate() {
    |          `- note: add @available attribute to enclosing instance method
260 |         queue.sync { [callCount, maxCallCount, minCallCount, sourceLine] in
261 |             self.maxCallCount = max(callCount, maxCallCount)
262 |             self.minCallCount = min(callCount, minCallCount)
263 |             logger.debug(
264 |                 "Call rate of [\(sourceLine)] updated with count:\(callCount) max:\(maxCallCount) min:\(minCallCount)."
    |                 |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                 `- note: add 'if #available' version check
265 |             )
266 |             self.callCount = 0
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:264:33: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
210 | /// records both the maximum and minimum call counts within each update
211 | /// cycle.
212 | private final class CallRateMeter {
    |                     `- note: add @available attribute to enclosing class
213 |     /// The name of the file where this meter is measuring calls.
214 |     private let fileName: StaticString
    :
257 |     /// update the maximum and minimum call counts and reset the current
258 |     /// call count for the next period.
259 |     func didUpdate() {
    |          `- note: add @available attribute to enclosing instance method
260 |         queue.sync { [callCount, maxCallCount, minCallCount, sourceLine] in
261 |             self.maxCallCount = max(callCount, maxCallCount)
262 |             self.minCallCount = min(callCount, minCallCount)
263 |             logger.debug(
264 |                 "Call rate of [\(sourceLine)] updated with count:\(callCount) max:\(maxCallCount) min:\(minCallCount)."
    |                                 |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
    |                                 `- note: add 'if #available' version check
265 |             )
266 |             self.callCount = 0
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:264:67: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
210 | /// records both the maximum and minimum call counts within each update
211 | /// cycle.
212 | private final class CallRateMeter {
    |                     `- note: add @available attribute to enclosing class
213 |     /// The name of the file where this meter is measuring calls.
214 |     private let fileName: StaticString
    :
257 |     /// update the maximum and minimum call counts and reset the current
258 |     /// call count for the next period.
259 |     func didUpdate() {
    |          `- note: add @available attribute to enclosing instance method
260 |         queue.sync { [callCount, maxCallCount, minCallCount, sourceLine] in
261 |             self.maxCallCount = max(callCount, maxCallCount)
262 |             self.minCallCount = min(callCount, minCallCount)
263 |             logger.debug(
264 |                 "Call rate of [\(sourceLine)] updated with count:\(callCount) max:\(maxCallCount) min:\(minCallCount)."
    |                                                                   |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                                   `- note: add 'if #available' version check
265 |             )
266 |             self.callCount = 0
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:264:84: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
210 | /// records both the maximum and minimum call counts within each update
211 | /// cycle.
212 | private final class CallRateMeter {
    |                     `- note: add @available attribute to enclosing class
213 |     /// The name of the file where this meter is measuring calls.
214 |     private let fileName: StaticString
    :
257 |     /// update the maximum and minimum call counts and reset the current
258 |     /// call count for the next period.
259 |     func didUpdate() {
    |          `- note: add @available attribute to enclosing instance method
260 |         queue.sync { [callCount, maxCallCount, minCallCount, sourceLine] in
261 |             self.maxCallCount = max(callCount, maxCallCount)
262 |             self.minCallCount = min(callCount, minCallCount)
263 |             logger.debug(
264 |                 "Call rate of [\(sourceLine)] updated with count:\(callCount) max:\(maxCallCount) min:\(minCallCount)."
    |                                                                                    |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                                                    `- note: add 'if #available' version check
265 |             )
266 |             self.callCount = 0
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:264:104: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
210 | /// records both the maximum and minimum call counts within each update
211 | /// cycle.
212 | private final class CallRateMeter {
    |                     `- note: add @available attribute to enclosing class
213 |     /// The name of the file where this meter is measuring calls.
214 |     private let fileName: StaticString
    :
257 |     /// update the maximum and minimum call counts and reset the current
258 |     /// call count for the next period.
259 |     func didUpdate() {
    |          `- note: add @available attribute to enclosing instance method
260 |         queue.sync { [callCount, maxCallCount, minCallCount, sourceLine] in
261 |             self.maxCallCount = max(callCount, maxCallCount)
262 |             self.minCallCount = min(callCount, minCallCount)
263 |             logger.debug(
264 |                 "Call rate of [\(sourceLine)] updated with count:\(callCount) max:\(maxCallCount) min:\(minCallCount)."
    |                                                                                                        |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                                                                        `- note: add 'if #available' version check
265 |             )
266 |             self.callCount = 0
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:332:17: error: 'OSLogMessage' is only available in macOS 11.0 or newer
277 | }
278 |
279 | private final class ExecutionTimeMeter {
    |                     `- note: add @available attribute to enclosing class
280 |     /// The name of the file where this meter is measuring calls.
281 |     private let fileName: StaticString
    :
320 |     }
321 |
322 |     func didUpdate() {
    |          `- note: add @available attribute to enclosing instance method
323 |         queue.sync { [lastDurations, maxDuration, minDuration, sourceLine] in
324 |             let maxLastDuration = lastDurations.max() ?? maxDuration
    :
330 |             self.minDuration = min(minLastDuration, minDuration)
331 |             logger.debug(
332 |                 "Call duration of [\(sourceLine)] updated with last average:\(averageLastDuration) max:\(maxDuration) min:\(minDuration)."
    |                 |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                 `- note: add 'if #available' version check
333 |             )
334 |             self.lastDurations = []
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:332:37: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
277 | }
278 |
279 | private final class ExecutionTimeMeter {
    |                     `- note: add @available attribute to enclosing class
280 |     /// The name of the file where this meter is measuring calls.
281 |     private let fileName: StaticString
    :
320 |     }
321 |
322 |     func didUpdate() {
    |          `- note: add @available attribute to enclosing instance method
323 |         queue.sync { [lastDurations, maxDuration, minDuration, sourceLine] in
324 |             let maxLastDuration = lastDurations.max() ?? maxDuration
    :
330 |             self.minDuration = min(minLastDuration, minDuration)
331 |             logger.debug(
332 |                 "Call duration of [\(sourceLine)] updated with last average:\(averageLastDuration) max:\(maxDuration) min:\(minDuration)."
    |                                     |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
    |                                     `- note: add 'if #available' version check
333 |             )
334 |             self.lastDurations = []
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:332:78: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
277 | }
278 |
279 | private final class ExecutionTimeMeter {
    |                     `- note: add @available attribute to enclosing class
280 |     /// The name of the file where this meter is measuring calls.
281 |     private let fileName: StaticString
    :
320 |     }
321 |
322 |     func didUpdate() {
    |          `- note: add @available attribute to enclosing instance method
323 |         queue.sync { [lastDurations, maxDuration, minDuration, sourceLine] in
324 |             let maxLastDuration = lastDurations.max() ?? maxDuration
    :
330 |             self.minDuration = min(minLastDuration, minDuration)
331 |             logger.debug(
332 |                 "Call duration of [\(sourceLine)] updated with last average:\(averageLastDuration) max:\(maxDuration) min:\(minDuration)."
    |                                                                              |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                                              `- note: add 'if #available' version check
333 |             )
334 |             self.lastDurations = []
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:332:105: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
277 | }
278 |
279 | private final class ExecutionTimeMeter {
    |                     `- note: add @available attribute to enclosing class
280 |     /// The name of the file where this meter is measuring calls.
281 |     private let fileName: StaticString
    :
320 |     }
321 |
322 |     func didUpdate() {
    |          `- note: add @available attribute to enclosing instance method
323 |         queue.sync { [lastDurations, maxDuration, minDuration, sourceLine] in
324 |             let maxLastDuration = lastDurations.max() ?? maxDuration
    :
330 |             self.minDuration = min(minLastDuration, minDuration)
331 |             logger.debug(
332 |                 "Call duration of [\(sourceLine)] updated with last average:\(averageLastDuration) max:\(maxDuration) min:\(minDuration)."
    |                                                                                                         |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                                                                         `- note: add 'if #available' version check
333 |             )
334 |             self.lastDurations = []
/Users/admin/builder/spi-builder-workspace/Sources/CodeMeasureKit/CodeMeasureKit.swift:332:124: error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
277 | }
278 |
279 | private final class ExecutionTimeMeter {
    |                     `- note: add @available attribute to enclosing class
280 |     /// The name of the file where this meter is measuring calls.
281 |     private let fileName: StaticString
    :
320 |     }
321 |
322 |     func didUpdate() {
    |          `- note: add @available attribute to enclosing instance method
323 |         queue.sync { [lastDurations, maxDuration, minDuration, sourceLine] in
324 |             let maxLastDuration = lastDurations.max() ?? maxDuration
    :
330 |             self.minDuration = min(minLastDuration, minDuration)
331 |             logger.debug(
332 |                 "Call duration of [\(sourceLine)] updated with last average:\(averageLastDuration) max:\(maxDuration) min:\(minDuration)."
    |                                                                                                                            |- error: 'appendInterpolation(_:format:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                                                                                            `- note: add 'if #available' version check
333 |             )
334 |             self.lastDurations = []
BUILD FAILURE 6.2 macosSpm