Build Information
Successful build of Logg, reference 2.4.1 (0e056b
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 07:12:41 UTC.
Swift 6 data race errors: 7
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
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/JuanjoArreola/Logg.git
Reference: 2.4.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/JuanjoArreola/Logg
* tag 2.4.1 -> FETCH_HEAD
HEAD is now at 0e056b6 New emojis. README updated
Cloned https://github.com/JuanjoArreola/Logg.git
Revision (git rev-parse @):
0e056b6a8e028a0b8070892059656586dcaad673
SUCCESS checkout https://github.com/JuanjoArreola/Logg.git at 2.4.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": "logg",
"name": "Logg",
"url": "https://github.com/JuanjoArreola/Logg.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Logg",
"dependencies": [
]
}
]
}
Fetching https://github.com/JuanjoArreola/Logg.git
[1/159] Fetching logg
Fetched https://github.com/JuanjoArreola/Logg.git from cache (0.68s)
Creating working copy for https://github.com/JuanjoArreola/Logg.git
Working copy of https://github.com/JuanjoArreola/Logg.git resolved at 2.4.1 (0e056b6)
warning: '.resolve-product-dependencies': dependency 'logg' 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/JuanjoArreola/Logg.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling Logg Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logg/Logger.swift:3:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1 | import Foundation
2 |
3 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
4 |
5 | var level: LogLevel { get set }
[4/12] Compiling Logg LogLevel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:6:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
| |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'debug' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:7:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'info' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:8:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
| |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'error' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let fault = LogLevel(rawValue: 1 << 3)
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:9:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
| |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fault' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:11:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
9 | public static let fault = LogLevel(rawValue: 1 << 3)
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let none: LogLevel = []
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:12:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
12 | public static let none: LogLevel = []
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(rawValue: Int) {
[5/12] Compiling Logg ConsoleFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:7:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'info' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:6:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
| |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'debug' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:8:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
| |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'error' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let fault = LogLevel(rawValue: 1 << 3)
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:9:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
| |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fault' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
[6/12] Compiling Logg ConsoleLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:11:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
9 | public static let fault = LogLevel(rawValue: 1 << 3)
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let none: LogLevel = []
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:7:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'info' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:6:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
| |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'debug' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:8:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
| |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'error' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let fault = LogLevel(rawValue: 1 << 3)
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:9:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
| |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fault' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
[7/12] Emitting module Logg
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:11:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
9 | public static let fault = LogLevel(rawValue: 1 << 3)
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let none: LogLevel = []
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/DefaultFormatter.swift:5:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | open class DefaultFormatter: LogFormatter {
4 |
5 | public static var shared = DefaultFormatter()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | public var formatter: DateFormatter
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:6:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
| |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'debug' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:7:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'info' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:8:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
| |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'error' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let fault = LogLevel(rawValue: 1 << 3)
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:9:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
| |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fault' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:12:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
12 | public static let none: LogLevel = []
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Logg/Logger.swift:3:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1 | import Foundation
2 |
3 | public protocol Logger: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
4 |
5 | var level: LogLevel { get set }
[8/12] Compiling Logg CompositeLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:12:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
12 | public static let none: LogLevel = []
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public init(rawValue: Int) {
[9/12] Compiling Logg LogContext.swift
[10/12] Compiling Logg FileLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:11:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
9 | public static let fault = LogLevel(rawValue: 1 << 3)
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let none: LogLevel = []
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/DefaultFormatter.swift:5:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | open class DefaultFormatter: LogFormatter {
4 |
5 | public static var shared = DefaultFormatter()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | public var formatter: DateFormatter
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:7:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'info' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:6:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
| |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'debug' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:8:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
| |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'error' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let fault = LogLevel(rawValue: 1 << 3)
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:9:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
| |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fault' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
/Users/admin/builder/spi-builder-workspace/Sources/Logg/FileLogger.swift:57:21: warning: capture of 'self' with non-sendable type 'FileLogger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public class FileLogger: Logger {
| `- note: class 'FileLogger' does not conform to the 'Sendable' protocol
11 |
12 | public var formatter: LogFormatter
:
55 | logQueue.async {
56 | do {
57 | try self.append(string: string)
| `- warning: capture of 'self' with non-sendable type 'FileLogger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | } catch {
59 | self.fallback(error: error)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/FileLogger.swift:60:44: warning: capture of 'object' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | } catch {
59 | self.fallback(error: error)
60 | self.fallbackLogger?.debug(object, context: context, userInfo: nil)
| `- warning: capture of 'object' with non-sendable type 'Any?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Logg/FileLogger.swift:60:61: warning: capture of 'context' with non-sendable type 'LogContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | } catch {
59 | self.fallback(error: error)
60 | self.fallbackLogger?.debug(object, context: context, userInfo: nil)
| `- warning: capture of 'context' with non-sendable type 'LogContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogContext.swift:3:15: note: consider making struct 'LogContext' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct LogContext {
| `- note: consider making struct 'LogContext' conform to the 'Sendable' protocol
4 | public var file: String
5 | public var function: String
/Users/admin/builder/spi-builder-workspace/Sources/Logg/FileLogger.swift:60:44: warning: implicit capture of 'object' requires that 'Any?' conforms to `Sendable`; this is an error in the Swift 6 language mode
58 | } catch {
59 | self.fallback(error: error)
60 | self.fallbackLogger?.debug(object, context: context, userInfo: nil)
| `- warning: implicit capture of 'object' requires that 'Any?' conforms to `Sendable`; this is an error in the Swift 6 language mode
61 | }
62 | }
[11/12] Compiling Logg LogFormatter.swift
[12/12] Compiling Logg DefaultFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logg/DefaultFormatter.swift:5:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | open class DefaultFormatter: LogFormatter {
4 |
5 | public static var shared = DefaultFormatter()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | public var formatter: DateFormatter
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:7:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
| |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'info' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:6:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
| |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'debug' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:8:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
6 | public static let debug = LogLevel(rawValue: 1 << 0)
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
| |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'error' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 | public static let fault = LogLevel(rawValue: 1 << 3)
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:9:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct LogLevel: OptionSet {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
4 | public let rawValue: Int
5 |
:
7 | public static let info = LogLevel(rawValue: 1 << 1)
8 | public static let error = LogLevel(rawValue: 1 << 2)
9 | public static let fault = LogLevel(rawValue: 1 << 3)
| |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fault' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 | public static let all: LogLevel = [.debug, .info, .error, .fault]
Build complete! (14.87s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Logg",
"name" : "Logg",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Logg",
"targets" : [
"Logg"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LoggTests",
"module_type" : "SwiftTarget",
"name" : "LoggTests",
"path" : "Tests/LoggTests",
"sources" : [
"LoggTests.swift"
],
"target_dependencies" : [
"Logg"
],
"type" : "test"
},
{
"c99name" : "Logg",
"module_type" : "SwiftTarget",
"name" : "Logg",
"path" : "Sources/Logg",
"product_memberships" : [
"Logg"
],
"sources" : [
"CompositeLogger.swift",
"ConsoleFormatter.swift",
"ConsoleLogger.swift",
"DefaultFormatter.swift",
"FileLogger.swift",
"LogContext.swift",
"LogFormatter.swift",
"LogLevel.swift",
"Logger.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.