This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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

Successful build of Cosmic with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jnewc/Cosmic.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jnewc/Cosmic
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0c836f1 Fix double formatting with composite logger
Cloned https://github.com/jnewc/Cosmic.git
Revision (git rev-parse @):
0c836f1c9935418c613c3f9913e32412ded5c782
SUCCESS checkout https://github.com/jnewc/Cosmic.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/jnewc/Cosmic.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/9] Compiling Socket SocketUtils.swift
[5/9] Compiling Socket Socket.swift
[6/9] Emitting module Socket
[7/9] Compiling Socket SocketProtocols.swift
[8/9] Compiling Socket Socket+Hashable.swift
[9/9] Compiling Socket Socket+Equatable.swift
[10/34] Compiling Cosmic LogCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
   |                    `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 |     public static let global = LogFilters()
   |                       |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'global' 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
22 |
23 |     var filters: [LogFilter] = []
[11/34] Compiling Cosmic LogFilter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
   |                    `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 |     public static let global = LogFilters()
   |                       |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'global' 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
22 |
23 |     var filters: [LogFilter] = []
[12/34] Compiling Cosmic LogFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
   |                    `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 |     public static let global = LogFilters()
   |                       |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'global' 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
22 |
23 |     var filters: [LogFilter] = []
[13/36] Compiling Cosmic Commons.swift
[14/36] Compiling Cosmic DataUtility.swift
[15/36] Compiling Cosmic Debug.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 |     static var logger: Logger = {
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
14 |         let logger = CompositeLogger()
15 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/Extensions.swift:21:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
19 |     /// - Returns: A JSON string, or nil if the object can not be converted to JSON
20 |     /// - Throws: A JSON serialization error
21 |     open class func string(withJSONObject obj: Any, options opt: JSONSerialization.WritingOptions = []) -> String? {
   |     `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
