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 SignalRClient, reference 1.1.0 (11e727), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 23:32:19 UTC.

Swift 6 data race errors: 11

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/moozzyk/SignalR-Client-Swift.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/moozzyk/SignalR-Client-Swift
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at 11e727b Bump SignalRClientSwift to 1.1.0
Cloned https://github.com/moozzyk/SignalR-Client-Swift.git
Revision (git rev-parse @):
11e727b217b67b1440612df8aa0516d3013cccba
SUCCESS checkout https://github.com/moozzyk/SignalR-Client-Swift.git at 1.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "signalr-client-swift",
      "name": "SignalRClient",
      "url": "https://github.com/moozzyk/SignalR-Client-Swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SignalR-Client-Swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/moozzyk/SignalR-Client-Swift.git
[1/3626] Fetching signalr-client-swift
Fetched https://github.com/moozzyk/SignalR-Client-Swift.git from cache (1.17s)
Creating working copy for https://github.com/moozzyk/SignalR-Client-Swift.git
Working copy of https://github.com/moozzyk/SignalR-Client-Swift.git resolved at 1.1.0 (11e727b)
warning: '.resolve-product-dependencies': dependency 'signalr-client-swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/moozzyk/SignalR-Client-Swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/30] Emitting module SignalRClient
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:72:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
72 |     static var shared = DefaultHttpClientSessionDelegate()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 |     var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:19: warning: non-final class 'DefaultHttpClientSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
69 | }
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
   |                   `- warning: non-final class 'DefaultHttpClientSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
72 |     static var shared = DefaultHttpClientSessionDelegate()
73 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:74:9: warning: stored property 'authenticationChallengeHandler' of 'Sendable'-conforming class 'DefaultHttpClientSessionDelegate' is mutable; this is an error in the Swift 6 language mode
72 |     static var shared = DefaultHttpClientSessionDelegate()
73 |
74 |     var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
   |         `- warning: stored property 'authenticationChallengeHandler' of 'Sendable'-conforming class 'DefaultHttpClientSessionDelegate' is mutable; this is an error in the Swift 6 language mode
75 |
76 |     func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:20:23: warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
   |                       |- warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webSockets' 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
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:18:23: warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
16 |     }
17 |
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
   |                       |- warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'longPolling' 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 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:270:16: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
264 | }
265 |
266 | public class PingMessage : HubMessage, Encodable {
    |              `- note: class 'PingMessage' does not conform to the 'Sendable' protocol
267 |     public let type = MessageType.Ping
268 |     private init() { }
269 |
270 |     static let instance = PingMessage()
    |                |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'instance' 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
271 | }
272 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:19:16: warning: static property 'serverSentEvents' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
17 |
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
   |                |- warning: static property 'serverSentEvents' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'serverSentEvents' 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
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:14: warning: non-final class 'WebsocketsTransport' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 10 |
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
    |              `- warning: non-final class 'WebsocketsTransport' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:13:17: warning: stored property 'logger' of 'Sendable'-conforming class 'WebsocketsTransport' has non-sendable type 'any Logger'; this is an error in the Swift 6 language mode
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
 13 |     private let logger: Logger
    |                 `- warning: stored property 'logger' of 'Sendable'-conforming class 'WebsocketsTransport' has non-sendable type 'any Logger'; this is an error in the Swift 6 language mode
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/Logger.swift:21:17: note: protocol 'Logger' does not conform to the 'Sendable' protocol
 19 |  Protocol for implementing loggers.
 20 |  */
 21 | public protocol Logger {
    |                 `- note: protocol 'Logger' does not conform to the 'Sendable' protocol
 22 |     /**
 23 |      Invoked by the client to write a log entry.
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'WebsocketsTransport' is mutable; this is an error in the Swift 6 language mode
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
    |                 `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'WebsocketsTransport' is mutable; this is an error in the Swift 6 language mode
 16 |     private var webSocketTask: URLSessionWebSocketTask?
 17 |     private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
[4/33] Compiling SignalRClient TransportDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:18:23: warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
16 |     }
17 |
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
   |                       |- warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'longPolling' 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 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:19:16: warning: static property 'serverSentEvents' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
17 |
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
   |                |- warning: static property 'serverSentEvents' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'serverSentEvents' 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
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:20:23: warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
   |                       |- warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webSockets' 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
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:14: warning: non-final class 'WebsocketsTransport' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 10 |
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
    |              `- warning: non-final class 'WebsocketsTransport' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:13:17: warning: stored property 'logger' of 'Sendable'-conforming class 'WebsocketsTransport' has non-sendable type 'any Logger'; this is an error in the Swift 6 language mode
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
 13 |     private let logger: Logger
    |                 `- warning: stored property 'logger' of 'Sendable'-conforming class 'WebsocketsTransport' has non-sendable type 'any Logger'; this is an error in the Swift 6 language mode
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/Logger.swift:21:17: note: protocol 'Logger' does not conform to the 'Sendable' protocol
 19 |  Protocol for implementing loggers.
 20 |  */
 21 | public protocol Logger {
    |                 `- note: protocol 'Logger' does not conform to the 'Sendable' protocol
 22 |     /**
 23 |      Invoked by the client to write a log entry.
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'WebsocketsTransport' is mutable; this is an error in the Swift 6 language mode
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
    |                 `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'WebsocketsTransport' is mutable; this is an error in the Swift 6 language mode
 16 |     private var webSocketTask: URLSessionWebSocketTask?
 17 |     private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:47:57: warning: passing non-sendable parameter 'sendDidComplete' to function expecting a @Sendable closure
 43 |     }
 44 |
 45 |     public func send(data: Data, sendDidComplete: @escaping (Error?) -> Void) {
    |                                  `- note: parameter 'sendDidComplete' is implicitly non-sendable
 46 |         let message = URLSessionWebSocketTask.Message.data(data)
 47 |         webSocketTask?.send(message, completionHandler: sendDidComplete)
    |                                                         `- warning: passing non-sendable parameter 'sendDidComplete' to function expecting a @Sendable closure
 48 |     }
 49 |
[5/33] Compiling SignalRClient TransportType.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:18:23: warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
16 |     }
17 |
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
   |                       |- warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'longPolling' 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 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:19:16: warning: static property 'serverSentEvents' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
