Build Information
Failed to build WebOSClient, reference main (14ce35
), with Swift 6.1 for Linux on 30 Apr 2025 04:26:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jareksedy/WebOSClient.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/jareksedy/WebOSClient
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 14ce35d Merge pull request #8 from hmduc1603/main
Cloned https://github.com/jareksedy/WebOSClient.git
Revision (git rev-parse @):
14ce35d71682499c8f543f0810ee1ef28751fea5
SUCCESS checkout https://github.com/jareksedy/WebOSClient.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/jareksedy/WebOSClient.git
https://github.com/jareksedy/WebOSClient.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "WebOSClient",
"name" : "WebOSClient",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "WebOSClient",
"targets" : [
"WebOSClient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "WebOSClientTests",
"module_type" : "SwiftTarget",
"name" : "WebOSClientTests",
"path" : "Tests/WebOSClientTests",
"sources" : [
"WebOSClientTests.swift"
],
"target_dependencies" : [
"WebOSClient"
],
"type" : "test"
},
{
"c99name" : "WebOSClient",
"module_type" : "SwiftTarget",
"name" : "WebOSClient",
"path" : "Sources/WebOSClient",
"product_memberships" : [
"WebOSClient"
],
"sources" : [
"Extensions/Encodable.swift",
"Extensions/Message.swift",
"Extensions/String.swift",
"Extensions/WebOSClientExtensions/Logging.swift",
"Extensions/WebOSClientExtensions/SendPing.swift",
"Models/Request/WebOSRequest.swift",
"Models/Request/WebOSRequestManifest.swift",
"Models/Request/WebOSRequestPayload.swift",
"Models/Request/WebOSRequestSignature.swift",
"Models/Request/WebOSRequestSigned.swift",
"Models/Response/WebOSResponse.swift",
"Models/Response/WebOSResponseApplication.swift",
"Models/Response/WebOSResponseCurrentWidget.swift",
"Models/Response/WebOSResponseDevice.swift",
"Models/Response/WebOSResponseForegroundAppInfo.swift",
"Models/Response/WebOSResponsePayload.swift",
"Models/Response/WebOSResponseVolumeStatus.swift",
"Protocols/WebOSClientDelegate.swift",
"Protocols/WebOSClientProtocol.swift",
"Targets/Extensions/WebOSKeyTargetExtension.swift",
"Targets/Extensions/WebOSTargetExtension.swift",
"Targets/Protocols/WebOSKeyTargetProtocol.swift",
"Targets/Protocols/WebOSTargetProtocol.swift",
"Targets/WebOSKeyTarget.swift",
"Targets/WebOSTarget.swift",
"Types/WebOSPairingType.swift",
"Types/WebOSRequestType.swift",
"Types/WebOSResponseType.swift",
"Types/WebOSSoundOutputType.swift",
"WebOSClient.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-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 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 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: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 | }
[9/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: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 | }
[10/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: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 | }
[11/33] Compiling WebOSClient WebOSTarget.swift
[12/33] Compiling WebOSClient WebOSPairingType.swift
[13/33] Compiling WebOSClient WebOSRequestType.swift
[14/33] Compiling WebOSClient WebOSResponseVolumeStatus.swift
[15/33] Compiling WebOSClient WebOSClientDelegate.swift
[16/33] Compiling WebOSClient WebOSClientProtocol.swift
[17/33] Compiling WebOSClient WebOSKeyTargetExtension.swift
[18/33] Compiling WebOSClient WebOSResponseCurrentWidget.swift
[19/33] Compiling WebOSClient WebOSResponseDevice.swift
[20/33] Compiling WebOSClient WebOSResponseForegroundAppInfo.swift
[21/33] Compiling WebOSClient WebOSResponsePayload.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 WebOSTargetExtension.swift
[27/33] Compiling WebOSClient WebOSKeyTargetProtocol.swift
[28/33] Compiling WebOSClient WebOSTargetProtocol.swift
[29/33] Compiling WebOSClient WebOSKeyTarget.swift
[30/33] Compiling WebOSClient SendPing.swift
/host/spi-builder-workspace/Sources/WebOSClient/Extensions/WebOSClientExtensions/SendPing.swift:9:25: error: cannot find type 'URLSessionWebSocketTask' in scope
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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/29] 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
[3/32] 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
[4/32] 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
[5/32] 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
[6/32] 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
[7/32] Compiling WebOSClient WebOSTarget.swift
[8/32] Compiling WebOSClient WebOSPairingType.swift
[9/32] Compiling WebOSClient WebOSRequestType.swift
[10/32] Compiling WebOSClient WebOSResponseVolumeStatus.swift
[11/32] Compiling WebOSClient WebOSClientDelegate.swift
[12/32] Compiling WebOSClient WebOSClientProtocol.swift
[13/32] Compiling WebOSClient WebOSKeyTargetExtension.swift
[14/32] Compiling WebOSClient WebOSTargetExtension.swift
[15/32] Compiling WebOSClient WebOSKeyTargetProtocol.swift
[16/32] Compiling WebOSClient WebOSTargetProtocol.swift
[17/32] Compiling WebOSClient WebOSKeyTarget.swift
[18/32] Compiling WebOSClient WebOSRequestSignature.swift
[19/32] Compiling WebOSClient WebOSRequestSigned.swift
[20/32] Compiling WebOSClient WebOSResponse.swift
[21/32] Compiling WebOSClient WebOSResponseApplication.swift
[22/32] 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
[23/32] 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
[24/32] 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
[25/32] 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
[26/32] 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: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 | }
[27/32] 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: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 | }
[28/32] 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: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 | }
[29/32] Compiling WebOSClient WebOSResponseCurrentWidget.swift
[30/32] Compiling WebOSClient WebOSResponseDevice.swift
[31/32] Compiling WebOSClient WebOSResponseForegroundAppInfo.swift
[32/32] Compiling WebOSClient WebOSResponsePayload.swift
BUILD FAILURE 6.1 linux