Build Information
Failed to build CodeMeasureKit, reference main (fa5160
), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 04:52:42 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ipavlidakis/code-measure-kit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ipavlidakis/code-measure-kit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 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",
"dependencies": [
{
"identity": "code-measure-kit",
"name": "CodeMeasureKit",
"url": "https://github.com/ipavlidakis/code-measure-kit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/code-measure-kit",
"dependencies": [
]
}
]
}
Fetching https://github.com/ipavlidakis/code-measure-kit.git
[1/84] Fetching code-measure-kit
Fetched https://github.com/ipavlidakis/code-measure-kit.git from cache (0.66s)
Creating working copy for https://github.com/ipavlidakis/code-measure-kit.git
Working copy of https://github.com/ipavlidakis/code-measure-kit.git resolved at main (fa51601)
warning: '.resolve-product-dependencies': dependency 'code-measure-kit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/ipavlidakis/code-measure-kit.git
{
"dependencies" : [
],
"manifest_display_name" : "CodeMeasureKit",
"name" : "CodeMeasureKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "10.14"
},
{
"name" : "maccatalyst",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "4.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "CodeMeasureKit",
"targets" : [
"CodeMeasureKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CodeMeasureKit",
"module_type" : "SwiftTarget",
"name" : "CodeMeasureKit",
"path" : "Sources/CodeMeasureKit",
"product_memberships" : [
"CodeMeasureKit"
],
"sources" : [
"CodeMeasureKit.swift",
"UnfairQueue.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.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.0 macosSpm