The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SignalRClient, reference 1.2.1 (a5aca8), with Swift 6.1 for Linux on 22 Feb 2026 22:53:23 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

597 |                 } catch {
598 |                     self.logger.log(
/host/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
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:598:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
596 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
597 |                 } catch {
598 |                     self.logger.log(
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
599 |                         logLevel: .error,
600 |                         message: "Invoking client hub method \(message.target) failed due to: \(error)")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:596:25: warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
594 |             callbackQueue.async {
595 |                 do {
596 |                     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
597 |                 } catch {
598 |                     self.logger.log(
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:600:64: warning: implicit capture of 'message' requires that 'ClientInvocationMessage' conforms to 'Sendable'; this is an error in the Swift 6 language mode
598 |                     self.logger.log(
599 |                         logLevel: .error,
600 |                         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
601 |                 }
602 |             }
/host/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
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:628:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
626 |         handshakeStatus = .needsHandling(false)
627 |         callbackQueue.async {
628 |             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
629 |         }
630 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:634:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
632 |     fileprivate func connectionDidFailToOpen(error: Error) {
633 |         callbackQueue.async {
634 |             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
635 |         }
636 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:645:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
643 |         }
644 |         callbackQueue.async {
645 |             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
646 |         }
647 |     }
[29/34] Compiling SignalRClient HttpResponse.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:212: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
    :
210 |         logger.log(logLevel: .debug, message: "Invoking connectionDidFailToOpen")
211 |         options.callbackQueue.async {
212 |             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
213 |         }
214 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:223: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
221 |             // Never synchronously respond to avoid upstream deadlocks based on async assumptions
222 |             options.callbackQueue.async {
223 |                 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'
224 |             }
225 |             return
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:255: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
    :
253 |             logger.log(logLevel: .debug, message: "Invoking connectionDidClose (\(#function): \(#line))")
254 |             options.callbackQueue.async {
255 |                 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
256 |             }
257 |         }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:271: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
    :
269 |             self.connectionId = connectionId
270 |             options.callbackQueue.async {
271 |                 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
272 |             }
273 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:281: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
    :
279 |         logger.log(logLevel: .debug, message: "Received data from transport")
280 |         options.callbackQueue.async {
281 |             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
282 |         }
283 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:301: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
    :
299 |                 ?? SignalRError.transportClosed
300 |             options.callbackQueue.async {
301 |                 self.delegate?.connectionDidFailToOpen(error: closeError)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
302 |             }
303 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:309: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
    :
307 |
308 |             options.callbackQueue.async {
309 |                 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
310 |             }
311 |         }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:173:25: 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
171 |                     }
172 |                     self.callbackQueue.async {
173 |                         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'
174 |                     }
175 |                 })
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:180: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
178 |                 logLevel: .error, message: "Sending to server side hub method '\(method)' failed. Error: \(error)")
179 |             self.callbackQueue.async {
180 |                 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'
181 |             }
182 |         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:360: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
358 |             logger.log(logLevel: .error, message: "Invalid stream handle")
359 |             callbackQueue.async {
360 |                 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'
361 |             }
362 |             return
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:376:29: 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
374 |                             message: "Sending cancellation of server side streaming hub returned error: \(e)")
375 |                         self.callbackQueue.async {
376 |                             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'
377 |                         }
378 |                     } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:386: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
384 |                 logLevel: .error, message: "Sending cancellation of server side streaming hub method failed: \(error)")
385 |             self.callbackQueue.async {
386 |                 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'
387 |             }
388 |         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:478: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
476 |
477 |         callbackQueue.async {
478 |             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
479 |         }
480 |     }
/host/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 |     var method: String { get }
 13 |     var arguments: [Encodable] { get }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:486: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
