Build Information
Failed to build SignalRClient, reference master (fe2f23
), with Swift 5.10 for Linux on 24 Sep 2024 04:47:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.54.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/moozzyk/SignalR-Client-Swift.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/moozzyk/SignalR-Client-Swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at fe2f239 Added an InfiniteReconnectPolicy which upon reaching last retryInterval, repeats that interval infinitely. This is for systems that are meant to actively attempt reconnection whenever possible.
Cloned https://github.com/moozzyk/SignalR-Client-Swift.git
Revision (git rev-parse @):
fe2f239719fb61b0a98632ea05019c03b683dcac
SUCCESS checkout https://github.com/moozzyk/SignalR-Client-Swift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $PWD
https://github.com/moozzyk/SignalR-Client-Swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:6c25c99211d1e15148b101a61df2563575f50d0f624cb6ce5a573a0b53fb5dca
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/30] Compiling SignalRClient StreamHandle.swift
[4/30] Compiling SignalRClient TransferFormat.swift
[5/30] Compiling SignalRClient Transport.swift
[6/30] Compiling SignalRClient ReconnectPolicy.swift
[7/30] Compiling SignalRClient ReconnectableConnection.swift
[8/30] Compiling SignalRClient ServerInvocationHandler.swift
[9/30] Compiling SignalRClient SignalRError.swift
[10/30] Compiling SignalRClient DefaultTransportFactory.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
private var webSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:17:158: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[11/30] Compiling SignalRClient HandshakeProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
private var webSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:17:158: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[12/30] Compiling SignalRClient HttpClientProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
private var webSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:17:158: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[13/30] Compiling SignalRClient HttpConnection.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
private var webSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:17:158: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[14/33] 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')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[15/33] 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')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[16/33] 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')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[17/33] 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')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[18/33] 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.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:62:95: error: cannot find type 'URLRequest' in scope
@inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:68:102: error: cannot find type 'URLRequest' in scope
@inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:78:150: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:75:63: error: cannot find type 'URLSessionDelegate' in scope
fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let sessionConfig = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:28:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
session.finishTasksAndInvalidate()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:45:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:51:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: urlRequest, completionHandler: { (data, response, error) in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:55:102: error: cannot convert value of type '_' to expected argument type 'Data?'
resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:55:80: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:84:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:84:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
[19/33] 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.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:62:95: error: cannot find type 'URLRequest' in scope
@inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:68:102: error: cannot find type 'URLRequest' in scope
@inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:78:150: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:75:63: error: cannot find type 'URLSessionDelegate' in scope
fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let sessionConfig = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:28:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
session.finishTasksAndInvalidate()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:45:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:51:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: urlRequest, completionHandler: { (data, response, error) in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:55:102: error: cannot convert value of type '_' to expected argument type 'Data?'
resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:55:80: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:84:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:84:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
[20/33] 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.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:62:95: error: cannot find type 'URLRequest' in scope
@inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:68:102: error: cannot find type 'URLRequest' in scope
@inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:78:150: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:75:63: error: cannot find type 'URLSessionDelegate' in scope
fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let sessionConfig = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:28:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
session.finishTasksAndInvalidate()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:45:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:51:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: urlRequest, completionHandler: { (data, response, error) in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:55:102: error: cannot convert value of type '_' to expected argument type 'Data?'
resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:55:80: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:84:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:84:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
[21/33] Compiling SignalRClient DefaultHttpClient.swift
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:62:95: error: cannot find type 'URLRequest' in scope
@inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:68:102: error: cannot find type 'URLRequest' in scope
@inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:78:150: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:75:63: error: cannot find type 'URLSessionDelegate' in scope
fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:17:53: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
let sessionConfig = URLSessionConfiguration.default
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:20:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
self.session = URLSession(
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:23:28: error: 'nil' requires a contextual type
delegateQueue: nil
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:28:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
session.finishTasksAndInvalidate()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:45:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:51:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
session.dataTask(with: urlRequest, completionHandler: { (data, response, error) in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:55:102: error: cannot convert value of type '_' to expected argument type 'Data?'
resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:55:80: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
resp = HttpResponse(statusCode: (response as! HTTPURLResponse).statusCode, contents: data)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:84:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:84:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/33] Emitting module SignalRClient
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:62:95: error: cannot find type 'URLRequest' in scope
@inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:68:102: error: cannot find type 'URLRequest' in scope
@inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:78:150: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:135: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:80:66: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/DefaultHttpClient.swift:75:63: error: cannot find type 'URLSessionDelegate' in scope
fileprivate class DefaultHttpClientSessionDelegate: NSObject, URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/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.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
private var webSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:17:158: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:66: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:77:41: error: cannot find type 'URLSessionWebSocketTask' in scope
private func handleMessage(message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:66: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:115: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:152: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/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.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:179:95: error: cannot find type 'URLRequest' in scope
@inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:185:102: error: cannot find type 'URLRequest' in scope
@inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
[23/33] Compiling SignalRClient JSONHubProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[24/33] Compiling SignalRClient Logger.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[25/33] Compiling SignalRClient LongPollingTransport.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[26/33] Compiling SignalRClient NegotiationResponse.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
[27/33] Compiling SignalRClient HubConnectionDelegate.swift
[28/33] Compiling SignalRClient HubConnectionExtensions.swift
[29/33] Compiling SignalRClient HubConnectionOptions.swift
[30/33] Compiling SignalRClient HubProtocol.swift
[31/33] Compiling SignalRClient TransportDelegate.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
private var webSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:17:158: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:66: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:77:41: error: cannot find type 'URLSessionWebSocketTask' in scope
private func handleMessage(message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:66: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:115: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:152: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/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.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:179:95: error: cannot find type 'URLRequest' in scope
@inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:185:102: error: cannot find type 'URLRequest' in scope
@inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:33:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: convertUrl(url: url))
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:49: error: cannot infer contextual base in reference to member 'default'
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
~^~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:37:37: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
webSocketTask = urlSession!.webSocketTask(with: request)
~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(data)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:38: error: cannot infer contextual base in reference to member 'normalClosure'
webSocketTask?.cancel(with: .normalClosure, reason: nil)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:61: error: 'nil' requires a contextual type
webSocketTask?.cancel(with: .normalClosure, reason: nil)
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:52:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
urlSession?.finishTasksAndInvalidate()
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:80:65: error: cannot infer contextual base in reference to member 'utf8'
delegate?.transportDidReceiveData(text.data(using: .utf8)!)
~^~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:113:84: error: type of expression is ambiguous without a type annotation
let statusCode = (webSocketTask?.response as? HTTPURLResponse)?.statusCode ?? -1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:38: error: cannot infer contextual base in reference to member 'normalClosure'
webSocketTask?.cancel(with: .normalClosure, reason: nil)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:61: error: 'nil' requires a contextual type
webSocketTask?.cancel(with: .normalClosure, reason: nil)
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:163:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
urlSession?.finishTasksAndInvalidate()
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
[32/33] Compiling SignalRClient TransportType.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
private var webSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:17:158: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:66: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:77:41: error: cannot find type 'URLSessionWebSocketTask' in scope
private func handleMessage(message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:66: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:115: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:152: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/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.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:179:95: error: cannot find type 'URLRequest' in scope
@inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:185:102: error: cannot find type 'URLRequest' in scope
@inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:33:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: convertUrl(url: url))
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:49: error: cannot infer contextual base in reference to member 'default'
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
~^~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:37:37: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
webSocketTask = urlSession!.webSocketTask(with: request)
~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(data)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:38: error: cannot infer contextual base in reference to member 'normalClosure'
webSocketTask?.cancel(with: .normalClosure, reason: nil)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:61: error: 'nil' requires a contextual type
webSocketTask?.cancel(with: .normalClosure, reason: nil)
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:52:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
urlSession?.finishTasksAndInvalidate()
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:80:65: error: cannot infer contextual base in reference to member 'utf8'
delegate?.transportDidReceiveData(text.data(using: .utf8)!)
~^~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:113:84: error: type of expression is ambiguous without a type annotation
let statusCode = (webSocketTask?.response as? HTTPURLResponse)?.statusCode ?? -1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:38: error: cannot infer contextual base in reference to member 'normalClosure'
webSocketTask?.cancel(with: .normalClosure, reason: nil)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:61: error: 'nil' requires a contextual type
webSocketTask?.cancel(with: .normalClosure, reason: nil)
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:163:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
urlSession?.finishTasksAndInvalidate()
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
[33/33] Compiling SignalRClient WebsocketsTransport.swift
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private var urlSession: URLSession?
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:16:32: error: cannot find type 'URLSessionWebSocketTask' in scope
private var webSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:17:158: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
private var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:55:66: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:77:41: error: cannot find type 'URLSessionWebSocketTask' in scope
private func handleMessage(message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:66: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:119:115: error: cannot find type 'URLSessionWebSocketTask' in scope
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~~~~~~~~~~~~~~
/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.
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:141:152: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/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.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/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.
public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:179:95: error: cannot find type 'URLRequest' in scope
@inline(__always) private func populateHeaders(headers: [String : String], request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:185:102: error: cannot find type 'URLRequest' in scope
@inline(__always) private func setAccessToken(accessTokenProvider: () -> String?, request: inout URLRequest) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:12:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
public class WebsocketsTransport: NSObject, Transport, URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnectionOptions.swift:58:157: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
public var authenticationChallengeHandler: ((_ session: URLSession, _ challenge: URLAuthenticationChallenge, _ completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) -> Void)?
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:33:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: convertUrl(url: url))
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:36:49: error: cannot infer contextual base in reference to member 'default'
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
~^~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:37:37: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
webSocketTask = urlSession!.webSocketTask(with: request)
~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(data)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:38: error: cannot infer contextual base in reference to member 'normalClosure'
webSocketTask?.cancel(with: .normalClosure, reason: nil)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:51:61: error: 'nil' requires a contextual type
webSocketTask?.cancel(with: .normalClosure, reason: nil)
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:52:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
urlSession?.finishTasksAndInvalidate()
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:80:65: error: cannot infer contextual base in reference to member 'utf8'
delegate?.transportDidReceiveData(text.data(using: .utf8)!)
~^~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:113:84: error: type of expression is ambiguous without a type annotation
let statusCode = (webSocketTask?.response as? HTTPURLResponse)?.statusCode ?? -1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:147:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:38: error: cannot infer contextual base in reference to member 'normalClosure'
webSocketTask?.cancel(with: .normalClosure, reason: nil)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:162:61: error: 'nil' requires a contextual type
webSocketTask?.cancel(with: .normalClosure, reason: nil)
^
/host/spi-builder-workspace/Sources/SignalRClient/WebsocketsTransport.swift:163:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
urlSession?.finishTasksAndInvalidate()
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux