Build Information
Failed to build WebOSClient, reference main (14ce35
), with Swift 5.9 for Linux on 21 Dec 2024 08:53:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.60.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jareksedy/WebOSClient.git
Reference: main
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/jareksedy/WebOSClient
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 14ce35d Merge pull request #8 from hmduc1603/main
Cloned https://github.com/jareksedy/WebOSClient.git
Revision (git rev-parse @):
14ce35d71682499c8f543f0810ee1ef28751fea5
SUCCESS checkout https://github.com/jareksedy/WebOSClient.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $PWD
https://github.com/jareksedy/WebOSClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:e6feefcc5d5d2f301fe47477cfe0928fc3b12c59579fdacf1d387095b6fee662
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/28] Emitting module WebOSClient
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/Message.swift:8:11: error: cannot find type 'URLSessionWebSocketTask' in scope
extension URLSessionWebSocketTask.Message {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:34:49: error: cannot find type 'URLSessionWebSocketTask' in scope
func logReceivedResponse(_ response: Result<URLSessionWebSocketTask.Message, any Error>) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
func sendPing(task: URLSessionWebSocketTask?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:10: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/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
private var primaryWebSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
private var secondaryWebSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:98:21: error: cannot find type 'URLSessionWebSocketTask' in scope
task: inout URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:106:20: error: cannot find type 'URLSessionWebSocketTask' in scope
_ message: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:107:15: error: cannot find type 'URLSessionWebSocketTask' in scope
task: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:137:21: error: cannot find type 'URLSessionWebSocketTask' in scope
_ response: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:197:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
extension WebOSClient: URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:200:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:199:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:217:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:227:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:228:33: error: cannot find type 'URLSessionWebSocketTask' in scope
didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:226:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:241:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:240:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
didReceive challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
[2/31] Compiling WebOSClient WebOSResponseVolumeStatus.swift
[3/31] Compiling WebOSClient WebOSClientDelegate.swift
[4/31] Compiling WebOSClient WebOSClientProtocol.swift
[5/31] Compiling WebOSClient WebOSKeyTargetExtension.swift
[6/31] Compiling WebOSClient WebOSTarget.swift
[7/31] Compiling WebOSClient WebOSPairingType.swift
[8/31] Compiling WebOSClient WebOSRequestType.swift
[9/31] Compiling WebOSClient WebOSResponseCurrentWidget.swift
[10/31] Compiling WebOSClient WebOSResponseDevice.swift
[11/31] Compiling WebOSClient WebOSResponseForegroundAppInfo.swift
[12/31] Compiling WebOSClient WebOSResponsePayload.swift
[13/31] Compiling WebOSClient WebOSResponseType.swift
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:10: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/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
private var primaryWebSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
private var secondaryWebSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:98:21: error: cannot find type 'URLSessionWebSocketTask' in scope
task: inout URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:106:20: error: cannot find type 'URLSessionWebSocketTask' in scope
_ message: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:107:15: error: cannot find type 'URLSessionWebSocketTask' in scope
task: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:137:21: error: cannot find type 'URLSessionWebSocketTask' in scope
_ response: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:197:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
extension WebOSClient: URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:200:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:199:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:217:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:227:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:228:33: error: cannot find type 'URLSessionWebSocketTask' in scope
didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:226:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:241:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:240:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
didReceive challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:49: error: cannot infer contextual base in reference to member 'default'
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:89: error: 'nil' requires a contextual type
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:38:16: error: argument passed to call that takes no arguments
connect(url, task: &primaryWebSocketTask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:56:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:62:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(request)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:75:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(keyData)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
func sendPing(task: URLSessionWebSocketTask?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:80:24: error: argument passed to call that takes no arguments
sendPing(task: primaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:47: error: cannot infer contextual base in reference to member 'goingAway'
secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:66: error: 'nil' requires a contextual type
secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:45: error: cannot infer contextual base in reference to member 'goingAway'
primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:64: error: 'nil' requires a contextual type
primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:100:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
task = urlSession?.webSocketTask(with: url)
~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:109:43: error: cannot infer type of closure parameter 'error' without a type annotation
task?.send(message) { [weak self] error in
^
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:124:53: error: cannot infer type of closure parameter 'result' without a type annotation
primaryWebSocketTask?.receive { [weak self] result in
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:161:50: error: cannot infer contextual base in reference to member 'prompt'
if response.payload?.pairingType == .prompt {
~^~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:164:50: error: cannot infer contextual base in reference to member 'pin'
if response.payload?.pairingType == .pin {
~^~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:171:24: error: argument passed to call that takes no arguments
connect(url, task: &secondaryWebSocketTask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:28: error: argument passed to call that takes no arguments
sendPing(task: secondaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:245:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
.authenticationMethod == NSURLAuthenticationMethodServerTrust
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:244:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
.protectionSpace
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:248:18: error: cannot infer contextual base in reference to member 'useCredential'
.useCredential,
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
URLCredential(trust: challenge.protectionSpace.serverTrust!)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
URLCredential(trust: challenge.protectionSpace.serverTrust!)
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
[14/31] Compiling WebOSClient WebOSSoundOutputType.swift
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:10: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/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
private var primaryWebSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
private var secondaryWebSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:98:21: error: cannot find type 'URLSessionWebSocketTask' in scope
task: inout URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:106:20: error: cannot find type 'URLSessionWebSocketTask' in scope
_ message: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:107:15: error: cannot find type 'URLSessionWebSocketTask' in scope
task: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:137:21: error: cannot find type 'URLSessionWebSocketTask' in scope
_ response: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:197:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
extension WebOSClient: URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:200:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:199:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:217:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:227:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:228:33: error: cannot find type 'URLSessionWebSocketTask' in scope
didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:226:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:241:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:240:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
didReceive challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:49: error: cannot infer contextual base in reference to member 'default'
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:89: error: 'nil' requires a contextual type
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:38:16: error: argument passed to call that takes no arguments
connect(url, task: &primaryWebSocketTask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:56:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:62:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(request)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:75:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(keyData)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
func sendPing(task: URLSessionWebSocketTask?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:80:24: error: argument passed to call that takes no arguments
sendPing(task: primaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:47: error: cannot infer contextual base in reference to member 'goingAway'
secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:66: error: 'nil' requires a contextual type
secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:45: error: cannot infer contextual base in reference to member 'goingAway'
primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:64: error: 'nil' requires a contextual type
primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:100:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
task = urlSession?.webSocketTask(with: url)
~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:109:43: error: cannot infer type of closure parameter 'error' without a type annotation
task?.send(message) { [weak self] error in
^
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:124:53: error: cannot infer type of closure parameter 'result' without a type annotation
primaryWebSocketTask?.receive { [weak self] result in
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:161:50: error: cannot infer contextual base in reference to member 'prompt'
if response.payload?.pairingType == .prompt {
~^~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:164:50: error: cannot infer contextual base in reference to member 'pin'
if response.payload?.pairingType == .pin {
~^~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:171:24: error: argument passed to call that takes no arguments
connect(url, task: &secondaryWebSocketTask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:28: error: argument passed to call that takes no arguments
sendPing(task: secondaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:245:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
.authenticationMethod == NSURLAuthenticationMethodServerTrust
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:244:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
.protectionSpace
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:248:18: error: cannot infer contextual base in reference to member 'useCredential'
.useCredential,
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
URLCredential(trust: challenge.protectionSpace.serverTrust!)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
URLCredential(trust: challenge.protectionSpace.serverTrust!)
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
[15/31] Compiling WebOSClient WebOSClient.swift
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:10: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/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
private var primaryWebSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
private var secondaryWebSocketTask: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:98:21: error: cannot find type 'URLSessionWebSocketTask' in scope
task: inout URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:106:20: error: cannot find type 'URLSessionWebSocketTask' in scope
_ message: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:107:15: error: cannot find type 'URLSessionWebSocketTask' in scope
task: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:137:21: error: cannot find type 'URLSessionWebSocketTask' in scope
_ response: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:197:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
extension WebOSClient: URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:200:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:199:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:217:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:227:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:228:33: error: cannot find type 'URLSessionWebSocketTask' in scope
didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:226:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:241:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:240:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
didReceive challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:49: error: cannot infer contextual base in reference to member 'default'
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:89: error: 'nil' requires a contextual type
urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:38:16: error: argument passed to call that takes no arguments
connect(url, task: &primaryWebSocketTask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:56:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:62:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(request)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:75:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(keyData)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
func sendPing(task: URLSessionWebSocketTask?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:80:24: error: argument passed to call that takes no arguments
sendPing(task: primaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:47: error: cannot infer contextual base in reference to member 'goingAway'
secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:66: error: 'nil' requires a contextual type
secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:45: error: cannot infer contextual base in reference to member 'goingAway'
primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:64: error: 'nil' requires a contextual type
primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:100:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
task = urlSession?.webSocketTask(with: url)
~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:109:43: error: cannot infer type of closure parameter 'error' without a type annotation
task?.send(message) { [weak self] error in
^
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:124:53: error: cannot infer type of closure parameter 'result' without a type annotation
primaryWebSocketTask?.receive { [weak self] result in
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:161:50: error: cannot infer contextual base in reference to member 'prompt'
if response.payload?.pairingType == .prompt {
~^~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:164:50: error: cannot infer contextual base in reference to member 'pin'
if response.payload?.pairingType == .pin {
~^~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:171:24: error: argument passed to call that takes no arguments
connect(url, task: &secondaryWebSocketTask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:28: error: argument passed to call that takes no arguments
sendPing(task: secondaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:245:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
.authenticationMethod == NSURLAuthenticationMethodServerTrust
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:244:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
.protectionSpace
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:248:18: error: cannot infer contextual base in reference to member 'useCredential'
.useCredential,
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
URLCredential(trust: challenge.protectionSpace.serverTrust!)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
URLCredential(trust: challenge.protectionSpace.serverTrust!)
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
[16/31] Compiling WebOSClient SendPing.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
func sendPing(task: URLSessionWebSocketTask?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
task?.sendPing { [weak self] error in
^
[17/31] Compiling WebOSClient WebOSRequest.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
func sendPing(task: URLSessionWebSocketTask?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
task?.sendPing { [weak self] error in
^
[18/31] Compiling WebOSClient WebOSRequestManifest.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
func sendPing(task: URLSessionWebSocketTask?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
task?.sendPing { [weak self] error in
^
[19/31] Compiling WebOSClient WebOSRequestPayload.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
func sendPing(task: URLSessionWebSocketTask?) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
task?.sendPing { [weak self] error in
^
[20/31] Compiling WebOSClient Encodable.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/Message.swift:8:11: error: cannot find type 'URLSessionWebSocketTask' in scope
extension URLSessionWebSocketTask.Message {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:34:49: error: cannot find type 'URLSessionWebSocketTask' in scope
func logReceivedResponse(_ response: Result<URLSessionWebSocketTask.Message, any Error>) {
^~~~~~~~~~~~~~~~~~~~~~~
[21/31] Compiling WebOSClient Message.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/Message.swift:8:11: error: cannot find type 'URLSessionWebSocketTask' in scope
extension URLSessionWebSocketTask.Message {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:34:49: error: cannot find type 'URLSessionWebSocketTask' in scope
func logReceivedResponse(_ response: Result<URLSessionWebSocketTask.Message, any Error>) {
^~~~~~~~~~~~~~~~~~~~~~~
[22/31] Compiling WebOSClient String.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/Message.swift:8:11: error: cannot find type 'URLSessionWebSocketTask' in scope
extension URLSessionWebSocketTask.Message {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:34:49: error: cannot find type 'URLSessionWebSocketTask' in scope
func logReceivedResponse(_ response: Result<URLSessionWebSocketTask.Message, any Error>) {
^~~~~~~~~~~~~~~~~~~~~~~
[23/31] Compiling WebOSClient Logging.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/Message.swift:8:11: error: cannot find type 'URLSessionWebSocketTask' in scope
extension URLSessionWebSocketTask.Message {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:34:49: error: cannot find type 'URLSessionWebSocketTask' in scope
func logReceivedResponse(_ response: Result<URLSessionWebSocketTask.Message, any Error>) {
^~~~~~~~~~~~~~~~~~~~~~~
[24/31] Compiling WebOSClient WebOSTargetExtension.swift
[25/31] Compiling WebOSClient WebOSKeyTargetProtocol.swift
[26/31] Compiling WebOSClient WebOSTargetProtocol.swift
[27/31] Compiling WebOSClient WebOSKeyTarget.swift
[28/31] Compiling WebOSClient WebOSRequestSignature.swift
[29/31] Compiling WebOSClient WebOSRequestSigned.swift
[30/31] Compiling WebOSClient WebOSResponse.swift
[31/31] Compiling WebOSClient WebOSResponseApplication.swift
error: fatalError
BUILD FAILURE 5.9 linux