484 |             logger.log(logLevel: .error, message: "Attempting to send data before connection has been started.")
485 |             callbackQueue.async {
486 |                 errorHandler(
    |                 |- 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'
487 |                     SignalRError.invalidOperation(
488 |                         message: "Attempting to send data before connection has been started."))
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:513:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
511 |                 logger.log(logLevel: .error, message: "Parsing handshake response failed: \(e)")
512 |                 callbackQueue.async {
513 |                     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
514 |                 }
515 |                 return
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:519:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
517 |             if originalHandshakeStatus.isReconnect {
518 |                 callbackQueue.async {
519 |                     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
520 |                 }
521 |             } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:523:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
521 |             } else {
522 |                 callbackQueue.async {
523 |                     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
524 |                 }
525 |             }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:562: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
560 |         if serverInvocationHandler != nil {
561 |             callbackQueue.async {
562 |                 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
563 |             }
564 |         } else {
/host/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 |     var method: String { get }
 13 |     var arguments: [Encodable] { get }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:562:79: warning: capture of 'message' with non-sendable type 'CompletionMessage' in a '@Sendable' closure; this is an error in the Swift 6 language mode
560 |         if serverInvocationHandler != nil {
561 |             callbackQueue.async {
562 |                 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
563 |             }
564 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:164:14: note: class 'CompletionMessage' does not conform to the 'Sendable' protocol
162 | }
163 |
164 | public class CompletionMessage: HubMessage, Codable {
    |              `- note: class 'CompletionMessage' does not conform to the 'Sendable' protocol
165 |     public let type = MessageType.Completion
166 |     public let invocationId: String
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:562:17: warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
560 |         if serverInvocationHandler != nil {
561 |             callbackQueue.async {
562 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
563 |             }
564 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:596: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
594 |             callbackQueue.async {
595 |                 do {
596 |                     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'
597 |                 } catch {
598 |                     self.logger.log(
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:596:78: warning: capture of 'message' with non-sendable type 'ClientInvocationMessage' in a '@Sendable' closure; this is an error in the Swift 6 language mode
594 |             callbackQueue.async {
595 |                 do {
596 |                     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
597 |                 } catch {
598 |                     self.logger.log(
/host/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
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:598:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
596 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
597 |                 } catch {
598 |                     self.logger.log(
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
599 |                         logLevel: .error,
600 |                         message: "Invoking client hub method \(message.target) failed due to: \(error)")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:596:25: warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
594 |             callbackQueue.async {
595 |                 do {
596 |                     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
597 |                 } catch {
598 |                     self.logger.log(
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:600:64: warning: implicit capture of 'message' requires that 'ClientInvocationMessage' conforms to 'Sendable'; this is an error in the Swift 6 language mode
598 |                     self.logger.log(
599 |                         logLevel: .error,
600 |                         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
601 |                 }
602 |             }
/host/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
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:628:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
626 |         handshakeStatus = .needsHandling(false)
627 |         callbackQueue.async {
628 |             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
629 |         }
630 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:634:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
632 |     fileprivate func connectionDidFailToOpen(error: Error) {
633 |         callbackQueue.async {
634 |             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
635 |         }
636 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:645:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
643 |         }
644 |         callbackQueue.async {
645 |             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
646 |         }
647 |     }
[30/34] Compiling SignalRClient HubConnection.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:212: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
    :
210 |         logger.log(logLevel: .debug, message: "Invoking connectionDidFailToOpen")
211 |         options.callbackQueue.async {
212 |             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
213 |         }
214 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:223: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
221 |             // Never synchronously respond to avoid upstream deadlocks based on async assumptions
222 |             options.callbackQueue.async {
223 |                 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'
224 |             }
225 |             return
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:255: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
    :
253 |             logger.log(logLevel: .debug, message: "Invoking connectionDidClose (\(#function): \(#line))")
254 |             options.callbackQueue.async {
255 |                 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
256 |             }
257 |         }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:271: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
    :
269 |             self.connectionId = connectionId
270 |             options.callbackQueue.async {
271 |                 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
272 |             }
273 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:281: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
    :
279 |         logger.log(logLevel: .debug, message: "Received data from transport")
280 |         options.callbackQueue.async {
281 |             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
282 |         }
283 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:301: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
    :
299 |                 ?? SignalRError.transportClosed
300 |             options.callbackQueue.async {
301 |                 self.delegate?.connectionDidFailToOpen(error: closeError)
    |                 `- warning: capture of 'self' with non-sendable type 'HttpConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
302 |             }
303 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:309: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
    :
307 |
308 |             options.callbackQueue.async {
309 |                 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
310 |             }
311 |         }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:173:25: 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
171 |                     }
172 |                     self.callbackQueue.async {
173 |                         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'
174 |                     }
175 |                 })
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:180: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
178 |                 logLevel: .error, message: "Sending to server side hub method '\(method)' failed. Error: \(error)")
179 |             self.callbackQueue.async {
180 |                 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'
181 |             }
182 |         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:360: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
358 |             logger.log(logLevel: .error, message: "Invalid stream handle")
359 |             callbackQueue.async {
360 |                 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'
361 |             }
362 |             return
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:376:29: 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
374 |                             message: "Sending cancellation of server side streaming hub returned error: \(e)")
375 |                         self.callbackQueue.async {
376 |                             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'
377 |                         }
378 |                     } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:386: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
384 |                 logLevel: .error, message: "Sending cancellation of server side streaming hub method failed: \(error)")
385 |             self.callbackQueue.async {
386 |                 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'
387 |             }
388 |         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:478: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
476 |
477 |         callbackQueue.async {
478 |             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
479 |         }
480 |     }
/host/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 |     var method: String { get }
 13 |     var arguments: [Encodable] { get }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:486: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
