The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build FuturaLog with Swift 6.0 (beta) for Linux (349c53) on 10 Jul 2024 20:53:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.46.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kaqu/futuralog.git
Reference: 0.6.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/kaqu/futuralog
 * tag               0.6.0      -> FETCH_HEAD
HEAD is now at 349c53d adding flat log and LogPackage optimization
Cloned https://github.com/kaqu/futuralog.git
Revision (git rev-parse @):
349c53dc57234a8f9bf2d26a895571fc0f010fa5
SUCCESS checkout https://github.com/kaqu/futuralog.git at 0.6.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/kaqu/futuralog.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:939bcf47aaf06a33919ac1ec1df3a4704fc37493bc970719b13df1c85d27e20a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling FuturaLog LogEnvironment.swift
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogEnvironment.swift:22:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead
20 | extension LogEnvironment : Hashable {
21 |
22 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead
23 |         return "\(self.name)\(self.appVersion)\(self.platform ?? "N/A")\(self.osInfo ?? "N/A")\(self.info ?? "N/A")".hashValue
24 |     }
[4/17] Compiling FuturaLog LogPackage.swift
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogEnvironment.swift:22:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead
20 | extension LogEnvironment : Hashable {
21 |
22 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead
23 |         return "\(self.name)\(self.appVersion)\(self.platform ?? "N/A")\(self.osInfo ?? "N/A")\(self.info ?? "N/A")".hashValue
24 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/18] Compiling FuturaLog LogEmitter.swift
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:14:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum LogCategory : String, Codable {
   |             `- note: consider making enum 'LogCategory' conform to the 'Sendable' protocol
 4 |
 5 |     case crash
   :
12 |     case void // not present in all property since void is special type which is ignored by default
13 |
14 |     public static let all: [LogCategory] = [.crash, .special, .error, .warning, .debug, .verbose, .info]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' 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
15 | }
16 |
/host/spi-builder-workspace/Sources/FuturaLog/LogFilePrinter.swift:20:19: warning: capture of 'self' with non-sendable type 'LogFilePrinter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public final class LogFilePrinter : LogReceiver {
   |                    `- note: class 'LogFilePrinter' does not conform to the 'Sendable' protocol
 4 |
 5 |     public let allowedCategories: [LogCategory]
   :
18 |     public func recieve(_ log: Log) {
19 |         synchronizationQueue.async {
20 |             guard self.allowedCategories.contains(log.category) else {
   |                   `- warning: capture of 'self' with non-sendable type 'LogFilePrinter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |                 return
22 |             }
/host/spi-builder-workspace/Sources/FuturaLog/LogFilePrinter.swift:20:51: warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |     public func recieve(_ log: Log) {
19 |         synchronizationQueue.async {
20 |             guard self.allowedCategories.contains(log.category) else {
   |                                                   `- warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |                 return
22 |             }
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:17:15: note: consider making struct 'Log' conform to the 'Sendable' protocol
15 | }
16 |
17 | public struct Log : Codable {
   |               `- note: consider making struct 'Log' conform to the 'Sendable' protocol
18 |
19 |     public let category: LogCategory
[6/18] Compiling FuturaLog LogFilePrinter.swift
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:14:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum LogCategory : String, Codable {
   |             `- note: consider making enum 'LogCategory' conform to the 'Sendable' protocol
 4 |
 5 |     case crash
   :
12 |     case void // not present in all property since void is special type which is ignored by default
13 |
14 |     public static let all: [LogCategory] = [.crash, .special, .error, .warning, .debug, .verbose, .info]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' 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
15 | }
16 |
/host/spi-builder-workspace/Sources/FuturaLog/LogFilePrinter.swift:20:19: warning: capture of 'self' with non-sendable type 'LogFilePrinter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public final class LogFilePrinter : LogReceiver {
   |                    `- note: class 'LogFilePrinter' does not conform to the 'Sendable' protocol
 4 |
 5 |     public let allowedCategories: [LogCategory]
   :
18 |     public func recieve(_ log: Log) {
19 |         synchronizationQueue.async {
20 |             guard self.allowedCategories.contains(log.category) else {
   |                   `- warning: capture of 'self' with non-sendable type 'LogFilePrinter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |                 return
22 |             }
/host/spi-builder-workspace/Sources/FuturaLog/LogFilePrinter.swift:20:51: warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |     public func recieve(_ log: Log) {
19 |         synchronizationQueue.async {
20 |             guard self.allowedCategories.contains(log.category) else {
   |                                                   `- warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |                 return
22 |             }
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:17:15: note: consider making struct 'Log' conform to the 'Sendable' protocol
15 | }
16 |
17 | public struct Log : Codable {
   |               `- note: consider making struct 'Log' conform to the 'Sendable' protocol
18 |
19 |     public let category: LogCategory
[7/18] Emitting module FuturaLog
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
30 | }
31 |
32 | fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
   |                                                   `- error: cannot find type 'NSException' in scope
33 |     Logger.send(Log(.crash, message: "Exception: \(exception)\n\n\(Thread.callStackSymbols.joined(separator: "\n"))\n"))
34 |     Logger.flush()
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:43:52: error: cannot find type 'NSException' in scope
41 | }
42 |
43 | fileprivate func exceptionVoidHandler(_ exception: NSException)-> Swift.Void { /* void */ }
   |                                                    `- error: cannot find type 'NSException' in scope
44 |
45 | fileprivate func signalVoidHandler(_ signal: Int32)-> Swift.Void { exit(signal) }
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:14:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum LogCategory : String, Codable {
   |             `- note: consider making enum 'LogCategory' conform to the 'Sendable' protocol
 4 |
 5 |     case crash
   :
12 |     case void // not present in all property since void is special type which is ignored by default
13 |
14 |     public static let all: [LogCategory] = [.crash, .special, .error, .warning, .debug, .verbose, .info]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' 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
15 | }
16 |
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:5:28: warning: static property 'recievers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 | public final class Logger {
 4 |
 5 |     fileprivate static var recievers: Array<LogReceiver> = []
   |                            |- warning: static property 'recievers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: convert 'recievers' to a 'let' constant to make 'Sendable' shared state immutable
   |                            |- note: annotate 'recievers' 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 static let sessionID: String = UUID().description
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:9:23: warning: static property 'jsonDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |     public static let sessionID: String = UUID().description
 8 |
 9 |     public static let jsonDecoder: JSONDecoder = {
   |                       `- warning: static property 'jsonDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
10 |         let decoder = JSONDecoder()
11 |         let dateFormatter = DateFormatter()
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
 1 | open class JSONDecoder {
   |            `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
 2 |     public enum DateDecodingStrategy {
 3 |         case deferredToDate
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 1 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 2 |
 3 | public final class Logger {
   :
 7 |     public static let sessionID: String = UUID().description
 8 |
 9 |     public static let jsonDecoder: JSONDecoder = {
   |                       |- note: annotate 'jsonDecoder' 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 |         let decoder = JSONDecoder()
11 |         let dateFormatter = DateFormatter()
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:18:23: warning: static property 'jsonEncoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
16 |     }()
17 |
18 |     public static let jsonEncoder: JSONEncoder = {
   |                       |- warning: static property 'jsonEncoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'jsonEncoder' 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
19 |         let encoder = JSONEncoder()
20 |         let dateFormatter = DateFormatter()
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 1 | open class JSONEncoder {
   |            `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 2 |     public struct OutputFormatting : OptionSet {
 3 |         public let rawValue: UInt
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogEnvironment.swift:22:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead
20 | extension LogEnvironment : Hashable {
21 |
22 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead
23 |         return "\(self.name)\(self.appVersion)\(self.platform ?? "N/A")\(self.osInfo ?? "N/A")\(self.info ?? "N/A")".hashValue
24 |     }
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:7:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:7:48: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:7:98: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                                                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
[8/18] Compiling FuturaLog CrashCatcher.swift
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
30 | }
31 |
32 | fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
   |                                                   `- error: cannot find type 'NSException' in scope
33 |     Logger.send(Log(.crash, message: "Exception: \(exception)\n\n\(Thread.callStackSymbols.joined(separator: "\n"))\n"))
34 |     Logger.flush()
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:43:52: error: cannot find type 'NSException' in scope
41 | }
42 |
43 | fileprivate func exceptionVoidHandler(_ exception: NSException)-> Swift.Void { /* void */ }
   |                                                    `- error: cannot find type 'NSException' in scope
44 |
45 | fileprivate func signalVoidHandler(_ signal: Int32)-> Swift.Void { exit(signal) }
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:8:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
 6 |         switch mode {
 7 |         case .logging:
 8 |             NSSetUncaughtExceptionHandler(exceptionLogHandler);
   |             `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
 9 |             signal(SIGABRT, signalLogHandler);
10 |             signal(SIGILL, signalLogHandler);
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:16:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
14 |             signal(SIGPIPE, signalLogHandler);
15 |         case .hiding:
16 |             NSSetUncaughtExceptionHandler(exceptionVoidHandler);
   |             `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
17 |             signal(SIGABRT, signalVoidHandler);
18 |             signal(SIGILL, signalVoidHandler);
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:14:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum LogCategory : String, Codable {
   |             `- note: consider making enum 'LogCategory' conform to the 'Sendable' protocol
 4 |
 5 |     case crash
   :
12 |     case void // not present in all property since void is special type which is ignored by default
13 |
14 |     public static let all: [LogCategory] = [.crash, .special, .error, .warning, .debug, .verbose, .info]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' 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
15 | }
16 |
[9/18] Compiling FuturaLog Log.swift
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
30 | }
31 |
32 | fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
   |                                                   `- error: cannot find type 'NSException' in scope
33 |     Logger.send(Log(.crash, message: "Exception: \(exception)\n\n\(Thread.callStackSymbols.joined(separator: "\n"))\n"))
34 |     Logger.flush()
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:43:52: error: cannot find type 'NSException' in scope
41 | }
42 |
43 | fileprivate func exceptionVoidHandler(_ exception: NSException)-> Swift.Void { /* void */ }
   |                                                    `- error: cannot find type 'NSException' in scope
44 |
45 | fileprivate func signalVoidHandler(_ signal: Int32)-> Swift.Void { exit(signal) }
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:8:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
 6 |         switch mode {
 7 |         case .logging:
 8 |             NSSetUncaughtExceptionHandler(exceptionLogHandler);
   |             `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
 9 |             signal(SIGABRT, signalLogHandler);
10 |             signal(SIGILL, signalLogHandler);
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:16:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
14 |             signal(SIGPIPE, signalLogHandler);
15 |         case .hiding:
16 |             NSSetUncaughtExceptionHandler(exceptionVoidHandler);
   |             `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
17 |             signal(SIGABRT, signalVoidHandler);
18 |             signal(SIGILL, signalVoidHandler);
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:14:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum LogCategory : String, Codable {
   |             `- note: consider making enum 'LogCategory' conform to the 'Sendable' protocol
 4 |
 5 |     case crash
   :
12 |     case void // not present in all property since void is special type which is ignored by default
13 |
14 |     public static let all: [LogCategory] = [.crash, .special, .error, .warning, .debug, .verbose, .info]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' 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
15 | }
16 |
[10/18] Compiling FuturaLog LogFileStorage.swift
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:14:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum LogCategory : String, Codable {
   |             `- note: consider making enum 'LogCategory' conform to the 'Sendable' protocol
 4 |
 5 |     case crash
   :
12 |     case void // not present in all property since void is special type which is ignored by default
13 |
14 |     public static let all: [LogCategory] = [.crash, .special, .error, .warning, .debug, .verbose, .info]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' 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
15 | }
16 |
/host/spi-builder-workspace/Sources/FuturaLog/LogFileStorage.swift:24:19: warning: capture of 'self' with non-sendable type 'LogFileStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  2 |
  3 | // TODO: add cycling storage, session separated and date separated modes
  4 | public final class LogFileStorage : LogReceiver {
    |                    `- note: class 'LogFileStorage' does not conform to the 'Sendable' protocol
  5 |
  6 |     fileprivate let synchronizationQueue = DispatchQueue(label: "futura.log.storage.file.syncQueue")
    :
 22 |     public func recieve(_ log: Log) {
 23 |         synchronizationQueue.async {
 24 |             guard self.allowedCategories.contains(log.category) else {
    |                   `- warning: capture of 'self' with non-sendable type 'LogFileStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 25 |                 return
 26 |             }
/host/spi-builder-workspace/Sources/FuturaLog/LogFileStorage.swift:24:51: warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 22 |     public func recieve(_ log: Log) {
 23 |         synchronizationQueue.async {
 24 |             guard self.allowedCategories.contains(log.category) else {
    |                                                   `- warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 25 |                 return
 26 |             }
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:17:15: note: consider making struct 'Log' conform to the 'Sendable' protocol
15 | }
16 |
17 | public struct Log : Codable {
   |               `- note: consider making struct 'Log' conform to the 'Sendable' protocol
18 |
19 |     public let category: LogCategory
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:18:23: warning: static property 'jsonEncoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
16 |     }()
17 |
18 |     public static let jsonEncoder: JSONEncoder = {
   |                       `- warning: static property 'jsonEncoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
19 |         let encoder = JSONEncoder()
20 |         let dateFormatter = DateFormatter()
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 1 | open class JSONEncoder {
   |            `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 2 |     public struct OutputFormatting : OptionSet {
 3 |         public let rawValue: UInt
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 1 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 2 |
 3 | public final class Logger {
   :
16 |     }()
17 |
18 |     public static let jsonEncoder: JSONEncoder = {
   |                       |- note: annotate 'jsonEncoder' 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
19 |         let encoder = JSONEncoder()
20 |         let dateFormatter = DateFormatter()
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:9:23: warning: static property 'jsonDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |     public static let sessionID: String = UUID().description
 8 |
 9 |     public static let jsonDecoder: JSONDecoder = {
   |                       |- warning: static property 'jsonDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'jsonDecoder' 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 |         let decoder = JSONDecoder()
11 |         let dateFormatter = DateFormatter()
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
 1 | open class JSONDecoder {
   |            `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
 2 |     public enum DateDecodingStrategy {
 3 |         case deferredToDate
[11/18] Compiling FuturaLog LogFormatter.swift
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:14:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum LogCategory : String, Codable {
   |             `- note: consider making enum 'LogCategory' conform to the 'Sendable' protocol
 4 |
 5 |     case crash
   :
12 |     case void // not present in all property since void is special type which is ignored by default
13 |
14 |     public static let all: [LogCategory] = [.crash, .special, .error, .warning, .debug, .verbose, .info]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' 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
15 | }
16 |
/host/spi-builder-workspace/Sources/FuturaLog/LogFileStorage.swift:24:19: warning: capture of 'self' with non-sendable type 'LogFileStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  2 |
  3 | // TODO: add cycling storage, session separated and date separated modes
  4 | public final class LogFileStorage : LogReceiver {
    |                    `- note: class 'LogFileStorage' does not conform to the 'Sendable' protocol
  5 |
  6 |     fileprivate let synchronizationQueue = DispatchQueue(label: "futura.log.storage.file.syncQueue")
    :
 22 |     public func recieve(_ log: Log) {
 23 |         synchronizationQueue.async {
 24 |             guard self.allowedCategories.contains(log.category) else {
    |                   `- warning: capture of 'self' with non-sendable type 'LogFileStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 25 |                 return
 26 |             }
/host/spi-builder-workspace/Sources/FuturaLog/LogFileStorage.swift:24:51: warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 22 |     public func recieve(_ log: Log) {
 23 |         synchronizationQueue.async {
 24 |             guard self.allowedCategories.contains(log.category) else {
    |                                                   `- warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 25 |                 return
 26 |             }
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:17:15: note: consider making struct 'Log' conform to the 'Sendable' protocol
15 | }
16 |
17 | public struct Log : Codable {
   |               `- note: consider making struct 'Log' conform to the 'Sendable' protocol
18 |
19 |     public let category: LogCategory
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:18:23: warning: static property 'jsonEncoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
16 |     }()
17 |
18 |     public static let jsonEncoder: JSONEncoder = {
   |                       `- warning: static property 'jsonEncoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
19 |         let encoder = JSONEncoder()
20 |         let dateFormatter = DateFormatter()
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 1 | open class JSONEncoder {
   |            `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 2 |     public struct OutputFormatting : OptionSet {
 3 |         public let rawValue: UInt
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 1 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 2 |
 3 | public final class Logger {
   :
16 |     }()
17 |
18 |     public static let jsonEncoder: JSONEncoder = {
   |                       |- note: annotate 'jsonEncoder' 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
19 |         let encoder = JSONEncoder()
20 |         let dateFormatter = DateFormatter()
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:9:23: warning: static property 'jsonDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |     public static let sessionID: String = UUID().description
 8 |
 9 |     public static let jsonDecoder: JSONDecoder = {
   |                       |- warning: static property 'jsonDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'jsonDecoder' 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 |         let decoder = JSONDecoder()
11 |         let dateFormatter = DateFormatter()
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
 1 | open class JSONDecoder {
   |            `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
 2 |     public enum DateDecodingStrategy {
 3 |         case deferredToDate
[12/18] Compiling FuturaLog LogMemoryStorage.swift
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:14:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum LogCategory : String, Codable {
   |             `- note: consider making enum 'LogCategory' conform to the 'Sendable' protocol
 4 |
 5 |     case crash
   :
12 |     case void // not present in all property since void is special type which is ignored by default
13 |
14 |     public static let all: [LogCategory] = [.crash, .special, .error, .warning, .debug, .verbose, .info]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' 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
15 | }
16 |
/host/spi-builder-workspace/Sources/FuturaLog/LogMemoryStorage.swift:20:19: warning: capture of 'self' with non-sendable type 'LogMemoryStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public final class LogMemoryStorage : LogReceiver {
   |                    `- note: class 'LogMemoryStorage' does not conform to the 'Sendable' protocol
 4 |
 5 |     fileprivate let synchronizationQueue = DispatchQueue(label: "futura.log.storage.memory.syncQueue")
   :
18 |     public func recieve(_ log: Log) {
19 |         synchronizationQueue.async {
20 |             guard self.allowedCategories.contains(log.category) else {
   |                   `- warning: capture of 'self' with non-sendable type 'LogMemoryStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |                 return
22 |             }
/host/spi-builder-workspace/Sources/FuturaLog/LogMemoryStorage.swift:20:51: warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |     public func recieve(_ log: Log) {
19 |         synchronizationQueue.async {
20 |             guard self.allowedCategories.contains(log.category) else {
   |                                                   `- warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |                 return
22 |             }
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:17:15: note: consider making struct 'Log' conform to the 'Sendable' protocol
15 | }
16 |
17 | public struct Log : Codable {
   |               `- note: consider making struct 'Log' conform to the 'Sendable' protocol
18 |
19 |     public let category: LogCategory
/host/spi-builder-workspace/Sources/FuturaLog/LogPrinter.swift:19:19: warning: capture of 'self' with non-sendable type 'LogPrinter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public final class LogPrinter : LogReceiver {
   |                    `- note: class 'LogPrinter' does not conform to the 'Sendable' protocol
 4 |
 5 |     public let allowedCategories: [LogCategory]
   :
17 |     public func recieve(_ log: Log) {
18 |         synchronizationQueue.async {
19 |             guard self.allowedCategories.contains(log.category) else {
   |                   `- warning: capture of 'self' with non-sendable type 'LogPrinter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |                 return
21 |             }
/host/spi-builder-workspace/Sources/FuturaLog/LogPrinter.swift:19:51: warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |     public func recieve(_ log: Log) {
18 |         synchronizationQueue.async {
19 |             guard self.allowedCategories.contains(log.category) else {
   |                                                   `- warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |                 return
21 |             }
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:17:15: note: consider making struct 'Log' conform to the 'Sendable' protocol
15 | }
16 |
17 | public struct Log : Codable {
   |               `- note: consider making struct 'Log' conform to the 'Sendable' protocol
18 |
19 |     public let category: LogCategory
[13/18] Compiling FuturaLog LogPrinter.swift
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:14:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum LogCategory : String, Codable {
   |             `- note: consider making enum 'LogCategory' conform to the 'Sendable' protocol
 4 |
 5 |     case crash
   :
12 |     case void // not present in all property since void is special type which is ignored by default
13 |
14 |     public static let all: [LogCategory] = [.crash, .special, .error, .warning, .debug, .verbose, .info]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' 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
15 | }
16 |
/host/spi-builder-workspace/Sources/FuturaLog/LogMemoryStorage.swift:20:19: warning: capture of 'self' with non-sendable type 'LogMemoryStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public final class LogMemoryStorage : LogReceiver {
   |                    `- note: class 'LogMemoryStorage' does not conform to the 'Sendable' protocol
 4 |
 5 |     fileprivate let synchronizationQueue = DispatchQueue(label: "futura.log.storage.memory.syncQueue")
   :
18 |     public func recieve(_ log: Log) {
19 |         synchronizationQueue.async {
20 |             guard self.allowedCategories.contains(log.category) else {
   |                   `- warning: capture of 'self' with non-sendable type 'LogMemoryStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |                 return
22 |             }
/host/spi-builder-workspace/Sources/FuturaLog/LogMemoryStorage.swift:20:51: warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |     public func recieve(_ log: Log) {
19 |         synchronizationQueue.async {
20 |             guard self.allowedCategories.contains(log.category) else {
   |                                                   `- warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |                 return
22 |             }
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:17:15: note: consider making struct 'Log' conform to the 'Sendable' protocol
15 | }
16 |
17 | public struct Log : Codable {
   |               `- note: consider making struct 'Log' conform to the 'Sendable' protocol
18 |
19 |     public let category: LogCategory
/host/spi-builder-workspace/Sources/FuturaLog/LogPrinter.swift:19:19: warning: capture of 'self' with non-sendable type 'LogPrinter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public final class LogPrinter : LogReceiver {
   |                    `- note: class 'LogPrinter' does not conform to the 'Sendable' protocol
 4 |
 5 |     public let allowedCategories: [LogCategory]
   :
17 |     public func recieve(_ log: Log) {
18 |         synchronizationQueue.async {
19 |             guard self.allowedCategories.contains(log.category) else {
   |                   `- warning: capture of 'self' with non-sendable type 'LogPrinter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |                 return
21 |             }
/host/spi-builder-workspace/Sources/FuturaLog/LogPrinter.swift:19:51: warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |     public func recieve(_ log: Log) {
18 |         synchronizationQueue.async {
19 |             guard self.allowedCategories.contains(log.category) else {
   |                                                   `- warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |                 return
21 |             }
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:17:15: note: consider making struct 'Log' conform to the 'Sendable' protocol
15 | }
16 |
17 | public struct Log : Codable {
   |               `- note: consider making struct 'Log' conform to the 'Sendable' protocol
18 |
19 |     public let category: LogCategory
[14/18] Compiling FuturaLog LogReceiver.swift
[15/18] Compiling FuturaLog LogStorage.swift
[16/18] Compiling FuturaLog Logger.swift
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:5:28: warning: static property 'recievers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 | public final class Logger {
 4 |
 5 |     fileprivate static var recievers: Array<LogReceiver> = []
   |                            |- warning: static property 'recievers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: convert 'recievers' to a 'let' constant to make 'Sendable' shared state immutable
   |                            |- note: annotate 'recievers' 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 static let sessionID: String = UUID().description
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:9:23: warning: static property 'jsonDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |     public static let sessionID: String = UUID().description
 8 |
 9 |     public static let jsonDecoder: JSONDecoder = {
   |                       `- warning: static property 'jsonDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
10 |         let decoder = JSONDecoder()
11 |         let dateFormatter = DateFormatter()
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
 1 | open class JSONDecoder {
   |            `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
 2 |     public enum DateDecodingStrategy {
 3 |         case deferredToDate
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 1 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 2 |
 3 | public final class Logger {
   :
 7 |     public static let sessionID: String = UUID().description
 8 |
 9 |     public static let jsonDecoder: JSONDecoder = {
   |                       |- note: annotate 'jsonDecoder' 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 |         let decoder = JSONDecoder()
11 |         let dateFormatter = DateFormatter()
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:18:23: warning: static property 'jsonEncoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
16 |     }()
17 |
18 |     public static let jsonEncoder: JSONEncoder = {
   |                       |- warning: static property 'jsonEncoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'jsonEncoder' 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
19 |         let encoder = JSONEncoder()
20 |         let dateFormatter = DateFormatter()
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 1 | open class JSONEncoder {
   |            `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 2 |     public struct OutputFormatting : OptionSet {
 3 |         public let rawValue: UInt
[17/18] Compiling FuturaLog FlatLog.swift
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:5:28: warning: static property 'recievers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 | public final class Logger {
 4 |
 5 |     fileprivate static var recievers: Array<LogReceiver> = []
   |                            |- warning: static property 'recievers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                            |- note: convert 'recievers' to a 'let' constant to make 'Sendable' shared state immutable
   |                            |- note: annotate 'recievers' 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 static let sessionID: String = UUID().description
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:9:23: warning: static property 'jsonDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
 7 |     public static let sessionID: String = UUID().description
 8 |
 9 |     public static let jsonDecoder: JSONDecoder = {
   |                       `- warning: static property 'jsonDecoder' is not concurrency-safe because non-'Sendable' type 'JSONDecoder' may have shared mutable state; this is an error in the Swift 6 language mode
10 |         let decoder = JSONDecoder()
11 |         let dateFormatter = DateFormatter()
Foundation.JSONDecoder:1:12: note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
 1 | open class JSONDecoder {
   |            `- note: class 'JSONDecoder' does not conform to the 'Sendable' protocol
 2 |     public enum DateDecodingStrategy {
 3 |         case deferredToDate
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 1 | import Foundation
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 2 |
 3 | public final class Logger {
   :
 7 |     public static let sessionID: String = UUID().description
 8 |
 9 |     public static let jsonDecoder: JSONDecoder = {
   |                       |- note: annotate 'jsonDecoder' 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 |         let decoder = JSONDecoder()
11 |         let dateFormatter = DateFormatter()
/host/spi-builder-workspace/Sources/FuturaLog/Logger.swift:18:23: warning: static property 'jsonEncoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
16 |     }()
17 |
18 |     public static let jsonEncoder: JSONEncoder = {
   |                       |- warning: static property 'jsonEncoder' is not concurrency-safe because non-'Sendable' type 'JSONEncoder' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'jsonEncoder' 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
19 |         let encoder = JSONEncoder()
20 |         let dateFormatter = DateFormatter()
Foundation.JSONEncoder:1:12: note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 1 | open class JSONEncoder {
   |            `- note: class 'JSONEncoder' does not conform to the 'Sendable' protocol
 2 |     public struct OutputFormatting : OptionSet {
 3 |         public let rawValue: UInt
[18/18] Compiling FuturaLog LogServer.swift
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:14:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum LogCategory : String, Codable {
   |             `- note: consider making enum 'LogCategory' conform to the 'Sendable' protocol
 4 |
 5 |     case crash
   :
12 |     case void // not present in all property since void is special type which is ignored by default
13 |
14 |     public static let all: [LogCategory] = [.crash, .special, .error, .warning, .debug, .verbose, .info]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[LogCategory]' 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
15 | }
16 |
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:7:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:7:48: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:7:98: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                                                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:31:19: warning: capture of 'self' with non-sendable type 'LogServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public final class LogServer : LogReceiver {
   |                    `- note: class 'LogServer' does not conform to the 'Sendable' protocol
 4 |
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
   :
29 |     public func recieve(_ log: Log) {
30 |         synchronizationQueue.async {
31 |             guard self.allowedCategories.contains(log.category) else {
   |                   `- warning: capture of 'self' with non-sendable type 'LogServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |                 return
33 |             }
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:31:51: warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 |     public func recieve(_ log: Log) {
30 |         synchronizationQueue.async {
31 |             guard self.allowedCategories.contains(log.category) else {
   |                                                   `- warning: capture of 'log' with non-sendable type 'Log' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |                 return
33 |             }
/host/spi-builder-workspace/Sources/FuturaLog/Log.swift:17:15: note: consider making struct 'Log' conform to the 'Sendable' protocol
15 | }
16 |
17 | public struct Log : Codable {
   |               `- note: consider making struct 'Log' conform to the 'Sendable' protocol
18 |
19 |     public let category: LogCategory
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:50:23: error: cannot find 'URLRequest' in scope
48 |
49 |     private func uploadLogs() {
50 |         var request = URLRequest(url: serverURL.appendingPathComponent("uploadLogs"))
   |                       `- error: cannot find 'URLRequest' in scope
51 |         request.httpBody = try? Logger.jsonEncoder.encode(LogPackage(applicationID: applicationID, environment: environment, sessionID: Logger.sessionID, logs: logsBuffer))
52 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:54:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
52 |         request.httpMethod = "POST"
53 |         request.allHTTPHeaderFields = ["Authorization":"Bearer \(accessToken)"]
54 |         logServerSession.dataTask(with: request).resume()
   |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
55 |         logsBuffer = []
56 |         // TODO: think about logging failure and retry
BUILD FAILURE 6.0 linux