17 |
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
   |                |- warning: static property 'serverSentEvents' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'serverSentEvents' 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
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:20:23: warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
   |                       |- warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webSockets' 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
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:14: warning: non-final class 'WebsocketsTransport' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 10 |
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
    |              `- warning: non-final class 'WebsocketsTransport' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:13:17: warning: stored property 'logger' of 'Sendable'-conforming class 'WebsocketsTransport' has non-sendable type 'any Logger'; this is an error in the Swift 6 language mode
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
 13 |     private let logger: Logger
    |                 `- warning: stored property 'logger' of 'Sendable'-conforming class 'WebsocketsTransport' has non-sendable type 'any Logger'; this is an error in the Swift 6 language mode
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/Logger.swift:21:17: note: protocol 'Logger' does not conform to the 'Sendable' protocol
 19 |  Protocol for implementing loggers.
 20 |  */
 21 | public protocol Logger {
    |                 `- note: protocol 'Logger' does not conform to the 'Sendable' protocol
 22 |     /**
 23 |      Invoked by the client to write a log entry.
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'WebsocketsTransport' is mutable; this is an error in the Swift 6 language mode
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
    |                 `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'WebsocketsTransport' is mutable; this is an error in the Swift 6 language mode
 16 |     private var webSocketTask: URLSessionWebSocketTask?
 17 |     private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:47:57: warning: passing non-sendable parameter 'sendDidComplete' to function expecting a @Sendable closure
 43 |     }
 44 |
 45 |     public func send(data: Data, sendDidComplete: @escaping (Error?) -> Void) {
    |                                  `- note: parameter 'sendDidComplete' is implicitly non-sendable
 46 |         let message = URLSessionWebSocketTask.Message.data(data)
 47 |         webSocketTask?.send(message, completionHandler: sendDidComplete)
    |                                                         `- warning: passing non-sendable parameter 'sendDidComplete' to function expecting a @Sendable closure
 48 |     }
 49 |
[6/33] Compiling SignalRClient WebsocketsTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:18:23: warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
16 |     }
17 |
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
   |                       |- warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'longPolling' 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 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:19:16: warning: static property 'serverSentEvents' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
17 |
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
   |                |- warning: static property 'serverSentEvents' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: annotate 'serverSentEvents' 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
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:20:23: warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
   |                       |- warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webSockets' 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
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:14: warning: non-final class 'WebsocketsTransport' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 10 |
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
    |              `- warning: non-final class 'WebsocketsTransport' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:13:17: warning: stored property 'logger' of 'Sendable'-conforming class 'WebsocketsTransport' has non-sendable type 'any Logger'; this is an error in the Swift 6 language mode
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
 13 |     private let logger: Logger
    |                 `- warning: stored property 'logger' of 'Sendable'-conforming class 'WebsocketsTransport' has non-sendable type 'any Logger'; this is an error in the Swift 6 language mode
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/Logger.swift:21:17: note: protocol 'Logger' does not conform to the 'Sendable' protocol
 19 |  Protocol for implementing loggers.
 20 |  */
 21 | public protocol Logger {
    |                 `- note: protocol 'Logger' does not conform to the 'Sendable' protocol
 22 |     /**
 23 |      Invoked by the client to write a log entry.
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:17: warning: stored property 'urlSession' of 'Sendable'-conforming class 'WebsocketsTransport' is mutable; this is an error in the Swift 6 language mode
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
    |                 `- warning: stored property 'urlSession' of 'Sendable'-conforming class 'WebsocketsTransport' is mutable; this is an error in the Swift 6 language mode
 16 |     private var webSocketTask: URLSessionWebSocketTask?
 17 |     private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:47:57: warning: passing non-sendable parameter 'sendDidComplete' to function expecting a @Sendable closure
 43 |     }
 44 |
 45 |     public func send(data: Data, sendDidComplete: @escaping (Error?) -> Void) {
    |                                  `- note: parameter 'sendDidComplete' is implicitly non-sendable
 46 |         let message = URLSessionWebSocketTask.Message.data(data)
 47 |         webSocketTask?.send(message, completionHandler: sendDidComplete)
    |                                                         `- warning: passing non-sendable parameter 'sendDidComplete' to function expecting a @Sendable closure
 48 |     }
 49 |
[7/33] Compiling SignalRClient CodableHelpers.swift
[8/33] Compiling SignalRClient Connection.swift
[9/33] Compiling SignalRClient ConnectionDelegate.swift
[10/33] Compiling SignalRClient DefaultHttpClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:72:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
72 |     static var shared = DefaultHttpClientSessionDelegate()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 |     var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:19: warning: non-final class 'DefaultHttpClientSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
69 | }
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
   |                   `- warning: non-final class 'DefaultHttpClientSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
72 |     static var shared = DefaultHttpClientSessionDelegate()
73 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:74:9: warning: stored property 'authenticationChallengeHandler' of 'Sendable'-conforming class 'DefaultHttpClientSessionDelegate' is mutable; this is an error in the Swift 6 language mode
72 |     static var shared = DefaultHttpClientSessionDelegate()
73 |
74 |     var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
   |         `- warning: stored property 'authenticationChallengeHandler' of 'Sendable'-conforming class 'DefaultHttpClientSessionDelegate' is mutable; this is an error in the Swift 6 language mode
75 |
76 |     func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:54:13: warning: capture of 'completionHandler' with non-sendable type '(HttpResponse?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 |             }
53 |
54 |             completionHandler(resp, error)
   |             |- warning: capture of 'completionHandler' with non-sendable type '(HttpResponse?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
55 |         }).resume()
56 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:20:23: warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
   |                       |- warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webSockets' 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
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:18:23: warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
16 |     }
17 |
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
   |                       |- warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'longPolling' 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 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
[11/33] Compiling SignalRClient DefaultTransportFactory.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:72:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
72 |     static var shared = DefaultHttpClientSessionDelegate()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 |     var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:19: warning: non-final class 'DefaultHttpClientSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
69 | }
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
   |                   `- warning: non-final class 'DefaultHttpClientSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
72 |     static var shared = DefaultHttpClientSessionDelegate()
73 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:74:9: warning: stored property 'authenticationChallengeHandler' of 'Sendable'-conforming class 'DefaultHttpClientSessionDelegate' is mutable; this is an error in the Swift 6 language mode
72 |     static var shared = DefaultHttpClientSessionDelegate()
73 |
74 |     var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
   |         `- warning: stored property 'authenticationChallengeHandler' of 'Sendable'-conforming class 'DefaultHttpClientSessionDelegate' is mutable; this is an error in the Swift 6 language mode
75 |
76 |     func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:54:13: warning: capture of 'completionHandler' with non-sendable type '(HttpResponse?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 |             }
53 |
54 |             completionHandler(resp, error)
   |             |- warning: capture of 'completionHandler' with non-sendable type '(HttpResponse?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
55 |         }).resume()
56 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:20:23: warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
   |                       |- warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webSockets' 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
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:18:23: warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
16 |     }
17 |
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
   |                       |- warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'longPolling' 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 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
[12/33] Compiling SignalRClient HandshakeProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:72:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
72 |     static var shared = DefaultHttpClientSessionDelegate()
   |                |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 |     var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:19: warning: non-final class 'DefaultHttpClientSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
69 | }
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
   |                   `- warning: non-final class 'DefaultHttpClientSessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
72 |     static var shared = DefaultHttpClientSessionDelegate()
73 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:74:9: warning: stored property 'authenticationChallengeHandler' of 'Sendable'-conforming class 'DefaultHttpClientSessionDelegate' is mutable; this is an error in the Swift 6 language mode
72 |     static var shared = DefaultHttpClientSessionDelegate()
73 |
74 |     var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
   |         `- warning: stored property 'authenticationChallengeHandler' of 'Sendable'-conforming class 'DefaultHttpClientSessionDelegate' is mutable; this is an error in the Swift 6 language mode
