Build Information
Failed to build WebOSClient, reference main (09d5da
), with Swift 5.9 for Linux on 25 Sep 2024 21:44:45 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.54.2
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 09d5daf Merge pull request #7 from hmduc1603/main
Cloned https://github.com/jareksedy/WebOSClient.git
Revision (git rev-parse @):
09d5dafc679a6ed66bbc8b0bff68a55a128c55a1
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-4609320-0":/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:66706f89ac15d55dcb11e8d3274e2fe11925b5da93d240b09d5a1eb775db6cc2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Building for debugging...
[1/28] Compiling WebOSClient WebOSResponseVolumeStatus.swift
[2/28] Compiling WebOSClient WebOSClientDelegate.swift
[3/28] Compiling WebOSClient WebOSClientProtocol.swift
[4/28] Compiling WebOSClient WebOSKeyTargetExtension.swift
[5/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:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
task: inout URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
_ message: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
task: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
_ response: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
extension WebOSClient: URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:189: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:207: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:208: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:217:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:33: error: cannot find type 'URLSessionWebSocketTask' in scope
didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:216: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:231: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:229: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:230: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:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:60:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(request)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:65: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:70:24: error: argument passed to call that takes no arguments
sendPing(task: primaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76: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:76:66: error: 'nil' requires a contextual type
secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77: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:77:64: error: 'nil' requires a contextual type
primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:90: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:99: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:114: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:151:50: error: cannot infer contextual base in reference to member 'prompt'
if response.payload?.pairingType == .prompt {
~^~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:154:50: error: cannot infer contextual base in reference to member 'pin'
if response.payload?.pairingType == .pin {
~^~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:161:24: error: argument passed to call that takes no arguments
connect(url, task: &secondaryWebSocketTask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:180:28: error: argument passed to call that takes no arguments
sendPing(task: secondaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
.authenticationMethod == NSURLAuthenticationMethodServerTrust
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:234:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
.protectionSpace
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:18: error: cannot infer contextual base in reference to member 'useCredential'
.useCredential,
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239: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:239: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:242:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:242:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
[6/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:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
task: inout URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
_ message: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
task: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
_ response: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
extension WebOSClient: URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:189: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:207: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:208: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:217:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:33: error: cannot find type 'URLSessionWebSocketTask' in scope
didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:216: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:231: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:229: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:230: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:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:60:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(request)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:65: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:70:24: error: argument passed to call that takes no arguments
sendPing(task: primaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76: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:76:66: error: 'nil' requires a contextual type
secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77: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:77:64: error: 'nil' requires a contextual type
primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:90: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:99: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:114: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:151:50: error: cannot infer contextual base in reference to member 'prompt'
if response.payload?.pairingType == .prompt {
~^~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:154:50: error: cannot infer contextual base in reference to member 'pin'
if response.payload?.pairingType == .pin {
~^~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:161:24: error: argument passed to call that takes no arguments
connect(url, task: &secondaryWebSocketTask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:180:28: error: argument passed to call that takes no arguments
sendPing(task: secondaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
.authenticationMethod == NSURLAuthenticationMethodServerTrust
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:234:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
.protectionSpace
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:18: error: cannot infer contextual base in reference to member 'useCredential'
.useCredential,
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239: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:239: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:242:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:242:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
[7/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:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
task: inout URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
_ message: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
task: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
_ response: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
extension WebOSClient: URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:189: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:207: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:208: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:217:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:33: error: cannot find type 'URLSessionWebSocketTask' in scope
didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:216: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:231: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:229: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:230: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:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.string(jsonRequest)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:60:23: error: cannot find 'URLSessionWebSocketTask' in scope
let message = URLSessionWebSocketTask.Message.data(request)
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:65: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:70:24: error: argument passed to call that takes no arguments
sendPing(task: primaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76: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:76:66: error: 'nil' requires a contextual type
secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77: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:77:64: error: 'nil' requires a contextual type
primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
^
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:90: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:99: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:114: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:151:50: error: cannot infer contextual base in reference to member 'prompt'
if response.payload?.pairingType == .prompt {
~^~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:154:50: error: cannot infer contextual base in reference to member 'pin'
if response.payload?.pairingType == .pin {
~^~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:161:24: error: argument passed to call that takes no arguments
connect(url, task: &secondaryWebSocketTask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:180:28: error: argument passed to call that takes no arguments
sendPing(task: secondaryWebSocketTask)
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
.authenticationMethod == NSURLAuthenticationMethodServerTrust
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:234:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
.protectionSpace
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:18: error: cannot infer contextual base in reference to member 'useCredential'
.useCredential,
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239: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:239: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:242:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:242:56: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/31] Compiling WebOSClient WebOSRequestSignature.swift
[9/31] Compiling WebOSClient WebOSRequestSigned.swift
[10/31] Compiling WebOSClient WebOSResponse.swift
[11/31] Compiling WebOSClient WebOSResponseApplication.swift
[12/31] 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:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
task: inout URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
_ message: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
task: URLSessionWebSocketTask?
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
_ response: URLSessionWebSocketTask.Message,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
extension WebOSClient: URLSessionWebSocketDelegate {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:189: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:207: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:208: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:217:24: error: cannot find type 'URLSessionWebSocketTask' in scope
webSocketTask: URLSessionWebSocketTask,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:33: error: cannot find type 'URLSessionWebSocketTask' in scope
didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:216: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:231: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:229: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:230: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
^
[13/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>) {
^~~~~~~~~~~~~~~~~~~~~~~
[14/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>) {
^~~~~~~~~~~~~~~~~~~~~~~
[15/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>) {
^~~~~~~~~~~~~~~~~~~~~~~
[16/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>) {
^~~~~~~~~~~~~~~~~~~~~~~
[17/31] Compiling WebOSClient WebOSTarget.swift
[18/31] Compiling WebOSClient WebOSPairingType.swift
[19/31] Compiling WebOSClient WebOSRequestType.swift
[20/31] Compiling WebOSClient WebOSResponseCurrentWidget.swift
[21/31] Compiling WebOSClient WebOSResponseDevice.swift
[22/31] Compiling WebOSClient WebOSResponseForegroundAppInfo.swift
[23/31] Compiling WebOSClient WebOSResponsePayload.swift
[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 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
^
[29/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
^
[30/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
^
[31/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
^
error: fatalError
BUILD FAILURE 5.9 linux