The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WebOSClient, reference main (14ce35), with Swift 6.3 for Wasm on 14 Apr 2026 22:36:33 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jareksedy/WebOSClient.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/jareksedy/WebOSClient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 14ce35d Merge pull request #8 from hmduc1603/main
Cloned https://github.com/jareksedy/WebOSClient.git
Revision (git rev-parse @):
14ce35d71682499c8f543f0810ee1ef28751fea5
SUCCESS checkout https://github.com/jareksedy/WebOSClient.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
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" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-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:98:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 96 |     fileprivate func connect(
 97 |         _ url: URL,
 98 |         task: inout URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 99 |     ) {
100 |         task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:106:20: error: cannot find type 'URLSessionWebSocketTask' in scope
104 |
105 |     fileprivate func sendURLSessionWebSocketTaskMessage(
106 |         _ message: URLSessionWebSocketTask.Message,
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
107 |         task: URLSessionWebSocketTask?
108 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:107:15: error: cannot find type 'URLSessionWebSocketTask' in scope
105 |     fileprivate func sendURLSessionWebSocketTaskMessage(
106 |         _ message: URLSessionWebSocketTask.Message,
107 |         task: URLSessionWebSocketTask?
    |               `- error: cannot find type 'URLSessionWebSocketTask' in scope
108 |     ) {
109 |         task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:137:21: error: cannot find type 'URLSessionWebSocketTask' in scope
135 |
136 |     fileprivate func handle(
137 |         _ response: URLSessionWebSocketTask.Message,
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
138 |         completion: @escaping (Result<WebOSResponse, Error>) -> Void
139 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:197:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
195 | }
196 |
197 | extension WebOSClient: URLSessionWebSocketDelegate {
    |                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
198 |     public func urlSession(
199 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:200:24: error: cannot find type 'URLSessionWebSocketTask' in scope
198 |     public func urlSession(
199 |         _ session: URLSession,
200 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
201 |         didOpenWithProtocol protocol: String?
202 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:199:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | extension WebOSClient: URLSessionWebSocketDelegate {
198 |     public func urlSession(
199 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         webSocketTask: URLSessionWebSocketTask,
201 |         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:217:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |
216 |     public func urlSession(
217 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |         task: URLSessionTask,
219 |         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:218:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 |     public func urlSession(
217 |         _ session: URLSession,
218 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |         didCompleteWithError error: Error?
220 |     ) {
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:227:24: error: cannot find type 'URLSessionWebSocketTask' in scope
225 |     public func urlSession(
226 |         _ session: URLSession,
227 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
228 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
229 |         reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:228:33: error: cannot find type 'URLSessionWebSocketTask' in scope
226 |         _ session: URLSession,
227 |         webSocketTask: URLSessionWebSocketTask,
228 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
229 |         reason: Data?
230 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:226:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 |
225 |     public func urlSession(
226 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 |         webSocketTask: URLSessionWebSocketTask,
228 |         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:241:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
239 |         _ session: URLSession,
240 |         didReceive challenge: URLAuthenticationChallenge,
241 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 |     ) {
243 |         if challenge
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |
238 |     public func urlSession(
239 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |         didReceive challenge: URLAuthenticationChallenge,
241 |         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:240:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 |     public func urlSession(
239 |         _ session: URLSession,
240 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
242 |     ) {
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 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
[5/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
[6/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
[7/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
[8/33] Compiling WebOSClient WebOSRequestSignature.swift
[9/33] Compiling WebOSClient WebOSRequestSigned.swift
[10/33] Compiling WebOSClient WebOSResponse.swift
[11/33] Compiling WebOSClient WebOSResponseApplication.swift
[12/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:98:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 96 |     fileprivate func connect(
 97 |         _ url: URL,
 98 |         task: inout URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 99 |     ) {
100 |         task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:106:20: error: cannot find type 'URLSessionWebSocketTask' in scope
104 |
105 |     fileprivate func sendURLSessionWebSocketTaskMessage(
106 |         _ message: URLSessionWebSocketTask.Message,
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
107 |         task: URLSessionWebSocketTask?
108 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:107:15: error: cannot find type 'URLSessionWebSocketTask' in scope
105 |     fileprivate func sendURLSessionWebSocketTaskMessage(
106 |         _ message: URLSessionWebSocketTask.Message,
107 |         task: URLSessionWebSocketTask?
    |               `- error: cannot find type 'URLSessionWebSocketTask' in scope
108 |     ) {
109 |         task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:137:21: error: cannot find type 'URLSessionWebSocketTask' in scope
135 |
136 |     fileprivate func handle(
137 |         _ response: URLSessionWebSocketTask.Message,
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
138 |         completion: @escaping (Result<WebOSResponse, Error>) -> Void
139 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:197:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
195 | }
196 |
197 | extension WebOSClient: URLSessionWebSocketDelegate {
    |                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
198 |     public func urlSession(
199 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:200:24: error: cannot find type 'URLSessionWebSocketTask' in scope
198 |     public func urlSession(
199 |         _ session: URLSession,
200 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
201 |         didOpenWithProtocol protocol: String?
202 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:199:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | extension WebOSClient: URLSessionWebSocketDelegate {
198 |     public func urlSession(
199 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         webSocketTask: URLSessionWebSocketTask,
201 |         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:217:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |
216 |     public func urlSession(
217 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |         task: URLSessionTask,
219 |         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:218:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 |     public func urlSession(
217 |         _ session: URLSession,
218 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |         didCompleteWithError error: Error?
220 |     ) {
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:227:24: error: cannot find type 'URLSessionWebSocketTask' in scope
225 |     public func urlSession(
226 |         _ session: URLSession,
227 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
228 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
229 |         reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:228:33: error: cannot find type 'URLSessionWebSocketTask' in scope
226 |         _ session: URLSession,
227 |         webSocketTask: URLSessionWebSocketTask,
228 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
229 |         reason: Data?
230 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:226:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 |
225 |     public func urlSession(
226 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 |         webSocketTask: URLSessionWebSocketTask,
228 |         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:241:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
239 |         _ session: URLSession,
240 |         didReceive challenge: URLAuthenticationChallenge,
241 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 |     ) {
243 |         if challenge
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |
238 |     public func urlSession(
239 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |         didReceive challenge: URLAuthenticationChallenge,
241 |         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:240:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 |     public func urlSession(
239 |         _ session: URLSession,
240 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
242 |     ) {
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:56:23: error: cannot find 'URLSessionWebSocketTask' in scope
 54 |             return nil
 55 |         }
 56 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 57 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 58 |         return id
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:62:23: error: cannot find 'URLSessionWebSocketTask' in scope
 60 |
 61 |     public func send(jsonRequest: String) {
 62 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 63 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 64 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:23: error: cannot find 'URLSessionWebSocketTask' in scope
 68 |             return
 69 |         }
 70 |         let message = URLSessionWebSocketTask.Message.data(request)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 71 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 72 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:75:23: error: cannot find 'URLSessionWebSocketTask' in scope
 73 |
 74 |     public func sendKey(keyData: Data) {
 75 |         let message = URLSessionWebSocketTask.Message.data(keyData)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 76 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 77 |     }
/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:80:24: error: argument passed to call that takes no arguments
 78 |
 79 |     public func sendPing() {
 80 |         sendPing(task: primaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
 81 |     }
 82 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:47: error: cannot infer contextual base in reference to member 'goingAway'
 84 |         heartbeatTimer?.invalidate()
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                               `- error: cannot infer contextual base in reference to member 'goingAway'
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 88 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:66: error: 'nil' requires a contextual type
 84 |         heartbeatTimer?.invalidate()
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                  `- error: 'nil' requires a contextual type
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 88 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:45: error: cannot infer contextual base in reference to member 'goingAway'
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                             `- error: cannot infer contextual base in reference to member 'goingAway'
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:64: error: 'nil' requires a contextual type
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                `- error: 'nil' requires a contextual type
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:100:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 98 |         task: inout URLSessionWebSocketTask?
 99 |     ) {
100 |         task = urlSession?.webSocketTask(with: url)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
101 |         task?.resume()
102 |         setupHeartbeat()
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:109:43: error: cannot infer type of closure parameter 'error' without a type annotation
107 |         task: URLSessionWebSocketTask?
108 |     ) {
109 |         task?.send(message) { [weak self] error in
    |                                           `- error: cannot infer type of closure parameter 'error' without a type annotation
110 |             guard let self else {
111 |                 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:124:53: error: cannot infer type of closure parameter 'result' without a type annotation
122 |         _ completion: @escaping (Result<WebOSResponse, Error>) -> Void
123 |     ) {
124 |         primaryWebSocketTask?.receive { [weak self] result in
    |                                                     `- error: cannot infer type of closure parameter 'result' without a type annotation
125 |             guard let self else {
126 |                 return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:171:24: error: argument passed to call that takes no arguments
169 |                 response.id == pointerRequestId
170 |             {
171 |                 connect(url, task: &secondaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
172 |             }
173 |             completion(.success(response))
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:28: error: argument passed to call that takes no arguments
188 |                 return
189 |             }
190 |             sendPing(task: secondaryWebSocketTask)
    |                            `- error: argument passed to call that takes no arguments
191 |             sendPing(task: primaryWebSocketTask)
192 |         }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:193:25: error: value of type 'RunLoop' has no member 'add'
191 |             sendPing(task: primaryWebSocketTask)
192 |         }
193 |         RunLoop.current.add(heartbeatTimer!, forMode: .common)
    |                         `- error: value of type 'RunLoop' has no member 'add'
194 |     }
195 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:193:56: error: cannot infer contextual base in reference to member 'common'
191 |             sendPing(task: primaryWebSocketTask)
192 |         }
193 |         RunLoop.current.add(heartbeatTimer!, forMode: .common)
    |                                                        `- error: cannot infer contextual base in reference to member 'common'
194 |     }
195 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:245:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
243 |         if challenge
244 |             .protectionSpace
245 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
    |                                      `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
246 |         {
247 |             completionHandler(
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:244:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
242 |     ) {
243 |         if challenge
244 |             .protectionSpace
    |              `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
245 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
246 |         {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:248:18: error: cannot infer contextual base in reference to member 'useCredential'
246 |         {
247 |             completionHandler(
248 |                 .useCredential,
    |                  `- error: cannot infer contextual base in reference to member 'useCredential'
249 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
250 |             )
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
247 |             completionHandler(
248 |                 .useCredential,
249 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                 `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
250 |             )
251 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
247 |             completionHandler(
248 |                 .useCredential,
249 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                                                `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
250 |             )
251 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
250 |             )
251 |         } else {
252 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
253 |         }
254 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:56: error: 'nil' requires a contextual type
250 |             )
251 |         } else {
252 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
253 |         }
254 |     }
[13/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:98:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 96 |     fileprivate func connect(
 97 |         _ url: URL,
 98 |         task: inout URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 99 |     ) {
100 |         task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:106:20: error: cannot find type 'URLSessionWebSocketTask' in scope
104 |
105 |     fileprivate func sendURLSessionWebSocketTaskMessage(
106 |         _ message: URLSessionWebSocketTask.Message,
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
107 |         task: URLSessionWebSocketTask?
108 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:107:15: error: cannot find type 'URLSessionWebSocketTask' in scope
105 |     fileprivate func sendURLSessionWebSocketTaskMessage(
106 |         _ message: URLSessionWebSocketTask.Message,
107 |         task: URLSessionWebSocketTask?
    |               `- error: cannot find type 'URLSessionWebSocketTask' in scope
108 |     ) {
109 |         task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:137:21: error: cannot find type 'URLSessionWebSocketTask' in scope
135 |
136 |     fileprivate func handle(
137 |         _ response: URLSessionWebSocketTask.Message,
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
138 |         completion: @escaping (Result<WebOSResponse, Error>) -> Void
139 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:197:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
195 | }
196 |
197 | extension WebOSClient: URLSessionWebSocketDelegate {
    |                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
198 |     public func urlSession(
199 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:200:24: error: cannot find type 'URLSessionWebSocketTask' in scope
198 |     public func urlSession(
199 |         _ session: URLSession,
200 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
201 |         didOpenWithProtocol protocol: String?
202 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:199:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | extension WebOSClient: URLSessionWebSocketDelegate {
198 |     public func urlSession(
199 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         webSocketTask: URLSessionWebSocketTask,
201 |         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:217:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |
216 |     public func urlSession(
217 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |         task: URLSessionTask,
219 |         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:218:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 |     public func urlSession(
217 |         _ session: URLSession,
218 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |         didCompleteWithError error: Error?
220 |     ) {
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:227:24: error: cannot find type 'URLSessionWebSocketTask' in scope
225 |     public func urlSession(
226 |         _ session: URLSession,
227 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
228 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
229 |         reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:228:33: error: cannot find type 'URLSessionWebSocketTask' in scope
226 |         _ session: URLSession,
227 |         webSocketTask: URLSessionWebSocketTask,
228 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
229 |         reason: Data?
230 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:226:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 |
225 |     public func urlSession(
226 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 |         webSocketTask: URLSessionWebSocketTask,
228 |         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:241:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
239 |         _ session: URLSession,
240 |         didReceive challenge: URLAuthenticationChallenge,
241 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 |     ) {
243 |         if challenge
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |
238 |     public func urlSession(
239 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |         didReceive challenge: URLAuthenticationChallenge,
241 |         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:240:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 |     public func urlSession(
239 |         _ session: URLSession,
240 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
242 |     ) {
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:56:23: error: cannot find 'URLSessionWebSocketTask' in scope
 54 |             return nil
 55 |         }
 56 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 57 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 58 |         return id
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:62:23: error: cannot find 'URLSessionWebSocketTask' in scope
 60 |
 61 |     public func send(jsonRequest: String) {
 62 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 63 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 64 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:23: error: cannot find 'URLSessionWebSocketTask' in scope
 68 |             return
 69 |         }
 70 |         let message = URLSessionWebSocketTask.Message.data(request)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 71 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 72 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:75:23: error: cannot find 'URLSessionWebSocketTask' in scope
 73 |
 74 |     public func sendKey(keyData: Data) {
 75 |         let message = URLSessionWebSocketTask.Message.data(keyData)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 76 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 77 |     }
/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:80:24: error: argument passed to call that takes no arguments
 78 |
 79 |     public func sendPing() {
 80 |         sendPing(task: primaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
 81 |     }
 82 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:47: error: cannot infer contextual base in reference to member 'goingAway'
 84 |         heartbeatTimer?.invalidate()
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                               `- error: cannot infer contextual base in reference to member 'goingAway'
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 88 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:66: error: 'nil' requires a contextual type
 84 |         heartbeatTimer?.invalidate()
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                  `- error: 'nil' requires a contextual type
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 88 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:45: error: cannot infer contextual base in reference to member 'goingAway'
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                             `- error: cannot infer contextual base in reference to member 'goingAway'
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:64: error: 'nil' requires a contextual type
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                `- error: 'nil' requires a contextual type
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:100:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 98 |         task: inout URLSessionWebSocketTask?
 99 |     ) {
100 |         task = urlSession?.webSocketTask(with: url)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
101 |         task?.resume()
102 |         setupHeartbeat()
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:109:43: error: cannot infer type of closure parameter 'error' without a type annotation
107 |         task: URLSessionWebSocketTask?
108 |     ) {
109 |         task?.send(message) { [weak self] error in
    |                                           `- error: cannot infer type of closure parameter 'error' without a type annotation
110 |             guard let self else {
111 |                 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:124:53: error: cannot infer type of closure parameter 'result' without a type annotation
122 |         _ completion: @escaping (Result<WebOSResponse, Error>) -> Void
123 |     ) {
124 |         primaryWebSocketTask?.receive { [weak self] result in
    |                                                     `- error: cannot infer type of closure parameter 'result' without a type annotation
125 |             guard let self else {
126 |                 return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:171:24: error: argument passed to call that takes no arguments
169 |                 response.id == pointerRequestId
170 |             {
171 |                 connect(url, task: &secondaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
172 |             }
173 |             completion(.success(response))
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:28: error: argument passed to call that takes no arguments
188 |                 return
189 |             }
190 |             sendPing(task: secondaryWebSocketTask)
    |                            `- error: argument passed to call that takes no arguments
191 |             sendPing(task: primaryWebSocketTask)
192 |         }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:193:25: error: value of type 'RunLoop' has no member 'add'
191 |             sendPing(task: primaryWebSocketTask)
192 |         }
193 |         RunLoop.current.add(heartbeatTimer!, forMode: .common)
    |                         `- error: value of type 'RunLoop' has no member 'add'
194 |     }
195 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:193:56: error: cannot infer contextual base in reference to member 'common'
191 |             sendPing(task: primaryWebSocketTask)
192 |         }
193 |         RunLoop.current.add(heartbeatTimer!, forMode: .common)
    |                                                        `- error: cannot infer contextual base in reference to member 'common'
194 |     }
195 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:245:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
243 |         if challenge
244 |             .protectionSpace
245 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
    |                                      `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
246 |         {
247 |             completionHandler(
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:244:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
242 |     ) {
243 |         if challenge
244 |             .protectionSpace
    |              `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
245 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
246 |         {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:248:18: error: cannot infer contextual base in reference to member 'useCredential'
246 |         {
247 |             completionHandler(
248 |                 .useCredential,
    |                  `- error: cannot infer contextual base in reference to member 'useCredential'
249 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
250 |             )
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
247 |             completionHandler(
248 |                 .useCredential,
249 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                 `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
250 |             )
251 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
247 |             completionHandler(
248 |                 .useCredential,
249 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                                                `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
250 |             )
251 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
250 |             )
251 |         } else {
252 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
253 |         }
254 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:56: error: 'nil' requires a contextual type
250 |             )
251 |         } else {
252 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
253 |         }
254 |     }
[14/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:98:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 96 |     fileprivate func connect(
 97 |         _ url: URL,
 98 |         task: inout URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 99 |     ) {
100 |         task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:106:20: error: cannot find type 'URLSessionWebSocketTask' in scope
104 |
105 |     fileprivate func sendURLSessionWebSocketTaskMessage(
106 |         _ message: URLSessionWebSocketTask.Message,
    |                    `- error: cannot find type 'URLSessionWebSocketTask' in scope
107 |         task: URLSessionWebSocketTask?
108 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:107:15: error: cannot find type 'URLSessionWebSocketTask' in scope
105 |     fileprivate func sendURLSessionWebSocketTaskMessage(
106 |         _ message: URLSessionWebSocketTask.Message,
107 |         task: URLSessionWebSocketTask?
    |               `- error: cannot find type 'URLSessionWebSocketTask' in scope
108 |     ) {
109 |         task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:137:21: error: cannot find type 'URLSessionWebSocketTask' in scope
135 |
136 |     fileprivate func handle(
137 |         _ response: URLSessionWebSocketTask.Message,
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
138 |         completion: @escaping (Result<WebOSResponse, Error>) -> Void
139 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:197:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
195 | }
196 |
197 | extension WebOSClient: URLSessionWebSocketDelegate {
    |                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
198 |     public func urlSession(
199 |         _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:200:24: error: cannot find type 'URLSessionWebSocketTask' in scope
198 |     public func urlSession(
199 |         _ session: URLSession,
200 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
201 |         didOpenWithProtocol protocol: String?
202 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:199:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | extension WebOSClient: URLSessionWebSocketDelegate {
198 |     public func urlSession(
199 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         webSocketTask: URLSessionWebSocketTask,
201 |         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:217:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
215 |
216 |     public func urlSession(
217 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 |         task: URLSessionTask,
219 |         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:218:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 |     public func urlSession(
217 |         _ session: URLSession,
218 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |         didCompleteWithError error: Error?
220 |     ) {
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:227:24: error: cannot find type 'URLSessionWebSocketTask' in scope
225 |     public func urlSession(
226 |         _ session: URLSession,
227 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
228 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
229 |         reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:228:33: error: cannot find type 'URLSessionWebSocketTask' in scope
226 |         _ session: URLSession,
227 |         webSocketTask: URLSessionWebSocketTask,
228 |         didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                 `- error: cannot find type 'URLSessionWebSocketTask' in scope
229 |         reason: Data?
230 |     ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:226:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 |
225 |     public func urlSession(
226 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 |         webSocketTask: URLSessionWebSocketTask,
228 |         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:241:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
239 |         _ session: URLSession,
240 |         didReceive challenge: URLAuthenticationChallenge,
241 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                  `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 |     ) {
243 |         if challenge
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:239:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |
238 |     public func urlSession(
239 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |         didReceive challenge: URLAuthenticationChallenge,
241 |         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:240:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
238 |     public func urlSession(
239 |         _ session: URLSession,
240 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |         completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
242 |     ) {
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:56:23: error: cannot find 'URLSessionWebSocketTask' in scope
 54 |             return nil
 55 |         }
 56 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 57 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 58 |         return id
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:62:23: error: cannot find 'URLSessionWebSocketTask' in scope
 60 |
 61 |     public func send(jsonRequest: String) {
 62 |         let message = URLSessionWebSocketTask.Message.string(jsonRequest)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 63 |         sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
 64 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:23: error: cannot find 'URLSessionWebSocketTask' in scope
 68 |             return
 69 |         }
 70 |         let message = URLSessionWebSocketTask.Message.data(request)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 71 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 72 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:75:23: error: cannot find 'URLSessionWebSocketTask' in scope
 73 |
 74 |     public func sendKey(keyData: Data) {
 75 |         let message = URLSessionWebSocketTask.Message.data(keyData)
    |                       `- error: cannot find 'URLSessionWebSocketTask' in scope
 76 |         sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
 77 |     }
/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:80:24: error: argument passed to call that takes no arguments
 78 |
 79 |     public func sendPing() {
 80 |         sendPing(task: primaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
 81 |     }
 82 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:47: error: cannot infer contextual base in reference to member 'goingAway'
 84 |         heartbeatTimer?.invalidate()
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                               `- error: cannot infer contextual base in reference to member 'goingAway'
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 88 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:86:66: error: 'nil' requires a contextual type
 84 |         heartbeatTimer?.invalidate()
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                  `- error: 'nil' requires a contextual type
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 88 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:45: error: cannot infer contextual base in reference to member 'goingAway'
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                             `- error: cannot infer contextual base in reference to member 'goingAway'
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:87:64: error: 'nil' requires a contextual type
 85 |         heartbeatTimer = nil
 86 |         secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
 87 |         primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
    |                                                                `- error: 'nil' requires a contextual type
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:100:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 98 |         task: inout URLSessionWebSocketTask?
 99 |     ) {
100 |         task = urlSession?.webSocketTask(with: url)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
101 |         task?.resume()
102 |         setupHeartbeat()
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:109:43: error: cannot infer type of closure parameter 'error' without a type annotation
107 |         task: URLSessionWebSocketTask?
108 |     ) {
109 |         task?.send(message) { [weak self] error in
    |                                           `- error: cannot infer type of closure parameter 'error' without a type annotation
110 |             guard let self else {
111 |                 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:124:53: error: cannot infer type of closure parameter 'result' without a type annotation
122 |         _ completion: @escaping (Result<WebOSResponse, Error>) -> Void
123 |     ) {
124 |         primaryWebSocketTask?.receive { [weak self] result in
    |                                                     `- error: cannot infer type of closure parameter 'result' without a type annotation
125 |             guard let self else {
126 |                 return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:171:24: error: argument passed to call that takes no arguments
169 |                 response.id == pointerRequestId
170 |             {
171 |                 connect(url, task: &secondaryWebSocketTask)
    |                        `- error: argument passed to call that takes no arguments
172 |             }
173 |             completion(.success(response))
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:190:28: error: argument passed to call that takes no arguments
188 |                 return
189 |             }
190 |             sendPing(task: secondaryWebSocketTask)
    |                            `- error: argument passed to call that takes no arguments
191 |             sendPing(task: primaryWebSocketTask)
192 |         }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:193:25: error: value of type 'RunLoop' has no member 'add'
191 |             sendPing(task: primaryWebSocketTask)
192 |         }
193 |         RunLoop.current.add(heartbeatTimer!, forMode: .common)
    |                         `- error: value of type 'RunLoop' has no member 'add'
194 |     }
195 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:193:56: error: cannot infer contextual base in reference to member 'common'
191 |             sendPing(task: primaryWebSocketTask)
192 |         }
193 |         RunLoop.current.add(heartbeatTimer!, forMode: .common)
    |                                                        `- error: cannot infer contextual base in reference to member 'common'
194 |     }
195 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:245:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
243 |         if challenge
244 |             .protectionSpace
245 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
    |                                      `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
246 |         {
247 |             completionHandler(
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:244:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
242 |     ) {
243 |         if challenge
244 |             .protectionSpace
    |              `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
245 |             .authenticationMethod == NSURLAuthenticationMethodServerTrust
246 |         {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:248:18: error: cannot infer contextual base in reference to member 'useCredential'
246 |         {
247 |             completionHandler(
248 |                 .useCredential,
    |                  `- error: cannot infer contextual base in reference to member 'useCredential'
249 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
250 |             )
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
247 |             completionHandler(
248 |                 .useCredential,
249 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                 `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
250 |             )
251 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:249:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
247 |             completionHandler(
248 |                 .useCredential,
249 |                 URLCredential(trust: challenge.protectionSpace.serverTrust!)
    |                                                `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
250 |             )
251 |         } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
250 |             )
251 |         } else {
252 |             completionHandler(.performDefaultHandling, nil)
    |                                `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
253 |         }
254 |     }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:252:56: error: 'nil' requires a contextual type
250 |             )
251 |         } else {
252 |             completionHandler(.performDefaultHandling, nil)
    |                                                        `- error: 'nil' requires a contextual type
253 |         }
254 |     }
[15/33] Compiling WebOSClient WebOSTargetExtension.swift
[16/33] Compiling WebOSClient WebOSKeyTargetProtocol.swift
[17/33] Compiling WebOSClient WebOSTargetProtocol.swift
[18/33] Compiling WebOSClient WebOSKeyTarget.swift
[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 WebOSResponseVolumeStatus.swift
[24/33] Compiling WebOSClient WebOSClientDelegate.swift
[25/33] Compiling WebOSClient WebOSClientProtocol.swift
[26/33] Compiling WebOSClient WebOSKeyTargetExtension.swift
[27/33] Compiling WebOSClient WebOSTarget.swift
[28/33] Compiling WebOSClient WebOSPairingType.swift
[29/33] Compiling WebOSClient WebOSRequestType.swift
[30/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
[31/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
[32/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
[33/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
BUILD FAILURE 6.3 wasm