22 |         if let data = try? self.data(withJSONObject: obj, options: opt) {
23 |             return String(data: data, encoding: .utf8)
[16/36] Compiling Cosmic Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 |     static var logger: Logger = {
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
14 |         let logger = CompositeLogger()
15 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/Extensions.swift:21:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
19 |     /// - Returns: A JSON string, or nil if the object can not be converted to JSON
20 |     /// - Throws: A JSON serialization error
21 |     open class func string(withJSONObject obj: Any, options opt: JSONSerialization.WritingOptions = []) -> String? {
   |     `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
22 |         if let data = try? self.data(withJSONObject: obj, options: opt) {
23 |             return String(data: data, encoding: .utf8)
[17/36] Compiling Cosmic LogLevel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/LogReporter.swift:13:17: warning: var 'LoggerCache' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// This cache contains loggers for every registered identifier
13 | fileprivate var LoggerCache: [String: Logger] = [:]
   |                 |- warning: var 'LoggerCache' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                 |- note: convert 'LoggerCache' to a 'let' constant to make 'Sendable' shared state immutable
   |                 |- note: annotate 'LoggerCache' 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
14 |
15 | public protocol LogReporter {
[18/36] Compiling Cosmic LogOutputStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/LogReporter.swift:13:17: warning: var 'LoggerCache' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// This cache contains loggers for every registered identifier
13 | fileprivate var LoggerCache: [String: Logger] = [:]
   |                 |- warning: var 'LoggerCache' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                 |- note: convert 'LoggerCache' to a 'let' constant to make 'Sendable' shared state immutable
   |                 |- note: annotate 'LoggerCache' 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
14 |
15 | public protocol LogReporter {
[19/36] Compiling Cosmic LogReporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/LogReporter.swift:13:17: warning: var 'LoggerCache' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// This cache contains loggers for every registered identifier
13 | fileprivate var LoggerCache: [String: Logger] = [:]
   |                 |- warning: var 'LoggerCache' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                 |- note: convert 'LoggerCache' to a 'let' constant to make 'Sendable' shared state immutable
   |                 |- note: annotate 'LoggerCache' 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
14 |
15 | public protocol LogReporter {
[20/36] Compiling Cosmic LambdaLogger.swift
[21/36] Compiling Cosmic MemoryLogger.swift
[22/36] Compiling Cosmic PrintLogger.swift
[23/36] Emitting module Cosmic
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
   |                    `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 |     public static let global = LogFilters()
   |                       |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'global' 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
22 |
23 |     var filters: [LogFilter] = []
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/LogReporter.swift:13:17: warning: var 'LoggerCache' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | /// This cache contains loggers for every registered identifier
13 | fileprivate var LoggerCache: [String: Logger] = [:]
   |                 |- warning: var 'LoggerCache' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                 |- note: convert 'LoggerCache' to a 'let' constant to make 'Sendable' shared state immutable
   |                 |- note: annotate 'LoggerCache' 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
14 |
15 | public protocol LogReporter {
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 41 | /// and reporting services.
 42 | ///
 43 | public protocol Logger: class {
    |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 44 |
 45 |     init()
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 |     static var logger: Logger = {
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
14 |         let logger = CompositeLogger()
15 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/Extensions.swift:21:5: warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
19 |     /// - Returns: A JSON string, or nil if the object can not be converted to JSON
20 |     /// - Throws: A JSON serialization error
21 |     open class func string(withJSONObject obj: Any, options opt: JSONSerialization.WritingOptions = []) -> String? {
   |     `- warning: non-'@objc' class method in extensions cannot be overridden; use 'public' instead
22 |         if let data = try? self.data(withJSONObject: obj, options: opt) {
23 |             return String(data: data, encoding: .utf8)
[24/36] Compiling Cosmic PapertrailLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Socket/SocketLogger.swift:68:44: warning: capture of 'self' with non-sendable type 'SocketLogger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public class SocketLogger: NSObject, Logger {
   |              `- note: class 'SocketLogger' does not conform to the 'Sendable' protocol
25 |
26 |     public var logLevel: LogLevel = .info
   :
66 |             if !cache.isEmpty {
67 |                 // TODO FIXME : on what thread should this be dispatched
68 |                 DispatchQueue.main.async { self.attemptSend() }
   |                                            `- warning: capture of 'self' with non-sendable type 'SocketLogger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 |             }
70 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 |     static var logger: Logger = {
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
14 |         let logger = CompositeLogger()
15 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Socket/SocketLogger.swift:68:44: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
66 |             if !cache.isEmpty {
67 |                 // TODO FIXME : on what thread should this be dispatched
68 |                 DispatchQueue.main.async { self.attemptSend() }
   |                                            |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                                            `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
69 |             }
70 |         }
[25/36] Compiling Cosmic SocketLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Socket/SocketLogger.swift:68:44: warning: capture of 'self' with non-sendable type 'SocketLogger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | }
23 |
24 | public class SocketLogger: NSObject, Logger {
   |              `- note: class 'SocketLogger' does not conform to the 'Sendable' protocol
25 |
26 |     public var logLevel: LogLevel = .info
   :
66 |             if !cache.isEmpty {
67 |                 // TODO FIXME : on what thread should this be dispatched
68 |                 DispatchQueue.main.async { self.attemptSend() }
   |                                            `- warning: capture of 'self' with non-sendable type 'SocketLogger' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 |             }
70 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 |     static var logger: Logger = {
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
14 |         let logger = CompositeLogger()
15 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Socket/SocketLogger.swift:68:44: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
66 |             if !cache.isEmpty {
67 |                 // TODO FIXME : on what thread should this be dispatched
68 |                 DispatchQueue.main.async { self.attemptSend() }
   |                                            |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
   |                                            `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
69 |             }
70 |         }
[26/36] Compiling Cosmic LogItLogger.swift
[27/36] Compiling Cosmic LogglyLogger.swift
[28/36] Compiling Cosmic LogzLogger.swift
[29/36] Compiling Cosmic Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 41 | /// and reporting services.
 42 | ///
 43 | public protocol Logger: class {
    |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 44 |
 45 |     init()
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
   |                    `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 |     public static let global = LogFilters()
   |                       |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'global' 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
22 |
23 |     var filters: [LogFilter] = []
[30/36] Compiling Cosmic CompletionFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 41 | /// and reporting services.
 42 | ///
 43 | public protocol Logger: class {
    |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 44 |
 45 |     init()
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
   |                    `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 |     public static let global = LogFilters()
   |                       |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'global' 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
22 |
23 |     var filters: [LogFilter] = []
[31/36] Compiling Cosmic JSONFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/Logger.swift:43:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 41 | /// and reporting services.
 42 | ///
 43 | public protocol Logger: class {
    |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 44 |
 45 |     init()
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Base/LogFilter.swift:21:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | /// A class that holds global log filters
19 | public final class LogFilters {
   |                    `- note: class 'LogFilters' does not conform to the 'Sendable' protocol
20 |
21 |     public static let global = LogFilters()
   |                       |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'LogFilters' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'global' 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
22 |
23 |     var filters: [LogFilter] = []
[32/36] Compiling Cosmic SyslogFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 |     static var logger: Logger = {
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
14 |         let logger = CompositeLogger()
15 | #if DEBUG
[33/36] Compiling Cosmic CompositeLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 |     static var logger: Logger = {
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
14 |         let logger = CompositeLogger()
15 | #if DEBUG
[34/36] Compiling Cosmic HTTPLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/Debug.swift:13:16: warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 | internal final class Debug {
12 |
13 |     static var logger: Logger = {
   |                |- warning: static property 'logger' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
14 |         let logger = CompositeLogger()
15 | #if DEBUG
[35/36] Compiling Cosmic Operators.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:73:18: warning: capture of 'self' with non-sendable type 'UniversalSocket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | class UniversalSocket {
    |       `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
 18 |
 19 |     let socket: Socket
    :
 71 |             var data: Data = Data()
 72 |
 73 |             try? self.forProtocol(.udp) {
    |                  `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |                 let _ = try? self.socket.listen(
 75 |                     forMessage: &data,
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:78:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 |                     on: Int(self.config.port)
 77 |                 )
 78 |                 completion(data)
    |                 |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' 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'
 79 |             }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:74:30: warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | class UniversalSocket {
    |       `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
 18 |
 19 |     let socket: Socket
    :
 72 |
 73 |             try? self.forProtocol(.udp) {
 74 |                 let _ = try? self.socket.listen(
    |                              `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
 75 |                     forMessage: &data,
 76 |                     on: Int(self.config.port)
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:78:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
 76 |                     on: Int(self.config.port)
 77 |                 )
 78 |                 completion(data)
    |                 |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 79 |             }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:82:39: warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | class UniversalSocket {
    |       `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
 18 |
 19 |     let socket: Socket
    :
 80 |
 81 |             try? self.forProtocol(.tcp) {
 82 |                 let readSocket = try? self.socket.acceptClientConnection()
    |                                       `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
 83 |                 let _ = try? readSocket?.read(into: &data)
 84 |                 completion(data)
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:84:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
 82 |                 let readSocket = try? self.socket.acceptClientConnection()
 83 |                 let _ = try? readSocket?.read(into: &data)
 84 |                 completion(data)
    |                 |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 85 |             }
 86 |
[36/36] Compiling Cosmic UniversalSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:73:18: warning: capture of 'self' with non-sendable type 'UniversalSocket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | class UniversalSocket {
    |       `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
 18 |
 19 |     let socket: Socket
    :
 71 |             var data: Data = Data()
 72 |
 73 |             try? self.forProtocol(.udp) {
    |                  `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |                 let _ = try? self.socket.listen(
 75 |                     forMessage: &data,
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:78:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 |                     on: Int(self.config.port)
 77 |                 )
 78 |                 completion(data)
    |                 |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' 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'
 79 |             }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:74:30: warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | class UniversalSocket {
    |       `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
 18 |
 19 |     let socket: Socket
    :
 72 |
 73 |             try? self.forProtocol(.udp) {
 74 |                 let _ = try? self.socket.listen(
    |                              `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
 75 |                     forMessage: &data,
 76 |                     on: Int(self.config.port)
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:78:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
 76 |                     on: Int(self.config.port)
 77 |                 )
 78 |                 completion(data)
    |                 |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 79 |             }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:82:39: warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
 15 | }
 16 |
 17 | class UniversalSocket {
    |       `- note: class 'UniversalSocket' does not conform to the 'Sendable' protocol
 18 |
 19 |     let socket: Socket
    :
 80 |
 81 |             try? self.forProtocol(.tcp) {
 82 |                 let readSocket = try? self.socket.acceptClientConnection()
    |                                       `- warning: capture of 'self' with non-sendable type 'UniversalSocket' in an isolated closure; this is an error in the Swift 6 language mode
 83 |                 let _ = try? readSocket?.read(into: &data)
 84 |                 completion(data)
/Users/admin/builder/spi-builder-workspace/Sources/Cosmic/Utilities/UniversalSocket.swift:84:17: warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
 82 |                 let readSocket = try? self.socket.acceptClientConnection()
 83 |                 let _ = try? readSocket?.read(into: &data)
 84 |                 completion(data)
    |                 |- warning: capture of 'completion' with non-sendable type '(Data) -> ()' in an isolated closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 85 |             }
 86 |
Build complete! (24.23s)
Fetching https://github.com/Kitura/BlueSocket
Fetching https://github.com/apple/swift-argument-parser
[1/2942] Fetching bluesocket
[737/14621] Fetching bluesocket, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.59s)
Fetched https://github.com/Kitura/BlueSocket from cache (1.59s)
Computing version for https://github.com/Kitura/BlueSocket
Computed https://github.com/Kitura/BlueSocket at 2.0.2 (0.73s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.69s)
Creating working copy for https://github.com/Kitura/BlueSocket
Working copy of https://github.com/Kitura/BlueSocket resolved at 2.0.2
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "bluesocket",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.2",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/BlueSocket"
    }
  ],
  "manifest_display_name" : "Cosmic",
  "name" : "Cosmic",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Cosmic",
      "targets" : [
        "Cosmic"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "CosmicTests",
      "module_type" : "SwiftTarget",
      "name" : "CosmicTests",
      "path" : "Tests/CosmicTests",
      "sources" : [
        "CompositeLoggerTests.swift",
        "ExtensionsTests.swift",
        "FormatterTests.swift",
        "HTTPLoggerTests.swift",
        "Helpers/Extensions.swift",
        "Helpers/MockURLSession.swift",
        "Helpers/RegularExpressionAsserts.swift",
        "LamdaLoggerTests.swift",
        "LogFilterTests.swift",
        "LogItLoggerTests.swift",
        "LogMetadataTests.swift",
        "LogReporterTests.swift",
        "LoggerTests.swift",
        "OperatorsTests.swift",
        "PrintLoggerTests.swift",
        "ServiceLoggerTests.swift",
        "SocketLoggerTests.swift",
        "UniversalSocketTests.swift"
      ],
      "target_dependencies" : [
        "Cosmic"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Cosmic",
      "module_type" : "SwiftTarget",
      "name" : "Cosmic",
      "path" : "Sources/Cosmic",
      "product_dependencies" : [
        "Socket"
      ],
      "product_memberships" : [
        "Cosmic"
      ],
      "sources" : [
        "Base/LogCache.swift",
        "Base/LogFilter.swift",
        "Base/LogFormatter.swift",
        "Base/LogLevel.swift",
        "Base/LogOutputStream.swift",
        "Base/LogReporter.swift",
        "Base/Logger.swift",
        "Formatters/CompletionFormatter.swift",
        "Formatters/JSONFormatter.swift",
        "Formatters/SyslogFormatter.swift",
        "Loggers/CompositeLogger.swift",
        "Loggers/HTTPLogger.swift",
        "Loggers/LambdaLogger.swift",
        "Loggers/MemoryLogger.swift",
        "Loggers/PrintLogger.swift",
        "Socket/Services/LogItLogger.swift",
        "Socket/Services/LogglyLogger.swift",
        "Socket/Services/LogzLogger.swift",
        "Socket/Services/PapertrailLogger.swift",
        "Socket/SocketLogger.swift",
        "Utilities/Commons.swift",
        "Utilities/DataUtility.swift",
        "Utilities/Debug.swift",
        "Utilities/Extensions.swift",
        "Utilities/Operators.swift",
        "Utilities/UniversalSocket.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.