The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SignalRClient, reference dev (e9a4d8), with Swift 6.3 for Wasm on 17 Apr 2026 16:48:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

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/Transport/WebSocketTransport.swift:109:36: error: cannot find type 'URLSessionWebSocketTask' in scope
107 |
108 |             private var urlSession: URLSession?
109 |             private var websocket: URLSessionWebSocketTask?
    |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
110 |             private var receiveTask: Task<Void, Never>?
111 |             private var onReceive: OnReceiveHandler?
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:120:35: error: cannot find type 'URLRequest' in scope
118 |             }
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
    |                                   `- error: cannot find type 'URLRequest' in scope
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
122 |                 websocket = urlSession!.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:178:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
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/Transport/WebSocketTransport.swift:178:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
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/Transport/WebSocketTransport.swift:187:79: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:128: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                                                                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
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/Transport/WebSocketTransport.swift:195:79: error: cannot find type 'URLSessionWebSocketTask' in scope
193 |             }
194 |
195 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:195:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |             }
194 |
195 |             nonisolated func urlSession(_ 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.
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
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
[4/40] Compiling SignalRClient InvocationBinder.swift
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:20:33: error: cannot find type 'DispatchWorkItem' in scope
 18 |     private var waitForSequenceMessage: Bool = false;
 19 |
 20 |     private var ackTimerHandle: DispatchWorkItem?
    |                                 `- error: cannot find type 'DispatchWorkItem' in scope
 21 |
 22 |     private var hubProtocol: HubProtocol;
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:87:24: error: cannot find 'DispatchWorkItem' in scope
 85 |         }
 86 |
 87 |         let workItem = DispatchWorkItem { [weak self] in
    |                        `- error: cannot find 'DispatchWorkItem' in scope
 88 |             guard let self = self else { return }
 89 |
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:96:9: error: cannot find 'DispatchQueue' in scope
 94 |
 95 |         ackTimerHandle = workItem
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: workItem)
    |         `- error: cannot find 'DispatchQueue' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:96:50: error: cannot call value of non-function type 'Date'
 94 |
 95 |         ackTimerHandle = workItem
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: workItem)
    |                                                  `- error: cannot call value of non-function type 'Date'
 97 |     }
 98 |
[5/40] Compiling SignalRClient Logger.swift
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:20:33: error: cannot find type 'DispatchWorkItem' in scope
 18 |     private var waitForSequenceMessage: Bool = false;
 19 |
 20 |     private var ackTimerHandle: DispatchWorkItem?
    |                                 `- error: cannot find type 'DispatchWorkItem' in scope
 21 |
 22 |     private var hubProtocol: HubProtocol;
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:87:24: error: cannot find 'DispatchWorkItem' in scope
 85 |         }
 86 |
 87 |         let workItem = DispatchWorkItem { [weak self] in
    |                        `- error: cannot find 'DispatchWorkItem' in scope
 88 |             guard let self = self else { return }
 89 |
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:96:9: error: cannot find 'DispatchQueue' in scope
 94 |
 95 |         ackTimerHandle = workItem
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: workItem)
    |         `- error: cannot find 'DispatchQueue' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:96:50: error: cannot call value of non-function type 'Date'
 94 |
 95 |         ackTimerHandle = workItem
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: workItem)
    |                                                  `- error: cannot call value of non-function type 'Date'
 97 |     }
 98 |
[6/40] Compiling SignalRClient MessageBuffer.swift
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:20:33: error: cannot find type 'DispatchWorkItem' in scope
 18 |     private var waitForSequenceMessage: Bool = false;
 19 |
 20 |     private var ackTimerHandle: DispatchWorkItem?
    |                                 `- error: cannot find type 'DispatchWorkItem' in scope
 21 |
 22 |     private var hubProtocol: HubProtocol;
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:87:24: error: cannot find 'DispatchWorkItem' in scope
 85 |         }
 86 |
 87 |         let workItem = DispatchWorkItem { [weak self] in
    |                        `- error: cannot find 'DispatchWorkItem' in scope
 88 |             guard let self = self else { return }
 89 |
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:96:9: error: cannot find 'DispatchQueue' in scope
 94 |
 95 |         ackTimerHandle = workItem
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: workItem)
    |         `- error: cannot find 'DispatchQueue' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:96:50: error: cannot call value of non-function type 'Date'
 94 |
 95 |         ackTimerHandle = workItem
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: workItem)
    |                                                  `- error: cannot call value of non-function type 'Date'
 97 |     }
 98 |
[7/40] Compiling SignalRClient BinaryMessageFormat.swift
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:20:33: error: cannot find type 'DispatchWorkItem' in scope
 18 |     private var waitForSequenceMessage: Bool = false;
 19 |
 20 |     private var ackTimerHandle: DispatchWorkItem?
    |                                 `- error: cannot find type 'DispatchWorkItem' in scope
 21 |
 22 |     private var hubProtocol: HubProtocol;
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:87:24: error: cannot find 'DispatchWorkItem' in scope
 85 |         }
 86 |
 87 |         let workItem = DispatchWorkItem { [weak self] in
    |                        `- error: cannot find 'DispatchWorkItem' in scope
 88 |             guard let self = self else { return }
 89 |
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:96:9: error: cannot find 'DispatchQueue' in scope
 94 |
 95 |         ackTimerHandle = workItem
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: workItem)
    |         `- error: cannot find 'DispatchQueue' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:96:50: error: cannot call value of non-function type 'Date'
 94 |
 95 |         ackTimerHandle = workItem
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: workItem)
    |                                                  `- error: cannot call value of non-function type 'Date'
 97 |     }
 98 |
[8/40] Compiling SignalRClient HubMessage.swift
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:20:33: error: cannot find type 'DispatchWorkItem' in scope
 18 |     private var waitForSequenceMessage: Bool = false;
 19 |
 20 |     private var ackTimerHandle: DispatchWorkItem?
    |                                 `- error: cannot find type 'DispatchWorkItem' in scope
 21 |
 22 |     private var hubProtocol: HubProtocol;
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:87:24: error: cannot find 'DispatchWorkItem' in scope
 85 |         }
 86 |
 87 |         let workItem = DispatchWorkItem { [weak self] in
    |                        `- error: cannot find 'DispatchWorkItem' in scope
 88 |             guard let self = self else { return }
 89 |
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:96:9: error: cannot find 'DispatchQueue' in scope
 94 |
 95 |         ackTimerHandle = workItem
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: workItem)
    |         `- error: cannot find 'DispatchQueue' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SignalRClient/MessageBuffer.swift:96:50: error: cannot call value of non-function type 'Date'
 94 |
 95 |         ackTimerHandle = workItem
 96 |         DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: workItem)
    |                                                  `- error: cannot call value of non-function type 'Date'
 97 |     }
 98 |
[9/40] Compiling SignalRClient Transport.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:73:31: error: cannot find type 'URLRequest' in scope
 71 |
 72 |     protocol WebSocketConnection {
 73 |         func connect(request: URLRequest, transferFormat: TransferFormat) async throws
    |                               `- error: cannot find type 'URLRequest' in scope
 74 |         func send(_ data: StringOrData) async throws
 75 |         func stop(error: Error?) async throws
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:104:82: error: cannot find type 'URLSessionWebSocketDelegate' in scope
102 |         }
103 |     #else
104 |         private actor DefaultWebSocketConnection: NSObject, WebSocketConnection, URLSessionWebSocketDelegate {
    |                                                                                  `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
105 |             private let logger: Logger
106 |             private let openTcs: TaskCompletionSource<Void> = TaskCompletionSource()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:108:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |             private let openTcs: TaskCompletionSource<Void> = TaskCompletionSource()
107 |
108 |             private var urlSession: URLSession?
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |             private var websocket: URLSessionWebSocketTask?
110 |             private var receiveTask: Task<Void, Never>?
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/Transport/WebSocketTransport.swift:109:36: error: cannot find type 'URLSessionWebSocketTask' in scope
107 |
108 |             private var urlSession: URLSession?
109 |             private var websocket: URLSessionWebSocketTask?
    |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
110 |             private var receiveTask: Task<Void, Never>?
111 |             private var onReceive: OnReceiveHandler?
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:120:35: error: cannot find type 'URLRequest' in scope
118 |             }
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
    |                                   `- error: cannot find type 'URLRequest' in scope
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
122 |                 websocket = urlSession!.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:178:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
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/Transport/WebSocketTransport.swift:178:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
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/Transport/WebSocketTransport.swift:187:79: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:128: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                                                                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
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/Transport/WebSocketTransport.swift:195:79: error: cannot find type 'URLSessionWebSocketTask' in scope
193 |             }
194 |
195 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:195:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |             }
194 |
195 |             nonisolated func urlSession(_ 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.
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
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/Transport/WebSocketTransport.swift:46:23: error: cannot find 'URLRequest' in scope
 44 |         }
 45 |
 46 |         var request = URLRequest(url: urlComponents.url!)
    |                       `- error: cannot find 'URLRequest' in scope
 47 |
 48 |         // Add headeres
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:97: error: cannot find 'OperationQueue' in scope
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                                                                 `- error: cannot find 'OperationQueue' in scope
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                              `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:57: error: cannot infer contextual base in reference to member 'default'
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                         `- error: cannot infer contextual base in reference to member 'default'
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:122:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
122 |                 websocket = urlSession!.webSocketTask(with: request)
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
123 |
124 |                 guard websocket != nil else {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:141:61: error: cannot infer contextual base in reference to member 'running'
139 |
140 |             func send(_ data: StringOrData) async throws {
141 |                 guard let ws = self.websocket, ws.state == .running else {
    |                                                             `- error: cannot infer contextual base in reference to member 'running'
142 |                     throw SignalRError.invalidOperation("(WebSockets transport) Cannot send until the transport is connected")
143 |                 }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:147:39: error: cannot find 'URLSessionWebSocketTask' in scope
145 |                 switch data {
146 |                 case .string(let str):
147 |                     try await ws.send(URLSessionWebSocketTask.Message.string(str))
    |                                       `- error: cannot find 'URLSessionWebSocketTask' in scope
148 |                 case .data(let data):
149 |                     try await ws.send(URLSessionWebSocketTask.Message.data(data))
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:149:39: error: cannot find 'URLSessionWebSocketTask' in scope
147 |                     try await ws.send(URLSessionWebSocketTask.Message.string(str))
148 |                 case .data(let data):
149 |                     try await ws.send(URLSessionWebSocketTask.Message.data(data))
    |                                       `- error: cannot find 'URLSessionWebSocketTask' in scope
150 |                 }
151 |             }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:159:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
157 |                 closed = true
158 |
159 |                 urlSession?.finishTasksAndInvalidate() // Prevent new task from being created
    |                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
160 |                 websocket?.cancel() // Close the current connection
161 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:206:38: error: cannot find type 'URLSessionWebSocketTask' in scope
204 |
205 |             private func receiveMessage() async {
206 |                 guard let websocket: URLSessionWebSocketTask = websocket else {
    |                                      `- error: cannot find type 'URLSessionWebSocketTask' in scope
207 |                     logger.log(level: .error, message: "(WebSockets transport) WebSocket is nil")
208 |                     return
[10/40] Compiling SignalRClient WebSocketTransport.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:73:31: error: cannot find type 'URLRequest' in scope
 71 |
 72 |     protocol WebSocketConnection {
 73 |         func connect(request: URLRequest, transferFormat: TransferFormat) async throws
    |                               `- error: cannot find type 'URLRequest' in scope
 74 |         func send(_ data: StringOrData) async throws
 75 |         func stop(error: Error?) async throws
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:104:82: error: cannot find type 'URLSessionWebSocketDelegate' in scope
102 |         }
103 |     #else
104 |         private actor DefaultWebSocketConnection: NSObject, WebSocketConnection, URLSessionWebSocketDelegate {
    |                                                                                  `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
105 |             private let logger: Logger
106 |             private let openTcs: TaskCompletionSource<Void> = TaskCompletionSource()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:108:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |             private let openTcs: TaskCompletionSource<Void> = TaskCompletionSource()
107 |
108 |             private var urlSession: URLSession?
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |             private var websocket: URLSessionWebSocketTask?
110 |             private var receiveTask: Task<Void, Never>?
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/Transport/WebSocketTransport.swift:109:36: error: cannot find type 'URLSessionWebSocketTask' in scope
107 |
108 |             private var urlSession: URLSession?
109 |             private var websocket: URLSessionWebSocketTask?
    |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
110 |             private var receiveTask: Task<Void, Never>?
111 |             private var onReceive: OnReceiveHandler?
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:120:35: error: cannot find type 'URLRequest' in scope
118 |             }
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
    |                                   `- error: cannot find type 'URLRequest' in scope
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
122 |                 websocket = urlSession!.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:178:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
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/Transport/WebSocketTransport.swift:178:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
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/Transport/WebSocketTransport.swift:187:79: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:128: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                                                                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
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/Transport/WebSocketTransport.swift:195:79: error: cannot find type 'URLSessionWebSocketTask' in scope
193 |             }
194 |
195 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:195:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |             }
194 |
195 |             nonisolated func urlSession(_ 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.
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
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/Transport/WebSocketTransport.swift:46:23: error: cannot find 'URLRequest' in scope
 44 |         }
 45 |
 46 |         var request = URLRequest(url: urlComponents.url!)
    |                       `- error: cannot find 'URLRequest' in scope
 47 |
 48 |         // Add headeres
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:97: error: cannot find 'OperationQueue' in scope
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                                                                 `- error: cannot find 'OperationQueue' in scope
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                              `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:57: error: cannot infer contextual base in reference to member 'default'
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                         `- error: cannot infer contextual base in reference to member 'default'
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:122:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
122 |                 websocket = urlSession!.webSocketTask(with: request)
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
123 |
124 |                 guard websocket != nil else {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:141:61: error: cannot infer contextual base in reference to member 'running'
139 |
140 |             func send(_ data: StringOrData) async throws {
141 |                 guard let ws = self.websocket, ws.state == .running else {
    |                                                             `- error: cannot infer contextual base in reference to member 'running'
142 |                     throw SignalRError.invalidOperation("(WebSockets transport) Cannot send until the transport is connected")
143 |                 }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:147:39: error: cannot find 'URLSessionWebSocketTask' in scope
145 |                 switch data {
146 |                 case .string(let str):
147 |                     try await ws.send(URLSessionWebSocketTask.Message.string(str))
    |                                       `- error: cannot find 'URLSessionWebSocketTask' in scope
148 |                 case .data(let data):
149 |                     try await ws.send(URLSessionWebSocketTask.Message.data(data))
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:149:39: error: cannot find 'URLSessionWebSocketTask' in scope
147 |                     try await ws.send(URLSessionWebSocketTask.Message.string(str))
148 |                 case .data(let data):
149 |                     try await ws.send(URLSessionWebSocketTask.Message.data(data))
    |                                       `- error: cannot find 'URLSessionWebSocketTask' in scope
150 |                 }
151 |             }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:159:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
157 |                 closed = true
158 |
159 |                 urlSession?.finishTasksAndInvalidate() // Prevent new task from being created
    |                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
160 |                 websocket?.cancel() // Close the current connection
161 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:206:38: error: cannot find type 'URLSessionWebSocketTask' in scope
204 |
205 |             private func receiveMessage() async {
206 |                 guard let websocket: URLSessionWebSocketTask = websocket else {
    |                                      `- error: cannot find type 'URLSessionWebSocketTask' in scope
207 |                     logger.log(level: .error, message: "(WebSockets transport) WebSocket is nil")
208 |                     return
[11/40] Compiling SignalRClient Utils.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:73:31: error: cannot find type 'URLRequest' in scope
 71 |
 72 |     protocol WebSocketConnection {
 73 |         func connect(request: URLRequest, transferFormat: TransferFormat) async throws
    |                               `- error: cannot find type 'URLRequest' in scope
 74 |         func send(_ data: StringOrData) async throws
 75 |         func stop(error: Error?) async throws
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:104:82: error: cannot find type 'URLSessionWebSocketDelegate' in scope
102 |         }
103 |     #else
104 |         private actor DefaultWebSocketConnection: NSObject, WebSocketConnection, URLSessionWebSocketDelegate {
    |                                                                                  `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
105 |             private let logger: Logger
106 |             private let openTcs: TaskCompletionSource<Void> = TaskCompletionSource()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:108:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |             private let openTcs: TaskCompletionSource<Void> = TaskCompletionSource()
107 |
108 |             private var urlSession: URLSession?
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |             private var websocket: URLSessionWebSocketTask?
110 |             private var receiveTask: Task<Void, Never>?
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/Transport/WebSocketTransport.swift:109:36: error: cannot find type 'URLSessionWebSocketTask' in scope
107 |
108 |             private var urlSession: URLSession?
109 |             private var websocket: URLSessionWebSocketTask?
    |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
110 |             private var receiveTask: Task<Void, Never>?
111 |             private var onReceive: OnReceiveHandler?
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:120:35: error: cannot find type 'URLRequest' in scope
118 |             }
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
    |                                   `- error: cannot find type 'URLRequest' in scope
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
122 |                 websocket = urlSession!.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:178:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
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/Transport/WebSocketTransport.swift:178:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
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/Transport/WebSocketTransport.swift:187:79: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:128: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                                                                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
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/Transport/WebSocketTransport.swift:195:79: error: cannot find type 'URLSessionWebSocketTask' in scope
193 |             }
194 |
195 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:195:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |             }
194 |
195 |             nonisolated func urlSession(_ 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.
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
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/Transport/WebSocketTransport.swift:46:23: error: cannot find 'URLRequest' in scope
 44 |         }
 45 |
 46 |         var request = URLRequest(url: urlComponents.url!)
    |                       `- error: cannot find 'URLRequest' in scope
 47 |
 48 |         // Add headeres
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:97: error: cannot find 'OperationQueue' in scope
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                                                                 `- error: cannot find 'OperationQueue' in scope
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                              `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:57: error: cannot infer contextual base in reference to member 'default'
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                         `- error: cannot infer contextual base in reference to member 'default'
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:122:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
122 |                 websocket = urlSession!.webSocketTask(with: request)
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
123 |
124 |                 guard websocket != nil else {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:141:61: error: cannot infer contextual base in reference to member 'running'
139 |
140 |             func send(_ data: StringOrData) async throws {
141 |                 guard let ws = self.websocket, ws.state == .running else {
    |                                                             `- error: cannot infer contextual base in reference to member 'running'
142 |                     throw SignalRError.invalidOperation("(WebSockets transport) Cannot send until the transport is connected")
143 |                 }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:147:39: error: cannot find 'URLSessionWebSocketTask' in scope
145 |                 switch data {
146 |                 case .string(let str):
147 |                     try await ws.send(URLSessionWebSocketTask.Message.string(str))
    |                                       `- error: cannot find 'URLSessionWebSocketTask' in scope
148 |                 case .data(let data):
149 |                     try await ws.send(URLSessionWebSocketTask.Message.data(data))
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:149:39: error: cannot find 'URLSessionWebSocketTask' in scope
147 |                     try await ws.send(URLSessionWebSocketTask.Message.string(str))
148 |                 case .data(let data):
149 |                     try await ws.send(URLSessionWebSocketTask.Message.data(data))
    |                                       `- error: cannot find 'URLSessionWebSocketTask' in scope
150 |                 }
151 |             }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:159:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
157 |                 closed = true
158 |
159 |                 urlSession?.finishTasksAndInvalidate() // Prevent new task from being created
    |                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
160 |                 websocket?.cancel() // Close the current connection
161 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:206:38: error: cannot find type 'URLSessionWebSocketTask' in scope
204 |
205 |             private func receiveMessage() async {
206 |                 guard let websocket: URLSessionWebSocketTask = websocket else {
    |                                      `- error: cannot find type 'URLSessionWebSocketTask' in scope
207 |                     logger.log(level: .error, message: "(WebSockets transport) WebSocket is nil")
208 |                     return
[12/40] Compiling SignalRClient Version.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:73:31: error: cannot find type 'URLRequest' in scope
 71 |
 72 |     protocol WebSocketConnection {
 73 |         func connect(request: URLRequest, transferFormat: TransferFormat) async throws
    |                               `- error: cannot find type 'URLRequest' in scope
 74 |         func send(_ data: StringOrData) async throws
 75 |         func stop(error: Error?) async throws
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:104:82: error: cannot find type 'URLSessionWebSocketDelegate' in scope
102 |         }
103 |     #else
104 |         private actor DefaultWebSocketConnection: NSObject, WebSocketConnection, URLSessionWebSocketDelegate {
    |                                                                                  `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
105 |             private let logger: Logger
106 |             private let openTcs: TaskCompletionSource<Void> = TaskCompletionSource()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:108:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |             private let openTcs: TaskCompletionSource<Void> = TaskCompletionSource()
107 |
108 |             private var urlSession: URLSession?
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |             private var websocket: URLSessionWebSocketTask?
110 |             private var receiveTask: Task<Void, Never>?
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/Transport/WebSocketTransport.swift:109:36: error: cannot find type 'URLSessionWebSocketTask' in scope
107 |
108 |             private var urlSession: URLSession?
109 |             private var websocket: URLSessionWebSocketTask?
    |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
110 |             private var receiveTask: Task<Void, Never>?
111 |             private var onReceive: OnReceiveHandler?
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:120:35: error: cannot find type 'URLRequest' in scope
118 |             }
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
    |                                   `- error: cannot find type 'URLRequest' in scope
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
122 |                 websocket = urlSession!.webSocketTask(with: request)
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:178:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
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/Transport/WebSocketTransport.swift:178:70: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |             }
177 |
178 |             nonisolated func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCompleteWithError: \(String(describing: error))")
180 |
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/Transport/WebSocketTransport.swift:187:79: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:128: error: cannot find type 'URLSessionWebSocketTask' in scope
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                                                                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:187:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |
186 |             // When receive websocket close message?
187 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |                 logger.log(level: .debug, message: "(WebSockets transport) URLSession didCloseWith: \(closeCode)")
189 |
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/Transport/WebSocketTransport.swift:195:79: error: cannot find type 'URLSessionWebSocketTask' in scope
193 |             }
194 |
195 |             nonisolated func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                                                                               `- error: cannot find type 'URLSessionWebSocketTask' in scope
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:195:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |             }
194 |
195 |             nonisolated func urlSession(_ 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.
196 |                 logger.log(level: .debug, message: "(WebSockets transport) urlSession didOpenWithProtocol invoked. WebSocket open")
197 |
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/Transport/WebSocketTransport.swift:46:23: error: cannot find 'URLRequest' in scope
 44 |         }
 45 |
 46 |         var request = URLRequest(url: urlComponents.url!)
    |                       `- error: cannot find 'URLRequest' in scope
 47 |
 48 |         // Add headeres
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:97: error: cannot find 'OperationQueue' in scope
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                                                                 `- error: cannot find 'OperationQueue' in scope
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                              `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:121:57: error: cannot infer contextual base in reference to member 'default'
119 |
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                         `- error: cannot infer contextual base in reference to member 'default'
122 |                 websocket = urlSession!.webSocketTask(with: request)
123 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:122:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
120 |             func connect(request: URLRequest, transferFormat: TransferFormat) async throws {
121 |                 urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
122 |                 websocket = urlSession!.webSocketTask(with: request)
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
123 |
124 |                 guard websocket != nil else {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:141:61: error: cannot infer contextual base in reference to member 'running'
139 |
140 |             func send(_ data: StringOrData) async throws {
141 |                 guard let ws = self.websocket, ws.state == .running else {
    |                                                             `- error: cannot infer contextual base in reference to member 'running'
142 |                     throw SignalRError.invalidOperation("(WebSockets transport) Cannot send until the transport is connected")
143 |                 }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:147:39: error: cannot find 'URLSessionWebSocketTask' in scope
145 |                 switch data {
146 |                 case .string(let str):
147 |                     try await ws.send(URLSessionWebSocketTask.Message.string(str))
    |                                       `- error: cannot find 'URLSessionWebSocketTask' in scope
148 |                 case .data(let data):
149 |                     try await ws.send(URLSessionWebSocketTask.Message.data(data))
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:149:39: error: cannot find 'URLSessionWebSocketTask' in scope
147 |                     try await ws.send(URLSessionWebSocketTask.Message.string(str))
148 |                 case .data(let data):
149 |                     try await ws.send(URLSessionWebSocketTask.Message.data(data))
    |                                       `- error: cannot find 'URLSessionWebSocketTask' in scope
150 |                 }
151 |             }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:159:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
157 |                 closed = true
158 |
159 |                 urlSession?.finishTasksAndInvalidate() // Prevent new task from being created
    |                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
160 |                 websocket?.cancel() // Close the current connection
161 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:206:38: error: cannot find type 'URLSessionWebSocketTask' in scope
204 |
205 |             private func receiveMessage() async {
206 |                 guard let websocket: URLSessionWebSocketTask = websocket else {
    |                                      `- error: cannot find type 'URLSessionWebSocketTask' in scope
207 |                     logger.log(level: .error, message: "(WebSockets transport) WebSocket is nil")
208 |                     return
[13/40] Compiling SignalRClient HttpConnection.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:536:135: error: cannot find type 'URLRequest' in scope
534 |     }
535 |
536 |     private func buildURLRequest(url: String, method: String?, content: Data?, headers: [String: String]?, timeout: TimeInterval?) -> URLRequest {
    |                                                                                                                                       `- error: cannot find type 'URLRequest' in scope
537 |         var urlRequest = URLRequest(url: URL(string: url)!)
538 |         urlRequest.httpMethod = method ?? "GET"
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:537:26: error: cannot find 'URLRequest' in scope
535 |
536 |     private func buildURLRequest(url: String, method: String?, content: Data?, headers: [String: String]?, timeout: TimeInterval?) -> URLRequest {
537 |         var urlRequest = URLRequest(url: URL(string: url)!)
    |                          `- error: cannot find 'URLRequest' in scope
538 |         urlRequest.httpMethod = method ?? "GET"
539 |         urlRequest.httpBody = content
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:747:28: error: cannot find 'DispatchSemaphore' in scope
745 |
746 |     private struct DefaultInvocationBinder: InvocationBinder, @unchecked Sendable {
747 |         private let lock = DispatchSemaphore(value: 1)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
748 |         private var subscriptionHandlers: [String: SubscriptionEntity] = [:]
749 |         private var returnValueHandler: [String: Any.Type] = [:]
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:373:25: error: cannot find 'DispatchTime' in scope
371 |     internal func reconnect(error: Error?) async throws {
372 |         var retryCount = 0
373 |         let startTime = DispatchTime.now()
    |                         `- error: cannot find 'DispatchTime' in scope
374 |         var elapsed: TimeInterval = 0.0
375 |         var lastError: Error? = error
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:423:30: error: cannot find 'DispatchTime' in scope
421 |
422 |             retryCount += 1
423 |             elapsed = Double(DispatchTime.now().uptimeNanoseconds - startTime.uptimeNanoseconds) / 1_000_000_000
    |                              `- error: cannot find 'DispatchTime' in scope
424 |         }
425 |
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:50: warning: expression implicitly coerced from '[Any?]' to '[Any]'
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                                  |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                                  `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:35: warning: expression implicitly coerced from '[Any?]' to '[Any]'
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                                   |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                   `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
550 |         }
551 |     }
[14/40] Compiling SignalRClient HubConnection+On.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:536:135: error: cannot find type 'URLRequest' in scope
534 |     }
535 |
536 |     private func buildURLRequest(url: String, method: String?, content: Data?, headers: [String: String]?, timeout: TimeInterval?) -> URLRequest {
    |                                                                                                                                       `- error: cannot find type 'URLRequest' in scope
537 |         var urlRequest = URLRequest(url: URL(string: url)!)
538 |         urlRequest.httpMethod = method ?? "GET"
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:537:26: error: cannot find 'URLRequest' in scope
535 |
536 |     private func buildURLRequest(url: String, method: String?, content: Data?, headers: [String: String]?, timeout: TimeInterval?) -> URLRequest {
537 |         var urlRequest = URLRequest(url: URL(string: url)!)
    |                          `- error: cannot find 'URLRequest' in scope
538 |         urlRequest.httpMethod = method ?? "GET"
539 |         urlRequest.httpBody = content
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:747:28: error: cannot find 'DispatchSemaphore' in scope
745 |
746 |     private struct DefaultInvocationBinder: InvocationBinder, @unchecked Sendable {
747 |         private let lock = DispatchSemaphore(value: 1)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
748 |         private var subscriptionHandlers: [String: SubscriptionEntity] = [:]
749 |         private var returnValueHandler: [String: Any.Type] = [:]
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:373:25: error: cannot find 'DispatchTime' in scope
371 |     internal func reconnect(error: Error?) async throws {
372 |         var retryCount = 0
373 |         let startTime = DispatchTime.now()
    |                         `- error: cannot find 'DispatchTime' in scope
374 |         var elapsed: TimeInterval = 0.0
375 |         var lastError: Error? = error
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:423:30: error: cannot find 'DispatchTime' in scope
421 |
422 |             retryCount += 1
423 |             elapsed = Double(DispatchTime.now().uptimeNanoseconds - startTime.uptimeNanoseconds) / 1_000_000_000
    |                              `- error: cannot find 'DispatchTime' in scope
424 |         }
425 |
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:50: warning: expression implicitly coerced from '[Any?]' to '[Any]'
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                                  |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                                  `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:35: warning: expression implicitly coerced from '[Any?]' to '[Any]'
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                                   |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                   `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
550 |         }
551 |     }
[15/40] Compiling SignalRClient HubConnection+OnResult.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:536:135: error: cannot find type 'URLRequest' in scope
534 |     }
535 |
536 |     private func buildURLRequest(url: String, method: String?, content: Data?, headers: [String: String]?, timeout: TimeInterval?) -> URLRequest {
    |                                                                                                                                       `- error: cannot find type 'URLRequest' in scope
537 |         var urlRequest = URLRequest(url: URL(string: url)!)
538 |         urlRequest.httpMethod = method ?? "GET"
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:537:26: error: cannot find 'URLRequest' in scope
535 |
536 |     private func buildURLRequest(url: String, method: String?, content: Data?, headers: [String: String]?, timeout: TimeInterval?) -> URLRequest {
537 |         var urlRequest = URLRequest(url: URL(string: url)!)
    |                          `- error: cannot find 'URLRequest' in scope
538 |         urlRequest.httpMethod = method ?? "GET"
539 |         urlRequest.httpBody = content
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:747:28: error: cannot find 'DispatchSemaphore' in scope
745 |
746 |     private struct DefaultInvocationBinder: InvocationBinder, @unchecked Sendable {
747 |         private let lock = DispatchSemaphore(value: 1)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
748 |         private var subscriptionHandlers: [String: SubscriptionEntity] = [:]
749 |         private var returnValueHandler: [String: Any.Type] = [:]
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:373:25: error: cannot find 'DispatchTime' in scope
371 |     internal func reconnect(error: Error?) async throws {
372 |         var retryCount = 0
373 |         let startTime = DispatchTime.now()
    |                         `- error: cannot find 'DispatchTime' in scope
374 |         var elapsed: TimeInterval = 0.0
375 |         var lastError: Error? = error
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:423:30: error: cannot find 'DispatchTime' in scope
421 |
422 |             retryCount += 1
423 |             elapsed = Double(DispatchTime.now().uptimeNanoseconds - startTime.uptimeNanoseconds) / 1_000_000_000
    |                              `- error: cannot find 'DispatchTime' in scope
424 |         }
425 |
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:50: warning: expression implicitly coerced from '[Any?]' to '[Any]'
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                                  |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                                  `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:35: warning: expression implicitly coerced from '[Any?]' to '[Any]'
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                                   |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                   `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
550 |         }
551 |     }
[16/40] Compiling SignalRClient HubConnection.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:536:135: error: cannot find type 'URLRequest' in scope
534 |     }
535 |
536 |     private func buildURLRequest(url: String, method: String?, content: Data?, headers: [String: String]?, timeout: TimeInterval?) -> URLRequest {
    |                                                                                                                                       `- error: cannot find type 'URLRequest' in scope
537 |         var urlRequest = URLRequest(url: URL(string: url)!)
538 |         urlRequest.httpMethod = method ?? "GET"
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:537:26: error: cannot find 'URLRequest' in scope
535 |
536 |     private func buildURLRequest(url: String, method: String?, content: Data?, headers: [String: String]?, timeout: TimeInterval?) -> URLRequest {
537 |         var urlRequest = URLRequest(url: URL(string: url)!)
    |                          `- error: cannot find 'URLRequest' in scope
538 |         urlRequest.httpMethod = method ?? "GET"
539 |         urlRequest.httpBody = content
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:747:28: error: cannot find 'DispatchSemaphore' in scope
745 |
746 |     private struct DefaultInvocationBinder: InvocationBinder, @unchecked Sendable {
747 |         private let lock = DispatchSemaphore(value: 1)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
748 |         private var subscriptionHandlers: [String: SubscriptionEntity] = [:]
749 |         private var returnValueHandler: [String: Any.Type] = [:]
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:373:25: error: cannot find 'DispatchTime' in scope
371 |     internal func reconnect(error: Error?) async throws {
372 |         var retryCount = 0
373 |         let startTime = DispatchTime.now()
    |                         `- error: cannot find 'DispatchTime' in scope
374 |         var elapsed: TimeInterval = 0.0
375 |         var lastError: Error? = error
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:423:30: error: cannot find 'DispatchTime' in scope
421 |
422 |             retryCount += 1
423 |             elapsed = Double(DispatchTime.now().uptimeNanoseconds - startTime.uptimeNanoseconds) / 1_000_000_000
    |                              `- error: cannot find 'DispatchTime' in scope
424 |         }
425 |
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:50: warning: expression implicitly coerced from '[Any?]' to '[Any]'
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                                  |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                                  `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:35: warning: expression implicitly coerced from '[Any?]' to '[Any]'
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                                   |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                   `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
550 |         }
551 |     }
[17/40] Compiling SignalRClient HubConnectionBuilder.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:536:135: error: cannot find type 'URLRequest' in scope
534 |     }
535 |
536 |     private func buildURLRequest(url: String, method: String?, content: Data?, headers: [String: String]?, timeout: TimeInterval?) -> URLRequest {
    |                                                                                                                                       `- error: cannot find type 'URLRequest' in scope
537 |         var urlRequest = URLRequest(url: URL(string: url)!)
538 |         urlRequest.httpMethod = method ?? "GET"
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:537:26: error: cannot find 'URLRequest' in scope
535 |
536 |     private func buildURLRequest(url: String, method: String?, content: Data?, headers: [String: String]?, timeout: TimeInterval?) -> URLRequest {
537 |         var urlRequest = URLRequest(url: URL(string: url)!)
    |                          `- error: cannot find 'URLRequest' in scope
538 |         urlRequest.httpMethod = method ?? "GET"
539 |         urlRequest.httpBody = content
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:747:28: error: cannot find 'DispatchSemaphore' in scope
745 |
746 |     private struct DefaultInvocationBinder: InvocationBinder, @unchecked Sendable {
747 |         private let lock = DispatchSemaphore(value: 1)
    |                            `- error: cannot find 'DispatchSemaphore' in scope
748 |         private var subscriptionHandlers: [String: SubscriptionEntity] = [:]
749 |         private var returnValueHandler: [String: Any.Type] = [:]
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:373:25: error: cannot find 'DispatchTime' in scope
371 |     internal func reconnect(error: Error?) async throws {
372 |         var retryCount = 0
373 |         let startTime = DispatchTime.now()
    |                         `- error: cannot find 'DispatchTime' in scope
374 |         var elapsed: TimeInterval = 0.0
375 |         var lastError: Error? = error
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:423:30: error: cannot find 'DispatchTime' in scope
421 |
422 |             retryCount += 1
423 |             elapsed = Double(DispatchTime.now().uptimeNanoseconds - startTime.uptimeNanoseconds) / 1_000_000_000
    |                              `- error: cannot find 'DispatchTime' in scope
424 |         }
425 |
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:50: warning: expression implicitly coerced from '[Any?]' to '[Any]'
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                                  |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                                  `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:35: warning: expression implicitly coerced from '[Any?]' to '[Any]'
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                                   |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                   `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
550 |         }
551 |     }
[18/40] Compiling SignalRClient HubProtocol.swift
[19/40] Compiling SignalRClient JsonHubProtocol.swift
[20/40] Compiling SignalRClient MessagePackHubProtocol.swift
[21/40] Compiling SignalRClient MessageType.swift
[22/40] Compiling SignalRClient MsgpackCommon.swift
[23/40] Compiling SignalRClient TransferFormat.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:17:30: error: cannot find type 'URLSessionDataDelegate' in scope
 15 | //  1. Reconnect, last Id
 16 | //  2. event name, event handlers
 17 | class EventSource: NSObject, URLSessionDataDelegate {
    |                              `- error: cannot find type 'URLSessionDataDelegate' in scope
 18 |     private let url: URL
 19 |     private let headers: [String: String]
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     private var completeHandler: ((Int?, Error?) -> Void)?
 23 |     private var messageHandler: ((String) -> Void)?
 24 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |
 26 |     init(url: URL, headers: [String: String]?) {
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/Transport/EventSource.swift:69:29: error: cannot find type 'URLRequest' in scope
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 70 |         completionHandler: @escaping (URLRequest?) -> Void
 71 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:70:39: error: cannot find type 'URLRequest' in scope
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
 70 |         completionHandler: @escaping (URLRequest?) -> Void
    |                                       `- error: cannot find type 'URLRequest' in scope
 71 |     ) {
 72 |         var newRequest = request
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:66:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     // MARK: redirect
 65 |     public func urlSession(
 66 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
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/Transport/EventSource.swift:67:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     public func urlSession(
 66 |         _ session: URLSession,
 67 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
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/Transport/EventSource.swift:68:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         _ session: URLSession,
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         newRequest request: URLRequest,
 70 |         completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:83:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
    |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 84 |             -> Void
 85 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:81:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     // MARK: open
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
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/Transport/EventSource.swift:81:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     // MARK: open
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:82:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
 82 |         didReceive response: URLResponse,
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
 84 |             -> Void
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:96:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // MARK: data
 95 |     public func urlSession(
 96 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         didReceive data: Data
 98 |     ) {
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/Transport/EventSource.swift:96:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // MARK: data
 95 |     public func urlSession(
 96 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         didReceive data: Data
 98 |     ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:106:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |     // MARK: complete
105 |     public func urlSession(
106 |         _ session: URLSession, task: URLSessionTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
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/Transport/EventSource.swift:106:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |     // MARK: complete
105 |     public func urlSession(
106 |         _ session: URLSession, task: URLSessionTask,
    |                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
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/Transport/EventSource.swift:36:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 34 |
 35 |     func connect() {
 36 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |         config.httpAdditionalHeaders = self.headers
 38 |         config.timeoutIntervalForRequest = TimeInterval.infinity
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:40:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 38 |         config.timeoutIntervalForRequest = TimeInterval.infinity
 39 |         config.timeoutIntervalForResource = TimeInterval.infinity
 40 |         self.urlSession = URLSession(
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 41 |             configuration: config, delegate: self, delegateQueue: nil
 42 |         )
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:41:67: error: 'nil' requires a contextual type
 39 |         config.timeoutIntervalForResource = TimeInterval.infinity
 40 |         self.urlSession = URLSession(
 41 |             configuration: config, delegate: self, delegateQueue: nil
    |                                                                   `- error: 'nil' requires a contextual type
 42 |         )
 43 |         self.urlSession!.dataTask(with: url).resume()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:43:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 41 |             configuration: config, delegate: self, delegateQueue: nil
 42 |         )
 43 |         self.urlSession!.dataTask(with: url).resume()
    |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 44 |     }
 45 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:47:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 45 |
 46 |     func disconnect() {
 47 |         self.urlSession?.invalidateAndCancel()
    |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 48 |     }
 49 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:86:36: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 84 |             -> Void
 85 |     ) {
 86 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                    `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 87 |         if statusCode == 200 {
 88 |             self.openHandler?()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:86:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 84 |             -> Void
 85 |     ) {
 86 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 87 |         if statusCode == 200 {
 88 |             self.openHandler?()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:91:38: error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
 89 |         }
 90 |         // forward anyway
 91 |         completionHandler(URLSession.ResponseDisposition.allow)
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:109:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
109 |         let statusCode = (task.response as? HTTPURLResponse)?.statusCode
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
110 |         self.completeHandler?(statusCode, error)
111 |     }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:109:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
109 |         let statusCode = (task.response as? HTTPURLResponse)?.statusCode
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |         self.completeHandler?(statusCode, error)
111 |     }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/ServerSentEventTransport.swift:117:32: error: cannot find type 'DispatchQueue' in scope
115 |
116 |     private var eventSource: EventSource?
117 |     private var dispatchQueue: DispatchQueue
    |                                `- error: cannot find type 'DispatchQueue' in scope
118 |     private var messageTask: Task<Void, Never>?
119 |     private var messageStream: AsyncStream<String>?
/host/spi-builder-workspace/Sources/SignalRClient/Transport/ServerSentEventTransport.swift:123:30: error: cannot find 'DispatchQueue' in scope
121 |     init(logger: Logger) {
122 |         self.logger = logger
123 |         self.dispatchQueue = DispatchQueue(label: "DefaultEventSourceAdaptor")
    |                              `- error: cannot find 'DispatchQueue' in scope
124 |     }
125 |
[24/40] Compiling SignalRClient EventSource.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:17:30: error: cannot find type 'URLSessionDataDelegate' in scope
 15 | //  1. Reconnect, last Id
 16 | //  2. event name, event handlers
 17 | class EventSource: NSObject, URLSessionDataDelegate {
    |                              `- error: cannot find type 'URLSessionDataDelegate' in scope
 18 |     private let url: URL
 19 |     private let headers: [String: String]
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     private var completeHandler: ((Int?, Error?) -> Void)?
 23 |     private var messageHandler: ((String) -> Void)?
 24 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |
 26 |     init(url: URL, headers: [String: String]?) {
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/Transport/EventSource.swift:69:29: error: cannot find type 'URLRequest' in scope
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 70 |         completionHandler: @escaping (URLRequest?) -> Void
 71 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:70:39: error: cannot find type 'URLRequest' in scope
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
 70 |         completionHandler: @escaping (URLRequest?) -> Void
    |                                       `- error: cannot find type 'URLRequest' in scope
 71 |     ) {
 72 |         var newRequest = request
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:66:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     // MARK: redirect
 65 |     public func urlSession(
 66 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
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/Transport/EventSource.swift:67:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     public func urlSession(
 66 |         _ session: URLSession,
 67 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
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/Transport/EventSource.swift:68:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         _ session: URLSession,
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         newRequest request: URLRequest,
 70 |         completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:83:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
    |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 84 |             -> Void
 85 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:81:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     // MARK: open
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
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/Transport/EventSource.swift:81:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     // MARK: open
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:82:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
 82 |         didReceive response: URLResponse,
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
 84 |             -> Void
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:96:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // MARK: data
 95 |     public func urlSession(
 96 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         didReceive data: Data
 98 |     ) {
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/Transport/EventSource.swift:96:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // MARK: data
 95 |     public func urlSession(
 96 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         didReceive data: Data
 98 |     ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:106:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |     // MARK: complete
105 |     public func urlSession(
106 |         _ session: URLSession, task: URLSessionTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
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/Transport/EventSource.swift:106:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |     // MARK: complete
105 |     public func urlSession(
106 |         _ session: URLSession, task: URLSessionTask,
    |                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
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/Transport/EventSource.swift:36:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 34 |
 35 |     func connect() {
 36 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |         config.httpAdditionalHeaders = self.headers
 38 |         config.timeoutIntervalForRequest = TimeInterval.infinity
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:40:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 38 |         config.timeoutIntervalForRequest = TimeInterval.infinity
 39 |         config.timeoutIntervalForResource = TimeInterval.infinity
 40 |         self.urlSession = URLSession(
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 41 |             configuration: config, delegate: self, delegateQueue: nil
 42 |         )
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:41:67: error: 'nil' requires a contextual type
 39 |         config.timeoutIntervalForResource = TimeInterval.infinity
 40 |         self.urlSession = URLSession(
 41 |             configuration: config, delegate: self, delegateQueue: nil
    |                                                                   `- error: 'nil' requires a contextual type
 42 |         )
 43 |         self.urlSession!.dataTask(with: url).resume()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:43:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 41 |             configuration: config, delegate: self, delegateQueue: nil
 42 |         )
 43 |         self.urlSession!.dataTask(with: url).resume()
    |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 44 |     }
 45 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:47:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 45 |
 46 |     func disconnect() {
 47 |         self.urlSession?.invalidateAndCancel()
    |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 48 |     }
 49 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:86:36: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 84 |             -> Void
 85 |     ) {
 86 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                    `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 87 |         if statusCode == 200 {
 88 |             self.openHandler?()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:86:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 84 |             -> Void
 85 |     ) {
 86 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 87 |         if statusCode == 200 {
 88 |             self.openHandler?()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:91:38: error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
 89 |         }
 90 |         // forward anyway
 91 |         completionHandler(URLSession.ResponseDisposition.allow)
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:109:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
109 |         let statusCode = (task.response as? HTTPURLResponse)?.statusCode
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
110 |         self.completeHandler?(statusCode, error)
111 |     }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:109:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
109 |         let statusCode = (task.response as? HTTPURLResponse)?.statusCode
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |         self.completeHandler?(statusCode, error)
111 |     }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/ServerSentEventTransport.swift:117:32: error: cannot find type 'DispatchQueue' in scope
115 |
116 |     private var eventSource: EventSource?
117 |     private var dispatchQueue: DispatchQueue
    |                                `- error: cannot find type 'DispatchQueue' in scope
118 |     private var messageTask: Task<Void, Never>?
119 |     private var messageStream: AsyncStream<String>?
/host/spi-builder-workspace/Sources/SignalRClient/Transport/ServerSentEventTransport.swift:123:30: error: cannot find 'DispatchQueue' in scope
121 |     init(logger: Logger) {
122 |         self.logger = logger
123 |         self.dispatchQueue = DispatchQueue(label: "DefaultEventSourceAdaptor")
    |                              `- error: cannot find 'DispatchQueue' in scope
124 |     }
125 |
[25/40] Compiling SignalRClient LongPollingTransport.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:17:30: error: cannot find type 'URLSessionDataDelegate' in scope
 15 | //  1. Reconnect, last Id
 16 | //  2. event name, event handlers
 17 | class EventSource: NSObject, URLSessionDataDelegate {
    |                              `- error: cannot find type 'URLSessionDataDelegate' in scope
 18 |     private let url: URL
 19 |     private let headers: [String: String]
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     private var completeHandler: ((Int?, Error?) -> Void)?
 23 |     private var messageHandler: ((String) -> Void)?
 24 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |
 26 |     init(url: URL, headers: [String: String]?) {
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/Transport/EventSource.swift:69:29: error: cannot find type 'URLRequest' in scope
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 70 |         completionHandler: @escaping (URLRequest?) -> Void
 71 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:70:39: error: cannot find type 'URLRequest' in scope
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
 70 |         completionHandler: @escaping (URLRequest?) -> Void
    |                                       `- error: cannot find type 'URLRequest' in scope
 71 |     ) {
 72 |         var newRequest = request
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:66:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     // MARK: redirect
 65 |     public func urlSession(
 66 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
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/Transport/EventSource.swift:67:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     public func urlSession(
 66 |         _ session: URLSession,
 67 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
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/Transport/EventSource.swift:68:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         _ session: URLSession,
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         newRequest request: URLRequest,
 70 |         completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:83:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
    |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 84 |             -> Void
 85 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:81:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     // MARK: open
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
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/Transport/EventSource.swift:81:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     // MARK: open
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:82:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
 82 |         didReceive response: URLResponse,
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
 84 |             -> Void
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:96:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // MARK: data
 95 |     public func urlSession(
 96 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         didReceive data: Data
 98 |     ) {
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/Transport/EventSource.swift:96:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // MARK: data
 95 |     public func urlSession(
 96 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         didReceive data: Data
 98 |     ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:106:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |     // MARK: complete
105 |     public func urlSession(
106 |         _ session: URLSession, task: URLSessionTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
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/Transport/EventSource.swift:106:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |     // MARK: complete
105 |     public func urlSession(
106 |         _ session: URLSession, task: URLSessionTask,
    |                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
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/Transport/EventSource.swift:36:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 34 |
 35 |     func connect() {
 36 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |         config.httpAdditionalHeaders = self.headers
 38 |         config.timeoutIntervalForRequest = TimeInterval.infinity
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:40:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 38 |         config.timeoutIntervalForRequest = TimeInterval.infinity
 39 |         config.timeoutIntervalForResource = TimeInterval.infinity
 40 |         self.urlSession = URLSession(
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 41 |             configuration: config, delegate: self, delegateQueue: nil
 42 |         )
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:41:67: error: 'nil' requires a contextual type
 39 |         config.timeoutIntervalForResource = TimeInterval.infinity
 40 |         self.urlSession = URLSession(
 41 |             configuration: config, delegate: self, delegateQueue: nil
    |                                                                   `- error: 'nil' requires a contextual type
 42 |         )
 43 |         self.urlSession!.dataTask(with: url).resume()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:43:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 41 |             configuration: config, delegate: self, delegateQueue: nil
 42 |         )
 43 |         self.urlSession!.dataTask(with: url).resume()
    |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 44 |     }
 45 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:47:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 45 |
 46 |     func disconnect() {
 47 |         self.urlSession?.invalidateAndCancel()
    |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 48 |     }
 49 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:86:36: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 84 |             -> Void
 85 |     ) {
 86 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                    `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 87 |         if statusCode == 200 {
 88 |             self.openHandler?()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:86:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 84 |             -> Void
 85 |     ) {
 86 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 87 |         if statusCode == 200 {
 88 |             self.openHandler?()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:91:38: error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
 89 |         }
 90 |         // forward anyway
 91 |         completionHandler(URLSession.ResponseDisposition.allow)
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:109:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
109 |         let statusCode = (task.response as? HTTPURLResponse)?.statusCode
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
110 |         self.completeHandler?(statusCode, error)
111 |     }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:109:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
109 |         let statusCode = (task.response as? HTTPURLResponse)?.statusCode
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |         self.completeHandler?(statusCode, error)
111 |     }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/ServerSentEventTransport.swift:117:32: error: cannot find type 'DispatchQueue' in scope
115 |
116 |     private var eventSource: EventSource?
117 |     private var dispatchQueue: DispatchQueue
    |                                `- error: cannot find type 'DispatchQueue' in scope
118 |     private var messageTask: Task<Void, Never>?
119 |     private var messageStream: AsyncStream<String>?
/host/spi-builder-workspace/Sources/SignalRClient/Transport/ServerSentEventTransport.swift:123:30: error: cannot find 'DispatchQueue' in scope
121 |     init(logger: Logger) {
122 |         self.logger = logger
123 |         self.dispatchQueue = DispatchQueue(label: "DefaultEventSourceAdaptor")
    |                              `- error: cannot find 'DispatchQueue' in scope
124 |     }
125 |
[26/40] Compiling SignalRClient ServerSentEventTransport.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:17:30: error: cannot find type 'URLSessionDataDelegate' in scope
 15 | //  1. Reconnect, last Id
 16 | //  2. event name, event handlers
 17 | class EventSource: NSObject, URLSessionDataDelegate {
    |                              `- error: cannot find type 'URLSessionDataDelegate' in scope
 18 |     private let url: URL
 19 |     private let headers: [String: String]
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:24:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     private var completeHandler: ((Int?, Error?) -> Void)?
 23 |     private var messageHandler: ((String) -> Void)?
 24 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |
 26 |     init(url: URL, headers: [String: String]?) {
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/Transport/EventSource.swift:69:29: error: cannot find type 'URLRequest' in scope
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 70 |         completionHandler: @escaping (URLRequest?) -> Void
 71 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:70:39: error: cannot find type 'URLRequest' in scope
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
 70 |         completionHandler: @escaping (URLRequest?) -> Void
    |                                       `- error: cannot find type 'URLRequest' in scope
 71 |     ) {
 72 |         var newRequest = request
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:66:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     // MARK: redirect
 65 |     public func urlSession(
 66 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
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/Transport/EventSource.swift:67:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |     public func urlSession(
 66 |         _ session: URLSession,
 67 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
 69 |         newRequest request: URLRequest,
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/Transport/EventSource.swift:68:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         _ session: URLSession,
 67 |         task: URLSessionTask,
 68 |         willPerformHTTPRedirection response: HTTPURLResponse,
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         newRequest request: URLRequest,
 70 |         completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:83:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
    |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 84 |             -> Void
 85 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:81:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     // MARK: open
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
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/Transport/EventSource.swift:81:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     // MARK: open
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |         didReceive response: URLResponse,
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:82:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |     public func urlSession(
 81 |         _ session: URLSession, dataTask: URLSessionDataTask,
 82 |         didReceive response: URLResponse,
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition)
 84 |             -> Void
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:96:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // MARK: data
 95 |     public func urlSession(
 96 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         didReceive data: Data
 98 |     ) {
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/Transport/EventSource.swift:96:42: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // MARK: data
 95 |     public func urlSession(
 96 |         _ session: URLSession, dataTask: URLSessionDataTask,
    |                                          `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         didReceive data: Data
 98 |     ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:106:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |     // MARK: complete
105 |     public func urlSession(
106 |         _ session: URLSession, task: URLSessionTask,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
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/Transport/EventSource.swift:106:38: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |     // MARK: complete
105 |     public func urlSession(
106 |         _ session: URLSession, task: URLSessionTask,
    |                                      `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
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/Transport/EventSource.swift:36:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 34 |
 35 |     func connect() {
 36 |         let config = URLSessionConfiguration.default
    |                                              `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |         config.httpAdditionalHeaders = self.headers
 38 |         config.timeoutIntervalForRequest = TimeInterval.infinity
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:40:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 38 |         config.timeoutIntervalForRequest = TimeInterval.infinity
 39 |         config.timeoutIntervalForResource = TimeInterval.infinity
 40 |         self.urlSession = URLSession(
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 41 |             configuration: config, delegate: self, delegateQueue: nil
 42 |         )
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:41:67: error: 'nil' requires a contextual type
 39 |         config.timeoutIntervalForResource = TimeInterval.infinity
 40 |         self.urlSession = URLSession(
 41 |             configuration: config, delegate: self, delegateQueue: nil
    |                                                                   `- error: 'nil' requires a contextual type
 42 |         )
 43 |         self.urlSession!.dataTask(with: url).resume()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:43:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 41 |             configuration: config, delegate: self, delegateQueue: nil
 42 |         )
 43 |         self.urlSession!.dataTask(with: url).resume()
    |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 44 |     }
 45 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:47:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 45 |
 46 |     func disconnect() {
 47 |         self.urlSession?.invalidateAndCancel()
    |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
 48 |     }
 49 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:86:36: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 84 |             -> Void
 85 |     ) {
 86 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                    `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 87 |         if statusCode == 200 {
 88 |             self.openHandler?()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:86:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 84 |             -> Void
 85 |     ) {
 86 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 87 |         if statusCode == 200 {
 88 |             self.openHandler?()
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:91:38: error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
 89 |         }
 90 |         // forward anyway
 91 |         completionHandler(URLSession.ResponseDisposition.allow)
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
 92 |     }
 93 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:109:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
109 |         let statusCode = (task.response as? HTTPURLResponse)?.statusCode
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
110 |         self.completeHandler?(statusCode, error)
111 |     }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:109:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
107 |         didCompleteWithError error: (any Error)?
108 |     ) {
109 |         let statusCode = (task.response as? HTTPURLResponse)?.statusCode
    |                                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
110 |         self.completeHandler?(statusCode, error)
111 |     }
/host/spi-builder-workspace/Sources/SignalRClient/Transport/ServerSentEventTransport.swift:117:32: error: cannot find type 'DispatchQueue' in scope
115 |
116 |     private var eventSource: EventSource?
117 |     private var dispatchQueue: DispatchQueue
    |                                `- error: cannot find type 'DispatchQueue' in scope
118 |     private var messageTask: Task<Void, Never>?
119 |     private var messageStream: AsyncStream<String>?
/host/spi-builder-workspace/Sources/SignalRClient/Transport/ServerSentEventTransport.swift:123:30: error: cannot find 'DispatchQueue' in scope
121 |     init(logger: Logger) {
122 |         self.logger = logger
123 |         self.dispatchQueue = DispatchQueue(label: "DefaultEventSourceAdaptor")
    |                              `- error: cannot find 'DispatchQueue' in scope
124 |     }
125 |
[27/40] Compiling SignalRClient StatefulReconnectOptions.swift
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:7:25: error: cannot find 'DispatchQueue' in scope
 5 |
 6 | actor TimeScheduler {
 7 |     private let queue = DispatchQueue(label: "com.schduler.timer")
   |                         `- error: cannot find 'DispatchQueue' in scope
 8 |     private var timer: DispatchSourceTimer?
 9 |     private var interval: TimeInterval
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:8:24: error: cannot find type 'DispatchSourceTimer' in scope
 6 | actor TimeScheduler {
 7 |     private let queue = DispatchQueue(label: "com.schduler.timer")
 8 |     private var timer: DispatchSourceTimer?
   |                        `- error: cannot find type 'DispatchSourceTimer' in scope
 9 |     private var interval: TimeInterval
10 |
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:17:17: error: cannot find 'DispatchSource' in scope
15 |     func start(sendAction: @escaping () async -> Void) {
16 |         stop()
17 |         timer = DispatchSource.makeTimerSource(queue: queue)
   |                 `- error: cannot find 'DispatchSource' in scope
18 |         guard let timer = timer else { return }
19 |
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:20:35: error: cannot call value of non-function type 'Date'
18 |         guard let timer = timer else { return }
19 |
20 |         timer.schedule(deadline: .now() + interval, repeating: .infinity) // trigger only once here
   |                                   `- error: cannot call value of non-function type 'Date'
21 |         timer.setEventHandler { [weak self] in
22 |             guard let self = self else { return }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:20:65: error: cannot infer contextual base in reference to member 'infinity'
18 |         guard let timer = timer else { return }
19 |
20 |         timer.schedule(deadline: .now() + interval, repeating: .infinity) // trigger only once here
   |                                                                 `- error: cannot infer contextual base in reference to member 'infinity'
21 |         timer.setEventHandler { [weak self] in
22 |             guard let self = self else { return }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:44:35: error: cannot call value of non-function type 'Date'
42 |     func refreshSchduler() {
43 |         guard let timer = timer else { return }
44 |         timer.schedule(deadline: .now() + interval, repeating: .infinity)
   |                                   `- error: cannot call value of non-function type 'Date'
45 |     }
46 | }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:44:65: error: cannot infer contextual base in reference to member 'infinity'
42 |     func refreshSchduler() {
43 |         guard let timer = timer else { return }
44 |         timer.schedule(deadline: .now() + interval, repeating: .infinity)
   |                                                                 `- error: cannot infer contextual base in reference to member 'infinity'
45 |     }
46 | }
[28/40] Compiling SignalRClient StreamResult.swift
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:7:25: error: cannot find 'DispatchQueue' in scope
 5 |
 6 | actor TimeScheduler {
 7 |     private let queue = DispatchQueue(label: "com.schduler.timer")
   |                         `- error: cannot find 'DispatchQueue' in scope
 8 |     private var timer: DispatchSourceTimer?
 9 |     private var interval: TimeInterval
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:8:24: error: cannot find type 'DispatchSourceTimer' in scope
 6 | actor TimeScheduler {
 7 |     private let queue = DispatchQueue(label: "com.schduler.timer")
 8 |     private var timer: DispatchSourceTimer?
   |                        `- error: cannot find type 'DispatchSourceTimer' in scope
 9 |     private var interval: TimeInterval
10 |
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:17:17: error: cannot find 'DispatchSource' in scope
15 |     func start(sendAction: @escaping () async -> Void) {
16 |         stop()
17 |         timer = DispatchSource.makeTimerSource(queue: queue)
   |                 `- error: cannot find 'DispatchSource' in scope
18 |         guard let timer = timer else { return }
19 |
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:20:35: error: cannot call value of non-function type 'Date'
18 |         guard let timer = timer else { return }
19 |
20 |         timer.schedule(deadline: .now() + interval, repeating: .infinity) // trigger only once here
   |                                   `- error: cannot call value of non-function type 'Date'
21 |         timer.setEventHandler { [weak self] in
22 |             guard let self = self else { return }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:20:65: error: cannot infer contextual base in reference to member 'infinity'
18 |         guard let timer = timer else { return }
19 |
20 |         timer.schedule(deadline: .now() + interval, repeating: .infinity) // trigger only once here
   |                                                                 `- error: cannot infer contextual base in reference to member 'infinity'
21 |         timer.setEventHandler { [weak self] in
22 |             guard let self = self else { return }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:44:35: error: cannot call value of non-function type 'Date'
42 |     func refreshSchduler() {
43 |         guard let timer = timer else { return }
44 |         timer.schedule(deadline: .now() + interval, repeating: .infinity)
   |                                   `- error: cannot call value of non-function type 'Date'
45 |     }
46 | }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:44:65: error: cannot infer contextual base in reference to member 'infinity'
42 |     func refreshSchduler() {
43 |         guard let timer = timer else { return }
44 |         timer.schedule(deadline: .now() + interval, repeating: .infinity)
   |                                                                 `- error: cannot infer contextual base in reference to member 'infinity'
45 |     }
46 | }
[29/40] Compiling SignalRClient TaskCompletionSource.swift
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:7:25: error: cannot find 'DispatchQueue' in scope
 5 |
 6 | actor TimeScheduler {
 7 |     private let queue = DispatchQueue(label: "com.schduler.timer")
   |                         `- error: cannot find 'DispatchQueue' in scope
 8 |     private var timer: DispatchSourceTimer?
 9 |     private var interval: TimeInterval
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:8:24: error: cannot find type 'DispatchSourceTimer' in scope
 6 | actor TimeScheduler {
 7 |     private let queue = DispatchQueue(label: "com.schduler.timer")
 8 |     private var timer: DispatchSourceTimer?
   |                        `- error: cannot find type 'DispatchSourceTimer' in scope
 9 |     private var interval: TimeInterval
10 |
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:17:17: error: cannot find 'DispatchSource' in scope
15 |     func start(sendAction: @escaping () async -> Void) {
16 |         stop()
17 |         timer = DispatchSource.makeTimerSource(queue: queue)
   |                 `- error: cannot find 'DispatchSource' in scope
18 |         guard let timer = timer else { return }
19 |
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:20:35: error: cannot call value of non-function type 'Date'
18 |         guard let timer = timer else { return }
19 |
20 |         timer.schedule(deadline: .now() + interval, repeating: .infinity) // trigger only once here
   |                                   `- error: cannot call value of non-function type 'Date'
21 |         timer.setEventHandler { [weak self] in
22 |             guard let self = self else { return }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:20:65: error: cannot infer contextual base in reference to member 'infinity'
18 |         guard let timer = timer else { return }
19 |
20 |         timer.schedule(deadline: .now() + interval, repeating: .infinity) // trigger only once here
   |                                                                 `- error: cannot infer contextual base in reference to member 'infinity'
21 |         timer.setEventHandler { [weak self] in
22 |             guard let self = self else { return }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:44:35: error: cannot call value of non-function type 'Date'
42 |     func refreshSchduler() {
43 |         guard let timer = timer else { return }
44 |         timer.schedule(deadline: .now() + interval, repeating: .infinity)
   |                                   `- error: cannot call value of non-function type 'Date'
45 |     }
46 | }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:44:65: error: cannot infer contextual base in reference to member 'infinity'
42 |     func refreshSchduler() {
43 |         guard let timer = timer else { return }
44 |         timer.schedule(deadline: .now() + interval, repeating: .infinity)
   |                                                                 `- error: cannot infer contextual base in reference to member 'infinity'
45 |     }
46 | }
[30/40] Compiling SignalRClient TimeScheduler.swift
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:7:25: error: cannot find 'DispatchQueue' in scope
 5 |
 6 | actor TimeScheduler {
 7 |     private let queue = DispatchQueue(label: "com.schduler.timer")
   |                         `- error: cannot find 'DispatchQueue' in scope
 8 |     private var timer: DispatchSourceTimer?
 9 |     private var interval: TimeInterval
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:8:24: error: cannot find type 'DispatchSourceTimer' in scope
 6 | actor TimeScheduler {
 7 |     private let queue = DispatchQueue(label: "com.schduler.timer")
 8 |     private var timer: DispatchSourceTimer?
   |                        `- error: cannot find type 'DispatchSourceTimer' in scope
 9 |     private var interval: TimeInterval
10 |
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:17:17: error: cannot find 'DispatchSource' in scope
15 |     func start(sendAction: @escaping () async -> Void) {
16 |         stop()
17 |         timer = DispatchSource.makeTimerSource(queue: queue)
   |                 `- error: cannot find 'DispatchSource' in scope
18 |         guard let timer = timer else { return }
19 |
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:20:35: error: cannot call value of non-function type 'Date'
18 |         guard let timer = timer else { return }
19 |
20 |         timer.schedule(deadline: .now() + interval, repeating: .infinity) // trigger only once here
   |                                   `- error: cannot call value of non-function type 'Date'
21 |         timer.setEventHandler { [weak self] in
22 |             guard let self = self else { return }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:20:65: error: cannot infer contextual base in reference to member 'infinity'
18 |         guard let timer = timer else { return }
19 |
20 |         timer.schedule(deadline: .now() + interval, repeating: .infinity) // trigger only once here
   |                                                                 `- error: cannot infer contextual base in reference to member 'infinity'
21 |         timer.setEventHandler { [weak self] in
22 |             guard let self = self else { return }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:44:35: error: cannot call value of non-function type 'Date'
42 |     func refreshSchduler() {
43 |         guard let timer = timer else { return }
44 |         timer.schedule(deadline: .now() + interval, repeating: .infinity)
   |                                   `- error: cannot call value of non-function type 'Date'
45 |     }
46 | }
/host/spi-builder-workspace/Sources/SignalRClient/TimeScheduler.swift:44:65: error: cannot infer contextual base in reference to member 'infinity'
42 |     func refreshSchduler() {
43 |         guard let timer = timer else { return }
44 |         timer.schedule(deadline: .now() + interval, repeating: .infinity)
   |                                                                 `- error: cannot infer contextual base in reference to member 'infinity'
45 |     }
46 | }
[31/40] Compiling SignalRClient AsyncLock.swift
/host/spi-builder-workspace/Sources/SignalRClient/AsyncLock.swift:7:16: error: cannot find 'DispatchSemaphore' in scope
 5 |
 6 | class AsyncLock {
 7 |     let lock = DispatchSemaphore(value: 1)
   |                `- error: cannot find 'DispatchSemaphore' in scope
 8 |     private var isLocked = false
 9 |     private var waitQueue: [CheckedContinuation<Void, Never>] = []
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | actor DefaultHttpClient: HttpClient {
 59 |     private let logger: Logger
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     init(logger: Logger) {
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/HttpClient.swift:158:50: error: cannot find type 'URLRequest' in scope
156 |
157 | extension HttpRequest {
158 |     fileprivate func buildURLRequest() throws -> URLRequest {
    |                                                  `- error: cannot find type 'URLRequest' in scope
159 |         guard let url = URL(string: self.url) else {
160 |             throw SignalRError.invalidUrl(self.url)
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:72:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |         do {
 71 |             let urlRequest = try request.buildURLRequest()
 72 |             let (data, response) = try await self.session.data(
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |                 for: urlRequest)
 74 |             guard let httpURLResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:162:26: error: cannot find 'URLRequest' in scope
160 |             throw SignalRError.invalidUrl(self.url)
161 |         }
162 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
163 |         urlRequest.httpMethod = method.rawValue
164 |         urlRequest.timeoutInterval = timeout
[32/40] Compiling SignalRClient AtomicState.swift
/host/spi-builder-workspace/Sources/SignalRClient/AsyncLock.swift:7:16: error: cannot find 'DispatchSemaphore' in scope
 5 |
 6 | class AsyncLock {
 7 |     let lock = DispatchSemaphore(value: 1)
   |                `- error: cannot find 'DispatchSemaphore' in scope
 8 |     private var isLocked = false
 9 |     private var waitQueue: [CheckedContinuation<Void, Never>] = []
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | actor DefaultHttpClient: HttpClient {
 59 |     private let logger: Logger
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     init(logger: Logger) {
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/HttpClient.swift:158:50: error: cannot find type 'URLRequest' in scope
156 |
157 | extension HttpRequest {
158 |     fileprivate func buildURLRequest() throws -> URLRequest {
    |                                                  `- error: cannot find type 'URLRequest' in scope
159 |         guard let url = URL(string: self.url) else {
160 |             throw SignalRError.invalidUrl(self.url)
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:72:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |         do {
 71 |             let urlRequest = try request.buildURLRequest()
 72 |             let (data, response) = try await self.session.data(
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |                 for: urlRequest)
 74 |             guard let httpURLResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:162:26: error: cannot find 'URLRequest' in scope
160 |             throw SignalRError.invalidUrl(self.url)
161 |         }
162 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
163 |         urlRequest.httpMethod = method.rawValue
164 |         urlRequest.timeoutInterval = timeout
[33/40] Compiling SignalRClient ConnectionProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/AsyncLock.swift:7:16: error: cannot find 'DispatchSemaphore' in scope
 5 |
 6 | class AsyncLock {
 7 |     let lock = DispatchSemaphore(value: 1)
   |                `- error: cannot find 'DispatchSemaphore' in scope
 8 |     private var isLocked = false
 9 |     private var waitQueue: [CheckedContinuation<Void, Never>] = []
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | actor DefaultHttpClient: HttpClient {
 59 |     private let logger: Logger
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     init(logger: Logger) {
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/HttpClient.swift:158:50: error: cannot find type 'URLRequest' in scope
156 |
157 | extension HttpRequest {
158 |     fileprivate func buildURLRequest() throws -> URLRequest {
    |                                                  `- error: cannot find type 'URLRequest' in scope
159 |         guard let url = URL(string: self.url) else {
160 |             throw SignalRError.invalidUrl(self.url)
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:72:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |         do {
 71 |             let urlRequest = try request.buildURLRequest()
 72 |             let (data, response) = try await self.session.data(
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |                 for: urlRequest)
 74 |             guard let httpURLResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:162:26: error: cannot find 'URLRequest' in scope
160 |             throw SignalRError.invalidUrl(self.url)
161 |         }
162 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
163 |         urlRequest.httpMethod = method.rawValue
164 |         urlRequest.timeoutInterval = timeout
[34/40] Compiling SignalRClient HandshakeProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/AsyncLock.swift:7:16: error: cannot find 'DispatchSemaphore' in scope
 5 |
 6 | class AsyncLock {
 7 |     let lock = DispatchSemaphore(value: 1)
   |                `- error: cannot find 'DispatchSemaphore' in scope
 8 |     private var isLocked = false
 9 |     private var waitQueue: [CheckedContinuation<Void, Never>] = []
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | actor DefaultHttpClient: HttpClient {
 59 |     private let logger: Logger
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     init(logger: Logger) {
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/HttpClient.swift:158:50: error: cannot find type 'URLRequest' in scope
156 |
157 | extension HttpRequest {
158 |     fileprivate func buildURLRequest() throws -> URLRequest {
    |                                                  `- error: cannot find type 'URLRequest' in scope
159 |         guard let url = URL(string: self.url) else {
160 |             throw SignalRError.invalidUrl(self.url)
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:72:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |         do {
 71 |             let urlRequest = try request.buildURLRequest()
 72 |             let (data, response) = try await self.session.data(
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |                 for: urlRequest)
 74 |             guard let httpURLResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:162:26: error: cannot find 'URLRequest' in scope
160 |             throw SignalRError.invalidUrl(self.url)
161 |         }
162 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
163 |         urlRequest.httpMethod = method.rawValue
164 |         urlRequest.timeoutInterval = timeout
[35/40] Compiling SignalRClient HttpClient.swift
/host/spi-builder-workspace/Sources/SignalRClient/AsyncLock.swift:7:16: error: cannot find 'DispatchSemaphore' in scope
 5 |
 6 | class AsyncLock {
 7 |     let lock = DispatchSemaphore(value: 1)
   |                `- error: cannot find 'DispatchSemaphore' in scope
 8 |     private var isLocked = false
 9 |     private var waitQueue: [CheckedContinuation<Void, Never>] = []
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | actor DefaultHttpClient: HttpClient {
 59 |     private let logger: Logger
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |
 62 |     init(logger: Logger) {
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/HttpClient.swift:158:50: error: cannot find type 'URLRequest' in scope
156 |
157 | extension HttpRequest {
158 |     fileprivate func buildURLRequest() throws -> URLRequest {
    |                                                  `- error: cannot find type 'URLRequest' in scope
159 |         guard let url = URL(string: self.url) else {
160 |             throw SignalRError.invalidUrl(self.url)
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:64:74: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 62 |     init(logger: Logger) {
 63 |         self.logger = logger
 64 |         self.session = URLSession(configuration: URLSessionConfiguration.default)
    |                                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:72:59: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 70 |         do {
 71 |             let urlRequest = try request.buildURLRequest()
 72 |             let (data, response) = try await self.session.data(
    |                                                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 73 |                 for: urlRequest)
 74 |             guard let httpURLResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:162:26: error: cannot find 'URLRequest' in scope
160 |             throw SignalRError.invalidUrl(self.url)
161 |         }
162 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
163 |         urlRequest.httpMethod = method.rawValue
164 |         urlRequest.timeoutInterval = timeout
[36/40] Compiling SignalRClient MsgpackDecoder.swift
[37/40] Compiling SignalRClient MsgpackEncoder.swift
[38/40] Compiling SignalRClient TextMessageFormat.swift
[39/40] Compiling SignalRClient RetryPolicy.swift
[40/40] Compiling SignalRClient SignalRError.swift
BUILD FAILURE 6.3 wasm