484 |             logger.log(logLevel: .error, message: "Attempting to send data before connection has been started.")
485 |             callbackQueue.async {
486 |                 errorHandler(
    |                 |- 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'
487 |                     SignalRError.invalidOperation(
488 |                         message: "Attempting to send data before connection has been started."))
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:513:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
511 |                 logger.log(logLevel: .error, message: "Parsing handshake response failed: \(e)")
512 |                 callbackQueue.async {
513 |                     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
514 |                 }
515 |                 return
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:519:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
517 |             if originalHandshakeStatus.isReconnect {
518 |                 callbackQueue.async {
519 |                     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
520 |                 }
521 |             } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:523:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
521 |             } else {
522 |                 callbackQueue.async {
523 |                     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
524 |                 }
525 |             }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:562: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
560 |         if serverInvocationHandler != nil {
561 |             callbackQueue.async {
562 |                 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
563 |             }
564 |         } else {
/host/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 |     var method: String { get }
 13 |     var arguments: [Encodable] { get }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:562:79: warning: capture of 'message' with non-sendable type 'CompletionMessage' in a '@Sendable' closure; this is an error in the Swift 6 language mode
560 |         if serverInvocationHandler != nil {
561 |             callbackQueue.async {
562 |                 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
563 |             }
564 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubProtocol.swift:164:14: note: class 'CompletionMessage' does not conform to the 'Sendable' protocol
162 | }
163 |
164 | public class CompletionMessage: HubMessage, Codable {
    |              `- note: class 'CompletionMessage' does not conform to the 'Sendable' protocol
165 |     public let type = MessageType.Completion
166 |     public let invocationId: String
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:562:17: warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
560 |         if serverInvocationHandler != nil {
561 |             callbackQueue.async {
562 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
563 |             }
564 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:596: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
594 |             callbackQueue.async {
595 |                 do {
596 |                     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'
597 |                 } catch {
598 |                     self.logger.log(
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:596:78: warning: capture of 'message' with non-sendable type 'ClientInvocationMessage' in a '@Sendable' closure; this is an error in the Swift 6 language mode
594 |             callbackQueue.async {
595 |                 do {
596 |                     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
597 |                 } catch {
598 |                     self.logger.log(
/host/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
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:598:21: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
596 |                     try callback!(ArgumentExtractor(clientInvocationMessage: message))
597 |                 } catch {
598 |                     self.logger.log(
    |                     `- warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
599 |                         logLevel: .error,
600 |                         message: "Invoking client hub method \(message.target) failed due to: \(error)")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:596:25: warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
594 |             callbackQueue.async {
595 |                 do {
596 |                     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
597 |                 } catch {
598 |                     self.logger.log(
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:600:64: warning: implicit capture of 'message' requires that 'ClientInvocationMessage' conforms to 'Sendable'; this is an error in the Swift 6 language mode
598 |                     self.logger.log(
599 |                         logLevel: .error,
600 |                         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
601 |                 }
602 |             }
/host/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
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:628:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
626 |         handshakeStatus = .needsHandling(false)
627 |         callbackQueue.async {
628 |             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
629 |         }
630 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:634:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
632 |     fileprivate func connectionDidFailToOpen(error: Error) {
633 |         callbackQueue.async {
634 |             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
635 |         }
636 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:645:13: warning: capture of 'self' with non-sendable type 'HubConnection' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | ///
 14 | ///  - note: You need to maintain the reference to the `HubConnection` instance until the connection is stopped
 15 | public class HubConnection {
    |              `- note: class 'HubConnection' does not conform to the 'Sendable' protocol
 16 |
 17 |     private var invocationId: Int = 0
    :
643 |         }
644 |         callbackQueue.async {
645 |             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
646 |         }
647 |     }
[31/34] Compiling SignalRClient HubConnectionBuilder.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
[32/34] Compiling SignalRClient HubConnectionDelegate.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
[33/34] Compiling SignalRClient HubConnectionExtensions.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
[34/34] Compiling SignalRClient HubConnectionOptions.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8e1c3aab9de7fa4f6e33977b6a4cee007e876da3e605dda0be6b9b9bf86aa951
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/30] Compiling SignalRClient HubConnectionBuilder.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
[3/30] Compiling SignalRClient HubConnectionDelegate.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
[4/30] Compiling SignalRClient HubConnectionExtensions.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
[5/30] Compiling SignalRClient HubConnectionOptions.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
[6/30] Compiling SignalRClient SignalRError.swift
[7/30] Compiling SignalRClient StreamHandle.swift
[8/30] Compiling SignalRClient TransferFormat.swift
[9/30] Compiling SignalRClient Transport.swift
[10/33] Compiling SignalRClient ClientStreamWorker.swift
[11/33] Compiling SignalRClient CodableHelpers.swift
[12/33] Compiling SignalRClient Connection.swift
[13/33] Compiling SignalRClient ConnectionDelegate.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/33] Emitting module SignalRClient
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | class DefaultHttpClient: HttpClientProtocol {
 12 |     private let options: HttpConnectionOptions
 13 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     public init(options: HttpConnectionOptions) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:65:94: error: cannot find type 'URLRequest' in scope
 63 |     }
 64 |
 65 |     @inline(__always) private func populateHeaders(headers: [String: String], request: inout URLRequest) {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
 66 |         headers.forEach { (key, value) in
 67 |             request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:102: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
    |                                                                                                      `- error: cannot find type 'URLRequest' in scope
 72 |         if let accessToken = accessTokenProvider() {
 73 |             request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:78:59: error: cannot find type 'URLSessionDelegate' in scope
 76 | }
 77 |
 78 | private class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
    |                                                           `- error: cannot find type 'URLSessionDelegate' in scope
 79 |     static var shared = DefaultHttpClientSessionDelegate()
 80 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:85:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 83 |             (
 84 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
 85 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 86 |             ) -> Void
 87 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:91:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 92 |     ) {
 93 |         if let challengeHandler = authenticationChallengeHandler {
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:90:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 92 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:90:54: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                                                      `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 92 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     private var webSocketTask: URLSessionWebSocketTask?
 17 |     private var authenticationChallengeHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
 16 |     private var webSocketTask: URLSessionWebSocketTask?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 17 |     private var authenticationChallengeHandler:
 18 |         (
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:21:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 19 |             (
 20 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
 21 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 22 |             ) -> Void
 23 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:62:47: error: cannot find type 'URLSessionWebSocketTask' in scope
 60 |
 61 |     public func urlSession(
 62 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?
    |                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
 63 |     ) {
 64 |         logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:62:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |     public func urlSession(
 62 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     ) {
 64 |         logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:85:41: error: cannot find type 'URLSessionWebSocketTask' in scope
 83 |     }
 84 |
 85 |     private func handleMessage(message: URLSessionWebSocketTask.Message) {
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 86 |         switch message {
 87 |         case .string(let text):
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:110:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
112 |         guard error != nil else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:110:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                         `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
112 |         guard error != nil else {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:137:47: error: cannot find type 'URLSessionWebSocketTask' in scope
135 |
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
139 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:138:33: error: cannot find type 'URLSessionWebSocketTask' in scope
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
139 |     ) {
140 |         logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:137:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
139 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:166:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
167 |     ) {
168 |         if authenticationChallengeHandler != nil {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:165:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
167 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:165:54: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                                                      `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
167 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:207:94: error: cannot find type 'URLRequest' in scope
205 |     }
206 |
207 |     @inline(__always) private func populateHeaders(headers: [String: String], request: inout URLRequest) {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
208 |         headers.forEach { (key, value) in
209 |             request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:213:102: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
    |                                                                                                      `- error: cannot find type 'URLRequest' in scope
214 |         if let accessToken = accessTokenProvider() {
215 |             request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 10 |
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
    |                                                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
[15/33] Compiling SignalRClient TransportDelegate.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     private var webSocketTask: URLSessionWebSocketTask?
 17 |     private var authenticationChallengeHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
 16 |     private var webSocketTask: URLSessionWebSocketTask?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 17 |     private var authenticationChallengeHandler:
 18 |         (
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:21:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 19 |             (
 20 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
 21 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 22 |             ) -> Void
 23 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:62:47: error: cannot find type 'URLSessionWebSocketTask' in scope
 60 |
 61 |     public func urlSession(
 62 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?
    |                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
 63 |     ) {
 64 |         logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:62:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |     public func urlSession(
 62 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     ) {
 64 |         logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:85:41: error: cannot find type 'URLSessionWebSocketTask' in scope
 83 |     }
 84 |
 85 |     private func handleMessage(message: URLSessionWebSocketTask.Message) {
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 86 |         switch message {
 87 |         case .string(let text):
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:110:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
112 |         guard error != nil else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:110:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                         `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
112 |         guard error != nil else {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:137:47: error: cannot find type 'URLSessionWebSocketTask' in scope
135 |
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
139 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:138:33: error: cannot find type 'URLSessionWebSocketTask' in scope
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
139 |     ) {
140 |         logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:137:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
139 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:166:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
167 |     ) {
168 |         if authenticationChallengeHandler != nil {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:165:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
167 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:165:54: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                                                      `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
167 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:207:94: error: cannot find type 'URLRequest' in scope
205 |     }
206 |
207 |     @inline(__always) private func populateHeaders(headers: [String: String], request: inout URLRequest) {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
208 |         headers.forEach { (key, value) in
209 |             request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:213:102: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
    |                                                                                                      `- error: cannot find type 'URLRequest' in scope
214 |         if let accessToken = accessTokenProvider() {
215 |             request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 10 |
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
    |                                                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:39:23: error: cannot find 'URLRequest' in scope
 37 |         authenticationChallengeHandler = options.authenticationChallengeHandler
 38 |
 39 |         var request = URLRequest(url: convertUrl(url: url))
    |                       `- error: cannot find 'URLRequest' in scope
 40 |         populateHeaders(headers: options.headers, request: &request)
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:42:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 40 |         populateHeaders(headers: options.headers, request: &request)
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
 42 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 43 |         webSocketTask = urlSession!.webSocketTask(with: request)
 44 |         if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:42:49: error: cannot infer contextual base in reference to member 'default'
 40 |         populateHeaders(headers: options.headers, request: &request)
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
 42 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                 `- error: cannot infer contextual base in reference to member 'default'
 43 |         webSocketTask = urlSession!.webSocketTask(with: request)
 44 |         if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:43:37: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
 42 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
 43 |         webSocketTask = urlSession!.webSocketTask(with: request)
    |                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 44 |         if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
 45 |             webSocketTask?.maximumMessageSize = maximumWebsocketMessageSize
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
 50 |
 51 |     public func send(data: Data, sendDidComplete: @escaping (Error?) -> Void) {
 52 |         let message = URLSessionWebSocketTask.Message.data(data)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 53 |         webSocketTask?.send(message, completionHandler: sendDidComplete)
 54 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:57:38: error: cannot infer contextual base in reference to member 'normalClosure'
 55 |
 56 |     public func close() {
 57 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                      `- error: cannot infer contextual base in reference to member 'normalClosure'
 58 |         urlSession?.finishTasksAndInvalidate()
 59 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:57:61: error: 'nil' requires a contextual type
 55 |
 56 |     public func close() {
 57 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                                             `- error: 'nil' requires a contextual type
 58 |         urlSession?.finishTasksAndInvalidate()
 59 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:58:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 56 |     public func close() {
 57 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
 58 |         urlSession?.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 59 |     }
 60 |
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:88:65: error: cannot infer contextual base in reference to member 'utf8'
 86 |         switch message {
 87 |         case .string(let text):
 88 |             delegate?.transportDidReceiveData(text.data(using: .utf8)!)
    |                                                                 `- error: cannot infer contextual base in reference to member 'utf8'
 89 |         case .data(let data):
 90 |             delegate?.transportDidReceiveData(data)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:125:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
123 |         }
124 |
125 |         let statusCode = (webSocketTask?.response as? HTTPURLResponse)?.statusCode ?? -1
    |                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
126 |         logger.log(
127 |             logLevel: .info,
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:175:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
173 |                 logLevel: .debug,
174 |                 message: "(ws) no auth challenge handler registered - falling back to default handling")
175 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
176 |         }
177 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:175:56: error: 'nil' requires a contextual type
173 |                 logLevel: .debug,
174 |                 message: "(ws) no auth challenge handler registered - falling back to default handling")
175 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
176 |         }
177 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:190:38: error: cannot infer contextual base in reference to member 'normalClosure'
188 |
189 |     private func shutdownTransport() {
190 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                      `- error: cannot infer contextual base in reference to member 'normalClosure'
191 |         urlSession?.finishTasksAndInvalidate()
192 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:190:61: error: 'nil' requires a contextual type
188 |
189 |     private func shutdownTransport() {
190 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                                             `- error: 'nil' requires a contextual type
191 |         urlSession?.finishTasksAndInvalidate()
192 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:191:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
189 |     private func shutdownTransport() {
190 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
191 |         urlSession?.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
192 |     }
193 |
[16/33] Compiling SignalRClient TransportType.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     private var webSocketTask: URLSessionWebSocketTask?
 17 |     private var authenticationChallengeHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
 16 |     private var webSocketTask: URLSessionWebSocketTask?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 17 |     private var authenticationChallengeHandler:
 18 |         (
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:21:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 19 |             (
 20 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
 21 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 22 |             ) -> Void
 23 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:62:47: error: cannot find type 'URLSessionWebSocketTask' in scope
 60 |
 61 |     public func urlSession(
 62 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?
    |                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
 63 |     ) {
 64 |         logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:62:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |     public func urlSession(
 62 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     ) {
 64 |         logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:85:41: error: cannot find type 'URLSessionWebSocketTask' in scope
 83 |     }
 84 |
 85 |     private func handleMessage(message: URLSessionWebSocketTask.Message) {
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 86 |         switch message {
 87 |         case .string(let text):
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:110:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
112 |         guard error != nil else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:110:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                         `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
112 |         guard error != nil else {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:137:47: error: cannot find type 'URLSessionWebSocketTask' in scope
135 |
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
139 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:138:33: error: cannot find type 'URLSessionWebSocketTask' in scope
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
139 |     ) {
140 |         logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:137:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
139 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:166:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
167 |     ) {
168 |         if authenticationChallengeHandler != nil {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:165:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
167 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:165:54: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                                                      `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
167 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:207:94: error: cannot find type 'URLRequest' in scope
205 |     }
206 |
207 |     @inline(__always) private func populateHeaders(headers: [String: String], request: inout URLRequest) {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
208 |         headers.forEach { (key, value) in
209 |             request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:213:102: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
    |                                                                                                      `- error: cannot find type 'URLRequest' in scope
214 |         if let accessToken = accessTokenProvider() {
215 |             request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 10 |
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
    |                                                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:39:23: error: cannot find 'URLRequest' in scope
 37 |         authenticationChallengeHandler = options.authenticationChallengeHandler
 38 |
 39 |         var request = URLRequest(url: convertUrl(url: url))
    |                       `- error: cannot find 'URLRequest' in scope
 40 |         populateHeaders(headers: options.headers, request: &request)
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:42:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 40 |         populateHeaders(headers: options.headers, request: &request)
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
 42 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 43 |         webSocketTask = urlSession!.webSocketTask(with: request)
 44 |         if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:42:49: error: cannot infer contextual base in reference to member 'default'
 40 |         populateHeaders(headers: options.headers, request: &request)
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
 42 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                 `- error: cannot infer contextual base in reference to member 'default'
 43 |         webSocketTask = urlSession!.webSocketTask(with: request)
 44 |         if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:43:37: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
 42 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
 43 |         webSocketTask = urlSession!.webSocketTask(with: request)
    |                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 44 |         if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
 45 |             webSocketTask?.maximumMessageSize = maximumWebsocketMessageSize
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
 50 |
 51 |     public func send(data: Data, sendDidComplete: @escaping (Error?) -> Void) {
 52 |         let message = URLSessionWebSocketTask.Message.data(data)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 53 |         webSocketTask?.send(message, completionHandler: sendDidComplete)
 54 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:57:38: error: cannot infer contextual base in reference to member 'normalClosure'
 55 |
 56 |     public func close() {
 57 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                      `- error: cannot infer contextual base in reference to member 'normalClosure'
 58 |         urlSession?.finishTasksAndInvalidate()
 59 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:57:61: error: 'nil' requires a contextual type
 55 |
 56 |     public func close() {
 57 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                                             `- error: 'nil' requires a contextual type
 58 |         urlSession?.finishTasksAndInvalidate()
 59 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:58:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 56 |     public func close() {
 57 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
 58 |         urlSession?.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 59 |     }
 60 |
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:88:65: error: cannot infer contextual base in reference to member 'utf8'
 86 |         switch message {
 87 |         case .string(let text):
 88 |             delegate?.transportDidReceiveData(text.data(using: .utf8)!)
    |                                                                 `- error: cannot infer contextual base in reference to member 'utf8'
 89 |         case .data(let data):
 90 |             delegate?.transportDidReceiveData(data)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:125:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
123 |         }
124 |
125 |         let statusCode = (webSocketTask?.response as? HTTPURLResponse)?.statusCode ?? -1
    |                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
126 |         logger.log(
127 |             logLevel: .info,
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:175:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
173 |                 logLevel: .debug,
174 |                 message: "(ws) no auth challenge handler registered - falling back to default handling")
175 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
176 |         }
177 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:175:56: error: 'nil' requires a contextual type
173 |                 logLevel: .debug,
174 |                 message: "(ws) no auth challenge handler registered - falling back to default handling")
175 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
176 |         }
177 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:190:38: error: cannot infer contextual base in reference to member 'normalClosure'
188 |
189 |     private func shutdownTransport() {
190 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                      `- error: cannot infer contextual base in reference to member 'normalClosure'
191 |         urlSession?.finishTasksAndInvalidate()
192 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:190:61: error: 'nil' requires a contextual type
188 |
189 |     private func shutdownTransport() {
190 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                                             `- error: 'nil' requires a contextual type
191 |         urlSession?.finishTasksAndInvalidate()
192 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:191:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
189 |     private func shutdownTransport() {
190 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
191 |         urlSession?.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
192 |     }
193 |
[17/33] Compiling SignalRClient WebsocketsTransport.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     private var webSocketTask: URLSessionWebSocketTask?
 17 |     private var authenticationChallengeHandler:
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
 15 |     private var urlSession: URLSession?
 16 |     private var webSocketTask: URLSessionWebSocketTask?
    |                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
 17 |     private var authenticationChallengeHandler:
 18 |         (
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:21:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 19 |             (
 20 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
 21 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 22 |             ) -> Void
 23 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:62:47: error: cannot find type 'URLSessionWebSocketTask' in scope
 60 |
 61 |     public func urlSession(
 62 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?
    |                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
 63 |     ) {
 64 |         logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:62:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 60 |
 61 |     public func urlSession(
 62 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     ) {
 64 |         logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:85:41: error: cannot find type 'URLSessionWebSocketTask' in scope
 83 |     }
 84 |
 85 |     private func handleMessage(message: URLSessionWebSocketTask.Message) {
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 86 |         switch message {
 87 |         case .string(let text):
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:110:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
112 |         guard error != nil else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:110:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                         `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
112 |         guard error != nil else {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:137:47: error: cannot find type 'URLSessionWebSocketTask' in scope
135 |
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
139 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:138:33: error: cannot find type 'URLSessionWebSocketTask' in scope
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
139 |     ) {
140 |         logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:137:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |
136 |     public func urlSession(
137 |         _ session: URLSession, webSocketTask: URLSessionWebSocketTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?
139 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:166:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
167 |     ) {
168 |         if authenticationChallengeHandler != nil {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:165:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
167 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:165:54: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 |
164 |     public func urlSession(
165 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                                                      `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
167 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:207:94: error: cannot find type 'URLRequest' in scope
205 |     }
206 |
207 |     @inline(__always) private func populateHeaders(headers: [String: String], request: inout URLRequest) {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
208 |         headers.forEach { (key, value) in
209 |             request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:213:102: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
    |                                                                                                      `- error: cannot find type 'URLRequest' in scope
214 |         if let accessToken = accessTokenProvider() {
215 |             request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 10 |
 11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
    |                                                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 13 |     private let logger: Logger
 14 |     private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:39:23: error: cannot find 'URLRequest' in scope
 37 |         authenticationChallengeHandler = options.authenticationChallengeHandler
 38 |
 39 |         var request = URLRequest(url: convertUrl(url: url))
    |                       `- error: cannot find 'URLRequest' in scope
 40 |         populateHeaders(headers: options.headers, request: &request)
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:42:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 40 |         populateHeaders(headers: options.headers, request: &request)
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
 42 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 43 |         webSocketTask = urlSession!.webSocketTask(with: request)
 44 |         if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:42:49: error: cannot infer contextual base in reference to member 'default'
 40 |         populateHeaders(headers: options.headers, request: &request)
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
 42 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                 `- error: cannot infer contextual base in reference to member 'default'
 43 |         webSocketTask = urlSession!.webSocketTask(with: request)
 44 |         if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:43:37: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 41 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
 42 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
 43 |         webSocketTask = urlSession!.webSocketTask(with: request)
    |                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 44 |         if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
 45 |             webSocketTask?.maximumMessageSize = maximumWebsocketMessageSize
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
 50 |
 51 |     public func send(data: Data, sendDidComplete: @escaping (Error?) -> Void) {
 52 |         let message = URLSessionWebSocketTask.Message.data(data)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 53 |         webSocketTask?.send(message, completionHandler: sendDidComplete)
 54 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:57:38: error: cannot infer contextual base in reference to member 'normalClosure'
 55 |
 56 |     public func close() {
 57 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                      `- error: cannot infer contextual base in reference to member 'normalClosure'
 58 |         urlSession?.finishTasksAndInvalidate()
 59 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:57:61: error: 'nil' requires a contextual type
 55 |
 56 |     public func close() {
 57 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                                             `- error: 'nil' requires a contextual type
 58 |         urlSession?.finishTasksAndInvalidate()
 59 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:58:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 56 |     public func close() {
 57 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
 58 |         urlSession?.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 59 |     }
 60 |
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:88:65: error: cannot infer contextual base in reference to member 'utf8'
 86 |         switch message {
 87 |         case .string(let text):
 88 |             delegate?.transportDidReceiveData(text.data(using: .utf8)!)
    |                                                                 `- error: cannot infer contextual base in reference to member 'utf8'
 89 |         case .data(let data):
 90 |             delegate?.transportDidReceiveData(data)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:125:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
123 |         }
124 |
125 |         let statusCode = (webSocketTask?.response as? HTTPURLResponse)?.statusCode ?? -1
    |                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
126 |         logger.log(
127 |             logLevel: .info,
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:175:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
173 |                 logLevel: .debug,
174 |                 message: "(ws) no auth challenge handler registered - falling back to default handling")
175 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
176 |         }
177 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:175:56: error: 'nil' requires a contextual type
173 |                 logLevel: .debug,
174 |                 message: "(ws) no auth challenge handler registered - falling back to default handling")
175 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
176 |         }
177 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:190:38: error: cannot infer contextual base in reference to member 'normalClosure'
188 |
189 |     private func shutdownTransport() {
190 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                      `- error: cannot infer contextual base in reference to member 'normalClosure'
191 |         urlSession?.finishTasksAndInvalidate()
192 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:190:61: error: 'nil' requires a contextual type
188 |
189 |     private func shutdownTransport() {
190 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
    |                                                             `- error: 'nil' requires a contextual type
191 |         urlSession?.finishTasksAndInvalidate()
192 |     }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:191:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
189 |     private func shutdownTransport() {
190 |         webSocketTask?.cancel(with: .normalClosure, reason: nil)
191 |         urlSession?.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
192 |     }
193 |
[18/33] Compiling SignalRClient HttpConnection.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:562:17: warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
560 |         if serverInvocationHandler != nil {
561 |             callbackQueue.async {
562 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
563 |             }
564 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:596:25: warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
594 |             callbackQueue.async {
595 |                 do {
596 |                     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
597 |                 } catch {
598 |                     self.logger.log(
[19/33] Compiling SignalRClient HttpConnectionOptions.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:562:17: warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
560 |         if serverInvocationHandler != nil {
561 |             callbackQueue.async {
562 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
563 |             }
564 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:596:25: warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
594 |             callbackQueue.async {
595 |                 do {
596 |                     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
597 |                 } catch {
598 |                     self.logger.log(
[20/33] Compiling SignalRClient HttpResponse.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:562:17: warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
560 |         if serverInvocationHandler != nil {
561 |             callbackQueue.async {
562 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
563 |             }
564 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:596:25: warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
594 |             callbackQueue.async {
595 |                 do {
596 |                     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
597 |                 } catch {
598 |                     self.logger.log(
[21/33] Compiling SignalRClient HubConnection.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:562:17: warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
560 |         if serverInvocationHandler != nil {
561 |             callbackQueue.async {
562 |                 serverInvocationHandler!.processCompletion(completionMessage: message)
    |                 `- warning: reference to captured var 'serverInvocationHandler' in concurrently-executing code; this is an error in the Swift 6 language mode
563 |             }
564 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:596:25: warning: reference to captured var 'callback' in concurrently-executing code; this is an error in the Swift 6 language mode
594 |             callbackQueue.async {
595 |                 do {
596 |                     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
597 |                 } catch {
598 |                     self.logger.log(
[22/33] Compiling SignalRClient DefaultHttpClient.swift
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | class DefaultHttpClient: HttpClientProtocol {
 12 |     private let options: HttpConnectionOptions
 13 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     public init(options: HttpConnectionOptions) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:65:94: error: cannot find type 'URLRequest' in scope
 63 |     }
 64 |
 65 |     @inline(__always) private func populateHeaders(headers: [String: String], request: inout URLRequest) {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
 66 |         headers.forEach { (key, value) in
 67 |             request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:102: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
    |                                                                                                      `- error: cannot find type 'URLRequest' in scope
 72 |         if let accessToken = accessTokenProvider() {
 73 |             request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:78:59: error: cannot find type 'URLSessionDelegate' in scope
 76 | }
 77 |
 78 | private class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
    |                                                           `- error: cannot find type 'URLSessionDelegate' in scope
 79 |     static var shared = DefaultHttpClientSessionDelegate()
 80 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:85:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 83 |             (
 84 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
 85 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 86 |             ) -> Void
 87 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:91:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 92 |     ) {
 93 |         if let challengeHandler = authenticationChallengeHandler {
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:90:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 92 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:90:54: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                                                      `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 92 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 15 |     public init(options: HttpConnectionOptions) {
 16 |         self.options = options
 17 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 18 |         sessionConfig.timeoutIntervalForRequest = options.requestTimeout
 19 |         DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 18 |         sessionConfig.timeoutIntervalForRequest = options.requestTimeout
 19 |         DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
 20 |         self.session = URLSession(
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 21 |             configuration: sessionConfig,
 22 |             delegate: DefaultHttpClientSessionDelegate.shared,
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
 21 |             configuration: sessionConfig,
 22 |             delegate: DefaultHttpClientSessionDelegate.shared,
 23 |             delegateQueue: nil
    |                            `- error: 'nil' requires a contextual type
 24 |         )
 25 |     }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:28:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 26 |
 27 |     deinit {
 28 |         session.finishTasksAndInvalidate()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 29 |     }
 30 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:46:26: error: cannot find 'URLRequest' in scope
 44 |         url: URL, method: String, body: Data?, completionHandler: @escaping (HttpResponse?, Error?) -> Swift.Void
 45 |     ) {
 46 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 47 |         urlRequest.httpMethod = method
 48 |         urlRequest.httpBody = body
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:52:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 50 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &urlRequest)
 51 |
 52 |         session.dataTask(
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 53 |             with: urlRequest,
 54 |             completionHandler: { (data, response, error) in
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:57:84: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 55 |                 var resp: HttpResponse?
 56 |                 if error == nil {
 57 |                     resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
    |                                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 58 |                 }
 59 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:96:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
 94 |             challengeHandler(session, challenge, completionHandler)
 95 |         } else {
 96 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
 97 |         }
 98 |     }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:96:56: error: 'nil' requires a contextual type
 94 |             challengeHandler(session, challenge, completionHandler)
 95 |         } else {
 96 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
 97 |         }
 98 |     }
[23/33] Compiling SignalRClient DefaultTransportFactory.swift
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | class DefaultHttpClient: HttpClientProtocol {
 12 |     private let options: HttpConnectionOptions
 13 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     public init(options: HttpConnectionOptions) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:65:94: error: cannot find type 'URLRequest' in scope
 63 |     }
 64 |
 65 |     @inline(__always) private func populateHeaders(headers: [String: String], request: inout URLRequest) {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
 66 |         headers.forEach { (key, value) in
 67 |             request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:102: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
    |                                                                                                      `- error: cannot find type 'URLRequest' in scope
 72 |         if let accessToken = accessTokenProvider() {
 73 |             request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:78:59: error: cannot find type 'URLSessionDelegate' in scope
 76 | }
 77 |
 78 | private class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
    |                                                           `- error: cannot find type 'URLSessionDelegate' in scope
 79 |     static var shared = DefaultHttpClientSessionDelegate()
 80 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:85:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 83 |             (
 84 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
 85 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 86 |             ) -> Void
 87 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:91:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 92 |     ) {
 93 |         if let challengeHandler = authenticationChallengeHandler {
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:90:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 92 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:90:54: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                                                      `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 92 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 15 |     public init(options: HttpConnectionOptions) {
 16 |         self.options = options
 17 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 18 |         sessionConfig.timeoutIntervalForRequest = options.requestTimeout
 19 |         DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 18 |         sessionConfig.timeoutIntervalForRequest = options.requestTimeout
 19 |         DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
 20 |         self.session = URLSession(
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 21 |             configuration: sessionConfig,
 22 |             delegate: DefaultHttpClientSessionDelegate.shared,
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
 21 |             configuration: sessionConfig,
 22 |             delegate: DefaultHttpClientSessionDelegate.shared,
 23 |             delegateQueue: nil
    |                            `- error: 'nil' requires a contextual type
 24 |         )
 25 |     }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:28:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 26 |
 27 |     deinit {
 28 |         session.finishTasksAndInvalidate()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 29 |     }
 30 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:46:26: error: cannot find 'URLRequest' in scope
 44 |         url: URL, method: String, body: Data?, completionHandler: @escaping (HttpResponse?, Error?) -> Swift.Void
 45 |     ) {
 46 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 47 |         urlRequest.httpMethod = method
 48 |         urlRequest.httpBody = body
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:52:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 50 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &urlRequest)
 51 |
 52 |         session.dataTask(
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 53 |             with: urlRequest,
 54 |             completionHandler: { (data, response, error) in
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:57:84: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 55 |                 var resp: HttpResponse?
 56 |                 if error == nil {
 57 |                     resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
    |                                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 58 |                 }
 59 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:96:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
 94 |             challengeHandler(session, challenge, completionHandler)
 95 |         } else {
 96 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
 97 |         }
 98 |     }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:96:56: error: 'nil' requires a contextual type
 94 |             challengeHandler(session, challenge, completionHandler)
 95 |         } else {
 96 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
 97 |         }
 98 |     }
[24/33] Compiling SignalRClient HandshakeProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | class DefaultHttpClient: HttpClientProtocol {
 12 |     private let options: HttpConnectionOptions
 13 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     public init(options: HttpConnectionOptions) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:65:94: error: cannot find type 'URLRequest' in scope
 63 |     }
 64 |
 65 |     @inline(__always) private func populateHeaders(headers: [String: String], request: inout URLRequest) {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
 66 |         headers.forEach { (key, value) in
 67 |             request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:102: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
    |                                                                                                      `- error: cannot find type 'URLRequest' in scope
 72 |         if let accessToken = accessTokenProvider() {
 73 |             request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:78:59: error: cannot find type 'URLSessionDelegate' in scope
 76 | }
 77 |
 78 | private class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
    |                                                           `- error: cannot find type 'URLSessionDelegate' in scope
 79 |     static var shared = DefaultHttpClientSessionDelegate()
 80 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:85:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 83 |             (
 84 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
 85 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 86 |             ) -> Void
 87 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:91:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 92 |     ) {
 93 |         if let challengeHandler = authenticationChallengeHandler {
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:90:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 92 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:90:54: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                                                      `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 92 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 15 |     public init(options: HttpConnectionOptions) {
 16 |         self.options = options
 17 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 18 |         sessionConfig.timeoutIntervalForRequest = options.requestTimeout
 19 |         DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 18 |         sessionConfig.timeoutIntervalForRequest = options.requestTimeout
 19 |         DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
 20 |         self.session = URLSession(
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 21 |             configuration: sessionConfig,
 22 |             delegate: DefaultHttpClientSessionDelegate.shared,
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
 21 |             configuration: sessionConfig,
 22 |             delegate: DefaultHttpClientSessionDelegate.shared,
 23 |             delegateQueue: nil
    |                            `- error: 'nil' requires a contextual type
 24 |         )
 25 |     }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:28:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 26 |
 27 |     deinit {
 28 |         session.finishTasksAndInvalidate()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 29 |     }
 30 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:46:26: error: cannot find 'URLRequest' in scope
 44 |         url: URL, method: String, body: Data?, completionHandler: @escaping (HttpResponse?, Error?) -> Swift.Void
 45 |     ) {
 46 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 47 |         urlRequest.httpMethod = method
 48 |         urlRequest.httpBody = body
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:52:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 50 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &urlRequest)
 51 |
 52 |         session.dataTask(
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 53 |             with: urlRequest,
 54 |             completionHandler: { (data, response, error) in
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:57:84: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 55 |                 var resp: HttpResponse?
 56 |                 if error == nil {
 57 |                     resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
    |                                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 58 |                 }
 59 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:96:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
 94 |             challengeHandler(session, challenge, completionHandler)
 95 |         } else {
 96 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
 97 |         }
 98 |     }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:96:56: error: 'nil' requires a contextual type
 94 |             challengeHandler(session, challenge, completionHandler)
 95 |         } else {
 96 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
 97 |         }
 98 |     }
[25/33] Compiling SignalRClient HttpClientProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 | class DefaultHttpClient: HttpClientProtocol {
 12 |     private let options: HttpConnectionOptions
 13 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |
 15 |     public init(options: HttpConnectionOptions) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:65:94: error: cannot find type 'URLRequest' in scope
 63 |     }
 64 |
 65 |     @inline(__always) private func populateHeaders(headers: [String: String], request: inout URLRequest) {
    |                                                                                              `- error: cannot find type 'URLRequest' in scope
 66 |         headers.forEach { (key, value) in
 67 |             request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:102: error: cannot find type 'URLRequest' in scope
 69 |     }
 70 |
 71 |     @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
    |                                                                                                      `- error: cannot find type 'URLRequest' in scope
 72 |         if let accessToken = accessTokenProvider() {
 73 |             request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:78:59: error: cannot find type 'URLSessionDelegate' in scope
 76 | }
 77 |
 78 | private class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
    |                                                           `- error: cannot find type 'URLSessionDelegate' in scope
 79 |     static var shared = DefaultHttpClientSessionDelegate()
 80 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:85:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 83 |             (
 84 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
 85 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 86 |             ) -> Void
 87 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:91:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 92 |     ) {
 93 |         if let challengeHandler = authenticationChallengeHandler {
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:90:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 92 |     ) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:90:54: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |     func urlSession(
 90 |         _ session: URLSession, didReceive challenge: URLAuthenticationChallenge,
    |                                                      `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 92 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 15 |     public init(options: HttpConnectionOptions) {
 16 |         self.options = options
 17 |         let sessionConfig = URLSessionConfiguration.default
    |                                                     `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 18 |         sessionConfig.timeoutIntervalForRequest = options.requestTimeout
 19 |         DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 18 |         sessionConfig.timeoutIntervalForRequest = options.requestTimeout
 19 |         DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
 20 |         self.session = URLSession(
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 21 |             configuration: sessionConfig,
 22 |             delegate: DefaultHttpClientSessionDelegate.shared,
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
 21 |             configuration: sessionConfig,
 22 |             delegate: DefaultHttpClientSessionDelegate.shared,
 23 |             delegateQueue: nil
    |                            `- error: 'nil' requires a contextual type
 24 |         )
 25 |     }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:28:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 26 |
 27 |     deinit {
 28 |         session.finishTasksAndInvalidate()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 29 |     }
 30 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:46:26: error: cannot find 'URLRequest' in scope
 44 |         url: URL, method: String, body: Data?, completionHandler: @escaping (HttpResponse?, Error?) -> Swift.Void
 45 |     ) {
 46 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 47 |         urlRequest.httpMethod = method
 48 |         urlRequest.httpBody = body
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:52:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 50 |         setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &urlRequest)
 51 |
 52 |         session.dataTask(
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 53 |             with: urlRequest,
 54 |             completionHandler: { (data, response, error) in
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:57:84: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 55 |                 var resp: HttpResponse?
 56 |                 if error == nil {
 57 |                     resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
    |                                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 58 |                 }
 59 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:96:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
 94 |             challengeHandler(session, challenge, completionHandler)
 95 |         } else {
 96 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
 97 |         }
 98 |     }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:96:56: error: 'nil' requires a contextual type
 94 |             challengeHandler(session, challenge, completionHandler)
 95 |         } else {
 96 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
 97 |         }
 98 |     }
[26/33] Compiling SignalRClient HubProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
[27/33] Compiling SignalRClient JSONHubProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
[28/33] Compiling SignalRClient Logger.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
[29/33] Compiling SignalRClient LongPollingTransport.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:62:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
60 |             (
61 |                 _ session: URLSession, _ challenge: URLAuthenticationChallenge,
62 |                 _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
   |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
63 |             ) -> Void
64 |         )?
[30/33] Compiling SignalRClient NegotiationResponse.swift
[31/33] Compiling SignalRClient ReconnectPolicy.swift
[32/33] Compiling SignalRClient ReconnectableConnection.swift
[33/33] Compiling SignalRClient ServerInvocationHandler.swift
BUILD FAILURE 6.1 linux