The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build WebOSClient, reference main (09d5da), with Swift 6.0 for Linux on 5 Nov 2024 18:50:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.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 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:             6.0
Building package at path:  $PWD
https://github.com/jareksedy/WebOSClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-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
 6 | import Foundation
 7 |
 8 | extension URLSessionWebSocketTask.Message {
   |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |     func decode() -> WebOSResponse? {
10 |         switch self {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 |     func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
   |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 |         guard shouldLogActivity else {
23 |             return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:34:49: error: cannot find type 'URLSessionWebSocketTask' in scope
32 |     }
33 |
34 |     func logReceivedResponse(_ response: Result<URLSessionWebSocketTask.Message, any Error>) {
   |                                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
35 |         guard shouldLogActivity else {
36 |             return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |         task?.sendPing { [weak self] error in
11 |             guard let self else {
/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.
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
 13 |     private var shouldPerformHeartbeat: Bool
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 13 |     private var shouldPerformHeartbeat: Bool
 14 |     private var heartbeatTimeInterval: TimeInterval
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 86 |     fileprivate func connect(
 87 |         _ url: URL,
 88 |         task: inout URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 89 |     ) {
 90 |         task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
 94 |
 95 |     fileprivate func sendURLSessionWebSocketTaskMessage(
 96 |         _ message: URLSessionWebSocketTask.Message,
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
 97 |         task: URLSessionWebSocketTask?
 98 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
 95 |     fileprivate func sendURLSessionWebSocketTaskMessage(
 96 |         _ message: URLSessionWebSocketTask.Message,
 97 |         task: URLSessionWebSocketTask?
    |               `- error: cannot find type 'URLSessionWebSocketTask' in scope
 98 |     ) {
 99 |         task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 |
126 |     fileprivate func handle(
127 |         _ response: URLSessionWebSocketTask.Message,
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 |         completion: @escaping (Result<WebOSResponse, Error>) -> Void
129 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
185 | }
186 |
187 | extension WebOSClient: URLSessionWebSocketDelegate {
    |                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
188 |     public func urlSession(
189 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:24: error: cannot find type 'URLSessionWebSocketTask' in scope
188 |     public func urlSession(
189 |         _ session: URLSession,
190 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
191 |         didOpenWithProtocol protocol: String?
192 |     ) {
/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.
187 | extension WebOSClient: URLSessionWebSocketDelegate {
188 |     public func urlSession(
189 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |         webSocketTask: URLSessionWebSocketTask,
191 |         didOpenWithProtocol protocol: String?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:207:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |
206 |     public func urlSession(
207 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 |         task: URLSessionTask,
209 |         didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:208:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |     public func urlSession(
207 |         _ session: URLSession,
208 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 |         didCompleteWithError error: Error?
210 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:217:24: error: cannot find type 'URLSessionWebSocketTask' in scope
215 |     public func urlSession(
216 |         _ session: URLSession,
217 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
219 |         reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:33: error: cannot find type 'URLSessionWebSocketTask' in scope
216 |         _ session: URLSession,
217 |         webSocketTask: URLSessionWebSocketTask,
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
219 |         reason: Data?
220 |     ) {
/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.
214 |
215 |     public func urlSession(
216 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         webSocketTask: URLSessionWebSocketTask,
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:231:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
229 |         _ session: URLSession,
230 |         didReceive challenge: URLAuthenticationChallenge,
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
232 |     ) {
233 |         if challenge
/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.
227 |
228 |     public func urlSession(
229 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 |         didReceive challenge: URLAuthenticationChallenge,
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:230:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |     public func urlSession(
229 |         _ session: URLSession,
230 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
232 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
[4/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.
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
 13 |     private var shouldPerformHeartbeat: Bool
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 13 |     private var shouldPerformHeartbeat: Bool
 14 |     private var heartbeatTimeInterval: TimeInterval
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 86 |     fileprivate func connect(
 87 |         _ url: URL,
 88 |         task: inout URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 89 |     ) {
 90 |         task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
 94 |
 95 |     fileprivate func sendURLSessionWebSocketTaskMessage(
 96 |         _ message: URLSessionWebSocketTask.Message,
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
 97 |         task: URLSessionWebSocketTask?
 98 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
 95 |     fileprivate func sendURLSessionWebSocketTaskMessage(
 96 |         _ message: URLSessionWebSocketTask.Message,
 97 |         task: URLSessionWebSocketTask?
    |               `- error: cannot find type 'URLSessionWebSocketTask' in scope
 98 |     ) {
 99 |         task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 |
126 |     fileprivate func handle(
127 |         _ response: URLSessionWebSocketTask.Message,
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 |         completion: @escaping (Result<WebOSResponse, Error>) -> Void
129 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
185 | }
186 |
187 | extension WebOSClient: URLSessionWebSocketDelegate {
    |                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
188 |     public func urlSession(
189 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:24: error: cannot find type 'URLSessionWebSocketTask' in scope
188 |     public func urlSession(
189 |         _ session: URLSession,
190 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
191 |         didOpenWithProtocol protocol: String?
192 |     ) {
/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.
187 | extension WebOSClient: URLSessionWebSocketDelegate {
188 |     public func urlSession(
189 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |         webSocketTask: URLSessionWebSocketTask,
191 |         didOpenWithProtocol protocol: String?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:207:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |
206 |     public func urlSession(
207 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 |         task: URLSessionTask,
209 |         didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:208:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |     public func urlSession(
207 |         _ session: URLSession,
208 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 |         didCompleteWithError error: Error?
210 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:217:24: error: cannot find type 'URLSessionWebSocketTask' in scope
215 |     public func urlSession(
216 |         _ session: URLSession,
217 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
219 |         reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:33: error: cannot find type 'URLSessionWebSocketTask' in scope
216 |         _ session: URLSession,
217 |         webSocketTask: URLSessionWebSocketTask,
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
219 |         reason: Data?
220 |     ) {
/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.
214 |
215 |     public func urlSession(
216 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         webSocketTask: URLSessionWebSocketTask,
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:231:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
229 |         _ session: URLSession,
230 |         didReceive challenge: URLAuthenticationChallenge,
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
232 |     ) {
233 |         if challenge
/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.
227 |
228 |     public func urlSession(
229 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 |         didReceive challenge: URLAuthenticationChallenge,
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:230:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |     public func urlSession(
229 |         _ session: URLSession,
230 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
232 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 35 |
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 38 |         connect(url, task: &primaryWebSocketTask)
 39 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:49: error: cannot infer contextual base in reference to member 'default'
 35 |
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                                                 `- error: cannot infer contextual base in reference to member 'default'
 38 |         connect(url, task: &primaryWebSocketTask)
 39 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:89: error: 'nil' requires a contextual type
 35 |
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                                                                                         `- error: 'nil' requires a contextual type
 38 |         connect(url, task: &primaryWebSocketTask)
 39 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:38:16: error: argument passed to call that takes no arguments
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
 38 |         connect(url, task: &primaryWebSocketTask)
    |                `- error: argument passed to call that takes no arguments
 39 |     }
 40 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
 44 |             return nil
 45 |         }
 46 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 47 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 48 |         return id
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
 50 |
 51 |     public func send(jsonRequest: String) {
 52 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 53 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 54 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:60:23: error: cannot find 'URLSessionWebSocketTask' in scope
 58 |             return
 59 |         }
 60 |         let message = URLSessionWebSocketTask.Message.data(request)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 61 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 62 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:65:23: error: cannot find 'URLSessionWebSocketTask' in scope
 63 |
 64 |     public func sendKey(keyData: Data) {
 65 |         let message = URLSessionWebSocketTask.Message.data(keyData)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 66 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 67 |     }
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |         task?.sendPing { [weak self] error in
11 |             guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:24: error: argument passed to call that takes no arguments
 68 |
 69 |     public func sendPing() {
 70 |         sendPing(task: primaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
 71 |     }
 72 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:47: error: cannot infer contextual base in reference to member 'goingAway'
 74 |         heartbeatTimer?.invalidate()
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                               `- error: cannot infer contextual base in reference to member 'goingAway'
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 78 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:66: error: 'nil' requires a contextual type
 74 |         heartbeatTimer?.invalidate()
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                  `- error: 'nil' requires a contextual type
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 78 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:45: error: cannot infer contextual base in reference to member 'goingAway'
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                             `- error: cannot infer contextual base in reference to member 'goingAway'
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:64: error: 'nil' requires a contextual type
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                `- error: 'nil' requires a contextual type
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:90:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 88 |         task: inout URLSessionWebSocketTask?
 89 |     ) {
 90 |         task = urlSession?.webSocketTask(with: url)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 91 |         task?.resume()
 92 |         setupHeartbeat()
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:99:43: error: cannot infer type of closure parameter 'error' without a type annotation
 97 |         task: URLSessionWebSocketTask?
 98 |     ) {
 99 |         task?.send(message) { [weak self] error in
    |                                           `- error: cannot infer type of closure parameter 'error' without a type annotation
100 |             guard let self else {
101 |                 return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 |     func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
   |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 |         guard shouldLogActivity else {
23 |             return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:114:53: error: cannot infer type of closure parameter 'result' without a type annotation
112 |         _ completion: @escaping (Result<WebOSResponse, Error>) -> Void
113 |     ) {
114 |         primaryWebSocketTask?.receive { [weak self] result in
    |                                                     `- error: cannot infer type of closure parameter 'result' without a type annotation
115 |             guard let self else {
116 |                 return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:161:24: error: argument passed to call that takes no arguments
159 |                 response.id == pointerRequestId
160 |             {
161 |                 connect(url, task: &secondaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
162 |             }
163 |             completion(.success(response))
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:180:28: error: argument passed to call that takes no arguments
178 |                 return
179 |             }
180 |             sendPing(task: secondaryWebSocketTask)
    |                            `- error: argument passed to call that takes no arguments
181 |             sendPing(task: primaryWebSocketTask)
182 |         }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
233 |         if challenge
234 |             .protectionSpace
235 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
    |                                      `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
236 |         {
237 |             completionHandler(
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:234:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
232 |     ) {
233 |         if challenge
234 |             .protectionSpace
    |              `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
235 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
236 |         {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:18: error: cannot infer contextual base in reference to member 'useCredential'
236 |         {
237 |             completionHandler(
238 |                 .useCredential,
    |                  `- error: cannot infer contextual base in reference to member 'useCredential'
239 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
240 |             )
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
237 |             completionHandler(
238 |                 .useCredential,
239 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                 `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
240 |             )
241 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
237 |             completionHandler(
238 |                 .useCredential,
239 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                                                `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
240 |             )
241 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:242:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
240 |             )
241 |         } else {
242 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
243 |         }
244 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:242:56: error: 'nil' requires a contextual type
240 |             )
241 |         } else {
242 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
243 |         }
244 |     }
[5/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.
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
 13 |     private var shouldPerformHeartbeat: Bool
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 13 |     private var shouldPerformHeartbeat: Bool
 14 |     private var heartbeatTimeInterval: TimeInterval
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 86 |     fileprivate func connect(
 87 |         _ url: URL,
 88 |         task: inout URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 89 |     ) {
 90 |         task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
 94 |
 95 |     fileprivate func sendURLSessionWebSocketTaskMessage(
 96 |         _ message: URLSessionWebSocketTask.Message,
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
 97 |         task: URLSessionWebSocketTask?
 98 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
 95 |     fileprivate func sendURLSessionWebSocketTaskMessage(
 96 |         _ message: URLSessionWebSocketTask.Message,
 97 |         task: URLSessionWebSocketTask?
    |               `- error: cannot find type 'URLSessionWebSocketTask' in scope
 98 |     ) {
 99 |         task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 |
126 |     fileprivate func handle(
127 |         _ response: URLSessionWebSocketTask.Message,
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 |         completion: @escaping (Result<WebOSResponse, Error>) -> Void
129 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
185 | }
186 |
187 | extension WebOSClient: URLSessionWebSocketDelegate {
    |                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
188 |     public func urlSession(
189 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:24: error: cannot find type 'URLSessionWebSocketTask' in scope
188 |     public func urlSession(
189 |         _ session: URLSession,
190 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
191 |         didOpenWithProtocol protocol: String?
192 |     ) {
/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.
187 | extension WebOSClient: URLSessionWebSocketDelegate {
188 |     public func urlSession(
189 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |         webSocketTask: URLSessionWebSocketTask,
191 |         didOpenWithProtocol protocol: String?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:207:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |
206 |     public func urlSession(
207 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 |         task: URLSessionTask,
209 |         didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:208:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |     public func urlSession(
207 |         _ session: URLSession,
208 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 |         didCompleteWithError error: Error?
210 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:217:24: error: cannot find type 'URLSessionWebSocketTask' in scope
215 |     public func urlSession(
216 |         _ session: URLSession,
217 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
219 |         reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:33: error: cannot find type 'URLSessionWebSocketTask' in scope
216 |         _ session: URLSession,
217 |         webSocketTask: URLSessionWebSocketTask,
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
219 |         reason: Data?
220 |     ) {
/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.
214 |
215 |     public func urlSession(
216 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         webSocketTask: URLSessionWebSocketTask,
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:231:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
229 |         _ session: URLSession,
230 |         didReceive challenge: URLAuthenticationChallenge,
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
232 |     ) {
233 |         if challenge
/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.
227 |
228 |     public func urlSession(
229 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 |         didReceive challenge: URLAuthenticationChallenge,
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:230:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |     public func urlSession(
229 |         _ session: URLSession,
230 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
232 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 35 |
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 38 |         connect(url, task: &primaryWebSocketTask)
 39 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:49: error: cannot infer contextual base in reference to member 'default'
 35 |
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                                                 `- error: cannot infer contextual base in reference to member 'default'
 38 |         connect(url, task: &primaryWebSocketTask)
 39 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:89: error: 'nil' requires a contextual type
 35 |
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                                                                                         `- error: 'nil' requires a contextual type
 38 |         connect(url, task: &primaryWebSocketTask)
 39 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:38:16: error: argument passed to call that takes no arguments
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
 38 |         connect(url, task: &primaryWebSocketTask)
    |                `- error: argument passed to call that takes no arguments
 39 |     }
 40 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
 44 |             return nil
 45 |         }
 46 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 47 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 48 |         return id
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
 50 |
 51 |     public func send(jsonRequest: String) {
 52 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 53 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 54 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:60:23: error: cannot find 'URLSessionWebSocketTask' in scope
 58 |             return
 59 |         }
 60 |         let message = URLSessionWebSocketTask.Message.data(request)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 61 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 62 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:65:23: error: cannot find 'URLSessionWebSocketTask' in scope
 63 |
 64 |     public func sendKey(keyData: Data) {
 65 |         let message = URLSessionWebSocketTask.Message.data(keyData)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 66 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 67 |     }
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |         task?.sendPing { [weak self] error in
11 |             guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:24: error: argument passed to call that takes no arguments
 68 |
 69 |     public func sendPing() {
 70 |         sendPing(task: primaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
 71 |     }
 72 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:47: error: cannot infer contextual base in reference to member 'goingAway'
 74 |         heartbeatTimer?.invalidate()
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                               `- error: cannot infer contextual base in reference to member 'goingAway'
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 78 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:66: error: 'nil' requires a contextual type
 74 |         heartbeatTimer?.invalidate()
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                  `- error: 'nil' requires a contextual type
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 78 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:45: error: cannot infer contextual base in reference to member 'goingAway'
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                             `- error: cannot infer contextual base in reference to member 'goingAway'
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:64: error: 'nil' requires a contextual type
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                `- error: 'nil' requires a contextual type
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:90:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 88 |         task: inout URLSessionWebSocketTask?
 89 |     ) {
 90 |         task = urlSession?.webSocketTask(with: url)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 91 |         task?.resume()
 92 |         setupHeartbeat()
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:99:43: error: cannot infer type of closure parameter 'error' without a type annotation
 97 |         task: URLSessionWebSocketTask?
 98 |     ) {
 99 |         task?.send(message) { [weak self] error in
    |                                           `- error: cannot infer type of closure parameter 'error' without a type annotation
100 |             guard let self else {
101 |                 return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 |     func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
   |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 |         guard shouldLogActivity else {
23 |             return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:114:53: error: cannot infer type of closure parameter 'result' without a type annotation
112 |         _ completion: @escaping (Result<WebOSResponse, Error>) -> Void
113 |     ) {
114 |         primaryWebSocketTask?.receive { [weak self] result in
    |                                                     `- error: cannot infer type of closure parameter 'result' without a type annotation
115 |             guard let self else {
116 |                 return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:161:24: error: argument passed to call that takes no arguments
159 |                 response.id == pointerRequestId
160 |             {
161 |                 connect(url, task: &secondaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
162 |             }
163 |             completion(.success(response))
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:180:28: error: argument passed to call that takes no arguments
178 |                 return
179 |             }
180 |             sendPing(task: secondaryWebSocketTask)
    |                            `- error: argument passed to call that takes no arguments
181 |             sendPing(task: primaryWebSocketTask)
182 |         }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
233 |         if challenge
234 |             .protectionSpace
235 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
    |                                      `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
236 |         {
237 |             completionHandler(
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:234:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
232 |     ) {
233 |         if challenge
234 |             .protectionSpace
    |              `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
235 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
236 |         {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:18: error: cannot infer contextual base in reference to member 'useCredential'
236 |         {
237 |             completionHandler(
238 |                 .useCredential,
    |                  `- error: cannot infer contextual base in reference to member 'useCredential'
239 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
240 |             )
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
237 |             completionHandler(
238 |                 .useCredential,
239 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                 `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
240 |             )
241 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
237 |             completionHandler(
238 |                 .useCredential,
239 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                                                `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
240 |             )
241 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:242:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
240 |             )
241 |         } else {
242 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
243 |         }
244 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:242:56: error: 'nil' requires a contextual type
240 |             )
241 |         } else {
242 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
243 |         }
244 |     }
[6/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.
  8 | public class WebOSClient: NSObject, WebOSClientProtocol {
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
  9 |     private var url: URL
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
 13 |     private var shouldPerformHeartbeat: Bool
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
 10 |     private var urlSession: URLSession?
 11 |     private var primaryWebSocketTask: URLSessionWebSocketTask?
 12 |     private var secondaryWebSocketTask: URLSessionWebSocketTask?
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 13 |     private var shouldPerformHeartbeat: Bool
 14 |     private var heartbeatTimeInterval: TimeInterval
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 86 |     fileprivate func connect(
 87 |         _ url: URL,
 88 |         task: inout URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 89 |     ) {
 90 |         task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
 94 |
 95 |     fileprivate func sendURLSessionWebSocketTaskMessage(
 96 |         _ message: URLSessionWebSocketTask.Message,
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
 97 |         task: URLSessionWebSocketTask?
 98 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
 95 |     fileprivate func sendURLSessionWebSocketTaskMessage(
 96 |         _ message: URLSessionWebSocketTask.Message,
 97 |         task: URLSessionWebSocketTask?
    |               `- error: cannot find type 'URLSessionWebSocketTask' in scope
 98 |     ) {
 99 |         task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 |
126 |     fileprivate func handle(
127 |         _ response: URLSessionWebSocketTask.Message,
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 |         completion: @escaping (Result<WebOSResponse, Error>) -> Void
129 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
185 | }
186 |
187 | extension WebOSClient: URLSessionWebSocketDelegate {
    |                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
188 |     public func urlSession(
189 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:24: error: cannot find type 'URLSessionWebSocketTask' in scope
188 |     public func urlSession(
189 |         _ session: URLSession,
190 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
191 |         didOpenWithProtocol protocol: String?
192 |     ) {
/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.
187 | extension WebOSClient: URLSessionWebSocketDelegate {
188 |     public func urlSession(
189 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |         webSocketTask: URLSessionWebSocketTask,
191 |         didOpenWithProtocol protocol: String?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:207:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |
206 |     public func urlSession(
207 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
208 |         task: URLSessionTask,
209 |         didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:208:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |     public func urlSession(
207 |         _ session: URLSession,
208 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 |         didCompleteWithError error: Error?
210 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:217:24: error: cannot find type 'URLSessionWebSocketTask' in scope
215 |     public func urlSession(
216 |         _ session: URLSession,
217 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
219 |         reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:218:33: error: cannot find type 'URLSessionWebSocketTask' in scope
216 |         _ session: URLSession,
217 |         webSocketTask: URLSessionWebSocketTask,
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
219 |         reason: Data?
220 |     ) {
/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.
214 |
215 |     public func urlSession(
216 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |         webSocketTask: URLSessionWebSocketTask,
218 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:231:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
229 |         _ session: URLSession,
230 |         didReceive challenge: URLAuthenticationChallenge,
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
232 |     ) {
233 |         if challenge
/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.
227 |
228 |     public func urlSession(
229 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 |         didReceive challenge: URLAuthenticationChallenge,
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:230:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 |     public func urlSession(
229 |         _ session: URLSession,
230 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
232 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 35 |
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 38 |         connect(url, task: &primaryWebSocketTask)
 39 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:49: error: cannot infer contextual base in reference to member 'default'
 35 |
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                                                 `- error: cannot infer contextual base in reference to member 'default'
 38 |         connect(url, task: &primaryWebSocketTask)
 39 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:89: error: 'nil' requires a contextual type
 35 |
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
    |                                                                                         `- error: 'nil' requires a contextual type
 38 |         connect(url, task: &primaryWebSocketTask)
 39 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:38:16: error: argument passed to call that takes no arguments
 36 |     public func connect() {
 37 |         urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
 38 |         connect(url, task: &primaryWebSocketTask)
    |                `- error: argument passed to call that takes no arguments
 39 |     }
 40 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
 44 |             return nil
 45 |         }
 46 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 47 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 48 |         return id
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
 50 |
 51 |     public func send(jsonRequest: String) {
 52 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 53 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 54 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:60:23: error: cannot find 'URLSessionWebSocketTask' in scope
 58 |             return
 59 |         }
 60 |         let message = URLSessionWebSocketTask.Message.data(request)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 61 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 62 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:65:23: error: cannot find 'URLSessionWebSocketTask' in scope
 63 |
 64 |     public func sendKey(keyData: Data) {
 65 |         let message = URLSessionWebSocketTask.Message.data(keyData)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 66 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 67 |     }
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 7 |
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |         task?.sendPing { [weak self] error in
11 |             guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:24: error: argument passed to call that takes no arguments
 68 |
 69 |     public func sendPing() {
 70 |         sendPing(task: primaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
 71 |     }
 72 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:47: error: cannot infer contextual base in reference to member 'goingAway'
 74 |         heartbeatTimer?.invalidate()
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                               `- error: cannot infer contextual base in reference to member 'goingAway'
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 78 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:66: error: 'nil' requires a contextual type
 74 |         heartbeatTimer?.invalidate()
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                  `- error: 'nil' requires a contextual type
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 78 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:45: error: cannot infer contextual base in reference to member 'goingAway'
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                             `- error: cannot infer contextual base in reference to member 'goingAway'
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:64: error: 'nil' requires a contextual type
 75 |         heartbeatTimer = nil
 76 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 77 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                `- error: 'nil' requires a contextual type
 78 |     }
 79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:90:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 88 |         task: inout URLSessionWebSocketTask?
 89 |     ) {
 90 |         task = urlSession?.webSocketTask(with: url)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 91 |         task?.resume()
 92 |         setupHeartbeat()
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:99:43: error: cannot infer type of closure parameter 'error' without a type annotation
 97 |         task: URLSessionWebSocketTask?
 98 |     ) {
 99 |         task?.send(message) { [weak self] error in
    |                                           `- error: cannot infer type of closure parameter 'error' without a type annotation
100 |             guard let self else {
101 |                 return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 |     func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
   |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 |         guard shouldLogActivity else {
23 |             return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:114:53: error: cannot infer type of closure parameter 'result' without a type annotation
112 |         _ completion: @escaping (Result<WebOSResponse, Error>) -> Void
113 |     ) {
114 |         primaryWebSocketTask?.receive { [weak self] result in
    |                                                     `- error: cannot infer type of closure parameter 'result' without a type annotation
115 |             guard let self else {
116 |                 return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:161:24: error: argument passed to call that takes no arguments
159 |                 response.id == pointerRequestId
160 |             {
161 |                 connect(url, task: &secondaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
162 |             }
163 |             completion(.success(response))
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:180:28: error: argument passed to call that takes no arguments
178 |                 return
179 |             }
180 |             sendPing(task: secondaryWebSocketTask)
    |                            `- error: argument passed to call that takes no arguments
181 |             sendPing(task: primaryWebSocketTask)
182 |         }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
233 |         if challenge
234 |             .protectionSpace
235 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
    |                                      `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
236 |         {
237 |             completionHandler(
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:234:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
232 |     ) {
233 |         if challenge
234 |             .protectionSpace
    |              `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
235 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
236 |         {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:18: error: cannot infer contextual base in reference to member 'useCredential'
236 |         {
237 |             completionHandler(
238 |                 .useCredential,
    |                  `- error: cannot infer contextual base in reference to member 'useCredential'
239 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
240 |             )
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
237 |             completionHandler(
238 |                 .useCredential,
239 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                 `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
240 |             )
241 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
237 |             completionHandler(
238 |                 .useCredential,
239 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                                                `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
240 |             )
241 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:242:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
240 |             )
241 |         } else {
242 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
243 |         }
244 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:242:56: error: 'nil' requires a contextual type
240 |             )
241 |         } else {
242 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
243 |         }
244 |     }
[7/33] Compiling WebOSClient WebOSTargetExtension.swift
[8/33] Compiling WebOSClient WebOSKeyTargetProtocol.swift
[9/33] Compiling WebOSClient WebOSTargetProtocol.swift
[10/33] Compiling WebOSClient WebOSKeyTarget.swift
[11/33] Compiling WebOSClient WebOSRequestSignature.swift
[12/33] Compiling WebOSClient WebOSRequestSigned.swift
[13/33] Compiling WebOSClient WebOSResponse.swift
[14/33] Compiling WebOSClient WebOSResponseApplication.swift
[15/33] Compiling WebOSClient Encodable.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/Message.swift:8:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 6 | import Foundation
 7 |
 8 | extension URLSessionWebSocketTask.Message {
   |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |     func decode() -> WebOSResponse? {
10 |         switch self {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 |     func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
   |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 |         guard shouldLogActivity else {
23 |             return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:34:49: error: cannot find type 'URLSessionWebSocketTask' in scope
32 |     }
33 |
34 |     func logReceivedResponse(_ response: Result<URLSessionWebSocketTask.Message, any Error>) {
   |                                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
35 |         guard shouldLogActivity else {
36 |             return
[16/33] Compiling WebOSClient Message.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/Message.swift:8:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 6 | import Foundation
 7 |
 8 | extension URLSessionWebSocketTask.Message {
   |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |     func decode() -> WebOSResponse? {
10 |         switch self {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 |     func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
   |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 |         guard shouldLogActivity else {
23 |             return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:34:49: error: cannot find type 'URLSessionWebSocketTask' in scope
32 |     }
33 |
34 |     func logReceivedResponse(_ response: Result<URLSessionWebSocketTask.Message, any Error>) {
   |                                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
35 |         guard shouldLogActivity else {
36 |             return
[17/33] Compiling WebOSClient String.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/Message.swift:8:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 6 | import Foundation
 7 |
 8 | extension URLSessionWebSocketTask.Message {
   |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |     func decode() -> WebOSResponse? {
10 |         switch self {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 |     func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
   |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 |         guard shouldLogActivity else {
23 |             return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:34:49: error: cannot find type 'URLSessionWebSocketTask' in scope
32 |     }
33 |
34 |     func logReceivedResponse(_ response: Result<URLSessionWebSocketTask.Message, any Error>) {
   |                                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
35 |         guard shouldLogActivity else {
36 |             return
[18/33] Compiling WebOSClient Logging.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/Message.swift:8:11: error: cannot find type 'URLSessionWebSocketTask' in scope
 6 | import Foundation
 7 |
 8 | extension URLSessionWebSocketTask.Message {
   |           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 9 |     func decode() -> WebOSResponse? {
10 |         switch self {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 |     func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
   |                                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 |         guard shouldLogActivity else {
23 |             return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:34:49: error: cannot find type 'URLSessionWebSocketTask' in scope
32 |     }
33 |
34 |     func logReceivedResponse(_ response: Result<URLSessionWebSocketTask.Message, any Error>) {
   |                                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
35 |         guard shouldLogActivity else {
36 |             return
[19/33] Compiling WebOSClient WebOSResponseCurrentWidget.swift
[20/33] Compiling WebOSClient WebOSResponseDevice.swift
[21/33] Compiling WebOSClient WebOSResponseForegroundAppInfo.swift
[22/33] Compiling WebOSClient WebOSResponsePayload.swift
[23/33] Compiling WebOSClient WebOSTarget.swift
[24/33] Compiling WebOSClient WebOSPairingType.swift
[25/33] Compiling WebOSClient WebOSRequestType.swift
[26/33] Compiling WebOSClient WebOSResponseVolumeStatus.swift
[27/33] Compiling WebOSClient WebOSClientDelegate.swift
[28/33] Compiling WebOSClient WebOSClientProtocol.swift
[29/33] Compiling WebOSClient WebOSKeyTargetExtension.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
 7 |
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |         task?.sendPing { [weak self] error in
11 |             guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
10 |         task?.sendPing { [weak self] error in
   |                                      `- error: cannot infer type of closure parameter 'error' without a type annotation
11 |             guard let self else {
12 |                 return
[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
 7 |
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |         task?.sendPing { [weak self] error in
11 |             guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
10 |         task?.sendPing { [weak self] error in
   |                                      `- error: cannot infer type of closure parameter 'error' without a type annotation
11 |             guard let self else {
12 |                 return
[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
 7 |
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |         task?.sendPing { [weak self] error in
11 |             guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
10 |         task?.sendPing { [weak self] error in
   |                                      `- error: cannot infer type of closure parameter 'error' without a type annotation
11 |             guard let self else {
12 |                 return
[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
 7 |
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
   |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 |         task?.sendPing { [weak self] error in
11 |             guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
 8 | extension WebOSClient {
 9 |     func sendPing(task: URLSessionWebSocketTask?) {
10 |         task?.sendPing { [weak self] error in
   |                                      `- error: cannot infer type of closure parameter 'error' without a type annotation
11 |             guard let self else {
12 |                 return
BUILD FAILURE 6.0 linux