Build Information
Successful build of TraceLog, reference 5.0.1 (db633b
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 22:06:17 UTC.
Swift 6 data race errors: 7
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/tonystone/tracelog.git
Reference: 5.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tonystone/tracelog
* tag 5.0.1 -> FETCH_HEAD
HEAD is now at db633b7 Merge pull request #105 from tonystone/buffer-writer-fix
Cloned https://github.com/tonystone/tracelog.git
Revision (git rev-parse @):
db633b713d78674f8f13b1512a0936974793f75e
SUCCESS checkout https://github.com/tonystone/tracelog.git at 5.0.1
========================================
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": "tracelog",
"name": "TraceLog",
"url": "https://github.com/tonystone/tracelog.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/tracelog",
"dependencies": [
]
}
]
}
Fetching https://github.com/tonystone/tracelog.git
[1/5678] Fetching tracelog
Fetched https://github.com/tonystone/tracelog.git from cache (1.15s)
Creating working copy for https://github.com/tonystone/tracelog.git
Working copy of https://github.com/tonystone/tracelog.git resolved at 5.0.1 (db633b7)
warning: '.resolve-product-dependencies': dependency 'tracelog' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/tonystone/tracelog.git
https://github.com/tonystone/tracelog.git
{
"dependencies" : [
],
"manifest_display_name" : "TraceLog",
"name" : "TraceLog",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "TraceLog",
"targets" : [
"TraceLog",
"TraceLogObjC"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "TraceLogTests",
"module_type" : "SwiftTarget",
"name" : "TraceLogTests",
"path" : "Tests/TraceLogTests",
"sources" : [
"ConcurrencyModeTests.swift",
"EnvironmentTests.swift",
"Internal/ConfigurationTests.swift",
"Internal/Proxies/AsyncWriterProxyTests.swift",
"Internal/Utilities/BlockTimerTests.swift",
"Internal/Utilities/MutexTests.swift",
"Internal/Utilities/Streams/FileOutputStreamError+PosixTests.swift",
"Internal/Utilities/Streams/FileOutputStreamTests.swift",
"Internal/Utilities/Streams/OutputStreamError+PosixTests.swift",
"Internal/Utilities/Streams/RawOutputStreamTests.swift",
"Internal/Utilities/Streams/StandardStreamTests.swift",
"Internal/Utilities/Streams/Streams+CustomNSError.swift",
"Internal/Utilities/Streams/TextFileLineReader.swift",
"SDK/RuntimeContextTests.swift",
"SDK/StaticContextTests.swift",
"TestHarness/BufferReader.swift",
"TestHarness/BufferWriter.swift",
"TestHarness/TestHarness.swift",
"TestHarness/TestUtilities.swift",
"TestWriters/CallbackTestWriter.swift",
"TestWriters/FailWhenFiredTestWriter.swift",
"TestWriters/SleepyTestWriter.swift",
"TestWriters/TestContext.swift",
"TestWriters/ValidateExpectedValuesTestWriter.swift",
"TraceLogPerformanceTests.swift",
"TraceLogTests.swift",
"Writers & Formatters/ConsoleWriterTests.swift",
"Writers & Formatters/FileStrategyManager+FailureReasonTests.swift",
"Writers & Formatters/FileStrategyTests.swift",
"Writers & Formatters/FileWriter+InternalsTests.swift",
"Writers & Formatters/FileWriterTests.swift",
"Writers & Formatters/JSONFormatTests.swift",
"Writers & Formatters/TextFormat+EncodingTests.swift",
"Writers & Formatters/TextFormat+InternationalLanguagesTests.swift",
"Writers & Formatters/TextFormatTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"TraceLog"
],
"type" : "test"
},
{
"c99name" : "TraceLogObjCTests",
"module_type" : "ClangTarget",
"name" : "TraceLogObjCTests",
"path" : "Tests/TraceLogObjCTests",
"sources" : [
"TraceLogObjCTests.m"
],
"target_dependencies" : [
"TraceLogObjC"
],
"type" : "test"
},
{
"c99name" : "TraceLogObjC",
"module_type" : "ClangTarget",
"name" : "TraceLogObjC",
"path" : "Sources/TraceLogObjC",
"product_memberships" : [
"TraceLog"
],
"sources" : [
"TraceLog.m"
],
"target_dependencies" : [
"TraceLog"
],
"type" : "library"
},
{
"c99name" : "TraceLog",
"module_type" : "SwiftTarget",
"name" : "TraceLog",
"path" : "Sources/TraceLog",
"product_memberships" : [
"TraceLog"
],
"sources" : [
"ConcurrencyMode.swift",
"Environment.swift",
"Formatters/JSONFormat.swift",
"Formatters/TextFormat.swift",
"Internal/Configuration.swift",
"Internal/Logger.swift",
"Internal/Proxies/AsyncWriterProxy.swift",
"Internal/Proxies/DirectWriterProxy.swift",
"Internal/Proxies/SyncWriterProxy.swift",
"Internal/Proxies/WriterProxy.swift",
"Internal/Utilities/BlockTimer.swift",
"Internal/Utilities/CharacterSet+InternalExtensions.swift",
"Internal/Utilities/Mutex.swift",
"Internal/Utilities/Streams/FileOutputStream.swift",
"Internal/Utilities/Streams/FileOutputStreamError+Posix.swift",
"Internal/Utilities/Streams/OutputStream.swift",
"Internal/Utilities/Streams/OutputStreamError+Posix.swift",
"Internal/Utilities/Streams/RawOutputStream.swift",
"Internal/Utilities/Streams/StandardStream.swift",
"Internal/Utilities/String+InternalExtensions.swift",
"SDK/LogLevel.swift",
"SDK/OutputStreamFormatter.swift",
"SDK/OutputStreamWriter.swift",
"SDK/RuntimeContext.swift",
"SDK/StaticContext.swift",
"SDK/Writer.swift",
"TraceLog.swift",
"Writers/ConsoleWriter.swift",
"Writers/FileStrategy+Fixed.swift",
"Writers/FileStrategy+Rotate.swift",
"Writers/FileStrategyManager.swift",
"Writers/FileWriter.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/5] Write sources
[1/5] Write swift-version-2F0A5646E1D333AE.txt
[3/35] Emitting module TraceLog
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/JSONFormat.swift:211:27: warning: static property 'attributes' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Attribute>' may have shared mutable state; this is an error in the Swift 6 language mode
209 | /// Set(JSONFormat.Attribute.allCases)
210 | ///
211 | public static let attributes: Set<Attribute> = Set(Attribute.allCases)
| |- warning: static property 'attributes' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Attribute>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'attributes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 |
213 | /// A set of options to apply to the output.
:
236 | /// - SeeAlso: `JSONFormat` for usage.
237 | ///
238 | public enum Attribute: Int, CaseIterable {
| `- note: consider making enum 'Attribute' conform to the 'Sendable' protocol
239 |
240 | // MARK: Available Attributes
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/JSONFormat.swift:221:27: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
219 | /// - SeeAlso: JSONFormat.Option
220 | ///
221 | public static let options: Set<Option> = []
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
222 |
223 | /// The terminator to use at the end of each entry.
:
266 | /// - SeeAlso: `JSONFormat` for usage.
267 | ///
268 | public enum Option: Hashable {
| `- note: consider making enum 'Option' conform to the 'Sendable' protocol
269 |
270 | // MARK: Available Options
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/TextFormat.swift:386:27: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<TextFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
384 | /// - SeeAlso: `TextFormat.Option`
385 | ///
386 | public static let options: Set<Option> = []
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<TextFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
387 |
388 | /// Encoding of the output of the formatter.
:
408 | /// output of `TextFormat`.
409 | ///
410 | public enum Option: Hashable {
| `- note: consider making enum 'Option' conform to the 'Sendable' protocol
411 |
412 | // MARK: Available Options
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Logger.swift:41:28: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | /// user can re-init this at a later time or simply use the default.
40 | ///
41 | fileprivate static var config = Configuration()
| |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'config' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | ///
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/ConsoleWriter.swift:124:27: warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
122 | /// TextFormat()
123 | ///
124 | public static let format: OutputStreamFormatter = TextFormat()
| |- warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'format' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/OutputStreamFormatter.swift:29:17: note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
27 | /// - SeeAlso: `JSONFormat` for concrete implementation of an `OutputStreamFormatter`.
28 | ///
29 | public protocol OutputStreamFormatter {
| `- note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
30 |
31 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/FileWriter.swift:163:27: warning: static property 'strategy' is not concurrency-safe because non-'Sendable' type 'FileWriter.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
161 | /// FileWriter.Strategy.fixed(fileName: "trace.log")
162 | ///
163 | public static let strategy: Strategy = .fixed(fileName: "trace.log")
| |- warning: static property 'strategy' is not concurrency-safe because non-'Sendable' type 'FileWriter.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'strategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 |
165 | /// Default format.
:
177 | /// and physical file management.
178 | ///
179 | public enum Strategy {
| `- note: consider making enum 'Strategy' conform to the 'Sendable' protocol
180 |
181 | // MARK: Strategies
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/FileWriter.swift:171:27: warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
169 | /// TextFormat()
170 | ///
171 | public static let format: OutputStreamFormatter = TextFormat()
| |- warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'format' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 | }
173 |
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/OutputStreamFormatter.swift:29:17: note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
27 | /// - SeeAlso: `JSONFormat` for concrete implementation of an `OutputStreamFormatter`.
28 | ///
29 | public protocol OutputStreamFormatter {
| `- note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
30 |
31 | // MARK: Properties
[4/38] Compiling TraceLog FileStrategy+Rotate.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/FileWriter.swift:163:27: warning: static property 'strategy' is not concurrency-safe because non-'Sendable' type 'FileWriter.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
161 | /// FileWriter.Strategy.fixed(fileName: "trace.log")
162 | ///
163 | public static let strategy: Strategy = .fixed(fileName: "trace.log")
| |- warning: static property 'strategy' is not concurrency-safe because non-'Sendable' type 'FileWriter.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'strategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 |
165 | /// Default format.
:
177 | /// and physical file management.
178 | ///
179 | public enum Strategy {
| `- note: consider making enum 'Strategy' conform to the 'Sendable' protocol
180 |
181 | // MARK: Strategies
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/FileWriter.swift:171:27: warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
169 | /// TextFormat()
170 | ///
171 | public static let format: OutputStreamFormatter = TextFormat()
| |- warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'format' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 | }
173 |
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/OutputStreamFormatter.swift:29:17: note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
27 | /// - SeeAlso: `JSONFormat` for concrete implementation of an `OutputStreamFormatter`.
28 | ///
29 | public protocol OutputStreamFormatter {
| `- note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
30 |
31 | // MARK: Properties
[5/38] Compiling TraceLog FileStrategyManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/FileWriter.swift:163:27: warning: static property 'strategy' is not concurrency-safe because non-'Sendable' type 'FileWriter.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
161 | /// FileWriter.Strategy.fixed(fileName: "trace.log")
162 | ///
163 | public static let strategy: Strategy = .fixed(fileName: "trace.log")
| |- warning: static property 'strategy' is not concurrency-safe because non-'Sendable' type 'FileWriter.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'strategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 |
165 | /// Default format.
:
177 | /// and physical file management.
178 | ///
179 | public enum Strategy {
| `- note: consider making enum 'Strategy' conform to the 'Sendable' protocol
180 |
181 | // MARK: Strategies
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/FileWriter.swift:171:27: warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
169 | /// TextFormat()
170 | ///
171 | public static let format: OutputStreamFormatter = TextFormat()
| |- warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'format' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 | }
173 |
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/OutputStreamFormatter.swift:29:17: note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
27 | /// - SeeAlso: `JSONFormat` for concrete implementation of an `OutputStreamFormatter`.
28 | ///
29 | public protocol OutputStreamFormatter {
| `- note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
30 |
31 | // MARK: Properties
[6/38] Compiling TraceLog FileWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/FileWriter.swift:163:27: warning: static property 'strategy' is not concurrency-safe because non-'Sendable' type 'FileWriter.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
161 | /// FileWriter.Strategy.fixed(fileName: "trace.log")
162 | ///
163 | public static let strategy: Strategy = .fixed(fileName: "trace.log")
| |- warning: static property 'strategy' is not concurrency-safe because non-'Sendable' type 'FileWriter.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'strategy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
164 |
165 | /// Default format.
:
177 | /// and physical file management.
178 | ///
179 | public enum Strategy {
| `- note: consider making enum 'Strategy' conform to the 'Sendable' protocol
180 |
181 | // MARK: Strategies
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/FileWriter.swift:171:27: warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
169 | /// TextFormat()
170 | ///
171 | public static let format: OutputStreamFormatter = TextFormat()
| |- warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'format' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 | }
173 |
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/OutputStreamFormatter.swift:29:17: note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
27 | /// - SeeAlso: `JSONFormat` for concrete implementation of an `OutputStreamFormatter`.
28 | ///
29 | public protocol OutputStreamFormatter {
| `- note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
30 |
31 | // MARK: Properties
[7/38] Compiling TraceLog SyncWriterProxy.swift
[8/38] Compiling TraceLog WriterProxy.swift
[9/38] Compiling TraceLog BlockTimer.swift
[10/38] Compiling TraceLog LogLevel.swift
[11/38] Compiling TraceLog OutputStreamFormatter.swift
[12/38] Compiling TraceLog OutputStreamWriter.swift
[13/38] Compiling TraceLog ConcurrencyMode.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/JSONFormat.swift:211:27: warning: static property 'attributes' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Attribute>' may have shared mutable state; this is an error in the Swift 6 language mode
209 | /// Set(JSONFormat.Attribute.allCases)
210 | ///
211 | public static let attributes: Set<Attribute> = Set(Attribute.allCases)
| |- warning: static property 'attributes' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Attribute>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'attributes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 |
213 | /// A set of options to apply to the output.
:
236 | /// - SeeAlso: `JSONFormat` for usage.
237 | ///
238 | public enum Attribute: Int, CaseIterable {
| `- note: consider making enum 'Attribute' conform to the 'Sendable' protocol
239 |
240 | // MARK: Available Attributes
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/JSONFormat.swift:221:27: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
219 | /// - SeeAlso: JSONFormat.Option
220 | ///
221 | public static let options: Set<Option> = []
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
222 |
223 | /// The terminator to use at the end of each entry.
:
266 | /// - SeeAlso: `JSONFormat` for usage.
267 | ///
268 | public enum Option: Hashable {
| `- note: consider making enum 'Option' conform to the 'Sendable' protocol
269 |
270 | // MARK: Available Options
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/TextFormat.swift:386:27: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<TextFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
384 | /// - SeeAlso: `TextFormat.Option`
385 | ///
386 | public static let options: Set<Option> = []
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<TextFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
387 |
388 | /// Encoding of the output of the formatter.
:
408 | /// output of `TextFormat`.
409 | ///
410 | public enum Option: Hashable {
| `- note: consider making enum 'Option' conform to the 'Sendable' protocol
411 |
412 | // MARK: Available Options
[14/38] Compiling TraceLog Environment.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/JSONFormat.swift:211:27: warning: static property 'attributes' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Attribute>' may have shared mutable state; this is an error in the Swift 6 language mode
209 | /// Set(JSONFormat.Attribute.allCases)
210 | ///
211 | public static let attributes: Set<Attribute> = Set(Attribute.allCases)
| |- warning: static property 'attributes' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Attribute>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'attributes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 |
213 | /// A set of options to apply to the output.
:
236 | /// - SeeAlso: `JSONFormat` for usage.
237 | ///
238 | public enum Attribute: Int, CaseIterable {
| `- note: consider making enum 'Attribute' conform to the 'Sendable' protocol
239 |
240 | // MARK: Available Attributes
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/JSONFormat.swift:221:27: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
219 | /// - SeeAlso: JSONFormat.Option
220 | ///
221 | public static let options: Set<Option> = []
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
222 |
223 | /// The terminator to use at the end of each entry.
:
266 | /// - SeeAlso: `JSONFormat` for usage.
267 | ///
268 | public enum Option: Hashable {
| `- note: consider making enum 'Option' conform to the 'Sendable' protocol
269 |
270 | // MARK: Available Options
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/TextFormat.swift:386:27: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<TextFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
384 | /// - SeeAlso: `TextFormat.Option`
385 | ///
386 | public static let options: Set<Option> = []
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<TextFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
387 |
388 | /// Encoding of the output of the formatter.
:
408 | /// output of `TextFormat`.
409 | ///
410 | public enum Option: Hashable {
| `- note: consider making enum 'Option' conform to the 'Sendable' protocol
411 |
412 | // MARK: Available Options
[15/38] Compiling TraceLog JSONFormat.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/JSONFormat.swift:211:27: warning: static property 'attributes' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Attribute>' may have shared mutable state; this is an error in the Swift 6 language mode
209 | /// Set(JSONFormat.Attribute.allCases)
210 | ///
211 | public static let attributes: Set<Attribute> = Set(Attribute.allCases)
| |- warning: static property 'attributes' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Attribute>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'attributes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 |
213 | /// A set of options to apply to the output.
:
236 | /// - SeeAlso: `JSONFormat` for usage.
237 | ///
238 | public enum Attribute: Int, CaseIterable {
| `- note: consider making enum 'Attribute' conform to the 'Sendable' protocol
239 |
240 | // MARK: Available Attributes
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/JSONFormat.swift:221:27: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
219 | /// - SeeAlso: JSONFormat.Option
220 | ///
221 | public static let options: Set<Option> = []
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
222 |
223 | /// The terminator to use at the end of each entry.
:
266 | /// - SeeAlso: `JSONFormat` for usage.
267 | ///
268 | public enum Option: Hashable {
| `- note: consider making enum 'Option' conform to the 'Sendable' protocol
269 |
270 | // MARK: Available Options
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/TextFormat.swift:386:27: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<TextFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
384 | /// - SeeAlso: `TextFormat.Option`
385 | ///
386 | public static let options: Set<Option> = []
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<TextFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
387 |
388 | /// Encoding of the output of the formatter.
:
408 | /// output of `TextFormat`.
409 | ///
410 | public enum Option: Hashable {
| `- note: consider making enum 'Option' conform to the 'Sendable' protocol
411 |
412 | // MARK: Available Options
[16/38] Compiling TraceLog TextFormat.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/JSONFormat.swift:211:27: warning: static property 'attributes' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Attribute>' may have shared mutable state; this is an error in the Swift 6 language mode
209 | /// Set(JSONFormat.Attribute.allCases)
210 | ///
211 | public static let attributes: Set<Attribute> = Set(Attribute.allCases)
| |- warning: static property 'attributes' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Attribute>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'attributes' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
212 |
213 | /// A set of options to apply to the output.
:
236 | /// - SeeAlso: `JSONFormat` for usage.
237 | ///
238 | public enum Attribute: Int, CaseIterable {
| `- note: consider making enum 'Attribute' conform to the 'Sendable' protocol
239 |
240 | // MARK: Available Attributes
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/JSONFormat.swift:221:27: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
219 | /// - SeeAlso: JSONFormat.Option
220 | ///
221 | public static let options: Set<Option> = []
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<JSONFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
222 |
223 | /// The terminator to use at the end of each entry.
:
266 | /// - SeeAlso: `JSONFormat` for usage.
267 | ///
268 | public enum Option: Hashable {
| `- note: consider making enum 'Option' conform to the 'Sendable' protocol
269 |
270 | // MARK: Available Options
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Formatters/TextFormat.swift:386:27: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<TextFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
384 | /// - SeeAlso: `TextFormat.Option`
385 | ///
386 | public static let options: Set<Option> = []
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'Set<TextFormat.Option>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
387 |
388 | /// Encoding of the output of the formatter.
:
408 | /// output of `TextFormat`.
409 | ///
410 | public enum Option: Hashable {
| `- note: consider making enum 'Option' conform to the 'Sendable' protocol
411 |
412 | // MARK: Available Options
[17/38] Compiling TraceLog RawOutputStream.swift
[18/38] Compiling TraceLog StandardStream.swift
[19/38] Compiling TraceLog String+InternalExtensions.swift
[20/38] Compiling TraceLog RuntimeContext.swift
[21/38] Compiling TraceLog StaticContext.swift
[22/38] Compiling TraceLog Writer.swift
[23/38] Compiling TraceLog FileOutputStreamError+Posix.swift
[24/38] Compiling TraceLog OutputStream.swift
[25/38] Compiling TraceLog OutputStreamError+Posix.swift
[26/38] Compiling TraceLog Configuration.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Logger.swift:41:28: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | /// user can re-init this at a later time or simply use the default.
40 | ///
41 | fileprivate static var config = Configuration()
| |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'config' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | ///
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:61:25: warning: capture of 'self' with non-sendable type 'AsyncWriterProxy?' in a '@Sendable' closure
26 | /// the messages until they can be written.
27 | ///
28 | internal class AsyncWriterProxy: WriterProxy {
| `- note: class 'AsyncWriterProxy' does not conform to the 'Sendable' protocol
29 |
30 | /// The writer this class proxies.
:
59 |
60 | self?.queue.async {
61 | self?.writeBuffer()
| `- warning: capture of 'self' with non-sendable type 'AsyncWriterProxy?' in a '@Sendable' closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:61:25: warning: reference to captured var 'self' in concurrently-executing code
59 |
60 | self?.queue.async {
61 | self?.writeBuffer()
| `- warning: reference to captured var 'self' in concurrently-executing code
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:78:32: warning: capture of 'self' with non-sendable type 'AsyncWriterProxy' in a '@Sendable' closure
26 | /// the messages until they can be written.
27 | ///
28 | internal class AsyncWriterProxy: WriterProxy {
| `- note: class 'AsyncWriterProxy' does not conform to the 'Sendable' protocol
29 |
30 | /// The writer this class proxies.
:
76 | /// If buffering is not enabled, simply write and return.
77 | ///
78 | guard let buffer = self.buffer
| `- warning: capture of 'self' with non-sendable type 'AsyncWriterProxy' in a '@Sendable' closure
79 | else { _ = self.writer.write(entry); return }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/LogLevel.swift:26:13: note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
24 | /// environment variables that can be set to configure TraceLog.
25 | ///
26 | public enum LogLevel: Int, CaseIterable, Comparable {
| `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
27 |
28 | // MARK: Available Levels
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/RuntimeContext.swift:25:17: note: protocol 'RuntimeContext' does not conform to the 'Sendable' protocol
23 | /// Runtime context captured at the time of the log statement
24 | ///
25 | public protocol RuntimeContext {
| `- note: protocol 'RuntimeContext' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: Instance Properties
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/StaticContext.swift:25:17: note: protocol 'StaticContext' does not conform to the 'Sendable' protocol
23 | /// Static context captured at the time of the log statement
24 | ///
25 | public protocol StaticContext {
| `- note: protocol 'StaticContext' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: Instance Properties
[27/38] Compiling TraceLog Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Logger.swift:41:28: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | /// user can re-init this at a later time or simply use the default.
40 | ///
41 | fileprivate static var config = Configuration()
| |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'config' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | ///
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:61:25: warning: capture of 'self' with non-sendable type 'AsyncWriterProxy?' in a '@Sendable' closure
26 | /// the messages until they can be written.
27 | ///
28 | internal class AsyncWriterProxy: WriterProxy {
| `- note: class 'AsyncWriterProxy' does not conform to the 'Sendable' protocol
29 |
30 | /// The writer this class proxies.
:
59 |
60 | self?.queue.async {
61 | self?.writeBuffer()
| `- warning: capture of 'self' with non-sendable type 'AsyncWriterProxy?' in a '@Sendable' closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:61:25: warning: reference to captured var 'self' in concurrently-executing code
59 |
60 | self?.queue.async {
61 | self?.writeBuffer()
| `- warning: reference to captured var 'self' in concurrently-executing code
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:78:32: warning: capture of 'self' with non-sendable type 'AsyncWriterProxy' in a '@Sendable' closure
26 | /// the messages until they can be written.
27 | ///
28 | internal class AsyncWriterProxy: WriterProxy {
| `- note: class 'AsyncWriterProxy' does not conform to the 'Sendable' protocol
29 |
30 | /// The writer this class proxies.
:
76 | /// If buffering is not enabled, simply write and return.
77 | ///
78 | guard let buffer = self.buffer
| `- warning: capture of 'self' with non-sendable type 'AsyncWriterProxy' in a '@Sendable' closure
79 | else { _ = self.writer.write(entry); return }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/LogLevel.swift:26:13: note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
24 | /// environment variables that can be set to configure TraceLog.
25 | ///
26 | public enum LogLevel: Int, CaseIterable, Comparable {
| `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
27 |
28 | // MARK: Available Levels
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/RuntimeContext.swift:25:17: note: protocol 'RuntimeContext' does not conform to the 'Sendable' protocol
23 | /// Runtime context captured at the time of the log statement
24 | ///
25 | public protocol RuntimeContext {
| `- note: protocol 'RuntimeContext' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: Instance Properties
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/StaticContext.swift:25:17: note: protocol 'StaticContext' does not conform to the 'Sendable' protocol
23 | /// Static context captured at the time of the log statement
24 | ///
25 | public protocol StaticContext {
| `- note: protocol 'StaticContext' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: Instance Properties
[28/38] Compiling TraceLog AsyncWriterProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Logger.swift:41:28: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | /// user can re-init this at a later time or simply use the default.
40 | ///
41 | fileprivate static var config = Configuration()
| |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'config' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | ///
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:61:25: warning: capture of 'self' with non-sendable type 'AsyncWriterProxy?' in a '@Sendable' closure
26 | /// the messages until they can be written.
27 | ///
28 | internal class AsyncWriterProxy: WriterProxy {
| `- note: class 'AsyncWriterProxy' does not conform to the 'Sendable' protocol
29 |
30 | /// The writer this class proxies.
:
59 |
60 | self?.queue.async {
61 | self?.writeBuffer()
| `- warning: capture of 'self' with non-sendable type 'AsyncWriterProxy?' in a '@Sendable' closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:61:25: warning: reference to captured var 'self' in concurrently-executing code
59 |
60 | self?.queue.async {
61 | self?.writeBuffer()
| `- warning: reference to captured var 'self' in concurrently-executing code
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:78:32: warning: capture of 'self' with non-sendable type 'AsyncWriterProxy' in a '@Sendable' closure
26 | /// the messages until they can be written.
27 | ///
28 | internal class AsyncWriterProxy: WriterProxy {
| `- note: class 'AsyncWriterProxy' does not conform to the 'Sendable' protocol
29 |
30 | /// The writer this class proxies.
:
76 | /// If buffering is not enabled, simply write and return.
77 | ///
78 | guard let buffer = self.buffer
| `- warning: capture of 'self' with non-sendable type 'AsyncWriterProxy' in a '@Sendable' closure
79 | else { _ = self.writer.write(entry); return }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/LogLevel.swift:26:13: note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
24 | /// environment variables that can be set to configure TraceLog.
25 | ///
26 | public enum LogLevel: Int, CaseIterable, Comparable {
| `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
27 |
28 | // MARK: Available Levels
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/RuntimeContext.swift:25:17: note: protocol 'RuntimeContext' does not conform to the 'Sendable' protocol
23 | /// Runtime context captured at the time of the log statement
24 | ///
25 | public protocol RuntimeContext {
| `- note: protocol 'RuntimeContext' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: Instance Properties
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/StaticContext.swift:25:17: note: protocol 'StaticContext' does not conform to the 'Sendable' protocol
23 | /// Static context captured at the time of the log statement
24 | ///
25 | public protocol StaticContext {
| `- note: protocol 'StaticContext' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: Instance Properties
[29/38] Compiling TraceLog DirectWriterProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Logger.swift:41:28: warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
39 | /// user can re-init this at a later time or simply use the default.
40 | ///
41 | fileprivate static var config = Configuration()
| |- warning: static property 'config' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'config' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'config' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | ///
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:61:25: warning: capture of 'self' with non-sendable type 'AsyncWriterProxy?' in a '@Sendable' closure
26 | /// the messages until they can be written.
27 | ///
28 | internal class AsyncWriterProxy: WriterProxy {
| `- note: class 'AsyncWriterProxy' does not conform to the 'Sendable' protocol
29 |
30 | /// The writer this class proxies.
:
59 |
60 | self?.queue.async {
61 | self?.writeBuffer()
| `- warning: capture of 'self' with non-sendable type 'AsyncWriterProxy?' in a '@Sendable' closure
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:61:25: warning: reference to captured var 'self' in concurrently-executing code
59 |
60 | self?.queue.async {
61 | self?.writeBuffer()
| `- warning: reference to captured var 'self' in concurrently-executing code
62 | }
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:78:32: warning: capture of 'self' with non-sendable type 'AsyncWriterProxy' in a '@Sendable' closure
26 | /// the messages until they can be written.
27 | ///
28 | internal class AsyncWriterProxy: WriterProxy {
| `- note: class 'AsyncWriterProxy' does not conform to the 'Sendable' protocol
29 |
30 | /// The writer this class proxies.
:
76 | /// If buffering is not enabled, simply write and return.
77 | ///
78 | guard let buffer = self.buffer
| `- warning: capture of 'self' with non-sendable type 'AsyncWriterProxy' in a '@Sendable' closure
79 | else { _ = self.writer.write(entry); return }
80 |
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/LogLevel.swift:26:13: note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
24 | /// environment variables that can be set to configure TraceLog.
25 | ///
26 | public enum LogLevel: Int, CaseIterable, Comparable {
| `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
27 |
28 | // MARK: Available Levels
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/RuntimeContext.swift:25:17: note: protocol 'RuntimeContext' does not conform to the 'Sendable' protocol
23 | /// Runtime context captured at the time of the log statement
24 | ///
25 | public protocol RuntimeContext {
| `- note: protocol 'RuntimeContext' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: Instance Properties
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Internal/Proxies/AsyncWriterProxy.swift:79:46: warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
77 | ///
78 | guard let buffer = self.buffer
79 | else { _ = self.writer.write(entry); return }
| `- warning: capture of 'entry' with non-sendable type '(timestamp: Double, level: LogLevel, tag: String, message: String, runtimeContext: any RuntimeContext, staticContext: any StaticContext)' in a '@Sendable' closure
80 |
81 | /// Append the log entry to the memory buffer. The queue strategy will
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/StaticContext.swift:25:17: note: protocol 'StaticContext' does not conform to the 'Sendable' protocol
23 | /// Static context captured at the time of the log statement
24 | ///
25 | public protocol StaticContext {
| `- note: protocol 'StaticContext' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: Instance Properties
[30/38] Compiling TraceLog TraceLog.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/ConsoleWriter.swift:124:27: warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
122 | /// TextFormat()
123 | ///
124 | public static let format: OutputStreamFormatter = TextFormat()
| |- warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'format' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/OutputStreamFormatter.swift:29:17: note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
27 | /// - SeeAlso: `JSONFormat` for concrete implementation of an `OutputStreamFormatter`.
28 | ///
29 | public protocol OutputStreamFormatter {
| `- note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
30 |
31 | // MARK: Properties
[31/38] Compiling TraceLog ConsoleWriter.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/ConsoleWriter.swift:124:27: warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
122 | /// TextFormat()
123 | ///
124 | public static let format: OutputStreamFormatter = TextFormat()
| |- warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'format' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/OutputStreamFormatter.swift:29:17: note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
27 | /// - SeeAlso: `JSONFormat` for concrete implementation of an `OutputStreamFormatter`.
28 | ///
29 | public protocol OutputStreamFormatter {
| `- note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
30 |
31 | // MARK: Properties
[32/38] Compiling TraceLog FileStrategy+Fixed.swift
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/Writers/ConsoleWriter.swift:124:27: warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
122 | /// TextFormat()
123 | ///
124 | public static let format: OutputStreamFormatter = TextFormat()
| |- warning: static property 'format' is not concurrency-safe because non-'Sendable' type 'any OutputStreamFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'format' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/TraceLog/SDK/OutputStreamFormatter.swift:29:17: note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
27 | /// - SeeAlso: `JSONFormat` for concrete implementation of an `OutputStreamFormatter`.
28 | ///
29 | public protocol OutputStreamFormatter {
| `- note: protocol 'OutputStreamFormatter' does not conform to the 'Sendable' protocol
30 |
31 | // MARK: Properties
[33/38] Compiling TraceLog CharacterSet+InternalExtensions.swift
[34/38] Compiling TraceLog Mutex.swift
[35/38] Compiling TraceLog FileOutputStream.swift
[35/38] Compiling TraceLogObjC TraceLog.m
[36/38] Write Objects.LinkFileList
[37/38] Linking libTraceLog.dylib
Build complete! (5.28s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "TraceLog",
"name" : "TraceLog",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "TraceLog",
"targets" : [
"TraceLog",
"TraceLogObjC"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "TraceLogTests",
"module_type" : "SwiftTarget",
"name" : "TraceLogTests",
"path" : "Tests/TraceLogTests",
"sources" : [
"ConcurrencyModeTests.swift",
"EnvironmentTests.swift",
"Internal/ConfigurationTests.swift",
"Internal/Proxies/AsyncWriterProxyTests.swift",
"Internal/Utilities/BlockTimerTests.swift",
"Internal/Utilities/MutexTests.swift",
"Internal/Utilities/Streams/FileOutputStreamError+PosixTests.swift",
"Internal/Utilities/Streams/FileOutputStreamTests.swift",
"Internal/Utilities/Streams/OutputStreamError+PosixTests.swift",
"Internal/Utilities/Streams/RawOutputStreamTests.swift",
"Internal/Utilities/Streams/StandardStreamTests.swift",
"Internal/Utilities/Streams/Streams+CustomNSError.swift",
"Internal/Utilities/Streams/TextFileLineReader.swift",
"SDK/RuntimeContextTests.swift",
"SDK/StaticContextTests.swift",
"TestHarness/BufferReader.swift",
"TestHarness/BufferWriter.swift",
"TestHarness/TestHarness.swift",
"TestHarness/TestUtilities.swift",
"TestWriters/CallbackTestWriter.swift",
"TestWriters/FailWhenFiredTestWriter.swift",
"TestWriters/SleepyTestWriter.swift",
"TestWriters/TestContext.swift",
"TestWriters/ValidateExpectedValuesTestWriter.swift",
"TraceLogPerformanceTests.swift",
"TraceLogTests.swift",
"Writers & Formatters/ConsoleWriterTests.swift",
"Writers & Formatters/FileStrategyManager+FailureReasonTests.swift",
"Writers & Formatters/FileStrategyTests.swift",
"Writers & Formatters/FileWriter+InternalsTests.swift",
"Writers & Formatters/FileWriterTests.swift",
"Writers & Formatters/JSONFormatTests.swift",
"Writers & Formatters/TextFormat+EncodingTests.swift",
"Writers & Formatters/TextFormat+InternationalLanguagesTests.swift",
"Writers & Formatters/TextFormatTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"TraceLog"
],
"type" : "test"
},
{
"c99name" : "TraceLogObjCTests",
"module_type" : "ClangTarget",
"name" : "TraceLogObjCTests",
"path" : "Tests/TraceLogObjCTests",
"sources" : [
"TraceLogObjCTests.m"
],
"target_dependencies" : [
"TraceLogObjC"
],
"type" : "test"
},
{
"c99name" : "TraceLogObjC",
"module_type" : "ClangTarget",
"name" : "TraceLogObjC",
"path" : "Sources/TraceLogObjC",
"product_memberships" : [
"TraceLog"
],
"sources" : [
"TraceLog.m"
],
"target_dependencies" : [
"TraceLog"
],
"type" : "library"
},
{
"c99name" : "TraceLog",
"module_type" : "SwiftTarget",
"name" : "TraceLog",
"path" : "Sources/TraceLog",
"product_memberships" : [
"TraceLog"
],
"sources" : [
"ConcurrencyMode.swift",
"Environment.swift",
"Formatters/JSONFormat.swift",
"Formatters/TextFormat.swift",
"Internal/Configuration.swift",
"Internal/Logger.swift",
"Internal/Proxies/AsyncWriterProxy.swift",
"Internal/Proxies/DirectWriterProxy.swift",
"Internal/Proxies/SyncWriterProxy.swift",
"Internal/Proxies/WriterProxy.swift",
"Internal/Utilities/BlockTimer.swift",
"Internal/Utilities/CharacterSet+InternalExtensions.swift",
"Internal/Utilities/Mutex.swift",
"Internal/Utilities/Streams/FileOutputStream.swift",
"Internal/Utilities/Streams/FileOutputStreamError+Posix.swift",
"Internal/Utilities/Streams/OutputStream.swift",
"Internal/Utilities/Streams/OutputStreamError+Posix.swift",
"Internal/Utilities/Streams/RawOutputStream.swift",
"Internal/Utilities/Streams/StandardStream.swift",
"Internal/Utilities/String+InternalExtensions.swift",
"SDK/LogLevel.swift",
"SDK/OutputStreamFormatter.swift",
"SDK/OutputStreamWriter.swift",
"SDK/RuntimeContext.swift",
"SDK/StaticContext.swift",
"SDK/Writer.swift",
"TraceLog.swift",
"Writers/ConsoleWriter.swift",
"Writers/FileStrategy+Fixed.swift",
"Writers/FileStrategy+Rotate.swift",
"Writers/FileStrategyManager.swift",
"Writers/FileWriter.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.