Build Information
Successful build of HeliumLogger, reference 2.0.0 (fc2a71
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 15:34:38 UTC.
Swift 6 data race errors: 5
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/HeliumLogger.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kitura/HeliumLogger
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at fc2a715 CI update and remove swift 4.x support (#82)
Cloned https://github.com/Kitura/HeliumLogger.git
Revision (git rev-parse @):
fc2a71597ae974da5282d751bcc11965964bccce
SUCCESS checkout https://github.com/Kitura/HeliumLogger.git at 2.0.0
Fetching https://github.com/Kitura/LoggerAPI.git
Fetching https://github.com/apple/swift-log.git from cache
[16/771] Fetching loggerapi
Fetched https://github.com/Kitura/LoggerAPI.git from cache (1.00s)
Fetched https://github.com/apple/swift-log.git from cache (1.00s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (1.65s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.52s)
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 2.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
========================================
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": "heliumlogger",
"name": "HeliumLogger",
"url": "https://github.com/Kitura/HeliumLogger.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HeliumLogger",
"dependencies": [
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
},
{
"identity": "loggerapi",
"name": "LoggerAPI",
"url": "https://github.com/Kitura/LoggerAPI.git",
"version": "2.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LoggerAPI",
"dependencies": [
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/Kitura/HeliumLogger.git
[1/1267] Fetching heliumlogger
Fetched https://github.com/Kitura/HeliumLogger.git from cache (0.93s)
Fetching https://github.com/Kitura/LoggerAPI.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.45s)
Fetched https://github.com/apple/swift-log.git from cache (0.49s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 2.0.0 (0.54s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.02s)
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 2.0.0
Creating working copy for https://github.com/Kitura/HeliumLogger.git
Working copy of https://github.com/Kitura/HeliumLogger.git resolved at 2.0.0 (fc2a715)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
warning: '.resolve-product-dependencies': dependency 'heliumlogger' is not used by any target
Found 2 product dependencies
- swift-log
- LoggerAPI
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Kitura/HeliumLogger.git
https://github.com/Kitura/HeliumLogger.git
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "loggerapi",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/LoggerAPI.git"
}
],
"manifest_display_name" : "HeliumLogger",
"name" : "HeliumLogger",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HeliumLogger",
"targets" : [
"HeliumLogger"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HeliumLoggerTests",
"module_type" : "SwiftTarget",
"name" : "HeliumLoggerTests",
"path" : "Tests/HeliumLoggerTests",
"sources" : [
"TestLogger.swift",
"TestStreamLogger.swift",
"TestSwiftLog.swift",
"VerifyLinuxTestCount.swift"
],
"target_dependencies" : [
"HeliumLogger"
],
"type" : "test"
},
{
"c99name" : "HeliumLogger",
"module_type" : "SwiftTarget",
"name" : "HeliumLogger",
"path" : "Sources/HeliumLogger",
"product_dependencies" : [
"Logging",
"LoggerAPI"
],
"product_memberships" : [
"HeliumLogger"
],
"sources" : [
"HeliumLogHandler.swift",
"HeliumLogger.swift",
"HeliumStreamLogger.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/9] Compiling Logging MetadataProvider.swift
[6/9] Compiling Logging Locks.swift
[7/9] Compiling Logging Logging.swift
[8/9] Compiling Logging LogHandler.swift
[9/9] Emitting module Logging
[10/11] Emitting module LoggerAPI
[11/11] Compiling LoggerAPI Logger.swift
[12/15] Emitting module HeliumLogger
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:60:24: warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
58 | }
59 |
60 | private static let defaultLogger = HeliumLogger()
| |- warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultLogger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Creates a `HeliumLogHandler` instance for use with the SwiftLog logging system.
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
67 |
68 | /// A lightweight implementation of the `LoggerAPI` protocol.
69 | public class HeliumLogger {
| `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
70 |
71 | /// A Boolean value that indicates whether the logger output should be colorized.
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:79:17: warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
77 | /// A lightweight implementation of SwiftLog's `LogHandler` protocol.
78 | public struct HeliumLogHandler: LogHandler {
79 | private let logger: HeliumLogger
| `- warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
80 |
81 | private let label: String
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
67 |
68 | /// A lightweight implementation of the `LoggerAPI` protocol.
69 | public class HeliumLogger {
| `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
70 |
71 | /// A Boolean value that indicates whether the logger output should be colorized.
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:78:15: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
76 |
77 | /// A lightweight implementation of SwiftLog's `LogHandler` protocol.
78 | public struct HeliumLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
79 | private let logger: HeliumLogger
80 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 | /// - function: The function the log line was emitted from.
134 | /// - line: The line the log message was emitted from.
135 | func log(
| `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 | level: Logger.Level,
137 | message: Logger.Message,
:
207 | extension LogHandler {
208 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 | public func log(
| `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 | level: Logger.Level,
211 | message: Logger.Message,
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:50:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// The set of substitution "variables" that can be used when formatting the
35 | /// messages to be logged.
36 | public enum HeliumLoggerFormatValues: String {
| `- note: consider making enum 'HeliumLoggerFormatValues' conform to the 'Sendable' protocol
37 | /// The message being logged.
38 | case message = "(%msg)"
:
48 | case date = "(%date)"
49 |
50 | static let all: [HeliumLoggerFormatValues] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | .message, .function, .line, .file, .logType, .date
52 | ]
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:63:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
55 | /// The additional set of substitution "variables" that can be used when formatting the
56 | /// messages to be logged with SwiftLog.
57 | public enum HeliumLoggerSwiftLogFormatValues: String {
| `- note: consider making enum 'HeliumLoggerSwiftLogFormatValues' conform to the 'Sendable' protocol
58 | /// The logging metadata used by SwiftLog.
59 | case metadata = "(%metadata)"
:
61 | case label = "(%label)"
62 |
63 | static let all: [HeliumLoggerSwiftLogFormatValues] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | .metadata, .label
65 | ]
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:151:24: warning: static property 'tokenRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
149 | #endif
150 |
151 | private static var tokenRegex: NSRegularExpression? = {
| |- warning: static property 'tokenRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokenRegex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tokenRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | do {
153 | return try NSRegularExpression(pattern: "\\(%\\w+\\)", options: [])
[13/15] Compiling HeliumLogger HeliumLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:50:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
34 | /// The set of substitution "variables" that can be used when formatting the
35 | /// messages to be logged.
36 | public enum HeliumLoggerFormatValues: String {
| `- note: consider making enum 'HeliumLoggerFormatValues' conform to the 'Sendable' protocol
37 | /// The message being logged.
38 | case message = "(%msg)"
:
48 | case date = "(%date)"
49 |
50 | static let all: [HeliumLoggerFormatValues] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | .message, .function, .line, .file, .logType, .date
52 | ]
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:63:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
55 | /// The additional set of substitution "variables" that can be used when formatting the
56 | /// messages to be logged with SwiftLog.
57 | public enum HeliumLoggerSwiftLogFormatValues: String {
| `- note: consider making enum 'HeliumLoggerSwiftLogFormatValues' conform to the 'Sendable' protocol
58 | /// The logging metadata used by SwiftLog.
59 | case metadata = "(%metadata)"
:
61 | case label = "(%label)"
62 |
63 | static let all: [HeliumLoggerSwiftLogFormatValues] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[HeliumLoggerSwiftLogFormatValues]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | .metadata, .label
65 | ]
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:151:24: warning: static property 'tokenRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
149 | #endif
150 |
151 | private static var tokenRegex: NSRegularExpression? = {
| |- warning: static property 'tokenRegex' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'tokenRegex' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'tokenRegex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | do {
153 | return try NSRegularExpression(pattern: "\\(%\\w+\\)", options: [])
[14/15] Compiling HeliumLogger HeliumStreamLogger.swift
[15/15] Compiling HeliumLogger HeliumLogHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:60:24: warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
58 | }
59 |
60 | private static let defaultLogger = HeliumLogger()
| |- warning: static property 'defaultLogger' is not concurrency-safe because non-'Sendable' type 'HeliumLogger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'defaultLogger' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Creates a `HeliumLogHandler` instance for use with the SwiftLog logging system.
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
67 |
68 | /// A lightweight implementation of the `LoggerAPI` protocol.
69 | public class HeliumLogger {
| `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
70 |
71 | /// A Boolean value that indicates whether the logger output should be colorized.
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:79:17: warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
77 | /// A lightweight implementation of SwiftLog's `LogHandler` protocol.
78 | public struct HeliumLogHandler: LogHandler {
79 | private let logger: HeliumLogger
| `- warning: stored property 'logger' of 'Sendable'-conforming struct 'HeliumLogHandler' has non-sendable type 'HeliumLogger'; this is an error in the Swift 6 language mode
80 |
81 | private let label: String
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogger.swift:69:14: note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
67 |
68 | /// A lightweight implementation of the `LoggerAPI` protocol.
69 | public class HeliumLogger {
| `- note: class 'HeliumLogger' does not conform to the 'Sendable' protocol
70 |
71 | /// A Boolean value that indicates whether the logger output should be colorized.
/Users/admin/builder/spi-builder-workspace/Sources/HeliumLogger/HeliumLogHandler.swift:78:15: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
76 |
77 | /// A lightweight implementation of SwiftLog's `LogHandler` protocol.
78 | public struct HeliumLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
79 | private let logger: HeliumLogger
80 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 | /// - function: The function the log line was emitted from.
134 | /// - line: The line the log message was emitted from.
135 | func log(
| `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 | level: Logger.Level,
137 | message: Logger.Message,
:
207 | extension LogHandler {
208 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 | public func log(
| `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 | level: Logger.Level,
211 | message: Logger.Message,
Build complete! (5.97s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "loggerapi",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/LoggerAPI.git"
}
],
"manifest_display_name" : "HeliumLogger",
"name" : "HeliumLogger",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "HeliumLogger",
"targets" : [
"HeliumLogger"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HeliumLoggerTests",
"module_type" : "SwiftTarget",
"name" : "HeliumLoggerTests",
"path" : "Tests/HeliumLoggerTests",
"sources" : [
"TestLogger.swift",
"TestStreamLogger.swift",
"TestSwiftLog.swift",
"VerifyLinuxTestCount.swift"
],
"target_dependencies" : [
"HeliumLogger"
],
"type" : "test"
},
{
"c99name" : "HeliumLogger",
"module_type" : "SwiftTarget",
"name" : "HeliumLogger",
"path" : "Sources/HeliumLogger",
"product_dependencies" : [
"Logging",
"LoggerAPI"
],
"product_memberships" : [
"HeliumLogger"
],
"sources" : [
"HeliumLogHandler.swift",
"HeliumLogger.swift",
"HeliumStreamLogger.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.