Build Information
Failed to build WebOSClient, reference main (14ce35
), with Swift 5.10 for Linux on 21 Dec 2024 08:53:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.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.10
Building package at path: $PWD
https://github.com/jareksedy/WebOSClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:8b386ca1081dd55ec0944429387f246ccb59ef99c9c8cbb418b0abd78460b38f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/30] 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
^
[4/33] Compiling WebOSClient WebOSRequestSignature.swift
[5/33] Compiling WebOSClient WebOSRequestSigned.swift
[6/33] Compiling WebOSClient WebOSResponse.swift
[7/33] Compiling WebOSClient WebOSResponseApplication.swift
[8/33] Compiling WebOSClient WebOSResponseCurrentWidget.swift
[9/33] Compiling WebOSClient WebOSResponseDevice.swift
[10/33] Compiling WebOSClient WebOSResponseForegroundAppInfo.swift
[11/33] Compiling WebOSClient WebOSResponsePayload.swift
[12/33] Compiling WebOSClient WebOSResponseVolumeStatus.swift
[13/33] Compiling WebOSClient WebOSClientDelegate.swift
[14/33] Compiling WebOSClient WebOSClientProtocol.swift
[15/33] Compiling WebOSClient WebOSKeyTargetExtension.swift
[16/33] 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>) {
^~~~~~~~~~~~~~~~~~~~~~~
[17/33] 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>) {
^~~~~~~~~~~~~~~~~~~~~~~
[18/33] 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>) {
^~~~~~~~~~~~~~~~~~~~~~~
[19/33] 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>) {
^~~~~~~~~~~~~~~~~~~~~~~
[20/33] 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)
^
[21/33] 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)
^
[22/33] 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)
^
[23/33] Compiling WebOSClient WebOSTarget.swift
[24/33] Compiling WebOSClient WebOSPairingType.swift
[25/33] Compiling WebOSClient WebOSRequestType.swift
[26/33] Compiling WebOSClient WebOSTargetExtension.swift
[27/33] Compiling WebOSClient WebOSKeyTargetProtocol.swift
[28/33] Compiling WebOSClient WebOSTargetProtocol.swift
[29/33] Compiling WebOSClient WebOSKeyTarget.swift
[30/33] 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
^
[31/33] 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
^
[32/33] 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
^
[33/33] 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.10 linux