Build Information
Successful build of Willow, reference main (a36510
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 09:06:19 UTC.
Swift 6 data race errors: 8
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/Nike-Inc/Willow.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Nike-Inc/Willow
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a365107 Bump version to 6.1.0
Cloned https://github.com/Nike-Inc/Willow.git
Revision (git rev-parse @):
a3651073490ebba925463e50a56aeb870cd901f4
SUCCESS checkout https://github.com/Nike-Inc/Willow.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "willow",
"name": "Willow",
"url": "https://github.com/Nike-Inc/Willow.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Willow",
"dependencies": [
]
}
]
}
Fetching https://github.com/Nike-Inc/Willow.git
[1/2859] Fetching willow
Fetched https://github.com/Nike-Inc/Willow.git from cache (1.17s)
Creating working copy for https://github.com/Nike-Inc/Willow.git
Working copy of https://github.com/Nike-Inc/Willow.git resolved at main (a365107)
warning: '.resolve-product-dependencies': dependency 'willow' 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/Nike-Inc/Willow.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/9] Compiling Willow Logger.swift
/Users/admin/builder/spi-builder-workspace/Source/Logger.swift:68:23: warning: static property 'disabled' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
31 | /// Loggers can only be configured during initialization. If you need to change a logger at runtime, it is advised to
32 | /// create an additional logger with a custom configuration to fit your needs.
33 | open class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
34 |
35 | // MARK: - Helper Types
:
66 |
67 | /// A logger that does not output any messages to writers.
68 | public static let disabled: Logger = NoOpLogger()
| |- warning: static property 'disabled' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disabled' 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
69 |
70 | /// Controls whether to allow log messages to be sent to the writers.
/Users/admin/builder/spi-builder-workspace/Source/Logger.swift:60:31: warning: capture of 'work' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 |
59 | case .asynchronous(queue: let queue):
60 | queue.async { work() }
| |- warning: capture of 'work' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:52: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
50 |
51 | /// Creates a new default `.debug` instance with a bitmask of `1`.
52 | public static let debug = LogLevel(rawValue: debugBitmask)
| |- 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
53 |
54 | /// Creates a new default `.info` instance with a bitmask of `1 << 1`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:55: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
53 |
54 | /// Creates a new default `.info` instance with a bitmask of `1 << 1`.
55 | public static let info = LogLevel(rawValue: infoBitmask)
| |- 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
56 |
57 | /// Creates a new default `.event` instance with a bitmask of `1 << 2`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:58:23: warning: static property 'event' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
56 |
57 | /// Creates a new default `.event` instance with a bitmask of `1 << 2`.
58 | public static let event = LogLevel(rawValue: eventBitmask)
| |- warning: static property 'event' 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 'event' 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
59 |
60 | /// Creates a new default `.warn` instance with a bitmask of `1 << 3`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:61:23: warning: static property 'warn' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
59 |
60 | /// Creates a new default `.warn` instance with a bitmask of `1 << 3`.
61 | public static let warn = LogLevel(rawValue: warnBitmask)
| |- warning: static property 'warn' 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 'warn' 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
62 |
63 | /// Creates a new default `.error` instance with a bitmask of `1 << 4`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:64: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
62 |
63 | /// Creates a new default `.error` instance with a bitmask of `1 << 4`.
64 | public static let error = LogLevel(rawValue: errorBitmask)
| |- 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
65 |
66 | /// Creates a new default `.all` instance with a bitmask where all bits equal are equal to `1`.
/Users/admin/builder/spi-builder-workspace/Source/Logger.swift:228:27: warning: capture of 'self' with non-sendable type 'Logger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | /// Loggers can only be configured during initialization. If you need to change a logger at runtime, it is advised to
32 | /// create an additional logger with a custom configuration to fit your needs.
33 | open class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
34 |
35 | // MARK: - Helper Types
:
226 |
227 | case .asynchronous(let queue):
228 | queue.async { self.logMessage(message(), with: logLevel) }
| `- warning: capture of 'self' with non-sendable type 'Logger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 | }
230 | }
/Users/admin/builder/spi-builder-workspace/Source/Logger.swift:228:43: warning: capture of 'message' with non-sendable type '() -> (any LogMessage)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
226 |
227 | case .asynchronous(let queue):
228 | queue.async { self.logMessage(message(), with: logLevel) }
| |- warning: capture of 'message' with non-sendable type '() -> (any LogMessage)' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
229 | }
230 | }
/Users/admin/builder/spi-builder-workspace/Source/Logger.swift:228:60: warning: capture of 'logLevel' with non-sendable type 'LogLevel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
226 |
227 | case .asynchronous(let queue):
228 | queue.async { self.logMessage(message(), with: logLevel) }
| `- warning: capture of 'logLevel' with non-sendable type 'LogLevel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 | }
230 | }
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:30:15: note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Source/Logger.swift:318:27: warning: capture of 'self' with non-sendable type 'Logger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | /// Loggers can only be configured during initialization. If you need to change a logger at runtime, it is advised to
32 | /// create an additional logger with a custom configuration to fit your needs.
33 | open class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
34 |
35 | // MARK: - Helper Types
:
316 |
317 | case .asynchronous(let queue):
318 | queue.async { self.logMessage(message(), with: logLevel) }
| `- warning: capture of 'self' with non-sendable type 'Logger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
319 | }
320 | }
/Users/admin/builder/spi-builder-workspace/Source/Logger.swift:318:43: warning: capture of 'message' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
316 |
317 | case .asynchronous(let queue):
318 | queue.async { self.logMessage(message(), with: logLevel) }
| |- warning: capture of 'message' with non-sendable type '() -> String' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
319 | }
320 | }
/Users/admin/builder/spi-builder-workspace/Source/Logger.swift:318:60: warning: capture of 'logLevel' with non-sendable type 'LogLevel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
316 |
317 | case .asynchronous(let queue):
318 | queue.async { self.logMessage(message(), with: logLevel) }
| `- warning: capture of 'logLevel' with non-sendable type 'LogLevel' in a `@Sendable` closure; this is an error in the Swift 6 language mode
319 | }
320 | }
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:30:15: note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:49:23: warning: static property 'off' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
47 |
48 | /// Creates a new default `.off` instance with a bitmask where all bits are equal to 0.
49 | public static let off = LogLevel(rawValue: offBitmask)
| |- warning: static property 'off' 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 'off' 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
50 |
51 | /// Creates a new default `.debug` instance with a bitmask of `1`.
[4/9] Compiling Willow LogMessage.swift
[5/9] Compiling Willow LogLevel.swift
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:49:23: warning: static property 'off' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
47 |
48 | /// Creates a new default `.off` instance with a bitmask where all bits are equal to 0.
49 | public static let off = LogLevel(rawValue: offBitmask)
| |- warning: static property 'off' 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 'off' 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
50 |
51 | /// Creates a new default `.debug` instance with a bitmask of `1`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:52: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
50 |
51 | /// Creates a new default `.debug` instance with a bitmask of `1`.
52 | public static let debug = LogLevel(rawValue: debugBitmask)
| |- 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
53 |
54 | /// Creates a new default `.info` instance with a bitmask of `1 << 1`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:55: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
53 |
54 | /// Creates a new default `.info` instance with a bitmask of `1 << 1`.
55 | public static let info = LogLevel(rawValue: infoBitmask)
| |- 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
56 |
57 | /// Creates a new default `.event` instance with a bitmask of `1 << 2`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:58:23: warning: static property 'event' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
56 |
57 | /// Creates a new default `.event` instance with a bitmask of `1 << 2`.
58 | public static let event = LogLevel(rawValue: eventBitmask)
| |- warning: static property 'event' 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 'event' 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
59 |
60 | /// Creates a new default `.warn` instance with a bitmask of `1 << 3`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:61:23: warning: static property 'warn' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
59 |
60 | /// Creates a new default `.warn` instance with a bitmask of `1 << 3`.
61 | public static let warn = LogLevel(rawValue: warnBitmask)
| |- warning: static property 'warn' 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 'warn' 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
62 |
63 | /// Creates a new default `.error` instance with a bitmask of `1 << 4`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:64: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
62 |
63 | /// Creates a new default `.error` instance with a bitmask of `1 << 4`.
64 | public static let error = LogLevel(rawValue: errorBitmask)
| |- 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
65 |
66 | /// Creates a new default `.all` instance with a bitmask where all bits equal are equal to `1`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:67: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
65 |
66 | /// Creates a new default `.all` instance with a bitmask where all bits equal are equal to `1`.
67 | public static let all = LogLevel(rawValue: allBitmask)
| |- 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
68 |
69 | /// Returns a mask including the minimum log level and above.
[6/9] Compiling Willow LogModifier.swift
[7/9] Compiling Willow LogFilter.swift
[8/9] Emitting module Willow
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:49:23: warning: static property 'off' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
47 |
48 | /// Creates a new default `.off` instance with a bitmask where all bits are equal to 0.
49 | public static let off = LogLevel(rawValue: offBitmask)
| |- warning: static property 'off' 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 'off' 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
50 |
51 | /// Creates a new default `.debug` instance with a bitmask of `1`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:52: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
50 |
51 | /// Creates a new default `.debug` instance with a bitmask of `1`.
52 | public static let debug = LogLevel(rawValue: debugBitmask)
| |- 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
53 |
54 | /// Creates a new default `.info` instance with a bitmask of `1 << 1`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:55: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
53 |
54 | /// Creates a new default `.info` instance with a bitmask of `1 << 1`.
55 | public static let info = LogLevel(rawValue: infoBitmask)
| |- 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
56 |
57 | /// Creates a new default `.event` instance with a bitmask of `1 << 2`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:58:23: warning: static property 'event' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
56 |
57 | /// Creates a new default `.event` instance with a bitmask of `1 << 2`.
58 | public static let event = LogLevel(rawValue: eventBitmask)
| |- warning: static property 'event' 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 'event' 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
59 |
60 | /// Creates a new default `.warn` instance with a bitmask of `1 << 3`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:61:23: warning: static property 'warn' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
59 |
60 | /// Creates a new default `.warn` instance with a bitmask of `1 << 3`.
61 | public static let warn = LogLevel(rawValue: warnBitmask)
| |- warning: static property 'warn' 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 'warn' 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
62 |
63 | /// Creates a new default `.error` instance with a bitmask of `1 << 4`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:64: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
62 |
63 | /// Creates a new default `.error` instance with a bitmask of `1 << 4`.
64 | public static let error = LogLevel(rawValue: errorBitmask)
| |- 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
65 |
66 | /// Creates a new default `.all` instance with a bitmask where all bits equal are equal to `1`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:67: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
65 |
66 | /// Creates a new default `.all` instance with a bitmask where all bits equal are equal to `1`.
67 | public static let all = LogLevel(rawValue: allBitmask)
| |- 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
68 |
69 | /// Returns a mask including the minimum log level and above.
/Users/admin/builder/spi-builder-workspace/Source/Logger.swift:68:23: warning: static property 'disabled' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
31 | /// Loggers can only be configured during initialization. If you need to change a logger at runtime, it is advised to
32 | /// create an additional logger with a custom configuration to fit your needs.
33 | open class Logger {
| `- note: class 'Logger' does not conform to the 'Sendable' protocol
34 |
35 | // MARK: - Helper Types
:
66 |
67 | /// A logger that does not output any messages to writers.
68 | public static let disabled: Logger = NoOpLogger()
| |- warning: static property 'disabled' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'disabled' 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
69 |
70 | /// Controls whether to allow log messages to be sent to the writers.
[9/9] Compiling Willow LogWriter.swift
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:52: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
50 |
51 | /// Creates a new default `.debug` instance with a bitmask of `1`.
52 | public static let debug = LogLevel(rawValue: debugBitmask)
| |- 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
53 |
54 | /// Creates a new default `.info` instance with a bitmask of `1 << 1`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:55: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
53 |
54 | /// Creates a new default `.info` instance with a bitmask of `1 << 1`.
55 | public static let info = LogLevel(rawValue: infoBitmask)
| |- 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
56 |
57 | /// Creates a new default `.event` instance with a bitmask of `1 << 2`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:61:23: warning: static property 'warn' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
59 |
60 | /// Creates a new default `.warn` instance with a bitmask of `1 << 3`.
61 | public static let warn = LogLevel(rawValue: warnBitmask)
| |- warning: static property 'warn' 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 'warn' 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
62 |
63 | /// Creates a new default `.error` instance with a bitmask of `1 << 4`.
/Users/admin/builder/spi-builder-workspace/Source/LogLevel.swift:64: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
28 | /// that is used to satisfy the raw value backing the log level. The empty bits that remain allow custom log levels to
29 | /// be inter-mixed with the default log levels very easily.
30 | public struct LogLevel: OptionSet, Equatable, Hashable {
| `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
31 |
32 | // MARK: Properties
:
62 |
63 | /// Creates a new default `.error` instance with a bitmask of `1 << 4`.
64 | public static let error = LogLevel(rawValue: errorBitmask)
| |- 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
65 |
66 | /// Creates a new default `.all` instance with a bitmask where all bits equal are equal to `1`.
Build complete! (9.09s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Willow",
"name" : "Willow",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
}
],
"products" : [
{
"name" : "Willow",
"targets" : [
"Willow"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "Willow",
"module_type" : "SwiftTarget",
"name" : "Willow",
"path" : "Source",
"product_memberships" : [
"Willow"
],
"sources" : [
"LogFilter.swift",
"LogLevel.swift",
"LogMessage.swift",
"LogModifier.swift",
"LogWriter.swift",
"Logger.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.