Build Information
Failed to build WebOSClient, reference 1.5.1 (754990
), with Swift 6.0 for Linux on 5 Nov 2024 18:50:16 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jareksedy/WebOSClient.git
Reference: 1.5.1
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
* tag 1.5.1 -> FETCH_HEAD
HEAD is now at 754990e Add getPowerState method to retrieve the TVs power state.
Cloned https://github.com/jareksedy/WebOSClient.git
Revision (git rev-parse @):
754990e6a8321ebaba3f3bf8ff3c90c19e9f9719
SUCCESS checkout https://github.com/jareksedy/WebOSClient.git at 1.5.1
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/jareksedy/WebOSClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/30] Emitting module WebOSClient
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/Message.swift:8:11: error: cannot find type 'URLSessionWebSocketTask' in scope
6 | import Foundation
7 |
8 | extension URLSessionWebSocketTask.Message {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
9 | func decode() -> WebOSResponse? {
10 | switch self {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 | func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 | guard shouldLogActivity else {
23 | return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:34:49: error: cannot find type 'URLSessionWebSocketTask' in scope
32 | }
33 |
34 | func logReceivedResponse(_ response: Result<URLSessionWebSocketTask.Message, any Error>) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
35 | guard shouldLogActivity else {
36 | return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 | task?.sendPing { [weak self] error in
11 | guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public class WebOSClient: NSObject, WebOSClientProtocol {
9 | private var url: URL
10 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | private var url: URL
10 | private var urlSession: URLSession?
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
13 | private var shouldPerformHeartbeat: Bool
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
10 | private var urlSession: URLSession?
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 | private var shouldPerformHeartbeat: Bool
14 | private var heartbeatTimeInterval: TimeInterval
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
86 | func connect(
87 | _ url: URL,
88 | task: inout URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
89 | ) {
90 | task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
94 |
95 | func sendURLSessionWebSocketTaskMessage(
96 | _ message: URLSessionWebSocketTask.Message,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
97 | task: URLSessionWebSocketTask?
98 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
95 | func sendURLSessionWebSocketTaskMessage(
96 | _ message: URLSessionWebSocketTask.Message,
97 | task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
98 | ) {
99 | task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 |
126 | func handle(
127 | _ response: URLSessionWebSocketTask.Message,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 | completion: @escaping (Result<WebOSResponse, Error>) -> Void
129 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:184:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
182 | }
183 |
184 | extension WebOSClient: URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
185 | public func urlSession(
186 | _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketTask' in scope
185 | public func urlSession(
186 | _ session: URLSession,
187 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 | didOpenWithProtocol protocol: String?
189 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:186:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | extension WebOSClient: URLSessionWebSocketDelegate {
185 | public func urlSession(
186 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | webSocketTask: URLSessionWebSocketTask,
188 | 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:204:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 |
203 | public func urlSession(
204 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 | task: URLSessionTask,
206 | 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:205:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 | public func urlSession(
204 | _ session: URLSession,
205 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | didCompleteWithError error: Error?
207 | ) {
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:214:24: error: cannot find type 'URLSessionWebSocketTask' in scope
212 | public func urlSession(
213 | _ session: URLSession,
214 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
215 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
216 | reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:215:33: error: cannot find type 'URLSessionWebSocketTask' in scope
213 | _ session: URLSession,
214 | webSocketTask: URLSessionWebSocketTask,
215 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
216 | reason: Data?
217 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |
212 | public func urlSession(
213 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | webSocketTask: URLSessionWebSocketTask,
215 | 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:228:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
226 | _ session: URLSession,
227 | didReceive challenge: URLAuthenticationChallenge,
228 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
229 | ) {
230 | if challenge
/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 | didReceive challenge: URLAuthenticationChallenge,
228 | 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:227:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | public func urlSession(
226 | _ session: URLSession,
227 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
229 | ) {
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 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
[5/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
[6/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
[7/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
[8/33] Compiling WebOSClient WebOSResponseVolumeStatus.swift
[9/33] Compiling WebOSClient WebOSClientDelegate.swift
[10/33] Compiling WebOSClient WebOSClientProtocol.swift
[11/33] Compiling WebOSClient WebOSKeyTargetExtension.swift
[12/33] Compiling WebOSClient WebOSTarget.swift
[13/33] Compiling WebOSClient WebOSPairingType.swift
[14/33] Compiling WebOSClient WebOSRequestType.swift
[15/33] Compiling WebOSClient WebOSResponseType.swift
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public class WebOSClient: NSObject, WebOSClientProtocol {
9 | private var url: URL
10 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | private var url: URL
10 | private var urlSession: URLSession?
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
13 | private var shouldPerformHeartbeat: Bool
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
10 | private var urlSession: URLSession?
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 | private var shouldPerformHeartbeat: Bool
14 | private var heartbeatTimeInterval: TimeInterval
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
86 | func connect(
87 | _ url: URL,
88 | task: inout URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
89 | ) {
90 | task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
94 |
95 | func sendURLSessionWebSocketTaskMessage(
96 | _ message: URLSessionWebSocketTask.Message,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
97 | task: URLSessionWebSocketTask?
98 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
95 | func sendURLSessionWebSocketTaskMessage(
96 | _ message: URLSessionWebSocketTask.Message,
97 | task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
98 | ) {
99 | task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 |
126 | func handle(
127 | _ response: URLSessionWebSocketTask.Message,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 | completion: @escaping (Result<WebOSResponse, Error>) -> Void
129 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:184:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
182 | }
183 |
184 | extension WebOSClient: URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
185 | public func urlSession(
186 | _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketTask' in scope
185 | public func urlSession(
186 | _ session: URLSession,
187 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 | didOpenWithProtocol protocol: String?
189 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:186:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | extension WebOSClient: URLSessionWebSocketDelegate {
185 | public func urlSession(
186 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | webSocketTask: URLSessionWebSocketTask,
188 | 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:204:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 |
203 | public func urlSession(
204 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 | task: URLSessionTask,
206 | 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:205:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 | public func urlSession(
204 | _ session: URLSession,
205 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | didCompleteWithError error: Error?
207 | ) {
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:214:24: error: cannot find type 'URLSessionWebSocketTask' in scope
212 | public func urlSession(
213 | _ session: URLSession,
214 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
215 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
216 | reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:215:33: error: cannot find type 'URLSessionWebSocketTask' in scope
213 | _ session: URLSession,
214 | webSocketTask: URLSessionWebSocketTask,
215 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
216 | reason: Data?
217 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |
212 | public func urlSession(
213 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | webSocketTask: URLSessionWebSocketTask,
215 | 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:228:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
226 | _ session: URLSession,
227 | didReceive challenge: URLAuthenticationChallenge,
228 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
229 | ) {
230 | if challenge
/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 | didReceive challenge: URLAuthenticationChallenge,
228 | 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:227:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | public func urlSession(
226 | _ session: URLSession,
227 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
229 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | connect(url, task: &primaryWebSocketTask)
39 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:49: error: cannot infer contextual base in reference to member 'default'
35 |
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
38 | connect(url, task: &primaryWebSocketTask)
39 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:89: error: 'nil' requires a contextual type
35 |
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
38 | connect(url, task: &primaryWebSocketTask)
39 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:38:16: error: argument passed to call that takes no arguments
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
38 | connect(url, task: &primaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
39 | }
40 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
44 | return nil
45 | }
46 | let message = URLSessionWebSocketTask.Message.string(jsonRequest)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
47 | sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
48 | return id
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
50 |
51 | public func send(jsonRequest: String) {
52 | let message = URLSessionWebSocketTask.Message.string(jsonRequest)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
53 | sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
54 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:60:23: error: cannot find 'URLSessionWebSocketTask' in scope
58 | return
59 | }
60 | let message = URLSessionWebSocketTask.Message.data(request)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
61 | sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
62 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:65:23: error: cannot find 'URLSessionWebSocketTask' in scope
63 |
64 | public func sendKey(keyData: Data) {
65 | let message = URLSessionWebSocketTask.Message.data(keyData)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
66 | sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
67 | }
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 | task?.sendPing { [weak self] error in
11 | guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:24: error: argument passed to call that takes no arguments
68 |
69 | public func sendPing() {
70 | sendPing(task: primaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
71 | }
72 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:47: error: cannot infer contextual base in reference to member 'goingAway'
74 | heartbeatTimer?.invalidate()
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
78 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:66: error: 'nil' requires a contextual type
74 | heartbeatTimer?.invalidate()
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
78 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:45: error: cannot infer contextual base in reference to member 'goingAway'
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
78 | }
79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:64: error: 'nil' requires a contextual type
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
78 | }
79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:90:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
88 | task: inout URLSessionWebSocketTask?
89 | ) {
90 | task = urlSession?.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
91 | task?.resume()
92 | setupHeartbeat()
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:99:43: error: cannot infer type of closure parameter 'error' without a type annotation
97 | task: URLSessionWebSocketTask?
98 | ) {
99 | task?.send(message) { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
100 | guard let self else {
101 | return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 | func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 | guard shouldLogActivity else {
23 | return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:114:53: error: cannot infer type of closure parameter 'result' without a type annotation
112 | _ completion: @escaping (Result<WebOSResponse, Error>) -> Void
113 | ) {
114 | primaryWebSocketTask?.receive { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
115 | guard let self else {
116 | return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:159:24: error: argument passed to call that takes no arguments
157 | let url = URL(string: socketPath),
158 | response.id == pointerRequestId {
159 | connect(url, task: &secondaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
160 | }
161 | completion(.success(response))
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:177:28: error: argument passed to call that takes no arguments
175 | return
176 | }
177 | sendPing(task: secondaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
178 | sendPing(task: primaryWebSocketTask)
179 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:232:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
230 | if challenge
231 | .protectionSpace
232 | .authenticationMethod == NSURLAuthenticationMethodServerTrust {
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
233 | completionHandler(
234 | .useCredential,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:231:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
229 | ) {
230 | if challenge
231 | .protectionSpace
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
232 | .authenticationMethod == NSURLAuthenticationMethodServerTrust {
233 | completionHandler(
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:234:18: error: cannot infer contextual base in reference to member 'useCredential'
232 | .authenticationMethod == NSURLAuthenticationMethodServerTrust {
233 | completionHandler(
234 | .useCredential,
| `- error: cannot infer contextual base in reference to member 'useCredential'
235 | URLCredential(trust: challenge.protectionSpace.serverTrust!)
236 | )
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
233 | completionHandler(
234 | .useCredential,
235 | URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
236 | )
237 | } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
233 | completionHandler(
234 | .useCredential,
235 | URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
236 | )
237 | } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
236 | )
237 | } else {
238 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
239 | }
240 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:56: error: 'nil' requires a contextual type
236 | )
237 | } else {
238 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
239 | }
240 | }
[16/33] Compiling WebOSClient WebOSSoundOutputType.swift
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public class WebOSClient: NSObject, WebOSClientProtocol {
9 | private var url: URL
10 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | private var url: URL
10 | private var urlSession: URLSession?
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
13 | private var shouldPerformHeartbeat: Bool
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
10 | private var urlSession: URLSession?
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 | private var shouldPerformHeartbeat: Bool
14 | private var heartbeatTimeInterval: TimeInterval
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
86 | func connect(
87 | _ url: URL,
88 | task: inout URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
89 | ) {
90 | task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
94 |
95 | func sendURLSessionWebSocketTaskMessage(
96 | _ message: URLSessionWebSocketTask.Message,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
97 | task: URLSessionWebSocketTask?
98 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
95 | func sendURLSessionWebSocketTaskMessage(
96 | _ message: URLSessionWebSocketTask.Message,
97 | task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
98 | ) {
99 | task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 |
126 | func handle(
127 | _ response: URLSessionWebSocketTask.Message,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 | completion: @escaping (Result<WebOSResponse, Error>) -> Void
129 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:184:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
182 | }
183 |
184 | extension WebOSClient: URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
185 | public func urlSession(
186 | _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketTask' in scope
185 | public func urlSession(
186 | _ session: URLSession,
187 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 | didOpenWithProtocol protocol: String?
189 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:186:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | extension WebOSClient: URLSessionWebSocketDelegate {
185 | public func urlSession(
186 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | webSocketTask: URLSessionWebSocketTask,
188 | 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:204:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 |
203 | public func urlSession(
204 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 | task: URLSessionTask,
206 | 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:205:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 | public func urlSession(
204 | _ session: URLSession,
205 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | didCompleteWithError error: Error?
207 | ) {
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:214:24: error: cannot find type 'URLSessionWebSocketTask' in scope
212 | public func urlSession(
213 | _ session: URLSession,
214 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
215 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
216 | reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:215:33: error: cannot find type 'URLSessionWebSocketTask' in scope
213 | _ session: URLSession,
214 | webSocketTask: URLSessionWebSocketTask,
215 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
216 | reason: Data?
217 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |
212 | public func urlSession(
213 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | webSocketTask: URLSessionWebSocketTask,
215 | 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:228:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
226 | _ session: URLSession,
227 | didReceive challenge: URLAuthenticationChallenge,
228 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
229 | ) {
230 | if challenge
/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 | didReceive challenge: URLAuthenticationChallenge,
228 | 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:227:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | public func urlSession(
226 | _ session: URLSession,
227 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
229 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | connect(url, task: &primaryWebSocketTask)
39 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:49: error: cannot infer contextual base in reference to member 'default'
35 |
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
38 | connect(url, task: &primaryWebSocketTask)
39 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:89: error: 'nil' requires a contextual type
35 |
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
38 | connect(url, task: &primaryWebSocketTask)
39 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:38:16: error: argument passed to call that takes no arguments
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
38 | connect(url, task: &primaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
39 | }
40 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
44 | return nil
45 | }
46 | let message = URLSessionWebSocketTask.Message.string(jsonRequest)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
47 | sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
48 | return id
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
50 |
51 | public func send(jsonRequest: String) {
52 | let message = URLSessionWebSocketTask.Message.string(jsonRequest)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
53 | sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
54 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:60:23: error: cannot find 'URLSessionWebSocketTask' in scope
58 | return
59 | }
60 | let message = URLSessionWebSocketTask.Message.data(request)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
61 | sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
62 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:65:23: error: cannot find 'URLSessionWebSocketTask' in scope
63 |
64 | public func sendKey(keyData: Data) {
65 | let message = URLSessionWebSocketTask.Message.data(keyData)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
66 | sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
67 | }
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 | task?.sendPing { [weak self] error in
11 | guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:24: error: argument passed to call that takes no arguments
68 |
69 | public func sendPing() {
70 | sendPing(task: primaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
71 | }
72 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:47: error: cannot infer contextual base in reference to member 'goingAway'
74 | heartbeatTimer?.invalidate()
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
78 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:66: error: 'nil' requires a contextual type
74 | heartbeatTimer?.invalidate()
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
78 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:45: error: cannot infer contextual base in reference to member 'goingAway'
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
78 | }
79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:64: error: 'nil' requires a contextual type
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
78 | }
79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:90:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
88 | task: inout URLSessionWebSocketTask?
89 | ) {
90 | task = urlSession?.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
91 | task?.resume()
92 | setupHeartbeat()
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:99:43: error: cannot infer type of closure parameter 'error' without a type annotation
97 | task: URLSessionWebSocketTask?
98 | ) {
99 | task?.send(message) { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
100 | guard let self else {
101 | return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 | func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 | guard shouldLogActivity else {
23 | return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:114:53: error: cannot infer type of closure parameter 'result' without a type annotation
112 | _ completion: @escaping (Result<WebOSResponse, Error>) -> Void
113 | ) {
114 | primaryWebSocketTask?.receive { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
115 | guard let self else {
116 | return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:159:24: error: argument passed to call that takes no arguments
157 | let url = URL(string: socketPath),
158 | response.id == pointerRequestId {
159 | connect(url, task: &secondaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
160 | }
161 | completion(.success(response))
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:177:28: error: argument passed to call that takes no arguments
175 | return
176 | }
177 | sendPing(task: secondaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
178 | sendPing(task: primaryWebSocketTask)
179 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:232:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
230 | if challenge
231 | .protectionSpace
232 | .authenticationMethod == NSURLAuthenticationMethodServerTrust {
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
233 | completionHandler(
234 | .useCredential,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:231:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
229 | ) {
230 | if challenge
231 | .protectionSpace
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
232 | .authenticationMethod == NSURLAuthenticationMethodServerTrust {
233 | completionHandler(
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:234:18: error: cannot infer contextual base in reference to member 'useCredential'
232 | .authenticationMethod == NSURLAuthenticationMethodServerTrust {
233 | completionHandler(
234 | .useCredential,
| `- error: cannot infer contextual base in reference to member 'useCredential'
235 | URLCredential(trust: challenge.protectionSpace.serverTrust!)
236 | )
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
233 | completionHandler(
234 | .useCredential,
235 | URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
236 | )
237 | } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
233 | completionHandler(
234 | .useCredential,
235 | URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
236 | )
237 | } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
236 | )
237 | } else {
238 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
239 | }
240 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:56: error: 'nil' requires a contextual type
236 | )
237 | } else {
238 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
239 | }
240 | }
[17/33] Compiling WebOSClient WebOSClient.swift
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:10:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public class WebOSClient: NSObject, WebOSClientProtocol {
9 | private var url: URL
10 | private var urlSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:11:39: error: cannot find type 'URLSessionWebSocketTask' in scope
9 | private var url: URL
10 | private var urlSession: URLSession?
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
13 | private var shouldPerformHeartbeat: Bool
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:12:41: error: cannot find type 'URLSessionWebSocketTask' in scope
10 | private var urlSession: URLSession?
11 | private var primaryWebSocketTask: URLSessionWebSocketTask?
12 | private var secondaryWebSocketTask: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
13 | private var shouldPerformHeartbeat: Bool
14 | private var heartbeatTimeInterval: TimeInterval
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:88:21: error: cannot find type 'URLSessionWebSocketTask' in scope
86 | func connect(
87 | _ url: URL,
88 | task: inout URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
89 | ) {
90 | task = urlSession?.webSocketTask(with: url)
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:96:20: error: cannot find type 'URLSessionWebSocketTask' in scope
94 |
95 | func sendURLSessionWebSocketTaskMessage(
96 | _ message: URLSessionWebSocketTask.Message,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
97 | task: URLSessionWebSocketTask?
98 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:97:15: error: cannot find type 'URLSessionWebSocketTask' in scope
95 | func sendURLSessionWebSocketTaskMessage(
96 | _ message: URLSessionWebSocketTask.Message,
97 | task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
98 | ) {
99 | task?.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:127:21: error: cannot find type 'URLSessionWebSocketTask' in scope
125 |
126 | func handle(
127 | _ response: URLSessionWebSocketTask.Message,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
128 | completion: @escaping (Result<WebOSResponse, Error>) -> Void
129 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:184:24: error: cannot find type 'URLSessionWebSocketDelegate' in scope
182 | }
183 |
184 | extension WebOSClient: URLSessionWebSocketDelegate {
| `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
185 | public func urlSession(
186 | _ session: URLSession,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:187:24: error: cannot find type 'URLSessionWebSocketTask' in scope
185 | public func urlSession(
186 | _ session: URLSession,
187 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
188 | didOpenWithProtocol protocol: String?
189 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:186:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | extension WebOSClient: URLSessionWebSocketDelegate {
185 | public func urlSession(
186 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | webSocketTask: URLSessionWebSocketTask,
188 | 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:204:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 |
203 | public func urlSession(
204 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 | task: URLSessionTask,
206 | 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:205:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 | public func urlSession(
204 | _ session: URLSession,
205 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | didCompleteWithError error: Error?
207 | ) {
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:214:24: error: cannot find type 'URLSessionWebSocketTask' in scope
212 | public func urlSession(
213 | _ session: URLSession,
214 | webSocketTask: URLSessionWebSocketTask,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
215 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
216 | reason: Data?
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:215:33: error: cannot find type 'URLSessionWebSocketTask' in scope
213 | _ session: URLSession,
214 | webSocketTask: URLSessionWebSocketTask,
215 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
216 | reason: Data?
217 | ) {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:213:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |
212 | public func urlSession(
213 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 | webSocketTask: URLSessionWebSocketTask,
215 | 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:228:50: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
226 | _ session: URLSession,
227 | didReceive challenge: URLAuthenticationChallenge,
228 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
229 | ) {
230 | if challenge
/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 | didReceive challenge: URLAuthenticationChallenge,
228 | 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:227:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | public func urlSession(
226 | _ session: URLSession,
227 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
228 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
229 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
35 |
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
38 | connect(url, task: &primaryWebSocketTask)
39 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:49: error: cannot infer contextual base in reference to member 'default'
35 |
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
38 | connect(url, task: &primaryWebSocketTask)
39 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:37:89: error: 'nil' requires a contextual type
35 |
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
38 | connect(url, task: &primaryWebSocketTask)
39 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:38:16: error: argument passed to call that takes no arguments
36 | public func connect() {
37 | urlSession = URLSession(configuration: .default, delegate: self, delegateQueue: nil)
38 | connect(url, task: &primaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
39 | }
40 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:46:23: error: cannot find 'URLSessionWebSocketTask' in scope
44 | return nil
45 | }
46 | let message = URLSessionWebSocketTask.Message.string(jsonRequest)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
47 | sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
48 | return id
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:52:23: error: cannot find 'URLSessionWebSocketTask' in scope
50 |
51 | public func send(jsonRequest: String) {
52 | let message = URLSessionWebSocketTask.Message.string(jsonRequest)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
53 | sendURLSessionWebSocketTaskMessage(message, task: primaryWebSocketTask)
54 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:60:23: error: cannot find 'URLSessionWebSocketTask' in scope
58 | return
59 | }
60 | let message = URLSessionWebSocketTask.Message.data(request)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
61 | sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
62 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:65:23: error: cannot find 'URLSessionWebSocketTask' in scope
63 |
64 | public func sendKey(keyData: Data) {
65 | let message = URLSessionWebSocketTask.Message.data(keyData)
| `- error: cannot find 'URLSessionWebSocketTask' in scope
66 | sendURLSessionWebSocketTaskMessage(message, task: secondaryWebSocketTask)
67 | }
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 | task?.sendPing { [weak self] error in
11 | guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:70:24: error: argument passed to call that takes no arguments
68 |
69 | public func sendPing() {
70 | sendPing(task: primaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
71 | }
72 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:47: error: cannot infer contextual base in reference to member 'goingAway'
74 | heartbeatTimer?.invalidate()
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
78 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:76:66: error: 'nil' requires a contextual type
74 | heartbeatTimer?.invalidate()
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
78 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:45: error: cannot infer contextual base in reference to member 'goingAway'
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
78 | }
79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:77:64: error: 'nil' requires a contextual type
75 | heartbeatTimer = nil
76 | secondaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
77 | primaryWebSocketTask?.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
78 | }
79 |
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:90:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
88 | task: inout URLSessionWebSocketTask?
89 | ) {
90 | task = urlSession?.webSocketTask(with: url)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
91 | task?.resume()
92 | setupHeartbeat()
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:99:43: error: cannot infer type of closure parameter 'error' without a type annotation
97 | task: URLSessionWebSocketTask?
98 | ) {
99 | task?.send(message) { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
100 | guard let self else {
101 | return
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/Logging.swift:21:36: error: cannot find type 'URLSessionWebSocketTask' in scope
19 |
20 | extension WebOSClient {
21 | func logSentMessage(_ message: URLSessionWebSocketTask.Message) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
22 | guard shouldLogActivity else {
23 | return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:114:53: error: cannot infer type of closure parameter 'result' without a type annotation
112 | _ completion: @escaping (Result<WebOSResponse, Error>) -> Void
113 | ) {
114 | primaryWebSocketTask?.receive { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
115 | guard let self else {
116 | return
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:159:24: error: argument passed to call that takes no arguments
157 | let url = URL(string: socketPath),
158 | response.id == pointerRequestId {
159 | connect(url, task: &secondaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
160 | }
161 | completion(.success(response))
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:177:28: error: argument passed to call that takes no arguments
175 | return
176 | }
177 | sendPing(task: secondaryWebSocketTask)
| `- error: argument passed to call that takes no arguments
178 | sendPing(task: primaryWebSocketTask)
179 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:232:38: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
230 | if challenge
231 | .protectionSpace
232 | .authenticationMethod == NSURLAuthenticationMethodServerTrust {
| `- error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
233 | completionHandler(
234 | .useCredential,
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:231:14: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
229 | ) {
230 | if challenge
231 | .protectionSpace
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
232 | .authenticationMethod == NSURLAuthenticationMethodServerTrust {
233 | completionHandler(
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:234:18: error: cannot infer contextual base in reference to member 'useCredential'
232 | .authenticationMethod == NSURLAuthenticationMethodServerTrust {
233 | completionHandler(
234 | .useCredential,
| `- error: cannot infer contextual base in reference to member 'useCredential'
235 | URLCredential(trust: challenge.protectionSpace.serverTrust!)
236 | )
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:17: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
233 | completionHandler(
234 | .useCredential,
235 | URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
236 | )
237 | } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:235:48: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
233 | completionHandler(
234 | .useCredential,
235 | URLCredential(trust: challenge.protectionSpace.serverTrust!)
| `- error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
236 | )
237 | } else {
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
236 | )
237 | } else {
238 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
239 | }
240 | }
/host/spi-builder-workspace/Sources/WebOSClient/WebOSClient.swift:238:56: error: 'nil' requires a contextual type
236 | )
237 | } else {
238 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
239 | }
240 | }
[18/33] Compiling WebOSClient WebOSTargetExtension.swift
[19/33] Compiling WebOSClient WebOSKeyTargetProtocol.swift
[20/33] Compiling WebOSClient WebOSTargetProtocol.swift
[21/33] Compiling WebOSClient WebOSKeyTarget.swift
[22/33] Compiling WebOSClient WebOSRequestSignature.swift
[23/33] Compiling WebOSClient WebOSRequestSigned.swift
[24/33] Compiling WebOSClient WebOSResponse.swift
[25/33] Compiling WebOSClient WebOSResponseApplication.swift
[26/33] Compiling WebOSClient WebOSResponseCurrentWidget.swift
[27/33] Compiling WebOSClient WebOSResponseDevice.swift
[28/33] Compiling WebOSClient WebOSResponseForegroundAppInfo.swift
[29/33] Compiling WebOSClient WebOSResponsePayload.swift
[30/33] Compiling WebOSClient SendPing.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 | task?.sendPing { [weak self] error in
11 | guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
10 | task?.sendPing { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
11 | guard let self else {
12 | return
[31/33] Compiling WebOSClient WebOSRequest.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 | task?.sendPing { [weak self] error in
11 | guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
10 | task?.sendPing { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
11 | guard let self else {
12 | return
[32/33] Compiling WebOSClient WebOSRequestManifest.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 | task?.sendPing { [weak self] error in
11 | guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
10 | task?.sendPing { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
11 | guard let self else {
12 | return
[33/33] Compiling WebOSClient WebOSRequestPayload.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
7 |
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
10 | task?.sendPing { [weak self] error in
11 | guard let self else {
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:10:38: error: cannot infer type of closure parameter 'error' without a type annotation
8 | extension WebOSClient {
9 | func sendPing(task: URLSessionWebSocketTask?) {
10 | task?.sendPing { [weak self] error in
| `- error: cannot infer type of closure parameter 'error' without a type annotation
11 | guard let self else {
12 | return
BUILD FAILURE 6.0 linux