75 |
76 |     func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:54:13: warning: capture of 'completionHandler' with non-sendable type '(HttpResponse?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 |             }
53 |
54 |             completionHandler(resp, error)
   |             |- warning: capture of 'completionHandler' with non-sendable type '(HttpResponse?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
55 |         }).resume()
56 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:20:23: warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
   |                       |- warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webSockets' 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
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:18:23: warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
16 |     }
17 |
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
   |                       |- warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'longPolling' 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 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
[13/33] Compiling SignalRClient StreamHandle.swift
[14/33] Compiling SignalRClient TransferFormat.swift
[15/33] Compiling SignalRClient Transport.swift
[16/33] Compiling SignalRClient LongPollingTransport.swift
[17/33] Compiling SignalRClient NegotiationResponse.swift
[18/33] Compiling SignalRClient ReconnectPolicy.swift
[19/33] Compiling SignalRClient HttpClientProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:20:23: warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
   |                       |- warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webSockets' 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
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:187:13: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
185 |         logger.log(logLevel: .debug, message: "Invoking connectionDidFailToOpen")
186 |         options.callbackQueue.async {
187 |             self.delegate?.connectionDidFailToOpen(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |         }
189 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:198:17: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 |             // Never synchronously respond to avoid upstream deadlocks based on async assumptions
197 |             options.callbackQueue.async {
198 |                 sendDidComplete(SignalRError.invalidState)
    |                 |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
199 |             }
200 |             return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:230:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
228 |             logger.log(logLevel: .debug, message: "Invoking connectionDidClose (\(#function): \(#line))")
229 |             options.callbackQueue.async {
230 |                 self.delegate?.connectionDidClose(error: stopError)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 |             }
232 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:246:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
244 |             self.connectionId = connectionId
245 |             options.callbackQueue.async {
246 |                 self.delegate?.connectionDidOpen(connection: self)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 |             }
248 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:256:13: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
254 |         logger.log(logLevel: .debug, message: "Received data from transport")
255 |         options.callbackQueue.async {
256 |             self.delegate?.connectionDidReceiveData(connection: self, data: data)
    |             `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
257 |         }
258 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:273:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
271 |             logger.log(logLevel: .debug, message: "Invoking connectionDidFailToOpen")
272 |             options.callbackQueue.async {
273 |                 self.delegate?.connectionDidFailToOpen(error: self.stopError ?? error!)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |             }
275 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:281:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
279 |
280 |             options.callbackQueue.async {
281 |                 self.delegate?.connectionDidClose(error: self.stopError ?? error)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
282 |             }
283 |         }
[20/33] Compiling SignalRClient HttpConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:20:23: warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
   |                       |- warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webSockets' 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
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:187:13: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
185 |         logger.log(logLevel: .debug, message: "Invoking connectionDidFailToOpen")
186 |         options.callbackQueue.async {
187 |             self.delegate?.connectionDidFailToOpen(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |         }
189 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:198:17: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 |             // Never synchronously respond to avoid upstream deadlocks based on async assumptions
197 |             options.callbackQueue.async {
198 |                 sendDidComplete(SignalRError.invalidState)
    |                 |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
199 |             }
200 |             return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:230:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
228 |             logger.log(logLevel: .debug, message: "Invoking connectionDidClose (\(#function): \(#line))")
229 |             options.callbackQueue.async {
230 |                 self.delegate?.connectionDidClose(error: stopError)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 |             }
232 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:246:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
244 |             self.connectionId = connectionId
245 |             options.callbackQueue.async {
246 |                 self.delegate?.connectionDidOpen(connection: self)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 |             }
248 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:256:13: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
254 |         logger.log(logLevel: .debug, message: "Received data from transport")
255 |         options.callbackQueue.async {
256 |             self.delegate?.connectionDidReceiveData(connection: self, data: data)
    |             `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
257 |         }
258 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:273:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
271 |             logger.log(logLevel: .debug, message: "Invoking connectionDidFailToOpen")
272 |             options.callbackQueue.async {
273 |                 self.delegate?.connectionDidFailToOpen(error: self.stopError ?? error!)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |             }
275 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:281:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
279 |
280 |             options.callbackQueue.async {
281 |                 self.delegate?.connectionDidClose(error: self.stopError ?? error)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
282 |             }
283 |         }
[21/33] Compiling SignalRClient HttpConnectionOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:20:23: warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
18 |     public static let longPolling = TransportType(rawValue: 1 << 0)
19 |     static let serverSentEvents = TransportType(rawValue: 1 << 1) // Not supported
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
   |                       |- warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'webSockets' 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
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:187:13: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
185 |         logger.log(logLevel: .debug, message: "Invoking connectionDidFailToOpen")
186 |         options.callbackQueue.async {
187 |             self.delegate?.connectionDidFailToOpen(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |         }
189 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:198:17: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 |             // Never synchronously respond to avoid upstream deadlocks based on async assumptions
197 |             options.callbackQueue.async {
198 |                 sendDidComplete(SignalRError.invalidState)
    |                 |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
199 |             }
200 |             return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:230:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
228 |             logger.log(logLevel: .debug, message: "Invoking connectionDidClose (\(#function): \(#line))")
229 |             options.callbackQueue.async {
230 |                 self.delegate?.connectionDidClose(error: stopError)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 |             }
232 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:246:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
244 |             self.connectionId = connectionId
245 |             options.callbackQueue.async {
246 |                 self.delegate?.connectionDidOpen(connection: self)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
247 |             }
248 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:256:13: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
254 |         logger.log(logLevel: .debug, message: "Received data from transport")
255 |         options.callbackQueue.async {
256 |             self.delegate?.connectionDidReceiveData(connection: self, data: data)
    |             `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
257 |         }
258 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:273:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
271 |             logger.log(logLevel: .debug, message: "Invoking connectionDidFailToOpen")
272 |             options.callbackQueue.async {
273 |                 self.delegate?.connectionDidFailToOpen(error: self.stopError ?? error!)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |             }
275 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:281:17: warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  9 | import Foundation
 10 |
 11 | public class HttpConnection: Connection {
    |              `- note: class 'HttpConnection' does not conform to the 'Sendable' protocol
 12 |     private let connectionQueue: DispatchQueue
 13 |     private let startDispatchGroup: DispatchGroup
    :
279 |
280 |             options.callbackQueue.async {
281 |                 self.delegate?.connectionDidClose(error: self.stopError ?? error)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
282 |             }
283 |         }
[22/33] Compiling SignalRClient ReconnectableConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:65:17: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 63 |             // Never synchronously respond to avoid upstream deadlocks based on async assumptions
 64 |             callbackQueue.async {
 65 |                 sendDidComplete(SignalRError.connectionIsReconnecting)
    |                 |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 66 |             }
 67 |             return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:128:21: warning: capture of 'self' with non-sendable type 'ReconnectableConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | internal class ReconnectableConnection: Connection {
    |                `- note: class 'ReconnectableConnection' does not conform to the 'Sendable' protocol
 11 |     private let connectionQueue = DispatchQueue(label: "SignalR.reconnection.queue")
 12 |     private let callbackQueue: DispatchQueue
    :
126 |                 // TODO: not great but running on the connectionQueue deadlocks
127 |                 DispatchQueue.main.asyncAfter(deadline: .now() + nextAttemptInterval) {
128 |                     self.startInternal()
    |                     `- warning: capture of 'self' with non-sendable type 'ReconnectableConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 |                 }
130 |                 // running on a random (possibly main) queue but HubConnection will
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:25:35: warning: capture of 'invocationDidComplete' with non-sendable type '(T?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 |         self.logger = logger
 24 |         self.invocationDidComplete = {result, error in
 25 |             callbackQueue.async { invocationDidComplete(result, error)}
    |                                   |- warning: capture of 'invocationDidComplete' with non-sendable type '(T?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                   `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 26 |         }
 27 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:25:57: warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 16 | }
 17 |
 18 | internal class InvocationHandler<T: Decodable>: ServerInvocationHandler {
    |                                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 19 |     private let logger: Logger
 20 |     private let invocationDidComplete: (T?, Error?) -> Void
    :
 23 |         self.logger = logger
 24 |         self.invocationDidComplete = {result, error in
 25 |             callbackQueue.async { invocationDidComplete(result, error)}
    |                                                         `- warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 26 |         }
 27 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:77:68: warning: capture of 'streamItemReceived' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 |     init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
 76 |         self.logger = logger
 77 |         self.streamItemReceived =  { item in callbackQueue.async { streamItemReceived(item) } }
    |                                                                    |- warning: capture of 'streamItemReceived' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 78 |         self.invocationDidComplete = { error in callbackQueue.async { invocationDidComplete(error) } }
 79 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:77:87: warning: capture of 'item' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 | }
 69 |
 70 | internal class StreamInvocationHandler<T: Decodable>: ServerInvocationHandler {
    |                                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 71 |     private let logger: Logger
 72 |     private let streamItemReceived: (T) -> Void
    :
 75 |     init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
 76 |         self.logger = logger
 77 |         self.streamItemReceived =  { item in callbackQueue.async { streamItemReceived(item) } }
    |                                                                                       `- warning: capture of 'item' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 78 |         self.invocationDidComplete = { error in callbackQueue.async { invocationDidComplete(error) } }
 79 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:78:71: warning: capture of 'invocationDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 |         self.logger = logger
 77 |         self.streamItemReceived =  { item in callbackQueue.async { streamItemReceived(item) } }
 78 |         self.invocationDidComplete = { error in callbackQueue.async { invocationDidComplete(error) } }
    |                                                                       |- warning: capture of 'invocationDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                       `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 79 |     }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:128:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
126 |                 // TODO: not great but running on the connectionQueue deadlocks
127 |                 DispatchQueue.main.asyncAfter(deadline: .now() + nextAttemptInterval) {
128 |                     self.startInternal()
    |                     |- 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
129 |                 }
130 |                 // running on a random (possibly main) queue but HubConnection will
[23/33] Compiling SignalRClient ServerInvocationHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:65:17: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 63 |             // Never synchronously respond to avoid upstream deadlocks based on async assumptions
 64 |             callbackQueue.async {
 65 |                 sendDidComplete(SignalRError.connectionIsReconnecting)
    |                 |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 66 |             }
 67 |             return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:128:21: warning: capture of 'self' with non-sendable type 'ReconnectableConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | internal class ReconnectableConnection: Connection {
    |                `- note: class 'ReconnectableConnection' does not conform to the 'Sendable' protocol
 11 |     private let connectionQueue = DispatchQueue(label: "SignalR.reconnection.queue")
 12 |     private let callbackQueue: DispatchQueue
    :
126 |                 // TODO: not great but running on the connectionQueue deadlocks
127 |                 DispatchQueue.main.asyncAfter(deadline: .now() + nextAttemptInterval) {
128 |                     self.startInternal()
    |                     `- warning: capture of 'self' with non-sendable type 'ReconnectableConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 |                 }
130 |                 // running on a random (possibly main) queue but HubConnection will
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:25:35: warning: capture of 'invocationDidComplete' with non-sendable type '(T?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 |         self.logger = logger
 24 |         self.invocationDidComplete = {result, error in
 25 |             callbackQueue.async { invocationDidComplete(result, error)}
    |                                   |- warning: capture of 'invocationDidComplete' with non-sendable type '(T?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                   `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 26 |         }
 27 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:25:57: warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 16 | }
 17 |
 18 | internal class InvocationHandler<T: Decodable>: ServerInvocationHandler {
    |                                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 19 |     private let logger: Logger
 20 |     private let invocationDidComplete: (T?, Error?) -> Void
    :
 23 |         self.logger = logger
 24 |         self.invocationDidComplete = {result, error in
 25 |             callbackQueue.async { invocationDidComplete(result, error)}
    |                                                         `- warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 26 |         }
 27 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:77:68: warning: capture of 'streamItemReceived' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 |     init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
 76 |         self.logger = logger
 77 |         self.streamItemReceived =  { item in callbackQueue.async { streamItemReceived(item) } }
    |                                                                    |- warning: capture of 'streamItemReceived' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 78 |         self.invocationDidComplete = { error in callbackQueue.async { invocationDidComplete(error) } }
 79 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:77:87: warning: capture of 'item' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 | }
 69 |
 70 | internal class StreamInvocationHandler<T: Decodable>: ServerInvocationHandler {
    |                                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 71 |     private let logger: Logger
 72 |     private let streamItemReceived: (T) -> Void
    :
 75 |     init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
 76 |         self.logger = logger
 77 |         self.streamItemReceived =  { item in callbackQueue.async { streamItemReceived(item) } }
    |                                                                                       `- warning: capture of 'item' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 78 |         self.invocationDidComplete = { error in callbackQueue.async { invocationDidComplete(error) } }
 79 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:78:71: warning: capture of 'invocationDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 |         self.logger = logger
 77 |         self.streamItemReceived =  { item in callbackQueue.async { streamItemReceived(item) } }
 78 |         self.invocationDidComplete = { error in callbackQueue.async { invocationDidComplete(error) } }
    |                                                                       |- warning: capture of 'invocationDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                       `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 79 |     }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:128:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
126 |                 // TODO: not great but running on the connectionQueue deadlocks
127 |                 DispatchQueue.main.asyncAfter(deadline: .now() + nextAttemptInterval) {
128 |                     self.startInternal()
    |                     |- 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
129 |                 }
130 |                 // running on a random (possibly main) queue but HubConnection will
[24/33] Compiling SignalRClient SignalRError.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:65:17: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 63 |             // Never synchronously respond to avoid upstream deadlocks based on async assumptions
 64 |             callbackQueue.async {
 65 |                 sendDidComplete(SignalRError.connectionIsReconnecting)
    |                 |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 66 |             }
 67 |             return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:128:21: warning: capture of 'self' with non-sendable type 'ReconnectableConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | import Foundation
  9 |
 10 | internal class ReconnectableConnection: Connection {
    |                `- note: class 'ReconnectableConnection' does not conform to the 'Sendable' protocol
 11 |     private let connectionQueue = DispatchQueue(label: "SignalR.reconnection.queue")
 12 |     private let callbackQueue: DispatchQueue
    :
126 |                 // TODO: not great but running on the connectionQueue deadlocks
127 |                 DispatchQueue.main.asyncAfter(deadline: .now() + nextAttemptInterval) {
128 |                     self.startInternal()
    |                     `- warning: capture of 'self' with non-sendable type 'ReconnectableConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 |                 }
130 |                 // running on a random (possibly main) queue but HubConnection will
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:25:35: warning: capture of 'invocationDidComplete' with non-sendable type '(T?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 |         self.logger = logger
 24 |         self.invocationDidComplete = {result, error in
 25 |             callbackQueue.async { invocationDidComplete(result, error)}
    |                                   |- warning: capture of 'invocationDidComplete' with non-sendable type '(T?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                   `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 26 |         }
 27 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:25:57: warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 16 | }
 17 |
 18 | internal class InvocationHandler<T: Decodable>: ServerInvocationHandler {
    |                                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 19 |     private let logger: Logger
 20 |     private let invocationDidComplete: (T?, Error?) -> Void
    :
 23 |         self.logger = logger
 24 |         self.invocationDidComplete = {result, error in
 25 |             callbackQueue.async { invocationDidComplete(result, error)}
    |                                                         `- warning: capture of 'result' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 26 |         }
 27 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:77:68: warning: capture of 'streamItemReceived' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 |     init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
 76 |         self.logger = logger
 77 |         self.streamItemReceived =  { item in callbackQueue.async { streamItemReceived(item) } }
    |                                                                    |- warning: capture of 'streamItemReceived' with non-sendable type '(T) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 78 |         self.invocationDidComplete = { error in callbackQueue.async { invocationDidComplete(error) } }
 79 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:77:87: warning: capture of 'item' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 68 | }
 69 |
 70 | internal class StreamInvocationHandler<T: Decodable>: ServerInvocationHandler {
    |                                        `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 71 |     private let logger: Logger
 72 |     private let streamItemReceived: (T) -> Void
    :
 75 |     init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
 76 |         self.logger = logger
 77 |         self.streamItemReceived =  { item in callbackQueue.async { streamItemReceived(item) } }
    |                                                                                       `- warning: capture of 'item' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 78 |         self.invocationDidComplete = { error in callbackQueue.async { invocationDidComplete(error) } }
 79 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:78:71: warning: capture of 'invocationDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 |         self.logger = logger
 77 |         self.streamItemReceived =  { item in callbackQueue.async { streamItemReceived(item) } }
 78 |         self.invocationDidComplete = { error in callbackQueue.async { invocationDidComplete(error) } }
    |                                                                       |- warning: capture of 'invocationDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                       `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 79 |     }
 80 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:128:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
126 |                 // TODO: not great but running on the connectionQueue deadlocks
127 |                 DispatchQueue.main.asyncAfter(deadline: .now() + nextAttemptInterval) {
128 |                     self.startInternal()
    |                     |- 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
129 |                 }
130 |                 // running on a random (possibly main) queue but HubConnection will
[25/33] Compiling SignalRClient HttpResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:164:21: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 |                 }
163 |                 self.callbackQueue.async {
164 |                     sendDidComplete(error)
    |                     |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
165 |                 }
166 |             })
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:170:17: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |             logger.log(logLevel: .error, message: "Sending to server side hub method '\(method)' failed. Error: \(error)")
169 |             self.callbackQueue.async {
170 |                 sendDidComplete(error)
    |                 |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
171 |             }
172 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:276:17: warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |             logger.log(logLevel: .error, message: "Invalid stream handle")
275 |             callbackQueue.async {
276 |                 cancelDidFail(SignalRError.invalidOperation(message: "Invalid stream handle."))
    |                 |- warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |             }
278 |             return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:288:25: warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
286 |                     self.logger.log(logLevel: .error, message: "Sending cancellation of server side streaming hub returned error: \(e)")
287 |                     self.callbackQueue.async {
288 |                         cancelDidFail(e)
    |                         |- warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
289 |                     }
290 |                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:297:17: warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
295 |             logger.log(logLevel: .error, message: "Sending cancellation of server side streaming hub method failed: \(error)")
296 |             self.callbackQueue.async {
297 |                 cancelDidFail(error)
    |                 |- warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
298 |             }
299 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:337:13: warning: capture of 'invocationHandler' with non-sendable type 'any ServerInvocationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
335 |
336 |         callbackQueue.async {
337 |             invocationHandler.raiseError(error: error)
    |             `- warning: capture of 'invocationHandler' with non-sendable type 'any ServerInvocationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
338 |         }
339 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:11:19: note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | internal protocol ServerInvocationHandler {
    |                   `- note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
 12 |     func createInvocationMessage(invocationId: String, method: String, arguments: [Encodable], streamIds: [String]?) -> HubMessage
 13 |     func processStreamItem(streamItemMessage: StreamItemMessage) -> Error?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:345:17: warning: capture of 'errorHandler' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 |             logger.log(logLevel: .error, message: "Attempting to send data before connection has been started.")
344 |             callbackQueue.async {
345 |                 errorHandler(SignalRError.invalidOperation(message: "Attempting to send data before connection has been started."))
    |                 |- warning: capture of 'errorHandler' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
346 |             }
347 |             return false
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:368:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
366 |                 logger.log(logLevel: .error, message: "Parsing handshake response failed: \(e)")
367 |                 callbackQueue.async {
368 |                     self.delegate?.connectionDidFailToOpen(error: e)
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 |                 }
370 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:374:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
372 |             if originalHandshakeStatus.isReconnect {
373 |                 callbackQueue.async {
374 |                     self.delegate?.connectionDidReconnect()
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
375 |                 }
376 |             } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:378:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
376 |             } else {
377 |                 callbackQueue.async {
378 |                     self.delegate?.connectionDidOpen(hubConnection: self)
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
379 |                 }
380 |                 resetKeepAlive()
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:416:17: warning: capture of 'serverInvocationHandler' with non-sendable type '(any ServerInvocationHandler)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
414 |         if serverInvocationHandler != nil {
415 |             callbackQueue.async {
416 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: capture of 'serverInvocationHandler' with non-sendable type '(any ServerInvocationHandler)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |             }
418 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:11:19: note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | internal protocol ServerInvocationHandler {
    |                   `- note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
 12 |     func createInvocationMessage(invocationId: String, method: String, arguments: [Encodable], streamIds: [String]?) -> HubMessage
 13 |     func processStreamItem(streamItemMessage: StreamItemMessage) -> Error?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:416:79: warning: capture of 'message' with non-sendable type 'CompletionMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
414 |         if serverInvocationHandler != nil {
415 |             callbackQueue.async {
416 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                                                                               `- warning: capture of 'message' with non-sendable type 'CompletionMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |             }
418 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:166:14: note: class 'CompletionMessage' does not conform to the 'Sendable' protocol
164 | }
165 |
166 | public class CompletionMessage: HubMessage, Codable {
    |              `- note: class 'CompletionMessage' does not conform to the 'Sendable' protocol
167 |     public let type = MessageType.Completion
168 |     public let invocationId: String
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:416:17: warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
414 |         if serverInvocationHandler != nil {
415 |             callbackQueue.async {
416 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
417 |             }
418 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:449:25: warning: capture of 'callback' with non-sendable type '((ArgumentExtractor) throws -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
447 |             callbackQueue.async {
448 |                 do {
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
    |                         |- warning: capture of 'callback' with non-sendable type '((ArgumentExtractor) throws -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:449:78: warning: capture of 'message' with non-sendable type 'ClientInvocationMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
447 |             callbackQueue.async {
448 |                 do {
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
    |                                                                              `- warning: capture of 'message' with non-sendable type 'ClientInvocationMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:80:14: note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 78 | }
 79 |
 80 | public class ClientInvocationMessage: HubMessage, Decodable {
    |              `- note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 81 |     public let type = MessageType.Invocation
 82 |     public let target: String
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:451:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
452 |                 }
453 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:449:25: warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
447 |             callbackQueue.async {
448 |                 do {
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
    |                         `- warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:451:94: warning: implicit capture of 'message' requires that 'ClientInvocationMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
    |                                                                                              `- warning: implicit capture of 'message' requires that 'ClientInvocationMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
452 |                 }
453 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:80:14: note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 78 | }
 79 |
 80 | public class ClientInvocationMessage: HubMessage, Decodable {
    |              `- note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 81 |     public let type = MessageType.Invocation
 82 |     public let target: String
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:479:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
477 |         handshakeStatus = .needsHandling(false)
478 |         callbackQueue.async {
479 |             self.delegate?.connectionDidClose(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
480 |         }
481 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:485:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
483 |     fileprivate func connectionDidFailToOpen(error: Error) {
484 |         callbackQueue.async {
485 |             self.delegate?.connectionDidFailToOpen(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 |         }
487 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:492:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
490 |         handshakeStatus = .needsHandling(true)
491 |         callbackQueue.async {
492 |             self.delegate?.connectionWillReconnect(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
493 |         }
494 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:270:16: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
264 | }
265 |
266 | public class PingMessage : HubMessage, Encodable {
    |              `- note: class 'PingMessage' does not conform to the 'Sendable' protocol
267 |     public let type = MessageType.Ping
268 |     private init() { }
269 |
270 |     static let instance = PingMessage()
    |                |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'instance' 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
271 | }
272 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
[26/33] Compiling SignalRClient HubConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:164:21: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 |                 }
163 |                 self.callbackQueue.async {
164 |                     sendDidComplete(error)
    |                     |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
165 |                 }
166 |             })
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:170:17: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |             logger.log(logLevel: .error, message: "Sending to server side hub method '\(method)' failed. Error: \(error)")
169 |             self.callbackQueue.async {
170 |                 sendDidComplete(error)
    |                 |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
171 |             }
172 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:276:17: warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |             logger.log(logLevel: .error, message: "Invalid stream handle")
275 |             callbackQueue.async {
276 |                 cancelDidFail(SignalRError.invalidOperation(message: "Invalid stream handle."))
    |                 |- warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |             }
278 |             return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:288:25: warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
286 |                     self.logger.log(logLevel: .error, message: "Sending cancellation of server side streaming hub returned error: \(e)")
287 |                     self.callbackQueue.async {
288 |                         cancelDidFail(e)
    |                         |- warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
289 |                     }
290 |                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:297:17: warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
295 |             logger.log(logLevel: .error, message: "Sending cancellation of server side streaming hub method failed: \(error)")
296 |             self.callbackQueue.async {
297 |                 cancelDidFail(error)
    |                 |- warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
298 |             }
299 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:337:13: warning: capture of 'invocationHandler' with non-sendable type 'any ServerInvocationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
335 |
336 |         callbackQueue.async {
337 |             invocationHandler.raiseError(error: error)
    |             `- warning: capture of 'invocationHandler' with non-sendable type 'any ServerInvocationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
338 |         }
339 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:11:19: note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | internal protocol ServerInvocationHandler {
    |                   `- note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
 12 |     func createInvocationMessage(invocationId: String, method: String, arguments: [Encodable], streamIds: [String]?) -> HubMessage
 13 |     func processStreamItem(streamItemMessage: StreamItemMessage) -> Error?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:345:17: warning: capture of 'errorHandler' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 |             logger.log(logLevel: .error, message: "Attempting to send data before connection has been started.")
344 |             callbackQueue.async {
345 |                 errorHandler(SignalRError.invalidOperation(message: "Attempting to send data before connection has been started."))
    |                 |- warning: capture of 'errorHandler' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
346 |             }
347 |             return false
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:368:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
366 |                 logger.log(logLevel: .error, message: "Parsing handshake response failed: \(e)")
367 |                 callbackQueue.async {
368 |                     self.delegate?.connectionDidFailToOpen(error: e)
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 |                 }
370 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:374:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
372 |             if originalHandshakeStatus.isReconnect {
373 |                 callbackQueue.async {
374 |                     self.delegate?.connectionDidReconnect()
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
375 |                 }
376 |             } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:378:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
376 |             } else {
377 |                 callbackQueue.async {
378 |                     self.delegate?.connectionDidOpen(hubConnection: self)
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
379 |                 }
380 |                 resetKeepAlive()
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:416:17: warning: capture of 'serverInvocationHandler' with non-sendable type '(any ServerInvocationHandler)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
414 |         if serverInvocationHandler != nil {
415 |             callbackQueue.async {
416 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: capture of 'serverInvocationHandler' with non-sendable type '(any ServerInvocationHandler)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |             }
418 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:11:19: note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | internal protocol ServerInvocationHandler {
    |                   `- note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
 12 |     func createInvocationMessage(invocationId: String, method: String, arguments: [Encodable], streamIds: [String]?) -> HubMessage
 13 |     func processStreamItem(streamItemMessage: StreamItemMessage) -> Error?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:416:79: warning: capture of 'message' with non-sendable type 'CompletionMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
414 |         if serverInvocationHandler != nil {
415 |             callbackQueue.async {
416 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                                                                               `- warning: capture of 'message' with non-sendable type 'CompletionMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |             }
418 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:166:14: note: class 'CompletionMessage' does not conform to the 'Sendable' protocol
164 | }
165 |
166 | public class CompletionMessage: HubMessage, Codable {
    |              `- note: class 'CompletionMessage' does not conform to the 'Sendable' protocol
167 |     public let type = MessageType.Completion
168 |     public let invocationId: String
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:416:17: warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
414 |         if serverInvocationHandler != nil {
415 |             callbackQueue.async {
416 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
417 |             }
418 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:449:25: warning: capture of 'callback' with non-sendable type '((ArgumentExtractor) throws -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
447 |             callbackQueue.async {
448 |                 do {
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
    |                         |- warning: capture of 'callback' with non-sendable type '((ArgumentExtractor) throws -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:449:78: warning: capture of 'message' with non-sendable type 'ClientInvocationMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
447 |             callbackQueue.async {
448 |                 do {
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
    |                                                                              `- warning: capture of 'message' with non-sendable type 'ClientInvocationMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:80:14: note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 78 | }
 79 |
 80 | public class ClientInvocationMessage: HubMessage, Decodable {
    |              `- note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 81 |     public let type = MessageType.Invocation
 82 |     public let target: String
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:451:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
452 |                 }
453 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:449:25: warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
447 |             callbackQueue.async {
448 |                 do {
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
    |                         `- warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:451:94: warning: implicit capture of 'message' requires that 'ClientInvocationMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
    |                                                                                              `- warning: implicit capture of 'message' requires that 'ClientInvocationMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
452 |                 }
453 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:80:14: note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 78 | }
 79 |
 80 | public class ClientInvocationMessage: HubMessage, Decodable {
    |              `- note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 81 |     public let type = MessageType.Invocation
 82 |     public let target: String
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:479:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
477 |         handshakeStatus = .needsHandling(false)
478 |         callbackQueue.async {
479 |             self.delegate?.connectionDidClose(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
480 |         }
481 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:485:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
483 |     fileprivate func connectionDidFailToOpen(error: Error) {
484 |         callbackQueue.async {
485 |             self.delegate?.connectionDidFailToOpen(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 |         }
487 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:492:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
490 |         handshakeStatus = .needsHandling(true)
491 |         callbackQueue.async {
492 |             self.delegate?.connectionWillReconnect(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
493 |         }
494 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:270:16: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
264 | }
265 |
266 | public class PingMessage : HubMessage, Encodable {
    |              `- note: class 'PingMessage' does not conform to the 'Sendable' protocol
267 |     public let type = MessageType.Ping
268 |     private init() { }
269 |
270 |     static let instance = PingMessage()
    |                |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'instance' 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
271 | }
272 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
[27/33] Compiling SignalRClient HubConnectionBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:164:21: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 |                 }
163 |                 self.callbackQueue.async {
164 |                     sendDidComplete(error)
    |                     |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
165 |                 }
166 |             })
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:170:17: warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |             logger.log(logLevel: .error, message: "Sending to server side hub method '\(method)' failed. Error: \(error)")
169 |             self.callbackQueue.async {
170 |                 sendDidComplete(error)
    |                 |- warning: capture of 'sendDidComplete' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
171 |             }
172 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:276:17: warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |             logger.log(logLevel: .error, message: "Invalid stream handle")
275 |             callbackQueue.async {
276 |                 cancelDidFail(SignalRError.invalidOperation(message: "Invalid stream handle."))
    |                 |- warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |             }
278 |             return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:288:25: warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
286 |                     self.logger.log(logLevel: .error, message: "Sending cancellation of server side streaming hub returned error: \(e)")
287 |                     self.callbackQueue.async {
288 |                         cancelDidFail(e)
    |                         |- warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
289 |                     }
290 |                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:297:17: warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
295 |             logger.log(logLevel: .error, message: "Sending cancellation of server side streaming hub method failed: \(error)")
296 |             self.callbackQueue.async {
297 |                 cancelDidFail(error)
    |                 |- warning: capture of 'cancelDidFail' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
298 |             }
299 |         }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:337:13: warning: capture of 'invocationHandler' with non-sendable type 'any ServerInvocationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
335 |
336 |         callbackQueue.async {
337 |             invocationHandler.raiseError(error: error)
    |             `- warning: capture of 'invocationHandler' with non-sendable type 'any ServerInvocationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
338 |         }
339 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:11:19: note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | internal protocol ServerInvocationHandler {
    |                   `- note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
 12 |     func createInvocationMessage(invocationId: String, method: String, arguments: [Encodable], streamIds: [String]?) -> HubMessage
 13 |     func processStreamItem(streamItemMessage: StreamItemMessage) -> Error?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:345:17: warning: capture of 'errorHandler' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 |             logger.log(logLevel: .error, message: "Attempting to send data before connection has been started.")
344 |             callbackQueue.async {
345 |                 errorHandler(SignalRError.invalidOperation(message: "Attempting to send data before connection has been started."))
    |                 |- warning: capture of 'errorHandler' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
346 |             }
347 |             return false
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:368:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
366 |                 logger.log(logLevel: .error, message: "Parsing handshake response failed: \(e)")
367 |                 callbackQueue.async {
368 |                     self.delegate?.connectionDidFailToOpen(error: e)
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 |                 }
370 |                 return
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:374:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
372 |             if originalHandshakeStatus.isReconnect {
373 |                 callbackQueue.async {
374 |                     self.delegate?.connectionDidReconnect()
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
375 |                 }
376 |             } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:378:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
376 |             } else {
377 |                 callbackQueue.async {
378 |                     self.delegate?.connectionDidOpen(hubConnection: self)
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
379 |                 }
380 |                 resetKeepAlive()
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:416:17: warning: capture of 'serverInvocationHandler' with non-sendable type '(any ServerInvocationHandler)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
414 |         if serverInvocationHandler != nil {
415 |             callbackQueue.async {
416 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: capture of 'serverInvocationHandler' with non-sendable type '(any ServerInvocationHandler)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |             }
418 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:11:19: note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
  9 | import Foundation
 10 |
 11 | internal protocol ServerInvocationHandler {
    |                   `- note: protocol 'ServerInvocationHandler' does not conform to the 'Sendable' protocol
 12 |     func createInvocationMessage(invocationId: String, method: String, arguments: [Encodable], streamIds: [String]?) -> HubMessage
 13 |     func processStreamItem(streamItemMessage: StreamItemMessage) -> Error?
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:416:79: warning: capture of 'message' with non-sendable type 'CompletionMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
414 |         if serverInvocationHandler != nil {
415 |             callbackQueue.async {
416 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                                                                               `- warning: capture of 'message' with non-sendable type 'CompletionMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |             }
418 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:166:14: note: class 'CompletionMessage' does not conform to the 'Sendable' protocol
164 | }
165 |
166 | public class CompletionMessage: HubMessage, Codable {
    |              `- note: class 'CompletionMessage' does not conform to the 'Sendable' protocol
167 |     public let type = MessageType.Completion
168 |     public let invocationId: String
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:416:17: warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
414 |         if serverInvocationHandler != nil {
415 |             callbackQueue.async {
416 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
417 |             }
418 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:449:25: warning: capture of 'callback' with non-sendable type '((ArgumentExtractor) throws -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
447 |             callbackQueue.async {
448 |                 do {
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
    |                         |- warning: capture of 'callback' with non-sendable type '((ArgumentExtractor) throws -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:449:78: warning: capture of 'message' with non-sendable type 'ClientInvocationMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
447 |             callbackQueue.async {
448 |                 do {
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
    |                                                                              `- warning: capture of 'message' with non-sendable type 'ClientInvocationMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:80:14: note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 78 | }
 79 |
 80 | public class ClientInvocationMessage: HubMessage, Decodable {
    |              `- note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 81 |     public let type = MessageType.Invocation
 82 |     public let target: String
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:451:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
452 |                 }
453 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:449:25: warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
447 |             callbackQueue.async {
448 |                 do {
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
    |                         `- warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:451:94: warning: implicit capture of 'message' requires that 'ClientInvocationMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
449 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
450 |                 } catch {
451 |                     self.logger.log(logLevel: .error, message: "Invoking client hub method \(message.target) failed due to: \(error)")
    |                                                                                              `- warning: implicit capture of 'message' requires that 'ClientInvocationMessage' conforms to `Sendable`; this is an error in the Swift 6 language mode
452 |                 }
453 |             }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:80:14: note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 78 | }
 79 |
 80 | public class ClientInvocationMessage: HubMessage, Decodable {
    |              `- note: class 'ClientInvocationMessage' does not conform to the 'Sendable' protocol
 81 |     public let type = MessageType.Invocation
 82 |     public let target: String
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:479:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
477 |         handshakeStatus = .needsHandling(false)
478 |         callbackQueue.async {
479 |             self.delegate?.connectionDidClose(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
480 |         }
481 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:485:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
483 |     fileprivate func connectionDidFailToOpen(error: Error) {
484 |         callbackQueue.async {
485 |             self.delegate?.connectionDidFailToOpen(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
486 |         }
487 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:492:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 |  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 16 |  */
 17 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 18 |
 19 |     private var invocationId: Int = 0
    :
490 |         handshakeStatus = .needsHandling(true)
491 |         callbackQueue.async {
492 |             self.delegate?.connectionWillReconnect(error: error)
    |             `- warning: capture of 'self' with non-sendable type 'HubConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
493 |         }
494 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:270:16: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
264 | }
265 |
266 | public class PingMessage : HubMessage, Encodable {
    |              `- note: class 'PingMessage' does not conform to the 'Sendable' protocol
267 |     public let type = MessageType.Ping
268 |     private init() { }
269 |
270 |     static let instance = PingMessage()
    |                |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'instance' 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
271 | }
272 |
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/TransportType.swift:22:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | public struct TransportType: OptionSet {
   |               `- note: consider making struct 'TransportType' conform to the 'Sendable' protocol
12 |     public let rawValue: Int
13 |
   :
20 |     public static let webSockets = TransportType(rawValue: 1 << 2)
21 |
22 |     public static let all: TransportType = [ .longPolling, .webSockets ]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'TransportType' 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
23 | }
24 |
[28/33] Compiling SignalRClient HubProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:270:16: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
264 | }
265 |
266 | public class PingMessage : HubMessage, Encodable {
    |              `- note: class 'PingMessage' does not conform to the 'Sendable' protocol
267 |     public let type = MessageType.Ping
268 |     private init() { }
269 |
270 |     static let instance = PingMessage()
    |                |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'instance' 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
271 | }
272 |
[29/33] Compiling SignalRClient JSONHubProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:270:16: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
264 | }
265 |
266 | public class PingMessage : HubMessage, Encodable {
    |              `- note: class 'PingMessage' does not conform to the 'Sendable' protocol
267 |     public let type = MessageType.Ping
268 |     private init() { }
269 |
270 |     static let instance = PingMessage()
    |                |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'instance' 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
271 | }
272 |
[30/33] Compiling SignalRClient Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:270:16: warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
264 | }
265 |
266 | public class PingMessage : HubMessage, Encodable {
    |              `- note: class 'PingMessage' does not conform to the 'Sendable' protocol
267 |     public let type = MessageType.Ping
268 |     private init() { }
269 |
270 |     static let instance = PingMessage()
    |                |- warning: static property 'instance' is not concurrency-safe because non-'Sendable' type 'PingMessage' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'instance' 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
271 | }
272 |
[31/33] Compiling SignalRClient HubConnectionDelegate.swift
[32/33] Compiling SignalRClient HubConnectionExtensions.swift
[33/33] Compiling SignalRClient HubConnectionOptions.swift
Build complete! (17.06s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SignalRClient",
  "name" : "SignalRClient",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SignalRClient",
      "targets" : [
        "SignalRClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "SignalRClientTests",
      "module_type" : "SwiftTarget",
      "name" : "SignalRClientTests",
      "path" : "Tests/SignalRClientTests",
      "sources" : [
        "Constants.swift",
        "Fakes.swift",
        "HandshakeProtocolTests.swift",
        "HttpConnectionTests.swift",
        "HubConnectionExtensionsTests.swift",
        "HubConnectionTests.swift",
        "HubProtocolFake.swift",
        "JSONHubProtocolTests.swift",
        "LoggerTests.swift",
        "LongPollingTransportTests.swift",
        "NegotiationResponseTests.swift",
        "ReconnectPolicyTests.swift",
        "ReconnectableConnectionTests.swift",
        "ServerInvocationHandlerTests.swift",
        "TestTransport.swift",
        "TestTransportDelegate.swift",
        "TransportTypeTests.swift",
        "WebsocketsTransportTests.swift"
      ],
      "target_dependencies" : [
        "SignalRClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SignalRClient",
      "module_type" : "SwiftTarget",
      "name" : "SignalRClient",
      "path" : "Sources/SignalRClient",
      "product_memberships" : [
        "SignalRClient"
      ],
      "sources" : [
        "CodableHelpers.swift",
        "Connection.swift",
        "ConnectionDelegate.swift",
        "DefaultHttpClient.swift",
        "DefaultTransportFactory.swift",
        "HandshakeProtocol.swift",
        "HttpClientProtocol.swift",
        "HttpConnection.swift",
        "HttpConnectionOptions.swift",
        "HttpResponse.swift",
        "HubConnection.swift",
        "HubConnectionBuilder.swift",
        "HubConnectionDelegate.swift",
        "HubConnectionExtensions.swift",
        "HubConnectionOptions.swift",
        "HubProtocol.swift",
        "JSONHubProtocol.swift",
        "Logger.swift",
        "LongPollingTransport.swift",
        "NegotiationResponse.swift",
        "ReconnectPolicy.swift",
        "ReconnectableConnection.swift",
        "ServerInvocationHandler.swift",
        "SignalRError.swift",
        "StreamHandle.swift",
        "TransferFormat.swift",
        "Transport.swift",
        "TransportDelegate.swift",
        "TransportType.swift",
        "WebsocketsTransport.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.