Build Information
Failed to build SignalRClient, reference 1.1.0 (11e727
), with Swift 6.1 for Wasm on 29 May 2025 00:31:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 |
19 | private var isTransportClosed = false
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:66: error: cannot find type 'URLSessionWebSocketTask' in scope
53 | }
54 |
55 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
56 | logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
57 | delegate?.transportDidOpen()
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | public 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.
56 | logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
57 | delegate?.transportDidOpen()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:77:41: error: cannot find type 'URLSessionWebSocketTask' in scope
75 | }
76 |
77 | private func handleMessage(message: URLSessionWebSocketTask.Message) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
78 | switch message {
79 | case .string(let text):
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:100:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
102 | guard error != nil else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:100:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
102 | guard error != nil else {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:66: error: cannot find type 'URLSessionWebSocketTask' in scope
117 | }
118 |
119 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:115: error: cannot find type 'URLSessionWebSocketTask' in scope
117 | }
118 |
119 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | }
118 |
119 | public 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.
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:152: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:73: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:179:95: error: cannot find type 'URLRequest' in scope
177 | }
178 |
179 | @inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
180 | headers.forEach { (key, value) in
181 | request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:185:102: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
186 | if let accessToken = accessTokenProvider() {
187 | request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
10 |
11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
13 | private let logger: Logger
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
[6/32] Compiling SignalRClient CodableHelpers.swift
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | class DefaultHttpClient: HttpClientProtocol {
12 | private let options: HttpConnectionOptions
13 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | public init(options: HttpConnectionOptions) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:58:95: error: cannot find type 'URLRequest' in scope
56 | }
57 |
58 | @inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
59 | headers.forEach { (key, value) in
60 | request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:64:102: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
65 | if let accessToken = accessTokenProvider() {
66 | request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:63: error: cannot find type 'URLSessionDelegate' in scope
69 | }
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
72 | static var shared = DefaultHttpClientSessionDelegate()
73 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:74:150: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 | static var shared = DefaultHttpClientSessionDelegate()
73 |
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(options: HttpConnectionOptions) {
16 | self.options = options
17 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionConfig.timeoutIntervalForRequest = options.requestTimeout
19 | DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
56 | public var maximumWebsocketMessageSize: Int?
57 |
58 | public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 |
60 | /**
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | sessionConfig.timeoutIntervalForRequest = options.requestTimeout
19 | DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
20 | self.session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | configuration: sessionConfig,
22 | delegate: DefaultHttpClientSessionDelegate.shared,
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
21 | configuration: sessionConfig,
22 | delegate: DefaultHttpClientSessionDelegate.shared,
23 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
24 | )
25 | }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:41:26: error: cannot find 'URLRequest' in scope
39 |
40 | func sendHttpRequest(url: URL, method: String, body: Data?, completionHandler: @escaping (HttpResponse?, Error?) -> Swift.Void) {
41 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
42 | urlRequest.httpMethod = method
43 | urlRequest.httpBody = body
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:47:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
45 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &urlRequest)
46 |
47 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
48 |
49 | var resp:HttpResponse?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:51:80: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | var resp:HttpResponse?
50 | if error == nil {
51 | resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | }
53 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
78 | challengeHandler(session, challenge, completionHandler)
79 | } else {
80 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
81 | }
82 | }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:56: error: 'nil' requires a contextual type
78 | challengeHandler(session, challenge, completionHandler)
79 | } else {
80 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
81 | }
82 | }
[7/32] Compiling SignalRClient Connection.swift
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | class DefaultHttpClient: HttpClientProtocol {
12 | private let options: HttpConnectionOptions
13 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | public init(options: HttpConnectionOptions) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:58:95: error: cannot find type 'URLRequest' in scope
56 | }
57 |
58 | @inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
59 | headers.forEach { (key, value) in
60 | request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:64:102: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
65 | if let accessToken = accessTokenProvider() {
66 | request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:63: error: cannot find type 'URLSessionDelegate' in scope
69 | }
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
72 | static var shared = DefaultHttpClientSessionDelegate()
73 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:74:150: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 | static var shared = DefaultHttpClientSessionDelegate()
73 |
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(options: HttpConnectionOptions) {
16 | self.options = options
17 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionConfig.timeoutIntervalForRequest = options.requestTimeout
19 | DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
56 | public var maximumWebsocketMessageSize: Int?
57 |
58 | public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 |
60 | /**
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | sessionConfig.timeoutIntervalForRequest = options.requestTimeout
19 | DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
20 | self.session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | configuration: sessionConfig,
22 | delegate: DefaultHttpClientSessionDelegate.shared,
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
21 | configuration: sessionConfig,
22 | delegate: DefaultHttpClientSessionDelegate.shared,
23 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
24 | )
25 | }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:41:26: error: cannot find 'URLRequest' in scope
39 |
40 | func sendHttpRequest(url: URL, method: String, body: Data?, completionHandler: @escaping (HttpResponse?, Error?) -> Swift.Void) {
41 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
42 | urlRequest.httpMethod = method
43 | urlRequest.httpBody = body
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:47:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
45 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &urlRequest)
46 |
47 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
48 |
49 | var resp:HttpResponse?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:51:80: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | var resp:HttpResponse?
50 | if error == nil {
51 | resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | }
53 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
78 | challengeHandler(session, challenge, completionHandler)
79 | } else {
80 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
81 | }
82 | }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:56: error: 'nil' requires a contextual type
78 | challengeHandler(session, challenge, completionHandler)
79 | } else {
80 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
81 | }
82 | }
[8/32] Compiling SignalRClient ConnectionDelegate.swift
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | class DefaultHttpClient: HttpClientProtocol {
12 | private let options: HttpConnectionOptions
13 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | public init(options: HttpConnectionOptions) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:58:95: error: cannot find type 'URLRequest' in scope
56 | }
57 |
58 | @inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
59 | headers.forEach { (key, value) in
60 | request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:64:102: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
65 | if let accessToken = accessTokenProvider() {
66 | request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:63: error: cannot find type 'URLSessionDelegate' in scope
69 | }
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
72 | static var shared = DefaultHttpClientSessionDelegate()
73 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:74:150: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 | static var shared = DefaultHttpClientSessionDelegate()
73 |
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(options: HttpConnectionOptions) {
16 | self.options = options
17 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionConfig.timeoutIntervalForRequest = options.requestTimeout
19 | DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
56 | public var maximumWebsocketMessageSize: Int?
57 |
58 | public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 |
60 | /**
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | sessionConfig.timeoutIntervalForRequest = options.requestTimeout
19 | DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
20 | self.session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | configuration: sessionConfig,
22 | delegate: DefaultHttpClientSessionDelegate.shared,
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
21 | configuration: sessionConfig,
22 | delegate: DefaultHttpClientSessionDelegate.shared,
23 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
24 | )
25 | }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:41:26: error: cannot find 'URLRequest' in scope
39 |
40 | func sendHttpRequest(url: URL, method: String, body: Data?, completionHandler: @escaping (HttpResponse?, Error?) -> Swift.Void) {
41 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
42 | urlRequest.httpMethod = method
43 | urlRequest.httpBody = body
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:47:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
45 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &urlRequest)
46 |
47 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
48 |
49 | var resp:HttpResponse?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:51:80: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | var resp:HttpResponse?
50 | if error == nil {
51 | resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | }
53 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
78 | challengeHandler(session, challenge, completionHandler)
79 | } else {
80 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
81 | }
82 | }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:56: error: 'nil' requires a contextual type
78 | challengeHandler(session, challenge, completionHandler)
79 | } else {
80 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
81 | }
82 | }
[9/32] Compiling SignalRClient DefaultHttpClient.swift
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | class DefaultHttpClient: HttpClientProtocol {
12 | private let options: HttpConnectionOptions
13 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 | public init(options: HttpConnectionOptions) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:58:95: error: cannot find type 'URLRequest' in scope
56 | }
57 |
58 | @inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
59 | headers.forEach { (key, value) in
60 | request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:64:102: error: cannot find type 'URLRequest' in scope
62 | }
63 |
64 | @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
65 | if let accessToken = accessTokenProvider() {
66 | request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:71:63: error: cannot find type 'URLSessionDelegate' in scope
69 | }
70 |
71 | fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
| `- error: cannot find type 'URLSessionDelegate' in scope
72 | static var shared = DefaultHttpClientSessionDelegate()
73 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:74:150: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 | static var shared = DefaultHttpClientSessionDelegate()
73 |
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:76:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
75 |
76 | func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | if let challengeHandler = authenticationChallengeHandler {
78 | challengeHandler(session, challenge, completionHandler)
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
15 | public init(options: HttpConnectionOptions) {
16 | self.options = options
17 | let sessionConfig = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
18 | sessionConfig.timeoutIntervalForRequest = options.requestTimeout
19 | DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
56 | public var maximumWebsocketMessageSize: Int?
57 |
58 | public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 |
60 | /**
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 | sessionConfig.timeoutIntervalForRequest = options.requestTimeout
19 | DefaultHttpClientSessionDelegate.shared.authenticationChallengeHandler = options.authenticationChallengeHandler
20 | self.session = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 | configuration: sessionConfig,
22 | delegate: DefaultHttpClientSessionDelegate.shared,
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
21 | configuration: sessionConfig,
22 | delegate: DefaultHttpClientSessionDelegate.shared,
23 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
24 | )
25 | }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:41:26: error: cannot find 'URLRequest' in scope
39 |
40 | func sendHttpRequest(url: URL, method: String, body: Data?, completionHandler: @escaping (HttpResponse?, Error?) -> Swift.Void) {
41 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
42 | urlRequest.httpMethod = method
43 | urlRequest.httpBody = body
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:47:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
45 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &urlRequest)
46 |
47 | session.dataTask(with: urlRequest, completionHandler: { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
48 |
49 | var resp:HttpResponse?
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:51:80: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
49 | var resp:HttpResponse?
50 | if error == nil {
51 | resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | }
53 |
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
78 | challengeHandler(session, challenge, completionHandler)
79 | } else {
80 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
81 | }
82 | }
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:56: error: 'nil' requires a contextual type
78 | challengeHandler(session, challenge, completionHandler)
79 | } else {
80 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
81 | }
82 | }
[10/32] Compiling SignalRClient ReconnectPolicy.swift
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:31:61: error: cannot find type 'DispatchTimeInterval' in scope
29 | - returns: time interval when the next connect attempt should take place. Returning `.never` indicates that no further connect attempts should take place.
30 | */
31 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
32 | }
33 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:38:26: error: cannot find type 'DispatchTimeInterval' in scope
36 | */
37 | public class DefaultReconnectPolicy: ReconnectPolicy {
38 | let retryIntervals: [DispatchTimeInterval]
| `- error: cannot find type 'DispatchTimeInterval' in scope
39 |
40 | /**
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:46:34: error: cannot find type 'DispatchTimeInterval' in scope
44 | intervals. If this fails the connection will be stopped.
45 | */
46 | public init(retryIntervals: [DispatchTimeInterval] = [.milliseconds(0), .seconds(2), .seconds(10), .seconds(30)]) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
47 | self.retryIntervals = retryIntervals
48 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:50:68: error: cannot find type 'DispatchTimeInterval' in scope
48 | }
49 |
50 | public func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
51 | if retryContext.failedAttemptsCount >= retryIntervals.count {
52 | return .never
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:59:61: error: cannot find type 'DispatchTimeInterval' in scope
57 |
58 | internal class NoReconnectPolicy: ReconnectPolicy {
59 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
60 | return DispatchTimeInterval.never
61 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:11:35: error: cannot find 'DispatchQueue' in scope
9 |
10 | internal class ReconnectableConnection: Connection {
11 | private let connectionQueue = DispatchQueue(label: "SignalR.reconnection.queue")
| `- error: cannot find 'DispatchQueue' in scope
12 | private let callbackQueue: DispatchQueue
13 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:12:32: error: cannot find type 'DispatchQueue' in scope
10 | internal class ReconnectableConnection: Connection {
11 | private let connectionQueue = DispatchQueue(label: "SignalR.reconnection.queue")
12 | private let callbackQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
13 |
14 | private let connectionFactory: () -> Connection
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:41:106: error: cannot find type 'DispatchQueue' in scope
39 | }
40 |
41 | init(connectionFactory: @escaping () -> Connection, reconnectPolicy: ReconnectPolicy, callbackQueue: DispatchQueue, logger: Logger) {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.connectionFactory = connectionFactory
43 | self.reconnectPolicy = reconnectPolicy
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:124:40: error: cannot infer contextual base in reference to member 'never'
122 | let nextAttemptInterval = reconnectPolicy.nextAttemptInterval(retryContext: retryContext)
123 | logger.log(logLevel: .debug, message: "nextAttemptInterval: \(nextAttemptInterval), RetryContext: \(retryContext)")
124 | if nextAttemptInterval != .never {
| `- error: cannot infer contextual base in reference to member 'never'
125 | logger.log(logLevel: .debug, message: "Scheduling reconnect attempt at: \(nextAttemptInterval)")
126 | // TODO: not great but running on the connectionQueue deadlocks
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:127:17: error: cannot find 'DispatchQueue' in scope
125 | logger.log(logLevel: .debug, message: "Scheduling reconnect attempt at: \(nextAttemptInterval)")
126 | // TODO: not great but running on the connectionQueue deadlocks
127 | DispatchQueue.main.asyncAfter(deadline: .now() + nextAttemptInterval) {
| `- error: cannot find 'DispatchQueue' in scope
128 | self.startInternal()
129 | }
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:22:41: error: cannot find type 'DispatchQueue' in scope
20 | private let invocationDidComplete: (T?, Error?) -> Void
21 |
22 | init(logger: Logger, callbackQueue: DispatchQueue, invocationDidComplete: @escaping (T?, Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
23 | self.logger = logger
24 | self.invocationDidComplete = {result, error in
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:75:41: error: cannot find type 'DispatchQueue' in scope
73 | private let invocationDidComplete: (Error?) -> Void
74 |
75 | init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
76 | self.logger = logger
77 | self.streamItemReceived = { item in callbackQueue.async { streamItemReceived(item) } }
[11/32] Compiling SignalRClient ReconnectableConnection.swift
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:31:61: error: cannot find type 'DispatchTimeInterval' in scope
29 | - returns: time interval when the next connect attempt should take place. Returning `.never` indicates that no further connect attempts should take place.
30 | */
31 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
32 | }
33 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:38:26: error: cannot find type 'DispatchTimeInterval' in scope
36 | */
37 | public class DefaultReconnectPolicy: ReconnectPolicy {
38 | let retryIntervals: [DispatchTimeInterval]
| `- error: cannot find type 'DispatchTimeInterval' in scope
39 |
40 | /**
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:46:34: error: cannot find type 'DispatchTimeInterval' in scope
44 | intervals. If this fails the connection will be stopped.
45 | */
46 | public init(retryIntervals: [DispatchTimeInterval] = [.milliseconds(0), .seconds(2), .seconds(10), .seconds(30)]) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
47 | self.retryIntervals = retryIntervals
48 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:50:68: error: cannot find type 'DispatchTimeInterval' in scope
48 | }
49 |
50 | public func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
51 | if retryContext.failedAttemptsCount >= retryIntervals.count {
52 | return .never
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:59:61: error: cannot find type 'DispatchTimeInterval' in scope
57 |
58 | internal class NoReconnectPolicy: ReconnectPolicy {
59 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
60 | return DispatchTimeInterval.never
61 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:11:35: error: cannot find 'DispatchQueue' in scope
9 |
10 | internal class ReconnectableConnection: Connection {
11 | private let connectionQueue = DispatchQueue(label: "SignalR.reconnection.queue")
| `- error: cannot find 'DispatchQueue' in scope
12 | private let callbackQueue: DispatchQueue
13 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:12:32: error: cannot find type 'DispatchQueue' in scope
10 | internal class ReconnectableConnection: Connection {
11 | private let connectionQueue = DispatchQueue(label: "SignalR.reconnection.queue")
12 | private let callbackQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
13 |
14 | private let connectionFactory: () -> Connection
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:41:106: error: cannot find type 'DispatchQueue' in scope
39 | }
40 |
41 | init(connectionFactory: @escaping () -> Connection, reconnectPolicy: ReconnectPolicy, callbackQueue: DispatchQueue, logger: Logger) {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.connectionFactory = connectionFactory
43 | self.reconnectPolicy = reconnectPolicy
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:124:40: error: cannot infer contextual base in reference to member 'never'
122 | let nextAttemptInterval = reconnectPolicy.nextAttemptInterval(retryContext: retryContext)
123 | logger.log(logLevel: .debug, message: "nextAttemptInterval: \(nextAttemptInterval), RetryContext: \(retryContext)")
124 | if nextAttemptInterval != .never {
| `- error: cannot infer contextual base in reference to member 'never'
125 | logger.log(logLevel: .debug, message: "Scheduling reconnect attempt at: \(nextAttemptInterval)")
126 | // TODO: not great but running on the connectionQueue deadlocks
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:127:17: error: cannot find 'DispatchQueue' in scope
125 | logger.log(logLevel: .debug, message: "Scheduling reconnect attempt at: \(nextAttemptInterval)")
126 | // TODO: not great but running on the connectionQueue deadlocks
127 | DispatchQueue.main.asyncAfter(deadline: .now() + nextAttemptInterval) {
| `- error: cannot find 'DispatchQueue' in scope
128 | self.startInternal()
129 | }
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:22:41: error: cannot find type 'DispatchQueue' in scope
20 | private let invocationDidComplete: (T?, Error?) -> Void
21 |
22 | init(logger: Logger, callbackQueue: DispatchQueue, invocationDidComplete: @escaping (T?, Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
23 | self.logger = logger
24 | self.invocationDidComplete = {result, error in
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:75:41: error: cannot find type 'DispatchQueue' in scope
73 | private let invocationDidComplete: (Error?) -> Void
74 |
75 | init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
76 | self.logger = logger
77 | self.streamItemReceived = { item in callbackQueue.async { streamItemReceived(item) } }
[12/32] Compiling SignalRClient ServerInvocationHandler.swift
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:31:61: error: cannot find type 'DispatchTimeInterval' in scope
29 | - returns: time interval when the next connect attempt should take place. Returning `.never` indicates that no further connect attempts should take place.
30 | */
31 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
32 | }
33 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:38:26: error: cannot find type 'DispatchTimeInterval' in scope
36 | */
37 | public class DefaultReconnectPolicy: ReconnectPolicy {
38 | let retryIntervals: [DispatchTimeInterval]
| `- error: cannot find type 'DispatchTimeInterval' in scope
39 |
40 | /**
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:46:34: error: cannot find type 'DispatchTimeInterval' in scope
44 | intervals. If this fails the connection will be stopped.
45 | */
46 | public init(retryIntervals: [DispatchTimeInterval] = [.milliseconds(0), .seconds(2), .seconds(10), .seconds(30)]) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
47 | self.retryIntervals = retryIntervals
48 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:50:68: error: cannot find type 'DispatchTimeInterval' in scope
48 | }
49 |
50 | public func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
51 | if retryContext.failedAttemptsCount >= retryIntervals.count {
52 | return .never
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:59:61: error: cannot find type 'DispatchTimeInterval' in scope
57 |
58 | internal class NoReconnectPolicy: ReconnectPolicy {
59 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
60 | return DispatchTimeInterval.never
61 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:11:35: error: cannot find 'DispatchQueue' in scope
9 |
10 | internal class ReconnectableConnection: Connection {
11 | private let connectionQueue = DispatchQueue(label: "SignalR.reconnection.queue")
| `- error: cannot find 'DispatchQueue' in scope
12 | private let callbackQueue: DispatchQueue
13 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:12:32: error: cannot find type 'DispatchQueue' in scope
10 | internal class ReconnectableConnection: Connection {
11 | private let connectionQueue = DispatchQueue(label: "SignalR.reconnection.queue")
12 | private let callbackQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
13 |
14 | private let connectionFactory: () -> Connection
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:41:106: error: cannot find type 'DispatchQueue' in scope
39 | }
40 |
41 | init(connectionFactory: @escaping () -> Connection, reconnectPolicy: ReconnectPolicy, callbackQueue: DispatchQueue, logger: Logger) {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.connectionFactory = connectionFactory
43 | self.reconnectPolicy = reconnectPolicy
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:124:40: error: cannot infer contextual base in reference to member 'never'
122 | let nextAttemptInterval = reconnectPolicy.nextAttemptInterval(retryContext: retryContext)
123 | logger.log(logLevel: .debug, message: "nextAttemptInterval: \(nextAttemptInterval), RetryContext: \(retryContext)")
124 | if nextAttemptInterval != .never {
| `- error: cannot infer contextual base in reference to member 'never'
125 | logger.log(logLevel: .debug, message: "Scheduling reconnect attempt at: \(nextAttemptInterval)")
126 | // TODO: not great but running on the connectionQueue deadlocks
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:127:17: error: cannot find 'DispatchQueue' in scope
125 | logger.log(logLevel: .debug, message: "Scheduling reconnect attempt at: \(nextAttemptInterval)")
126 | // TODO: not great but running on the connectionQueue deadlocks
127 | DispatchQueue.main.asyncAfter(deadline: .now() + nextAttemptInterval) {
| `- error: cannot find 'DispatchQueue' in scope
128 | self.startInternal()
129 | }
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:22:41: error: cannot find type 'DispatchQueue' in scope
20 | private let invocationDidComplete: (T?, Error?) -> Void
21 |
22 | init(logger: Logger, callbackQueue: DispatchQueue, invocationDidComplete: @escaping (T?, Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
23 | self.logger = logger
24 | self.invocationDidComplete = {result, error in
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:75:41: error: cannot find type 'DispatchQueue' in scope
73 | private let invocationDidComplete: (Error?) -> Void
74 |
75 | init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
76 | self.logger = logger
77 | self.streamItemReceived = { item in callbackQueue.async { streamItemReceived(item) } }
[13/32] Compiling SignalRClient SignalRError.swift
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:31:61: error: cannot find type 'DispatchTimeInterval' in scope
29 | - returns: time interval when the next connect attempt should take place. Returning `.never` indicates that no further connect attempts should take place.
30 | */
31 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
32 | }
33 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:38:26: error: cannot find type 'DispatchTimeInterval' in scope
36 | */
37 | public class DefaultReconnectPolicy: ReconnectPolicy {
38 | let retryIntervals: [DispatchTimeInterval]
| `- error: cannot find type 'DispatchTimeInterval' in scope
39 |
40 | /**
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:46:34: error: cannot find type 'DispatchTimeInterval' in scope
44 | intervals. If this fails the connection will be stopped.
45 | */
46 | public init(retryIntervals: [DispatchTimeInterval] = [.milliseconds(0), .seconds(2), .seconds(10), .seconds(30)]) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
47 | self.retryIntervals = retryIntervals
48 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:50:68: error: cannot find type 'DispatchTimeInterval' in scope
48 | }
49 |
50 | public func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
51 | if retryContext.failedAttemptsCount >= retryIntervals.count {
52 | return .never
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:59:61: error: cannot find type 'DispatchTimeInterval' in scope
57 |
58 | internal class NoReconnectPolicy: ReconnectPolicy {
59 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval {
| `- error: cannot find type 'DispatchTimeInterval' in scope
60 | return DispatchTimeInterval.never
61 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:11:35: error: cannot find 'DispatchQueue' in scope
9 |
10 | internal class ReconnectableConnection: Connection {
11 | private let connectionQueue = DispatchQueue(label: "SignalR.reconnection.queue")
| `- error: cannot find 'DispatchQueue' in scope
12 | private let callbackQueue: DispatchQueue
13 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:12:32: error: cannot find type 'DispatchQueue' in scope
10 | internal class ReconnectableConnection: Connection {
11 | private let connectionQueue = DispatchQueue(label: "SignalR.reconnection.queue")
12 | private let callbackQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
13 |
14 | private let connectionFactory: () -> Connection
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:41:106: error: cannot find type 'DispatchQueue' in scope
39 | }
40 |
41 | init(connectionFactory: @escaping () -> Connection, reconnectPolicy: ReconnectPolicy, callbackQueue: DispatchQueue, logger: Logger) {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.connectionFactory = connectionFactory
43 | self.reconnectPolicy = reconnectPolicy
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:124:40: error: cannot infer contextual base in reference to member 'never'
122 | let nextAttemptInterval = reconnectPolicy.nextAttemptInterval(retryContext: retryContext)
123 | logger.log(logLevel: .debug, message: "nextAttemptInterval: \(nextAttemptInterval), RetryContext: \(retryContext)")
124 | if nextAttemptInterval != .never {
| `- error: cannot infer contextual base in reference to member 'never'
125 | logger.log(logLevel: .debug, message: "Scheduling reconnect attempt at: \(nextAttemptInterval)")
126 | // TODO: not great but running on the connectionQueue deadlocks
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:127:17: error: cannot find 'DispatchQueue' in scope
125 | logger.log(logLevel: .debug, message: "Scheduling reconnect attempt at: \(nextAttemptInterval)")
126 | // TODO: not great but running on the connectionQueue deadlocks
127 | DispatchQueue.main.asyncAfter(deadline: .now() + nextAttemptInterval) {
| `- error: cannot find 'DispatchQueue' in scope
128 | self.startInternal()
129 | }
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:22:41: error: cannot find type 'DispatchQueue' in scope
20 | private let invocationDidComplete: (T?, Error?) -> Void
21 |
22 | init(logger: Logger, callbackQueue: DispatchQueue, invocationDidComplete: @escaping (T?, Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
23 | self.logger = logger
24 | self.invocationDidComplete = {result, error in
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:75:41: error: cannot find type 'DispatchQueue' in scope
73 | private let invocationDidComplete: (Error?) -> Void
74 |
75 | init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
76 | self.logger = logger
77 | self.streamItemReceived = { item in callbackQueue.async { streamItemReceived(item) } }
[14/32] Compiling SignalRClient DefaultTransportFactory.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:12:34: error: cannot find type 'DispatchQueue' in scope
10 |
11 | public class HttpConnection: Connection {
12 | private let connectionQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
13 | private let startDispatchGroup: DispatchGroup
14 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:13:37: error: cannot find type 'DispatchGroup' in scope
11 | public class HttpConnection: Connection {
12 | private let connectionQueue: DispatchQueue
13 | private let startDispatchGroup: DispatchGroup
| `- error: cannot find type 'DispatchGroup' in scope
14 |
15 | private var url: URL
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:45:27: error: cannot find 'DispatchQueue' in scope
43 | init(url: URL, options: HttpConnectionOptions, transportFactory: TransportFactory, logger: Logger) {
44 | logger.log(logLevel: .debug, message: "HttpConnection init")
45 | connectionQueue = DispatchQueue(label: "SignalR.connection.queue")
| `- error: cannot find 'DispatchQueue' in scope
46 | startDispatchGroup = DispatchGroup()
47 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:46:30: error: cannot find 'DispatchGroup' in scope
44 | logger.log(logLevel: .debug, message: "HttpConnection init")
45 | connectionQueue = DispatchQueue(label: "SignalR.connection.queue")
46 | startDispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
47 |
48 | self.url = url
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:63:31: error: cannot find type 'DispatchQueue' in scope
61 | The queue to run callbacks on
62 | */
63 | public var callbackQueue: DispatchQueue = DispatchQueue(label: "SignalR.connection.callbackQueue")
| `- error: cannot find type 'DispatchQueue' in scope
64 |
65 | /**
[15/32] Compiling SignalRClient HandshakeProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:12:34: error: cannot find type 'DispatchQueue' in scope
10 |
11 | public class HttpConnection: Connection {
12 | private let connectionQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
13 | private let startDispatchGroup: DispatchGroup
14 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:13:37: error: cannot find type 'DispatchGroup' in scope
11 | public class HttpConnection: Connection {
12 | private let connectionQueue: DispatchQueue
13 | private let startDispatchGroup: DispatchGroup
| `- error: cannot find type 'DispatchGroup' in scope
14 |
15 | private var url: URL
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:45:27: error: cannot find 'DispatchQueue' in scope
43 | init(url: URL, options: HttpConnectionOptions, transportFactory: TransportFactory, logger: Logger) {
44 | logger.log(logLevel: .debug, message: "HttpConnection init")
45 | connectionQueue = DispatchQueue(label: "SignalR.connection.queue")
| `- error: cannot find 'DispatchQueue' in scope
46 | startDispatchGroup = DispatchGroup()
47 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:46:30: error: cannot find 'DispatchGroup' in scope
44 | logger.log(logLevel: .debug, message: "HttpConnection init")
45 | connectionQueue = DispatchQueue(label: "SignalR.connection.queue")
46 | startDispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
47 |
48 | self.url = url
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:63:31: error: cannot find type 'DispatchQueue' in scope
61 | The queue to run callbacks on
62 | */
63 | public var callbackQueue: DispatchQueue = DispatchQueue(label: "SignalR.connection.callbackQueue")
| `- error: cannot find type 'DispatchQueue' in scope
64 |
65 | /**
[16/32] Compiling SignalRClient HttpClientProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:12:34: error: cannot find type 'DispatchQueue' in scope
10 |
11 | public class HttpConnection: Connection {
12 | private let connectionQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
13 | private let startDispatchGroup: DispatchGroup
14 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:13:37: error: cannot find type 'DispatchGroup' in scope
11 | public class HttpConnection: Connection {
12 | private let connectionQueue: DispatchQueue
13 | private let startDispatchGroup: DispatchGroup
| `- error: cannot find type 'DispatchGroup' in scope
14 |
15 | private var url: URL
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:45:27: error: cannot find 'DispatchQueue' in scope
43 | init(url: URL, options: HttpConnectionOptions, transportFactory: TransportFactory, logger: Logger) {
44 | logger.log(logLevel: .debug, message: "HttpConnection init")
45 | connectionQueue = DispatchQueue(label: "SignalR.connection.queue")
| `- error: cannot find 'DispatchQueue' in scope
46 | startDispatchGroup = DispatchGroup()
47 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:46:30: error: cannot find 'DispatchGroup' in scope
44 | logger.log(logLevel: .debug, message: "HttpConnection init")
45 | connectionQueue = DispatchQueue(label: "SignalR.connection.queue")
46 | startDispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
47 |
48 | self.url = url
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:63:31: error: cannot find type 'DispatchQueue' in scope
61 | The queue to run callbacks on
62 | */
63 | public var callbackQueue: DispatchQueue = DispatchQueue(label: "SignalR.connection.callbackQueue")
| `- error: cannot find type 'DispatchQueue' in scope
64 |
65 | /**
[17/32] Compiling SignalRClient HttpConnection.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:12:34: error: cannot find type 'DispatchQueue' in scope
10 |
11 | public class HttpConnection: Connection {
12 | private let connectionQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
13 | private let startDispatchGroup: DispatchGroup
14 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:13:37: error: cannot find type 'DispatchGroup' in scope
11 | public class HttpConnection: Connection {
12 | private let connectionQueue: DispatchQueue
13 | private let startDispatchGroup: DispatchGroup
| `- error: cannot find type 'DispatchGroup' in scope
14 |
15 | private var url: URL
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:45:27: error: cannot find 'DispatchQueue' in scope
43 | init(url: URL, options: HttpConnectionOptions, transportFactory: TransportFactory, logger: Logger) {
44 | logger.log(logLevel: .debug, message: "HttpConnection init")
45 | connectionQueue = DispatchQueue(label: "SignalR.connection.queue")
| `- error: cannot find 'DispatchQueue' in scope
46 | startDispatchGroup = DispatchGroup()
47 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:46:30: error: cannot find 'DispatchGroup' in scope
44 | logger.log(logLevel: .debug, message: "HttpConnection init")
45 | connectionQueue = DispatchQueue(label: "SignalR.connection.queue")
46 | startDispatchGroup = DispatchGroup()
| `- error: cannot find 'DispatchGroup' in scope
47 |
48 | self.url = url
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:63:31: error: cannot find type 'DispatchQueue' in scope
61 | The queue to run callbacks on
62 | */
63 | public var callbackQueue: DispatchQueue = DispatchQueue(label: "SignalR.connection.callbackQueue")
| `- error: cannot find type 'DispatchQueue' in scope
64 |
65 | /**
[18/32] Compiling SignalRClient HttpConnectionOptions.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
56 | public var maximumWebsocketMessageSize: Int?
57 |
58 | public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 |
60 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:63:31: error: cannot find type 'DispatchQueue' in scope
61 | The queue to run callbacks on
62 | */
63 | public var callbackQueue: DispatchQueue = DispatchQueue(label: "SignalR.connection.callbackQueue")
| `- error: cannot find type 'DispatchQueue' in scope
64 |
65 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:20:37: error: cannot find type 'DispatchQueue' in scope
18 |
19 | private var invocationId: Int = 0
20 | private let hubConnectionQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
21 | private var pendingCalls = [String: ServerInvocationHandler]()
22 | private var callbacks = [String: (ArgumentExtractor) throws -> Void]()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:31:36: error: cannot find type 'DispatchWorkItem' in scope
29 |
30 | private let keepAliveIntervalInSeconds: Double?
31 | private var keepAlivePingTask: DispatchWorkItem?
| `- error: cannot find type 'DispatchWorkItem' in scope
32 |
33 | private let callbackQueue: DispatchQueue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:33:32: error: cannot find type 'DispatchQueue' in scope
31 | private var keepAlivePingTask: DispatchWorkItem?
32 |
33 | private let callbackQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionOptions.swift:22:31: error: cannot find type 'DispatchQueue' in scope
20 | The queue to run callbacks on
21 | */
22 | public var callbackQueue: DispatchQueue = DispatchQueue.main
| `- error: cannot find type 'DispatchQueue' in scope
23 |
24 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:68:35: error: cannot find 'DispatchQueue' in scope
66 | self.callbackQueue = hubConnectionOptions.callbackQueue
67 | self.logger = logger
68 | self.hubConnectionQueue = DispatchQueue(label: "SignalR.hubconnection.queue")
| `- error: cannot find 'DispatchQueue' in scope
69 | }
70 |
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:22:41: error: cannot find type 'DispatchQueue' in scope
20 | private let invocationDidComplete: (T?, Error?) -> Void
21 |
22 | init(logger: Logger, callbackQueue: DispatchQueue, invocationDidComplete: @escaping (T?, Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
23 | self.logger = logger
24 | self.invocationDidComplete = {result, error in
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:75:41: error: cannot find type 'DispatchQueue' in scope
73 | private let invocationDidComplete: (Error?) -> Void
74 |
75 | init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
76 | self.logger = logger
77 | self.streamItemReceived = { item in callbackQueue.async { streamItemReceived(item) } }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:362:33: error: cannot find 'DispatchWorkItem' in scope
360 | let originalHandshakeStatus = handshakeStatus
361 | handshakeStatus = .handled
362 | keepAlivePingTask = DispatchWorkItem{}
| `- error: cannot find 'DispatchWorkItem' in scope
363 | if let e = error {
364 | // TODO: (BUG) if this fails when reconnecting the callback should not be called and there
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:518:33: error: cannot find 'DispatchWorkItem' in scope
516 | logger.log(logLevel: .debug, message: "Resetting keep alive")
517 | keepAlivePingTask!.cancel()
518 | keepAlivePingTask = DispatchWorkItem { self.sendKeepAlivePing() }
| `- error: cannot find 'DispatchWorkItem' in scope
519 | hubConnectionQueue.asyncAfter(deadline: DispatchTime.now() + keepAliveInterval, execute: keepAlivePingTask!)
520 | }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:519:53: error: cannot find 'DispatchTime' in scope
517 | keepAlivePingTask!.cancel()
518 | keepAlivePingTask = DispatchWorkItem { self.sendKeepAlivePing() }
519 | hubConnectionQueue.asyncAfter(deadline: DispatchTime.now() + keepAliveInterval, execute: keepAlivePingTask!)
| `- error: cannot find 'DispatchTime' in scope
520 | }
521 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:31:61: error: cannot find type 'DispatchTimeInterval' in scope
29 | - returns: time interval when the next connect attempt should take place. Returning `.never` indicates that no further connect attempts should take place.
30 | */
31 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
32 | }
33 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:46:34: error: cannot find type 'DispatchTimeInterval' in scope
44 | intervals. If this fails the connection will be stopped.
45 | */
46 | public init(retryIntervals: [DispatchTimeInterval] = [.milliseconds(0), .seconds(2), .seconds(10), .seconds(30)]) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
47 | self.retryIntervals = retryIntervals
48 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:41:106: error: cannot find type 'DispatchQueue' in scope
39 | }
40 |
41 | init(connectionFactory: @escaping () -> Connection, reconnectPolicy: ReconnectPolicy, callbackQueue: DispatchQueue, logger: Logger) {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.connectionFactory = connectionFactory
43 | self.reconnectPolicy = reconnectPolicy
[19/32] Compiling SignalRClient HttpResponse.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
56 | public var maximumWebsocketMessageSize: Int?
57 |
58 | public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 |
60 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:63:31: error: cannot find type 'DispatchQueue' in scope
61 | The queue to run callbacks on
62 | */
63 | public var callbackQueue: DispatchQueue = DispatchQueue(label: "SignalR.connection.callbackQueue")
| `- error: cannot find type 'DispatchQueue' in scope
64 |
65 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:20:37: error: cannot find type 'DispatchQueue' in scope
18 |
19 | private var invocationId: Int = 0
20 | private let hubConnectionQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
21 | private var pendingCalls = [String: ServerInvocationHandler]()
22 | private var callbacks = [String: (ArgumentExtractor) throws -> Void]()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:31:36: error: cannot find type 'DispatchWorkItem' in scope
29 |
30 | private let keepAliveIntervalInSeconds: Double?
31 | private var keepAlivePingTask: DispatchWorkItem?
| `- error: cannot find type 'DispatchWorkItem' in scope
32 |
33 | private let callbackQueue: DispatchQueue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:33:32: error: cannot find type 'DispatchQueue' in scope
31 | private var keepAlivePingTask: DispatchWorkItem?
32 |
33 | private let callbackQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionOptions.swift:22:31: error: cannot find type 'DispatchQueue' in scope
20 | The queue to run callbacks on
21 | */
22 | public var callbackQueue: DispatchQueue = DispatchQueue.main
| `- error: cannot find type 'DispatchQueue' in scope
23 |
24 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:68:35: error: cannot find 'DispatchQueue' in scope
66 | self.callbackQueue = hubConnectionOptions.callbackQueue
67 | self.logger = logger
68 | self.hubConnectionQueue = DispatchQueue(label: "SignalR.hubconnection.queue")
| `- error: cannot find 'DispatchQueue' in scope
69 | }
70 |
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:22:41: error: cannot find type 'DispatchQueue' in scope
20 | private let invocationDidComplete: (T?, Error?) -> Void
21 |
22 | init(logger: Logger, callbackQueue: DispatchQueue, invocationDidComplete: @escaping (T?, Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
23 | self.logger = logger
24 | self.invocationDidComplete = {result, error in
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:75:41: error: cannot find type 'DispatchQueue' in scope
73 | private let invocationDidComplete: (Error?) -> Void
74 |
75 | init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
76 | self.logger = logger
77 | self.streamItemReceived = { item in callbackQueue.async { streamItemReceived(item) } }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:362:33: error: cannot find 'DispatchWorkItem' in scope
360 | let originalHandshakeStatus = handshakeStatus
361 | handshakeStatus = .handled
362 | keepAlivePingTask = DispatchWorkItem{}
| `- error: cannot find 'DispatchWorkItem' in scope
363 | if let e = error {
364 | // TODO: (BUG) if this fails when reconnecting the callback should not be called and there
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:518:33: error: cannot find 'DispatchWorkItem' in scope
516 | logger.log(logLevel: .debug, message: "Resetting keep alive")
517 | keepAlivePingTask!.cancel()
518 | keepAlivePingTask = DispatchWorkItem { self.sendKeepAlivePing() }
| `- error: cannot find 'DispatchWorkItem' in scope
519 | hubConnectionQueue.asyncAfter(deadline: DispatchTime.now() + keepAliveInterval, execute: keepAlivePingTask!)
520 | }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:519:53: error: cannot find 'DispatchTime' in scope
517 | keepAlivePingTask!.cancel()
518 | keepAlivePingTask = DispatchWorkItem { self.sendKeepAlivePing() }
519 | hubConnectionQueue.asyncAfter(deadline: DispatchTime.now() + keepAliveInterval, execute: keepAlivePingTask!)
| `- error: cannot find 'DispatchTime' in scope
520 | }
521 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:31:61: error: cannot find type 'DispatchTimeInterval' in scope
29 | - returns: time interval when the next connect attempt should take place. Returning `.never` indicates that no further connect attempts should take place.
30 | */
31 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
32 | }
33 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:46:34: error: cannot find type 'DispatchTimeInterval' in scope
44 | intervals. If this fails the connection will be stopped.
45 | */
46 | public init(retryIntervals: [DispatchTimeInterval] = [.milliseconds(0), .seconds(2), .seconds(10), .seconds(30)]) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
47 | self.retryIntervals = retryIntervals
48 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:41:106: error: cannot find type 'DispatchQueue' in scope
39 | }
40 |
41 | init(connectionFactory: @escaping () -> Connection, reconnectPolicy: ReconnectPolicy, callbackQueue: DispatchQueue, logger: Logger) {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.connectionFactory = connectionFactory
43 | self.reconnectPolicy = reconnectPolicy
[20/32] Compiling SignalRClient HubConnection.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
56 | public var maximumWebsocketMessageSize: Int?
57 |
58 | public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 |
60 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:63:31: error: cannot find type 'DispatchQueue' in scope
61 | The queue to run callbacks on
62 | */
63 | public var callbackQueue: DispatchQueue = DispatchQueue(label: "SignalR.connection.callbackQueue")
| `- error: cannot find type 'DispatchQueue' in scope
64 |
65 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:20:37: error: cannot find type 'DispatchQueue' in scope
18 |
19 | private var invocationId: Int = 0
20 | private let hubConnectionQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
21 | private var pendingCalls = [String: ServerInvocationHandler]()
22 | private var callbacks = [String: (ArgumentExtractor) throws -> Void]()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:31:36: error: cannot find type 'DispatchWorkItem' in scope
29 |
30 | private let keepAliveIntervalInSeconds: Double?
31 | private var keepAlivePingTask: DispatchWorkItem?
| `- error: cannot find type 'DispatchWorkItem' in scope
32 |
33 | private let callbackQueue: DispatchQueue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:33:32: error: cannot find type 'DispatchQueue' in scope
31 | private var keepAlivePingTask: DispatchWorkItem?
32 |
33 | private let callbackQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionOptions.swift:22:31: error: cannot find type 'DispatchQueue' in scope
20 | The queue to run callbacks on
21 | */
22 | public var callbackQueue: DispatchQueue = DispatchQueue.main
| `- error: cannot find type 'DispatchQueue' in scope
23 |
24 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:68:35: error: cannot find 'DispatchQueue' in scope
66 | self.callbackQueue = hubConnectionOptions.callbackQueue
67 | self.logger = logger
68 | self.hubConnectionQueue = DispatchQueue(label: "SignalR.hubconnection.queue")
| `- error: cannot find 'DispatchQueue' in scope
69 | }
70 |
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:22:41: error: cannot find type 'DispatchQueue' in scope
20 | private let invocationDidComplete: (T?, Error?) -> Void
21 |
22 | init(logger: Logger, callbackQueue: DispatchQueue, invocationDidComplete: @escaping (T?, Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
23 | self.logger = logger
24 | self.invocationDidComplete = {result, error in
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:75:41: error: cannot find type 'DispatchQueue' in scope
73 | private let invocationDidComplete: (Error?) -> Void
74 |
75 | init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
76 | self.logger = logger
77 | self.streamItemReceived = { item in callbackQueue.async { streamItemReceived(item) } }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:362:33: error: cannot find 'DispatchWorkItem' in scope
360 | let originalHandshakeStatus = handshakeStatus
361 | handshakeStatus = .handled
362 | keepAlivePingTask = DispatchWorkItem{}
| `- error: cannot find 'DispatchWorkItem' in scope
363 | if let e = error {
364 | // TODO: (BUG) if this fails when reconnecting the callback should not be called and there
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:518:33: error: cannot find 'DispatchWorkItem' in scope
516 | logger.log(logLevel: .debug, message: "Resetting keep alive")
517 | keepAlivePingTask!.cancel()
518 | keepAlivePingTask = DispatchWorkItem { self.sendKeepAlivePing() }
| `- error: cannot find 'DispatchWorkItem' in scope
519 | hubConnectionQueue.asyncAfter(deadline: DispatchTime.now() + keepAliveInterval, execute: keepAlivePingTask!)
520 | }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:519:53: error: cannot find 'DispatchTime' in scope
517 | keepAlivePingTask!.cancel()
518 | keepAlivePingTask = DispatchWorkItem { self.sendKeepAlivePing() }
519 | hubConnectionQueue.asyncAfter(deadline: DispatchTime.now() + keepAliveInterval, execute: keepAlivePingTask!)
| `- error: cannot find 'DispatchTime' in scope
520 | }
521 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:31:61: error: cannot find type 'DispatchTimeInterval' in scope
29 | - returns: time interval when the next connect attempt should take place. Returning `.never` indicates that no further connect attempts should take place.
30 | */
31 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
32 | }
33 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:46:34: error: cannot find type 'DispatchTimeInterval' in scope
44 | intervals. If this fails the connection will be stopped.
45 | */
46 | public init(retryIntervals: [DispatchTimeInterval] = [.milliseconds(0), .seconds(2), .seconds(10), .seconds(30)]) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
47 | self.retryIntervals = retryIntervals
48 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:41:106: error: cannot find type 'DispatchQueue' in scope
39 | }
40 |
41 | init(connectionFactory: @escaping () -> Connection, reconnectPolicy: ReconnectPolicy, callbackQueue: DispatchQueue, logger: Logger) {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.connectionFactory = connectionFactory
43 | self.reconnectPolicy = reconnectPolicy
[21/32] Compiling SignalRClient HubConnectionBuilder.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
56 | public var maximumWebsocketMessageSize: Int?
57 |
58 | public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 |
60 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:63:31: error: cannot find type 'DispatchQueue' in scope
61 | The queue to run callbacks on
62 | */
63 | public var callbackQueue: DispatchQueue = DispatchQueue(label: "SignalR.connection.callbackQueue")
| `- error: cannot find type 'DispatchQueue' in scope
64 |
65 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:20:37: error: cannot find type 'DispatchQueue' in scope
18 |
19 | private var invocationId: Int = 0
20 | private let hubConnectionQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
21 | private var pendingCalls = [String: ServerInvocationHandler]()
22 | private var callbacks = [String: (ArgumentExtractor) throws -> Void]()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:31:36: error: cannot find type 'DispatchWorkItem' in scope
29 |
30 | private let keepAliveIntervalInSeconds: Double?
31 | private var keepAlivePingTask: DispatchWorkItem?
| `- error: cannot find type 'DispatchWorkItem' in scope
32 |
33 | private let callbackQueue: DispatchQueue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:33:32: error: cannot find type 'DispatchQueue' in scope
31 | private var keepAlivePingTask: DispatchWorkItem?
32 |
33 | private let callbackQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
34 |
35 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionOptions.swift:22:31: error: cannot find type 'DispatchQueue' in scope
20 | The queue to run callbacks on
21 | */
22 | public var callbackQueue: DispatchQueue = DispatchQueue.main
| `- error: cannot find type 'DispatchQueue' in scope
23 |
24 | /**
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:68:35: error: cannot find 'DispatchQueue' in scope
66 | self.callbackQueue = hubConnectionOptions.callbackQueue
67 | self.logger = logger
68 | self.hubConnectionQueue = DispatchQueue(label: "SignalR.hubconnection.queue")
| `- error: cannot find 'DispatchQueue' in scope
69 | }
70 |
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:22:41: error: cannot find type 'DispatchQueue' in scope
20 | private let invocationDidComplete: (T?, Error?) -> Void
21 |
22 | init(logger: Logger, callbackQueue: DispatchQueue, invocationDidComplete: @escaping (T?, Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
23 | self.logger = logger
24 | self.invocationDidComplete = {result, error in
/host/spi-builder-workspace/Sources/SignalRClient/ServerInvocationHandler.swift:75:41: error: cannot find type 'DispatchQueue' in scope
73 | private let invocationDidComplete: (Error?) -> Void
74 |
75 | init(logger: Logger, callbackQueue: DispatchQueue, streamItemReceived: @escaping (T) -> Void, invocationDidComplete: @escaping (Error?) -> Void) {
| `- error: cannot find type 'DispatchQueue' in scope
76 | self.logger = logger
77 | self.streamItemReceived = { item in callbackQueue.async { streamItemReceived(item) } }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:362:33: error: cannot find 'DispatchWorkItem' in scope
360 | let originalHandshakeStatus = handshakeStatus
361 | handshakeStatus = .handled
362 | keepAlivePingTask = DispatchWorkItem{}
| `- error: cannot find 'DispatchWorkItem' in scope
363 | if let e = error {
364 | // TODO: (BUG) if this fails when reconnecting the callback should not be called and there
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:518:33: error: cannot find 'DispatchWorkItem' in scope
516 | logger.log(logLevel: .debug, message: "Resetting keep alive")
517 | keepAlivePingTask!.cancel()
518 | keepAlivePingTask = DispatchWorkItem { self.sendKeepAlivePing() }
| `- error: cannot find 'DispatchWorkItem' in scope
519 | hubConnectionQueue.asyncAfter(deadline: DispatchTime.now() + keepAliveInterval, execute: keepAlivePingTask!)
520 | }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:519:53: error: cannot find 'DispatchTime' in scope
517 | keepAlivePingTask!.cancel()
518 | keepAlivePingTask = DispatchWorkItem { self.sendKeepAlivePing() }
519 | hubConnectionQueue.asyncAfter(deadline: DispatchTime.now() + keepAliveInterval, execute: keepAlivePingTask!)
| `- error: cannot find 'DispatchTime' in scope
520 | }
521 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:31:61: error: cannot find type 'DispatchTimeInterval' in scope
29 | - returns: time interval when the next connect attempt should take place. Returning `.never` indicates that no further connect attempts should take place.
30 | */
31 | func nextAttemptInterval(retryContext: RetryContext) -> DispatchTimeInterval
| `- error: cannot find type 'DispatchTimeInterval' in scope
32 | }
33 |
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectPolicy.swift:46:34: error: cannot find type 'DispatchTimeInterval' in scope
44 | intervals. If this fails the connection will be stopped.
45 | */
46 | public init(retryIntervals: [DispatchTimeInterval] = [.milliseconds(0), .seconds(2), .seconds(10), .seconds(30)]) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
47 | self.retryIntervals = retryIntervals
48 | }
/host/spi-builder-workspace/Sources/SignalRClient/ReconnectableConnection.swift:41:106: error: cannot find type 'DispatchQueue' in scope
39 | }
40 |
41 | init(connectionFactory: @escaping () -> Connection, reconnectPolicy: ReconnectPolicy, callbackQueue: DispatchQueue, logger: Logger) {
| `- error: cannot find type 'DispatchQueue' in scope
42 | self.connectionFactory = connectionFactory
43 | self.reconnectPolicy = reconnectPolicy
[22/32] Compiling SignalRClient JSONHubProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/LongPollingTransport.swift:15:30: error: cannot find 'DispatchQueue' in scope
13 |
14 | private let logger: Logger
15 | private let closeQueue = DispatchQueue(label: "LongPollingTransportCloseQueue")
| `- error: cannot find 'DispatchQueue' in scope
16 |
17 | private var active = false
[23/32] Compiling SignalRClient Logger.swift
/host/spi-builder-workspace/Sources/SignalRClient/LongPollingTransport.swift:15:30: error: cannot find 'DispatchQueue' in scope
13 |
14 | private let logger: Logger
15 | private let closeQueue = DispatchQueue(label: "LongPollingTransportCloseQueue")
| `- error: cannot find 'DispatchQueue' in scope
16 |
17 | private var active = false
[24/32] Compiling SignalRClient LongPollingTransport.swift
/host/spi-builder-workspace/Sources/SignalRClient/LongPollingTransport.swift:15:30: error: cannot find 'DispatchQueue' in scope
13 |
14 | private let logger: Logger
15 | private let closeQueue = DispatchQueue(label: "LongPollingTransportCloseQueue")
| `- error: cannot find 'DispatchQueue' in scope
16 |
17 | private var active = false
[25/32] Compiling SignalRClient NegotiationResponse.swift
/host/spi-builder-workspace/Sources/SignalRClient/LongPollingTransport.swift:15:30: error: cannot find 'DispatchQueue' in scope
13 |
14 | private let logger: Logger
15 | private let closeQueue = DispatchQueue(label: "LongPollingTransportCloseQueue")
| `- error: cannot find 'DispatchQueue' in scope
16 |
17 | private var active = false
[26/32] Compiling SignalRClient HubConnectionDelegate.swift
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionOptions.swift:22:31: error: cannot find type 'DispatchQueue' in scope
20 | The queue to run callbacks on
21 | */
22 | public var callbackQueue: DispatchQueue = DispatchQueue.main
| `- error: cannot find type 'DispatchQueue' in scope
23 |
24 | /**
[27/32] Compiling SignalRClient HubConnectionExtensions.swift
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionOptions.swift:22:31: error: cannot find type 'DispatchQueue' in scope
20 | The queue to run callbacks on
21 | */
22 | public var callbackQueue: DispatchQueue = DispatchQueue.main
| `- error: cannot find type 'DispatchQueue' in scope
23 |
24 | /**
[28/32] Compiling SignalRClient HubConnectionOptions.swift
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionOptions.swift:22:31: error: cannot find type 'DispatchQueue' in scope
20 | The queue to run callbacks on
21 | */
22 | public var callbackQueue: DispatchQueue = DispatchQueue.main
| `- error: cannot find type 'DispatchQueue' in scope
23 |
24 | /**
[29/32] Compiling SignalRClient HubProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionOptions.swift:22:31: error: cannot find type 'DispatchQueue' in scope
20 | The queue to run callbacks on
21 | */
22 | public var callbackQueue: DispatchQueue = DispatchQueue.main
| `- error: cannot find type 'DispatchQueue' in scope
23 |
24 | /**
[30/32] Compiling SignalRClient TransportDelegate.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:14:33: error: cannot find 'DispatchQueue' in scope
12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
13 | private let logger: Logger
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
| `- error: cannot find 'DispatchQueue' in scope
15 | private var urlSession: URLSession?
16 | private var webSocketTask: URLSessionWebSocketTask?
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
15 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private var webSocketTask: URLSessionWebSocketTask?
17 | private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
15 | private var urlSession: URLSession?
16 | private var webSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
17 | private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
18 |
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:17:158: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 | private var urlSession: URLSession?
16 | private var webSocketTask: URLSessionWebSocketTask?
17 | private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 |
19 | private var isTransportClosed = false
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:66: error: cannot find type 'URLSessionWebSocketTask' in scope
53 | }
54 |
55 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
56 | logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
57 | delegate?.transportDidOpen()
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | public 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.
56 | logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
57 | delegate?.transportDidOpen()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:77:41: error: cannot find type 'URLSessionWebSocketTask' in scope
75 | }
76 |
77 | private func handleMessage(message: URLSessionWebSocketTask.Message) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
78 | switch message {
79 | case .string(let text):
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:100:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
102 | guard error != nil else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:100:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
102 | guard error != nil else {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:66: error: cannot find type 'URLSessionWebSocketTask' in scope
117 | }
118 |
119 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:115: error: cannot find type 'URLSessionWebSocketTask' in scope
117 | }
118 |
119 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | }
118 |
119 | public 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.
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:152: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:73: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:179:95: error: cannot find type 'URLRequest' in scope
177 | }
178 |
179 | @inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
180 | headers.forEach { (key, value) in
181 | request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:185:102: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
186 | if let accessToken = accessTokenProvider() {
187 | request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
10 |
11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
13 | private let logger: Logger
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
56 | public var maximumWebsocketMessageSize: Int?
57 |
58 | public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 |
60 | /**
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:33:23: error: cannot find 'URLRequest' in scope
31 | authenticationChallengeHandler = options.authenticationChallengeHandler
32 |
33 | var request = URLRequest(url: convertUrl(url: url))
| `- error: cannot find 'URLRequest' in scope
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:89: error: cannot find 'OperationQueue' in scope
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
| `- error: cannot find 'OperationQueue' in scope
37 | webSocketTask = urlSession!.webSocketTask(with: request)
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
37 | webSocketTask = urlSession!.webSocketTask(with: request)
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:49: error: cannot infer contextual base in reference to member 'default'
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
| `- error: cannot infer contextual base in reference to member 'default'
37 | webSocketTask = urlSession!.webSocketTask(with: request)
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:37:37: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
37 | webSocketTask = urlSession!.webSocketTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
39 | webSocketTask?.maximumMessageSize = maximumWebsocketMessageSize
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
44 |
45 | public func send(data: Data, sendDidComplete: @escaping (Error?) -> Void) {
46 | let message = URLSessionWebSocketTask.Message.data(data)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
47 | webSocketTask?.send(message, completionHandler: sendDidComplete)
48 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:38: error: cannot infer contextual base in reference to member 'normalClosure'
49 |
50 | public func close() {
51 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
52 | urlSession?.finishTasksAndInvalidate()
53 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:61: error: 'nil' requires a contextual type
49 |
50 | public func close() {
51 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
52 | urlSession?.finishTasksAndInvalidate()
53 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:52:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
50 | public func close() {
51 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
52 | urlSession?.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
53 | }
54 |
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:80:65: error: cannot infer contextual base in reference to member 'utf8'
78 | switch message {
79 | case .string(let text):
80 | delegate?.transportDidReceiveData(text.data(using: .utf8)!)
| `- error: cannot infer contextual base in reference to member 'utf8'
81 | case .data(let data):
82 | delegate?.transportDidReceiveData(data)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:113:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 | }
112 |
113 | let statusCode = (webSocketTask?.response as? HTTPURLResponse)?.statusCode ?? -1
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | logger.log(logLevel: .info, message: "Error starting webSocket. Error: \(error!), HttpStatusCode: \(statusCode), WebSocket closeCode: \(webSocketTask?.closeCode.rawValue ?? -1)")
115 | delegate?.transportDidClose(error)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 | } else {
146 | logger.log(logLevel: .debug, message: "(ws) no auth challenge handler registered - falling back to default handling")
147 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
148 | }
149 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:56: error: 'nil' requires a contextual type
145 | } else {
146 | logger.log(logLevel: .debug, message: "(ws) no auth challenge handler registered - falling back to default handling")
147 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
148 | }
149 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:38: error: cannot infer contextual base in reference to member 'normalClosure'
160 |
161 | private func shutdownTransport() {
162 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
163 | urlSession?.finishTasksAndInvalidate()
164 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:61: error: 'nil' requires a contextual type
160 |
161 | private func shutdownTransport() {
162 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
163 | urlSession?.finishTasksAndInvalidate()
164 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:163:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
161 | private func shutdownTransport() {
162 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
163 | urlSession?.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
164 | }
165 |
[31/32] Compiling SignalRClient TransportType.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:14:33: error: cannot find 'DispatchQueue' in scope
12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
13 | private let logger: Logger
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
| `- error: cannot find 'DispatchQueue' in scope
15 | private var urlSession: URLSession?
16 | private var webSocketTask: URLSessionWebSocketTask?
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
15 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private var webSocketTask: URLSessionWebSocketTask?
17 | private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
15 | private var urlSession: URLSession?
16 | private var webSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
17 | private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
18 |
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:17:158: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 | private var urlSession: URLSession?
16 | private var webSocketTask: URLSessionWebSocketTask?
17 | private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 |
19 | private var isTransportClosed = false
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:66: error: cannot find type 'URLSessionWebSocketTask' in scope
53 | }
54 |
55 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
56 | logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
57 | delegate?.transportDidOpen()
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | public 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.
56 | logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
57 | delegate?.transportDidOpen()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:77:41: error: cannot find type 'URLSessionWebSocketTask' in scope
75 | }
76 |
77 | private func handleMessage(message: URLSessionWebSocketTask.Message) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
78 | switch message {
79 | case .string(let text):
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:100:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
102 | guard error != nil else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:100:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
102 | guard error != nil else {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:66: error: cannot find type 'URLSessionWebSocketTask' in scope
117 | }
118 |
119 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:115: error: cannot find type 'URLSessionWebSocketTask' in scope
117 | }
118 |
119 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | }
118 |
119 | public 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.
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:152: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:73: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:179:95: error: cannot find type 'URLRequest' in scope
177 | }
178 |
179 | @inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
180 | headers.forEach { (key, value) in
181 | request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:185:102: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
186 | if let accessToken = accessTokenProvider() {
187 | request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
10 |
11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
13 | private let logger: Logger
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
56 | public var maximumWebsocketMessageSize: Int?
57 |
58 | public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 |
60 | /**
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:33:23: error: cannot find 'URLRequest' in scope
31 | authenticationChallengeHandler = options.authenticationChallengeHandler
32 |
33 | var request = URLRequest(url: convertUrl(url: url))
| `- error: cannot find 'URLRequest' in scope
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:89: error: cannot find 'OperationQueue' in scope
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
| `- error: cannot find 'OperationQueue' in scope
37 | webSocketTask = urlSession!.webSocketTask(with: request)
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
37 | webSocketTask = urlSession!.webSocketTask(with: request)
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:49: error: cannot infer contextual base in reference to member 'default'
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
| `- error: cannot infer contextual base in reference to member 'default'
37 | webSocketTask = urlSession!.webSocketTask(with: request)
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:37:37: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
37 | webSocketTask = urlSession!.webSocketTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
39 | webSocketTask?.maximumMessageSize = maximumWebsocketMessageSize
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
44 |
45 | public func send(data: Data, sendDidComplete: @escaping (Error?) -> Void) {
46 | let message = URLSessionWebSocketTask.Message.data(data)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
47 | webSocketTask?.send(message, completionHandler: sendDidComplete)
48 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:38: error: cannot infer contextual base in reference to member 'normalClosure'
49 |
50 | public func close() {
51 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
52 | urlSession?.finishTasksAndInvalidate()
53 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:61: error: 'nil' requires a contextual type
49 |
50 | public func close() {
51 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
52 | urlSession?.finishTasksAndInvalidate()
53 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:52:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
50 | public func close() {
51 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
52 | urlSession?.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
53 | }
54 |
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:80:65: error: cannot infer contextual base in reference to member 'utf8'
78 | switch message {
79 | case .string(let text):
80 | delegate?.transportDidReceiveData(text.data(using: .utf8)!)
| `- error: cannot infer contextual base in reference to member 'utf8'
81 | case .data(let data):
82 | delegate?.transportDidReceiveData(data)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:113:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 | }
112 |
113 | let statusCode = (webSocketTask?.response as? HTTPURLResponse)?.statusCode ?? -1
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | logger.log(logLevel: .info, message: "Error starting webSocket. Error: \(error!), HttpStatusCode: \(statusCode), WebSocket closeCode: \(webSocketTask?.closeCode.rawValue ?? -1)")
115 | delegate?.transportDidClose(error)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 | } else {
146 | logger.log(logLevel: .debug, message: "(ws) no auth challenge handler registered - falling back to default handling")
147 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
148 | }
149 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:56: error: 'nil' requires a contextual type
145 | } else {
146 | logger.log(logLevel: .debug, message: "(ws) no auth challenge handler registered - falling back to default handling")
147 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
148 | }
149 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:38: error: cannot infer contextual base in reference to member 'normalClosure'
160 |
161 | private func shutdownTransport() {
162 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
163 | urlSession?.finishTasksAndInvalidate()
164 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:61: error: 'nil' requires a contextual type
160 |
161 | private func shutdownTransport() {
162 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
163 | urlSession?.finishTasksAndInvalidate()
164 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:163:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
161 | private func shutdownTransport() {
162 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
163 | urlSession?.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
164 | }
165 |
[32/32] Compiling SignalRClient WebsocketsTransport.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:14:33: error: cannot find 'DispatchQueue' in scope
12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
13 | private let logger: Logger
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
| `- error: cannot find 'DispatchQueue' in scope
15 | private var urlSession: URLSession?
16 | private var webSocketTask: URLSessionWebSocketTask?
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let logger: Logger
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
15 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private var webSocketTask: URLSessionWebSocketTask?
17 | private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
15 | private var urlSession: URLSession?
16 | private var webSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
17 | private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
18 |
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:17:158: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 | private var urlSession: URLSession?
16 | private var webSocketTask: URLSessionWebSocketTask?
17 | private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 |
19 | private var isTransportClosed = false
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:66: error: cannot find type 'URLSessionWebSocketTask' in scope
53 | }
54 |
55 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
56 | logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
57 | delegate?.transportDidOpen()
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
55 | public 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.
56 | logger.log(logLevel: .info, message: "urlSession didOpenWithProtocol invoked. WebSocket open")
57 | delegate?.transportDidOpen()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:77:41: error: cannot find type 'URLSessionWebSocketTask' in scope
75 | }
76 |
77 | private func handleMessage(message: URLSessionWebSocketTask.Message) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
78 | switch message {
79 | case .string(let text):
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:100:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
102 | guard error != nil else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:100:57: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | }
99 |
100 | public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | logger.log(logLevel: .debug, message: "urlSession didCompleteWithError invoked")
102 | guard error != nil else {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:66: error: cannot find type 'URLSessionWebSocketTask' in scope
117 | }
118 |
119 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:115: error: cannot find type 'URLSessionWebSocketTask' in scope
117 | }
118 |
119 | public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | }
118 |
119 | public 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.
120 | logger.log(logLevel: .debug, message: "urlSession didCloseWith invoked")
121 | var reasonString = ""
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:152: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:73: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | if authenticationChallengeHandler != nil {
143 | logger.log(logLevel: .debug, message: "(ws) invoking custom auth challenge handler")
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:179:95: error: cannot find type 'URLRequest' in scope
177 | }
178 |
179 | @inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
180 | headers.forEach { (key, value) in
181 | request.addValue(value, forHTTPHeaderField: key)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:185:102: error: cannot find type 'URLRequest' in scope
183 | }
184 |
185 | @inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
186 | if let accessToken = accessTokenProvider() {
187 | request.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
10 |
11 | @available(OSX 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
12 | public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
13 | private let logger: Logger
14 | private let dispatchQueue = DispatchQueue(label: "SignalR.webSocketTransport.queue")
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
56 | public var maximumWebsocketMessageSize: Int?
57 |
58 | public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
59 |
60 | /**
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:33:23: error: cannot find 'URLRequest' in scope
31 | authenticationChallengeHandler = options.authenticationChallengeHandler
32 |
33 | var request = URLRequest(url: convertUrl(url: url))
| `- error: cannot find 'URLRequest' in scope
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:89: error: cannot find 'OperationQueue' in scope
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
| `- error: cannot find 'OperationQueue' in scope
37 | webSocketTask = urlSession!.webSocketTask(with: request)
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
37 | webSocketTask = urlSession!.webSocketTask(with: request)
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:49: error: cannot infer contextual base in reference to member 'default'
34 | populateHeaders(headers: options.headers, request: &request)
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
| `- error: cannot infer contextual base in reference to member 'default'
37 | webSocketTask = urlSession!.webSocketTask(with: request)
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:37:37: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
35 | setAccessToken(accessTokenProvider: options.accessTokenProvider, request: &request)
36 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
37 | webSocketTask = urlSession!.webSocketTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
38 | if let maximumWebsocketMessageSize = options.maximumWebsocketMessageSize {
39 | webSocketTask?.maximumMessageSize = maximumWebsocketMessageSize
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
44 |
45 | public func send(data: Data, sendDidComplete: @escaping (Error?) -> Void) {
46 | let message = URLSessionWebSocketTask.Message.data(data)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
47 | webSocketTask?.send(message, completionHandler: sendDidComplete)
48 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:38: error: cannot infer contextual base in reference to member 'normalClosure'
49 |
50 | public func close() {
51 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
52 | urlSession?.finishTasksAndInvalidate()
53 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:61: error: 'nil' requires a contextual type
49 |
50 | public func close() {
51 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
52 | urlSession?.finishTasksAndInvalidate()
53 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:52:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
50 | public func close() {
51 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
52 | urlSession?.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
53 | }
54 |
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:80:65: error: cannot infer contextual base in reference to member 'utf8'
78 | switch message {
79 | case .string(let text):
80 | delegate?.transportDidReceiveData(text.data(using: .utf8)!)
| `- error: cannot infer contextual base in reference to member 'utf8'
81 | case .data(let data):
82 | delegate?.transportDidReceiveData(data)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:113:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
111 | }
112 |
113 | let statusCode = (webSocketTask?.response as? HTTPURLResponse)?.statusCode ?? -1
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
114 | logger.log(logLevel: .info, message: "Error starting webSocket. Error: \(error!), HttpStatusCode: \(statusCode), WebSocket closeCode: \(webSocketTask?.closeCode.rawValue ?? -1)")
115 | delegate?.transportDidClose(error)
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
145 | } else {
146 | logger.log(logLevel: .debug, message: "(ws) no auth challenge handler registered - falling back to default handling")
147 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
148 | }
149 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:56: error: 'nil' requires a contextual type
145 | } else {
146 | logger.log(logLevel: .debug, message: "(ws) no auth challenge handler registered - falling back to default handling")
147 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
148 | }
149 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:38: error: cannot infer contextual base in reference to member 'normalClosure'
160 |
161 | private func shutdownTransport() {
162 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: cannot infer contextual base in reference to member 'normalClosure'
163 | urlSession?.finishTasksAndInvalidate()
164 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:61: error: 'nil' requires a contextual type
160 |
161 | private func shutdownTransport() {
162 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
| `- error: 'nil' requires a contextual type
163 | urlSession?.finishTasksAndInvalidate()
164 | }
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:163:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
161 | private func shutdownTransport() {
162 | webSocketTask?.cancel(with: .normalClosure, reason: nil)
163 | urlSession?.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
164 | }
165 |
BUILD FAILURE 6.1 wasm