Build Information
Failed to build NetworkXI, reference main (e2e301
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 21:37:20 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|111 |
|112 |
|113 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:31:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class NetworkSessionAdapter: SessionAuthChallenger, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
29 | var networkIsReachable = false
30 |
31 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
32 |
33 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:72:34: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
69 | }
70 |
71 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
72 | return try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:76:34: error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
73 | }
74 |
75 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
76 | return try await session.upload(for: request, from: bodyData)
| |- error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
77 | }
78 |
[39/40] Compiling NetworkXI ClassicNetworkSessionAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:33:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Classic implementation of adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class ClassicNetworkSessionAdapter: SessionAuthChallenger, SessionLifeCycle, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
31 | var networkIsReachable = false
32 |
33 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|94 |
|95 |
|96 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|111 |
|112 |
|113 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:31:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class NetworkSessionAdapter: SessionAuthChallenger, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
29 | var networkIsReachable = false
30 |
31 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
32 |
33 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:72:34: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
69 | }
70 |
71 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
72 | return try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:76:34: error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
73 | }
74 |
75 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
76 | return try await session.upload(for: request, from: bodyData)
| |- error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
77 | }
78 |
[40/40] Compiling NetworkXI NetworkSessionAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:33:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Classic implementation of adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class ClassicNetworkSessionAdapter: SessionAuthChallenger, SessionLifeCycle, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
31 | var networkIsReachable = false
32 |
33 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|94 |
|95 |
|96 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|111 |
|112 |
|113 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:31:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class NetworkSessionAdapter: SessionAuthChallenger, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
29 | var networkIsReachable = false
30 |
31 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
32 |
33 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:72:34: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
69 | }
70 |
71 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
72 | return try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:76:34: error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
73 | }
74 |
75 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
76 | return try await session.upload(for: request, from: bodyData)
| |- error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
77 | }
78 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/36] Emitting module NetworkXI
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/NetworkConnectionChecker.swift:12:28: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
8 | import Network
9 |
10 | protocol NetworkConnectionChecker: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var connectionMonitor: NWPathMonitor { get }
| | `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing property
13 |
14 | var connectionMonitorQueue: DispatchQueue { get }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:33:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Classic implementation of adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class ClassicNetworkSessionAdapter: SessionAuthChallenger, SessionLifeCycle, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
31 | var networkIsReachable = false
32 |
33 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:31:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class NetworkSessionAdapter: SessionAuthChallenger, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
29 | var networkIsReachable = false
30 |
31 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
32 |
33 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:64:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
63 | _ session: URLSession,
64 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
65 | didOpenWithProtocol protocol: String?
66 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:72:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
:
68 | }
69 |
70 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
71 | _ session: URLSession,
72 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
73 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
74 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:73:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
:
68 | }
69 |
70 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
71 | _ session: URLSession,
72 | webSocketTask: URLSessionWebSocketTask,
73 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
74 | reason: Data?
75 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:14:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
| `- note: add @available attribute to enclosing instance method
13 | _ session: URLSession,
14 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
15 | didOpenWithProtocol protocol: String?
16 | )
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:20:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
:
16 | )
17 |
18 | func urlSession(
| `- note: add @available attribute to enclosing instance method
19 | _ session: URLSession,
20 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
22 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:21:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
:
16 | )
17 |
18 | func urlSession(
| `- note: add @available attribute to enclosing instance method
19 | _ session: URLSession,
20 | webSocketTask: URLSessionWebSocketTask,
21 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
22 | reason: Data?
23 | )
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:14:33: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
| | `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
15 |
16 | /// Establishing web-socket connection
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:11:35: error: 'AsyncSequence' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| | `- error: 'AsyncSequence' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:12:18: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:12:84: error: 'Iterator' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
| `- error: 'Iterator' is only available in macOS 10.15 or newer
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:26:38: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
10 | /// Adapter between fundamental web-socket and its worker (socket service);
11 | /// It's much better to use worker (WebSocketWorker) instead of applying adapter directly for socket message exchange
12 | public class WebSocketSessionAdapter: SessionAuthChallenger {
| `- note: add @available attribute to enclosing class
13 |
14 | public var additionalHTTPHeaders = [String: String]()
:
24 | private let sessionDelegate = SessionDelegationHandler()
25 |
26 | private var connectContinuation: CheckedContinuation<WebSocketTask, Error>?
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
27 |
28 | private var disconnectContinuation: CheckedContinuation<URLSessionWebSocketTask.CloseCode, Error>?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:28:41: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
10 | /// Adapter between fundamental web-socket and its worker (socket service);
11 | /// It's much better to use worker (WebSocketWorker) instead of applying adapter directly for socket message exchange
12 | public class WebSocketSessionAdapter: SessionAuthChallenger {
| `- note: add @available attribute to enclosing class
13 |
14 | public var additionalHTTPHeaders = [String: String]()
:
26 | private var connectContinuation: CheckedContinuation<WebSocketTask, Error>?
27 |
28 | private var disconnectContinuation: CheckedContinuation<URLSessionWebSocketTask.CloseCode, Error>?
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
29 |
30 | public required init() {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:58:51: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
56 |
57 | @discardableResult
58 | public func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
59 | defer { disconnectContinuation = nil }
60 | return try await withCheckedThrowingContinuation { [weak self] in self?.disconnectContinuation = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:85:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
| `- note: add @available attribute to enclosing instance method
84 | _ session: URLSession,
85 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
86 | didOpenWithProtocol protocol: String?
87 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:93:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
:
89 | }
90 |
91 | func urlSession(
| `- note: add @available attribute to enclosing instance method
92 | _ session: URLSession,
93 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
94 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
95 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:94:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
:
89 | }
90 |
91 | func urlSession(
| `- note: add @available attribute to enclosing instance method
92 | _ session: URLSession,
93 | webSocketTask: URLSessionWebSocketTask,
94 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
95 | reason: Data?
96 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionInterface.swift:34:44: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 |
10 | /// Interface between fundamental network session and its worker (web-socket service)
11 | public protocol WebSocketSessionInterface: AnyObject {
| `- note: add @available attribute to enclosing protocol
12 |
13 | /// Common HTTP headers applied to connection made within this session
:
32 |
33 | @discardableResult
34 | func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:12:20: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:14:36: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:16:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
:
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 |
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:20:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
:
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
19 |
20 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:1: error: protocol 'WebSocketTask' requires 'receive()' to be available in macOS 10.13 and newer
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- note: protocol requirement here
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
:
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| `- error: protocol 'WebSocketTask' requires 'receive()' to be available in macOS 10.13 and newer
24 |
Foundation.URLSessionWebSocketTask.receive:2:13: note: 'receive()' declared here
1 | class URLSessionWebSocketTask {
2 | public func receive() async throws -> URLSessionWebSocketTask.Message}
| `- note: 'receive()' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:1: error: protocol 'WebSocketTask' requires 'send' to be available in macOS 10.13 and newer
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- note: protocol requirement here
17 |
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
:
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| `- error: protocol 'WebSocketTask' requires 'send' to be available in macOS 10.13 and newer
24 |
Foundation.URLSessionWebSocketTask.send:2:13: note: 'send' declared here
1 | class URLSessionWebSocketTask {
2 | public func send(_ message: URLSessionWebSocketTask.Message) async throws}
| `- note: 'send' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:11: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
24 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:80:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
76 | }
77 |
78 | extension WebSocketWorker: WebSocketService {
| `- note: add @available attribute to enclosing extension
79 |
80 | public typealias Element = URLSessionWebSocketTask.Message
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
81 |
82 | public func makeAsyncIterator() -> AsyncIterator {
[3/39] Compiling NetworkXI WebSocketService.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:14:33: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
| | `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
15 |
16 | /// Establishing web-socket connection
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:11:35: error: 'AsyncSequence' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| | `- error: 'AsyncSequence' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:12:18: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:12:84: error: 'Iterator' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
| `- error: 'Iterator' is only available in macOS 10.15 or newer
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:26:38: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
10 | /// Adapter between fundamental web-socket and its worker (socket service);
11 | /// It's much better to use worker (WebSocketWorker) instead of applying adapter directly for socket message exchange
12 | public class WebSocketSessionAdapter: SessionAuthChallenger {
| `- note: add @available attribute to enclosing class
13 |
14 | public var additionalHTTPHeaders = [String: String]()
:
24 | private let sessionDelegate = SessionDelegationHandler()
25 |
26 | private var connectContinuation: CheckedContinuation<WebSocketTask, Error>?
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
27 |
28 | private var disconnectContinuation: CheckedContinuation<URLSessionWebSocketTask.CloseCode, Error>?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:28:41: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
10 | /// Adapter between fundamental web-socket and its worker (socket service);
11 | /// It's much better to use worker (WebSocketWorker) instead of applying adapter directly for socket message exchange
12 | public class WebSocketSessionAdapter: SessionAuthChallenger {
| `- note: add @available attribute to enclosing class
13 |
14 | public var additionalHTTPHeaders = [String: String]()
:
26 | private var connectContinuation: CheckedContinuation<WebSocketTask, Error>?
27 |
28 | private var disconnectContinuation: CheckedContinuation<URLSessionWebSocketTask.CloseCode, Error>?
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
29 |
30 | public required init() {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:58:51: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
56 |
57 | @discardableResult
58 | public func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
59 | defer { disconnectContinuation = nil }
60 | return try await withCheckedThrowingContinuation { [weak self] in self?.disconnectContinuation = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:85:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
| `- note: add @available attribute to enclosing instance method
84 | _ session: URLSession,
85 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
86 | didOpenWithProtocol protocol: String?
87 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:93:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
:
89 | }
90 |
91 | func urlSession(
| `- note: add @available attribute to enclosing instance method
92 | _ session: URLSession,
93 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
94 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
95 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:94:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
:
89 | }
90 |
91 | func urlSession(
| `- note: add @available attribute to enclosing instance method
92 | _ session: URLSession,
93 | webSocketTask: URLSessionWebSocketTask,
94 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
95 | reason: Data?
96 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:45:28: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
| `- note: add @available attribute to enclosing instance method
44 | let session = URLSession(configuration: .ephemeral, delegate: sessionDelegate, delegateQueue: .main)
45 | let task = session.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | task.resume()
47 | session.finishTasksAndInvalidate()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:54:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
| `- note: add @available attribute to enclosing instance method
44 | let session = URLSession(configuration: .ephemeral, delegate: sessionDelegate, delegateQueue: .main)
45 | let task = session.webSocketTask(with: request)
:
52 | }
53 |
54 | return try await withCheckedThrowingContinuation { [weak self] in self?.connectContinuation = $0 }
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:54:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:54:58: note: expanded code originates here
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
| `- note: add @available attribute to enclosing instance method
44 | let session = URLSession(configuration: .ephemeral, delegate: sessionDelegate, delegateQueue: .main)
45 | let task = session.webSocketTask(with: request)
:
52 | }
53 |
54 | return try await withCheckedThrowingContinuation { [weak self] in self?.connectContinuation = $0 }
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift
|52 |
|53 |
|54 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:60:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
56 |
57 | @discardableResult
58 | public func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode {
| `- note: add @available attribute to enclosing instance method
59 | defer { disconnectContinuation = nil }
60 | return try await withCheckedThrowingContinuation { [weak self] in self?.disconnectContinuation = $0 }
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:60:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:60:58: note: expanded code originates here
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
56 |
57 | @discardableResult
58 | public func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode {
| `- note: add @available attribute to enclosing instance method
59 | defer { disconnectContinuation = nil }
60 | return try await withCheckedThrowingContinuation { [weak self] in self?.disconnectContinuation = $0 }
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift
|58 |
|59 |
|60 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:72:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
69 | }
70 |
71 | public func ping(via task: WebSocketTask) async throws {
| `- note: add @available attribute to enclosing instance method
72 | return try await withCheckedThrowingContinuation { [weak task] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | task?.sendPing { error in
74 | if let error { return continuation.resume(throwing: error) }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:75:30: error: 'resume()' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
69 | }
70 |
71 | public func ping(via task: WebSocketTask) async throws {
| `- note: add @available attribute to enclosing instance method
72 | return try await withCheckedThrowingContinuation { [weak task] continuation in
73 | task?.sendPing { error in
74 | if let error { return continuation.resume(throwing: error) }
75 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:72:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:72:58: note: expanded code originates here
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
69 | }
70 |
71 | public func ping(via task: WebSocketTask) async throws {
| `- note: add @available attribute to enclosing instance method
72 | return try await withCheckedThrowingContinuation { [weak task] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift
|70 |
|71 |
|72 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
73 | task?.sendPing { error in
74 | if let error { return continuation.resume(throwing: error) }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionInterface.swift:34:44: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 |
10 | /// Interface between fundamental network session and its worker (web-socket service)
11 | public protocol WebSocketSessionInterface: AnyObject {
| `- note: add @available attribute to enclosing protocol
12 |
13 | /// Common HTTP headers applied to connection made within this session
:
32 |
33 | @discardableResult
34 | func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
35 | }
36 |
[4/39] Compiling NetworkXI WebSocketSessionAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:14:33: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
| | `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
15 |
16 | /// Establishing web-socket connection
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:11:35: error: 'AsyncSequence' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| | `- error: 'AsyncSequence' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:12:18: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:12:84: error: 'Iterator' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
| `- error: 'Iterator' is only available in macOS 10.15 or newer
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:26:38: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
10 | /// Adapter between fundamental web-socket and its worker (socket service);
11 | /// It's much better to use worker (WebSocketWorker) instead of applying adapter directly for socket message exchange
12 | public class WebSocketSessionAdapter: SessionAuthChallenger {
| `- note: add @available attribute to enclosing class
13 |
14 | public var additionalHTTPHeaders = [String: String]()
:
24 | private let sessionDelegate = SessionDelegationHandler()
25 |
26 | private var connectContinuation: CheckedContinuation<WebSocketTask, Error>?
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
27 |
28 | private var disconnectContinuation: CheckedContinuation<URLSessionWebSocketTask.CloseCode, Error>?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:28:41: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
10 | /// Adapter between fundamental web-socket and its worker (socket service);
11 | /// It's much better to use worker (WebSocketWorker) instead of applying adapter directly for socket message exchange
12 | public class WebSocketSessionAdapter: SessionAuthChallenger {
| `- note: add @available attribute to enclosing class
13 |
14 | public var additionalHTTPHeaders = [String: String]()
:
26 | private var connectContinuation: CheckedContinuation<WebSocketTask, Error>?
27 |
28 | private var disconnectContinuation: CheckedContinuation<URLSessionWebSocketTask.CloseCode, Error>?
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
29 |
30 | public required init() {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:58:51: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
56 |
57 | @discardableResult
58 | public func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
59 | defer { disconnectContinuation = nil }
60 | return try await withCheckedThrowingContinuation { [weak self] in self?.disconnectContinuation = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:85:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
| `- note: add @available attribute to enclosing instance method
84 | _ session: URLSession,
85 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
86 | didOpenWithProtocol protocol: String?
87 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:93:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
:
89 | }
90 |
91 | func urlSession(
| `- note: add @available attribute to enclosing instance method
92 | _ session: URLSession,
93 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
94 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
95 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:94:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
:
89 | }
90 |
91 | func urlSession(
| `- note: add @available attribute to enclosing instance method
92 | _ session: URLSession,
93 | webSocketTask: URLSessionWebSocketTask,
94 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
95 | reason: Data?
96 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:45:28: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
| `- note: add @available attribute to enclosing instance method
44 | let session = URLSession(configuration: .ephemeral, delegate: sessionDelegate, delegateQueue: .main)
45 | let task = session.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | task.resume()
47 | session.finishTasksAndInvalidate()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:54:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
| `- note: add @available attribute to enclosing instance method
44 | let session = URLSession(configuration: .ephemeral, delegate: sessionDelegate, delegateQueue: .main)
45 | let task = session.webSocketTask(with: request)
:
52 | }
53 |
54 | return try await withCheckedThrowingContinuation { [weak self] in self?.connectContinuation = $0 }
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:54:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:54:58: note: expanded code originates here
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
| `- note: add @available attribute to enclosing instance method
44 | let session = URLSession(configuration: .ephemeral, delegate: sessionDelegate, delegateQueue: .main)
45 | let task = session.webSocketTask(with: request)
:
52 | }
53 |
54 | return try await withCheckedThrowingContinuation { [weak self] in self?.connectContinuation = $0 }
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift
|52 |
|53 |
|54 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:60:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
56 |
57 | @discardableResult
58 | public func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode {
| `- note: add @available attribute to enclosing instance method
59 | defer { disconnectContinuation = nil }
60 | return try await withCheckedThrowingContinuation { [weak self] in self?.disconnectContinuation = $0 }
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:60:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:60:58: note: expanded code originates here
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
56 |
57 | @discardableResult
58 | public func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode {
| `- note: add @available attribute to enclosing instance method
59 | defer { disconnectContinuation = nil }
60 | return try await withCheckedThrowingContinuation { [weak self] in self?.disconnectContinuation = $0 }
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift
|58 |
|59 |
|60 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:72:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
69 | }
70 |
71 | public func ping(via task: WebSocketTask) async throws {
| `- note: add @available attribute to enclosing instance method
72 | return try await withCheckedThrowingContinuation { [weak task] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | task?.sendPing { error in
74 | if let error { return continuation.resume(throwing: error) }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:75:30: error: 'resume()' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
69 | }
70 |
71 | public func ping(via task: WebSocketTask) async throws {
| `- note: add @available attribute to enclosing instance method
72 | return try await withCheckedThrowingContinuation { [weak task] continuation in
73 | task?.sendPing { error in
74 | if let error { return continuation.resume(throwing: error) }
75 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:72:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:72:58: note: expanded code originates here
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
69 | }
70 |
71 | public func ping(via task: WebSocketTask) async throws {
| `- note: add @available attribute to enclosing instance method
72 | return try await withCheckedThrowingContinuation { [weak task] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift
|70 |
|71 |
|72 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
73 | task?.sendPing { error in
74 | if let error { return continuation.resume(throwing: error) }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionInterface.swift:34:44: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 |
10 | /// Interface between fundamental network session and its worker (web-socket service)
11 | public protocol WebSocketSessionInterface: AnyObject {
| `- note: add @available attribute to enclosing protocol
12 |
13 | /// Common HTTP headers applied to connection made within this session
:
32 |
33 | @discardableResult
34 | func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
35 | }
36 |
[5/39] Compiling NetworkXI WebSocketSessionInterface.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:14:33: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
| | `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
15 |
16 | /// Establishing web-socket connection
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:11:35: error: 'AsyncSequence' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| | `- error: 'AsyncSequence' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
13 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:12:18: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketService.swift:12:84: error: 'Iterator' is only available in macOS 10.15 or newer
9 |
10 | /// Base service for web-socket message exchange
11 | public protocol WebSocketService: AsyncSequence
| `- note: add @available attribute to enclosing protocol
12 | where Element == URLSessionWebSocketTask.Message, AsyncIterator == WebSocketStream.Iterator {
| `- error: 'Iterator' is only available in macOS 10.15 or newer
13 |
14 | typealias WebSocketStream = AsyncThrowingStream<Element, Error>
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:26:38: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
10 | /// Adapter between fundamental web-socket and its worker (socket service);
11 | /// It's much better to use worker (WebSocketWorker) instead of applying adapter directly for socket message exchange
12 | public class WebSocketSessionAdapter: SessionAuthChallenger {
| `- note: add @available attribute to enclosing class
13 |
14 | public var additionalHTTPHeaders = [String: String]()
:
24 | private let sessionDelegate = SessionDelegationHandler()
25 |
26 | private var connectContinuation: CheckedContinuation<WebSocketTask, Error>?
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
27 |
28 | private var disconnectContinuation: CheckedContinuation<URLSessionWebSocketTask.CloseCode, Error>?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:28:41: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
10 | /// Adapter between fundamental web-socket and its worker (socket service);
11 | /// It's much better to use worker (WebSocketWorker) instead of applying adapter directly for socket message exchange
12 | public class WebSocketSessionAdapter: SessionAuthChallenger {
| `- note: add @available attribute to enclosing class
13 |
14 | public var additionalHTTPHeaders = [String: String]()
:
26 | private var connectContinuation: CheckedContinuation<WebSocketTask, Error>?
27 |
28 | private var disconnectContinuation: CheckedContinuation<URLSessionWebSocketTask.CloseCode, Error>?
| `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
29 |
30 | public required init() {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:58:51: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
56 |
57 | @discardableResult
58 | public func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode {
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
59 | defer { disconnectContinuation = nil }
60 | return try await withCheckedThrowingContinuation { [weak self] in self?.disconnectContinuation = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:85:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
| `- note: add @available attribute to enclosing instance method
84 | _ session: URLSession,
85 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
86 | didOpenWithProtocol protocol: String?
87 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:93:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
:
89 | }
90 |
91 | func urlSession(
| `- note: add @available attribute to enclosing instance method
92 | _ session: URLSession,
93 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
94 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
95 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:94:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
79 | }
80 |
81 | extension WebSocketSessionAdapter: WebSocketLifeCycleService {
| `- note: add @available attribute to enclosing extension
82 |
83 | func urlSession(
:
89 | }
90 |
91 | func urlSession(
| `- note: add @available attribute to enclosing instance method
92 | _ session: URLSession,
93 | webSocketTask: URLSessionWebSocketTask,
94 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
95 | reason: Data?
96 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:45:28: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
| `- note: add @available attribute to enclosing instance method
44 | let session = URLSession(configuration: .ephemeral, delegate: sessionDelegate, delegateQueue: .main)
45 | let task = session.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | task.resume()
47 | session.finishTasksAndInvalidate()
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:54:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
| `- note: add @available attribute to enclosing instance method
44 | let session = URLSession(configuration: .ephemeral, delegate: sessionDelegate, delegateQueue: .main)
45 | let task = session.webSocketTask(with: request)
:
52 | }
53 |
54 | return try await withCheckedThrowingContinuation { [weak self] in self?.connectContinuation = $0 }
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:54:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:54:58: note: expanded code originates here
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
| `- note: add @available attribute to enclosing instance method
44 | let session = URLSession(configuration: .ephemeral, delegate: sessionDelegate, delegateQueue: .main)
45 | let task = session.webSocketTask(with: request)
:
52 | }
53 |
54 | return try await withCheckedThrowingContinuation { [weak self] in self?.connectContinuation = $0 }
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift
|52 |
|53 |
|54 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:60:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
56 |
57 | @discardableResult
58 | public func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode {
| `- note: add @available attribute to enclosing instance method
59 | defer { disconnectContinuation = nil }
60 | return try await withCheckedThrowingContinuation { [weak self] in self?.disconnectContinuation = $0 }
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:60:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:60:58: note: expanded code originates here
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
56 |
57 | @discardableResult
58 | public func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode {
| `- note: add @available attribute to enclosing instance method
59 | defer { disconnectContinuation = nil }
60 | return try await withCheckedThrowingContinuation { [weak self] in self?.disconnectContinuation = $0 }
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift
|58 |
|59 |
|60 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:72:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
69 | }
70 |
71 | public func ping(via task: WebSocketTask) async throws {
| `- note: add @available attribute to enclosing instance method
72 | return try await withCheckedThrowingContinuation { [weak task] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | task?.sendPing { error in
74 | if let error { return continuation.resume(throwing: error) }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:75:30: error: 'resume()' is only available in macOS 10.15 or newer
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
69 | }
70 |
71 | public func ping(via task: WebSocketTask) async throws {
| `- note: add @available attribute to enclosing instance method
72 | return try await withCheckedThrowingContinuation { [weak task] continuation in
73 | task?.sendPing { error in
74 | if let error { return continuation.resume(throwing: error) }
75 | continuation.resume()
| |- error: 'resume()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:72:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift:72:58: note: expanded code originates here
39 | }
40 |
41 | extension WebSocketSessionAdapter: WebSocketSessionInterface {
| `- note: add @available attribute to enclosing extension
42 |
43 | public func resumedTask(with request: URLRequest) async throws -> WebSocketTask {
:
69 | }
70 |
71 | public func ping(via task: WebSocketTask) async throws {
| `- note: add @available attribute to enclosing instance method
72 | return try await withCheckedThrowingContinuation { [weak task] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionAdapter.swift
|70 |
|71 |
|72 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
73 | task?.sendPing { error in
74 | if let error { return continuation.resume(throwing: error) }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketSessionInterface.swift:34:44: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
9 |
10 | /// Interface between fundamental network session and its worker (web-socket service)
11 | public protocol WebSocketSessionInterface: AnyObject {
| `- note: add @available attribute to enclosing protocol
12 |
13 | /// Common HTTP headers applied to connection made within this session
:
32 |
33 | @discardableResult
34 | func awaitDisconnect() async throws -> URLSessionWebSocketTask.CloseCode
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
35 | }
36 |
[6/39] Compiling NetworkXI NetworkSessionInterface.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionAuthChallenger.swift:28:29: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
10 | protocol SessionAuthChallenger: SessionAuthChallengeService {}
11 |
12 | extension SessionAuthChallenger {
| `- note: add @available attribute to enclosing extension
13 |
14 | func urlSession(
| `- note: add @available attribute to enclosing instance method
15 | _ session: URLSession,
16 | didReceive challenge: URLAuthenticationChallenge
:
26 | if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
27 | let serverTrust = challenge.protectionSpace.serverTrust {
28 | let isTrusted = SecTrustEvaluateWithError(serverTrust, nil)
| |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
29 |
30 | if isTrusted, let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:64:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
63 | _ session: URLSession,
64 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
65 | didOpenWithProtocol protocol: String?
66 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:72:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
:
68 | }
69 |
70 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
71 | _ session: URLSession,
72 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
73 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
74 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:73:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
:
68 | }
69 |
70 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
71 | _ session: URLSession,
72 | webSocketTask: URLSessionWebSocketTask,
73 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
74 | reason: Data?
75 | ) {
[7/39] Compiling NetworkXI SessionAuthChallengeService.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionAuthChallenger.swift:28:29: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
10 | protocol SessionAuthChallenger: SessionAuthChallengeService {}
11 |
12 | extension SessionAuthChallenger {
| `- note: add @available attribute to enclosing extension
13 |
14 | func urlSession(
| `- note: add @available attribute to enclosing instance method
15 | _ session: URLSession,
16 | didReceive challenge: URLAuthenticationChallenge
:
26 | if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
27 | let serverTrust = challenge.protectionSpace.serverTrust {
28 | let isTrusted = SecTrustEvaluateWithError(serverTrust, nil)
| |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
29 |
30 | if isTrusted, let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:64:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
63 | _ session: URLSession,
64 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
65 | didOpenWithProtocol protocol: String?
66 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:72:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
:
68 | }
69 |
70 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
71 | _ session: URLSession,
72 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
73 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
74 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:73:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
:
68 | }
69 |
70 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
71 | _ session: URLSession,
72 | webSocketTask: URLSessionWebSocketTask,
73 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
74 | reason: Data?
75 | ) {
[8/39] Compiling NetworkXI SessionAuthChallenger.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionAuthChallenger.swift:28:29: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
10 | protocol SessionAuthChallenger: SessionAuthChallengeService {}
11 |
12 | extension SessionAuthChallenger {
| `- note: add @available attribute to enclosing extension
13 |
14 | func urlSession(
| `- note: add @available attribute to enclosing instance method
15 | _ session: URLSession,
16 | didReceive challenge: URLAuthenticationChallenge
:
26 | if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
27 | let serverTrust = challenge.protectionSpace.serverTrust {
28 | let isTrusted = SecTrustEvaluateWithError(serverTrust, nil)
| |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
29 |
30 | if isTrusted, let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:64:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
63 | _ session: URLSession,
64 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
65 | didOpenWithProtocol protocol: String?
66 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:72:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
:
68 | }
69 |
70 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
71 | _ session: URLSession,
72 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
73 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
74 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:73:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
:
68 | }
69 |
70 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
71 | _ session: URLSession,
72 | webSocketTask: URLSessionWebSocketTask,
73 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
74 | reason: Data?
75 | ) {
[9/39] Compiling NetworkXI SessionDelegationHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionAuthChallenger.swift:28:29: error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
10 | protocol SessionAuthChallenger: SessionAuthChallengeService {}
11 |
12 | extension SessionAuthChallenger {
| `- note: add @available attribute to enclosing extension
13 |
14 | func urlSession(
| `- note: add @available attribute to enclosing instance method
15 | _ session: URLSession,
16 | didReceive challenge: URLAuthenticationChallenge
:
26 | if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
27 | let serverTrust = challenge.protectionSpace.serverTrust {
28 | let isTrusted = SecTrustEvaluateWithError(serverTrust, nil)
| |- error: 'SecTrustEvaluateWithError' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
29 |
30 | if isTrusted, let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:64:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
63 | _ session: URLSession,
64 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
65 | didOpenWithProtocol protocol: String?
66 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:72:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
:
68 | }
69 |
70 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
71 | _ session: URLSession,
72 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
73 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
74 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session/SessionDelegationHandler.swift:73:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
58 | }
59 |
60 | extension SessionDelegationHandler: URLSessionWebSocketDelegate {
| `- note: add @available attribute to enclosing extension
61 |
62 | public func urlSession(
:
68 | }
69 |
70 | public func urlSession(
| `- note: add @available attribute to enclosing instance method
71 | _ session: URLSession,
72 | webSocketTask: URLSessionWebSocketTask,
73 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
74 | reason: Data?
75 | ) {
[10/39] Compiling NetworkXI RequestMethod.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:33:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Classic implementation of adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class ClassicNetworkSessionAdapter: SessionAuthChallenger, SessionLifeCycle, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
31 | var networkIsReachable = false
32 |
33 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|94 |
|95 |
|96 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|111 |
|112 |
|113 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:31:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class NetworkSessionAdapter: SessionAuthChallenger, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
29 | var networkIsReachable = false
30 |
31 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
32 |
33 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:72:34: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
69 | }
70 |
71 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
72 | return try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:76:34: error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
73 | }
74 |
75 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
76 | return try await session.upload(for: request, from: bodyData)
| |- error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
77 | }
78 |
[11/39] Compiling NetworkXI RequestURL.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:33:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Classic implementation of adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class ClassicNetworkSessionAdapter: SessionAuthChallenger, SessionLifeCycle, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
31 | var networkIsReachable = false
32 |
33 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|94 |
|95 |
|96 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|111 |
|112 |
|113 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:31:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class NetworkSessionAdapter: SessionAuthChallenger, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
29 | var networkIsReachable = false
30 |
31 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
32 |
33 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:72:34: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
69 | }
70 |
71 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
72 | return try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:76:34: error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
73 | }
74 |
75 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
76 | return try await session.upload(for: request, from: bodyData)
| |- error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
77 | }
78 |
[12/39] Compiling NetworkXI ClassicNetworkSessionAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:33:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Classic implementation of adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class ClassicNetworkSessionAdapter: SessionAuthChallenger, SessionLifeCycle, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
31 | var networkIsReachable = false
32 |
33 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|94 |
|95 |
|96 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|111 |
|112 |
|113 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:31:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class NetworkSessionAdapter: SessionAuthChallenger, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
29 | var networkIsReachable = false
30 |
31 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
32 |
33 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:72:34: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
69 | }
70 |
71 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
72 | return try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:76:34: error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
73 | }
74 |
75 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
76 | return try await session.upload(for: request, from: bodyData)
| |- error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
77 | }
78 |
[13/39] Compiling NetworkXI NetworkSessionAdapter.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:33:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Classic implementation of adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class ClassicNetworkSessionAdapter: SessionAuthChallenger, SessionLifeCycle, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
31 | var networkIsReachable = false
32 |
33 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
34 |
35 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:96:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
93 | }
94 |
95 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
96 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|94 |
|95 |
|96 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
97 | guard let adapter = self else { return }
98 | adapter.dataTask(with: request) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift:113:58: note: expanded code originates here
67 | }
68 |
69 | extension ClassicNetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
70 |
71 | @discardableResult
:
110 | }
111 |
112 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
113 | return try await withCheckedThrowingContinuation { [weak self] continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/ClassicNetworkSessionAdapter.swift
|111 |
|112 |
|113 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+----------------------------------------------------------------------------------------------------------------------
114 | guard let adapter = self else { return }
115 | adapter.uploadTask(with: request, from: bodyData) { data, response, error in
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:31:29: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
11 | /// Adapter between fundamental network session and its worker (request maker);
12 | /// It's much better to use worker (NetworkService) instead of applying adapter directly for network tasks
13 | public class NetworkSessionAdapter: SessionAuthChallenger, NetworkConnectionChecker {
| `- note: add @available attribute to enclosing class
14 |
15 | public var defaultSSLChallengeEnabled = false
:
29 | var networkIsReachable = false
30 |
31 | let connectionMonitor = NWPathMonitor()
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
32 |
33 | let connectionMonitorQueue = DispatchQueue(label: String(describing: NetworkConnectionChecker.self))
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:72:34: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
69 | }
70 |
71 | public func make(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
72 | return try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
73 | }
74 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Session interface/NetworkSessionAdapter.swift:76:34: error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
43 | }
44 |
45 | extension NetworkSessionAdapter: NetworkSessionInterface {
| `- note: add @available attribute to enclosing extension
46 |
47 | @discardableResult
:
73 | }
74 |
75 | public func make(_ request: URLRequest, with bodyData: Data) async throws -> (Data, URLResponse) {
| `- note: add @available attribute to enclosing instance method
76 | return try await session.upload(for: request, from: bodyData)
| |- error: 'upload(for:from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
77 | }
78 |
[14/39] Compiling NetworkXI SessionLifeCycle.swift
[15/39] Compiling NetworkXI SessionLifeCycleService.swift
[16/39] Compiling NetworkXI SessionRenewalService.swift
[17/39] Compiling NetworkXI SessionTaskKeeper.swift
[18/39] Compiling NetworkXI SuccessResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Utils/Data+extension.swift:44:82: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
37 | }
38 |
39 | fileprivate extension Data {
| `- note: add @available attribute to enclosing extension
40 |
41 | func getJsonString(pretty: Bool = false) -> String? {
| `- note: add @available attribute to enclosing instance method
42 | var writingOptions: JSONSerialization.WritingOptions = [.fragmentsAllowed]
43 | if pretty {
44 | writingOptions = writingOptions.union([.prettyPrinted, .sortedKeys, .withoutEscapingSlashes])
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 |
[19/39] Compiling NetworkXI Data+extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Utils/Data+extension.swift:44:82: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
37 | }
38 |
39 | fileprivate extension Data {
| `- note: add @available attribute to enclosing extension
40 |
41 | func getJsonString(pretty: Bool = false) -> String? {
| `- note: add @available attribute to enclosing instance method
42 | var writingOptions: JSONSerialization.WritingOptions = [.fragmentsAllowed]
43 | if pretty {
44 | writingOptions = writingOptions.union([.prettyPrinted, .sortedKeys, .withoutEscapingSlashes])
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 |
[20/39] Compiling NetworkXI PathInitializable.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Utils/Data+extension.swift:44:82: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
37 | }
38 |
39 | fileprivate extension Data {
| `- note: add @available attribute to enclosing extension
40 |
41 | func getJsonString(pretty: Bool = false) -> String? {
| `- note: add @available attribute to enclosing instance method
42 | var writingOptions: JSONSerialization.WritingOptions = [.fragmentsAllowed]
43 | if pretty {
44 | writingOptions = writingOptions.union([.prettyPrinted, .sortedKeys, .withoutEscapingSlashes])
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 |
[21/39] Compiling NetworkXI String+extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/Utils/Data+extension.swift:44:82: error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
37 | }
38 |
39 | fileprivate extension Data {
| `- note: add @available attribute to enclosing extension
40 |
41 | func getJsonString(pretty: Bool = false) -> String? {
| `- note: add @available attribute to enclosing instance method
42 | var writingOptions: JSONSerialization.WritingOptions = [.fragmentsAllowed]
43 | if pretty {
44 | writingOptions = writingOptions.union([.prettyPrinted, .sortedKeys, .withoutEscapingSlashes])
| |- error: 'withoutEscapingSlashes' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 |
[22/39] Compiling NetworkXI NetworkConnectionChecker.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/NetworkConnectionChecker.swift:12:28: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
8 | import Network
9 |
10 | protocol NetworkConnectionChecker: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var connectionMonitor: NWPathMonitor { get }
| | `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing property
13 |
14 | var connectionMonitorQueue: DispatchQueue { get }
[23/39] Compiling NetworkXI NetworkError.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/NetworkConnectionChecker.swift:12:28: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
8 | import Network
9 |
10 | protocol NetworkConnectionChecker: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var connectionMonitor: NWPathMonitor { get }
| | `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing property
13 |
14 | var connectionMonitorQueue: DispatchQueue { get }
[24/39] Compiling NetworkXI NetworkLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/NetworkConnectionChecker.swift:12:28: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
8 | import Network
9 |
10 | protocol NetworkConnectionChecker: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var connectionMonitor: NWPathMonitor { get }
| | `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing property
13 |
14 | var connectionMonitorQueue: DispatchQueue { get }
[25/39] Compiling NetworkXI NetworkRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/NetworkConnectionChecker.swift:12:28: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
8 | import Network
9 |
10 | protocol NetworkConnectionChecker: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var connectionMonitor: NWPathMonitor { get }
| | `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing property
13 |
14 | var connectionMonitorQueue: DispatchQueue { get }
[26/39] Compiling NetworkXI NetworkResponse.swift
[27/39] Compiling NetworkXI NetworkService.swift
[28/39] Compiling NetworkXI NetworkWorker.swift
[29/39] Compiling NetworkXI RequestContentEncoding.swift
[30/39] Compiling NetworkXI WebSocketLifeCycleService.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:14:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
| `- note: add @available attribute to enclosing instance method
13 | _ session: URLSession,
14 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
15 | didOpenWithProtocol protocol: String?
16 | )
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:20:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
:
16 | )
17 |
18 | func urlSession(
| `- note: add @available attribute to enclosing instance method
19 | _ session: URLSession,
20 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
22 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:21:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
:
16 | )
17 |
18 | func urlSession(
| `- note: add @available attribute to enclosing instance method
19 | _ session: URLSession,
20 | webSocketTask: URLSessionWebSocketTask,
21 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
22 | reason: Data?
23 | )
[31/39] Compiling NetworkXI WebSocketLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:14:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
| `- note: add @available attribute to enclosing instance method
13 | _ session: URLSession,
14 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
15 | didOpenWithProtocol protocol: String?
16 | )
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:20:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
:
16 | )
17 |
18 | func urlSession(
| `- note: add @available attribute to enclosing instance method
19 | _ session: URLSession,
20 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
22 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:21:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
:
16 | )
17 |
18 | func urlSession(
| `- note: add @available attribute to enclosing instance method
19 | _ session: URLSession,
20 | webSocketTask: URLSessionWebSocketTask,
21 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
22 | reason: Data?
23 | )
[32/39] Compiling NetworkXI WebSocketRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:14:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
| `- note: add @available attribute to enclosing instance method
13 | _ session: URLSession,
14 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
15 | didOpenWithProtocol protocol: String?
16 | )
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:20:24: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
:
16 | )
17 |
18 | func urlSession(
| `- note: add @available attribute to enclosing instance method
19 | _ session: URLSession,
20 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
22 | reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketLifeCycleService.swift:21:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | protocol WebSocketLifeCycleService: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | func urlSession(
:
16 | )
17 |
18 | func urlSession(
| `- note: add @available attribute to enclosing instance method
19 | _ session: URLSession,
20 | webSocketTask: URLSessionWebSocketTask,
21 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
22 | reason: Data?
23 | )
[33/39] Compiling NetworkXI WebSocketTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:12:20: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:14:36: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:16:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
:
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 |
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:20:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
:
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
19 |
20 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:1: error: protocol 'WebSocketTask' requires 'receive()' to be available in macOS 10.13 and newer
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- note: protocol requirement here
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
:
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| `- error: protocol 'WebSocketTask' requires 'receive()' to be available in macOS 10.13 and newer
24 |
Foundation.URLSessionWebSocketTask.receive:2:13: note: 'receive()' declared here
1 | class URLSessionWebSocketTask {
2 | public func receive() async throws -> URLSessionWebSocketTask.Message}
| `- note: 'receive()' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:1: error: protocol 'WebSocketTask' requires 'send' to be available in macOS 10.13 and newer
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- note: protocol requirement here
17 |
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
:
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| `- error: protocol 'WebSocketTask' requires 'send' to be available in macOS 10.13 and newer
24 |
Foundation.URLSessionWebSocketTask.send:2:13: note: 'send' declared here
1 | class URLSessionWebSocketTask {
2 | public func send(_ message: URLSessionWebSocketTask.Message) async throws}
| `- note: 'send' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:11: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
24 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:80:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
76 | }
77 |
78 | extension WebSocketWorker: WebSocketService {
| `- note: add @available attribute to enclosing extension
79 |
80 | public typealias Element = URLSessionWebSocketTask.Message
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
81 |
82 | public func makeAsyncIterator() -> AsyncIterator {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:25:26: warning: reference to property 'task' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
23 | self?.streamContinuation = continuation
24 |
25 | Task { [weak task] in
| `- warning: reference to property 'task' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
26 | guard let task else { return }
27 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:30:28: warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
28 | while task.closeCode == .invalid {
29 | let message = try await task.receive()
30 | if sessionInterface.loggingEnabled {
| `- warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
31 | if case .string(let string) = message {
32 | WebSocketLogger.log(receivedMessage: string)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:41:24: warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
39 | }
40 | } catch {
41 | if sessionInterface.loggingEnabled { WebSocketLogger.log(error: error) }
| `- warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
42 | continuation.finish(throwing: error)
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:25:13: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
19 | private var stream: WebSocketStream?
20 |
21 | private var newStream: WebSocketStream {
| `- note: add @available attribute to enclosing property
22 | return WebSocketStream { [weak self] continuation in
23 | self?.streamContinuation = continuation
24 |
25 | Task { [weak task] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | guard let task else { return }
27 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:25:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
19 | private var stream: WebSocketStream?
20 |
21 | private var newStream: WebSocketStream {
| `- note: add @available attribute to enclosing property
22 | return WebSocketStream { [weak self] continuation in
23 | self?.streamContinuation = continuation
24 |
25 | Task { [weak task] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | guard let task else { return }
27 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:55:9: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
53 |
54 | deinit {
55 | Task { try await disconnect() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:55:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
53 |
54 | deinit {
55 | Task { try await disconnect() }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:55:14: warning: capture of 'self' in a closure that outlives deinit; this is an error in the Swift 6 language mode
53 |
54 | deinit {
55 | Task { try await disconnect() }
| `- warning: capture of 'self' in a closure that outlives deinit; this is an error in the Swift 6 language mode
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:88:23: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
76 | }
77 |
78 | extension WebSocketWorker: WebSocketService {
| `- note: add @available attribute to enclosing extension
79 |
80 | public typealias Element = URLSessionWebSocketTask.Message
81 |
82 | public func makeAsyncIterator() -> AsyncIterator {
| `- note: add @available attribute to enclosing instance method
83 | guard let stream else {
84 | stream = newStream
:
86 | }
87 |
88 | return stream.makeAsyncIterator()
| |- error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 |
[34/39] Compiling NetworkXI WebSocketURL.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:12:20: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:14:36: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:16:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
:
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 |
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:20:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
:
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
19 |
20 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:1: error: protocol 'WebSocketTask' requires 'receive()' to be available in macOS 10.13 and newer
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- note: protocol requirement here
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
:
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| `- error: protocol 'WebSocketTask' requires 'receive()' to be available in macOS 10.13 and newer
24 |
Foundation.URLSessionWebSocketTask.receive:2:13: note: 'receive()' declared here
1 | class URLSessionWebSocketTask {
2 | public func receive() async throws -> URLSessionWebSocketTask.Message}
| `- note: 'receive()' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:1: error: protocol 'WebSocketTask' requires 'send' to be available in macOS 10.13 and newer
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- note: protocol requirement here
17 |
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
:
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| `- error: protocol 'WebSocketTask' requires 'send' to be available in macOS 10.13 and newer
24 |
Foundation.URLSessionWebSocketTask.send:2:13: note: 'send' declared here
1 | class URLSessionWebSocketTask {
2 | public func send(_ message: URLSessionWebSocketTask.Message) async throws}
| `- note: 'send' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:11: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
24 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:80:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
76 | }
77 |
78 | extension WebSocketWorker: WebSocketService {
| `- note: add @available attribute to enclosing extension
79 |
80 | public typealias Element = URLSessionWebSocketTask.Message
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
81 |
82 | public func makeAsyncIterator() -> AsyncIterator {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:25:26: warning: reference to property 'task' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
23 | self?.streamContinuation = continuation
24 |
25 | Task { [weak task] in
| `- warning: reference to property 'task' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
26 | guard let task else { return }
27 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:30:28: warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
28 | while task.closeCode == .invalid {
29 | let message = try await task.receive()
30 | if sessionInterface.loggingEnabled {
| `- warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
31 | if case .string(let string) = message {
32 | WebSocketLogger.log(receivedMessage: string)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:41:24: warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
39 | }
40 | } catch {
41 | if sessionInterface.loggingEnabled { WebSocketLogger.log(error: error) }
| `- warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
42 | continuation.finish(throwing: error)
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:25:13: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
19 | private var stream: WebSocketStream?
20 |
21 | private var newStream: WebSocketStream {
| `- note: add @available attribute to enclosing property
22 | return WebSocketStream { [weak self] continuation in
23 | self?.streamContinuation = continuation
24 |
25 | Task { [weak task] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | guard let task else { return }
27 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:25:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
19 | private var stream: WebSocketStream?
20 |
21 | private var newStream: WebSocketStream {
| `- note: add @available attribute to enclosing property
22 | return WebSocketStream { [weak self] continuation in
23 | self?.streamContinuation = continuation
24 |
25 | Task { [weak task] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | guard let task else { return }
27 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:55:9: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
53 |
54 | deinit {
55 | Task { try await disconnect() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:55:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
53 |
54 | deinit {
55 | Task { try await disconnect() }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:55:14: warning: capture of 'self' in a closure that outlives deinit; this is an error in the Swift 6 language mode
53 |
54 | deinit {
55 | Task { try await disconnect() }
| `- warning: capture of 'self' in a closure that outlives deinit; this is an error in the Swift 6 language mode
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:88:23: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
76 | }
77 |
78 | extension WebSocketWorker: WebSocketService {
| `- note: add @available attribute to enclosing extension
79 |
80 | public typealias Element = URLSessionWebSocketTask.Message
81 |
82 | public func makeAsyncIterator() -> AsyncIterator {
| `- note: add @available attribute to enclosing instance method
83 | guard let stream else {
84 | stream = newStream
:
86 | }
87 |
88 | return stream.makeAsyncIterator()
| |- error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 |
[35/39] Compiling NetworkXI WebSocketWorker.swift
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:12:20: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:14:36: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:16:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
:
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 |
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:20:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | public protocol WebSocketTask: AnyObject {
| `- note: add @available attribute to enclosing protocol
11 |
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
:
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
19 |
20 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:1: error: protocol 'WebSocketTask' requires 'receive()' to be available in macOS 10.13 and newer
12 | var closeCode: URLSessionWebSocketTask.CloseCode { get }
13 |
14 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- note: protocol requirement here
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
:
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| `- error: protocol 'WebSocketTask' requires 'receive()' to be available in macOS 10.13 and newer
24 |
Foundation.URLSessionWebSocketTask.receive:2:13: note: 'receive()' declared here
1 | class URLSessionWebSocketTask {
2 | public func receive() async throws -> URLSessionWebSocketTask.Message}
| `- note: 'receive()' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:1: error: protocol 'WebSocketTask' requires 'send' to be available in macOS 10.13 and newer
14 | func receive() async throws -> URLSessionWebSocketTask.Message
15 |
16 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- note: protocol requirement here
17 |
18 | func sendPing(pongReceiveHandler: @escaping @Sendable (Error?) -> Void)
:
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| `- error: protocol 'WebSocketTask' requires 'send' to be available in macOS 10.13 and newer
24 |
Foundation.URLSessionWebSocketTask.send:2:13: note: 'send' declared here
1 | class URLSessionWebSocketTask {
2 | public func send(_ message: URLSessionWebSocketTask.Message) async throws}
| `- note: 'send' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketTask.swift:23:11: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | }
22 |
23 | extension URLSessionWebSocketTask: WebSocketTask {}
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
24 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:80:32: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
76 | }
77 |
78 | extension WebSocketWorker: WebSocketService {
| `- note: add @available attribute to enclosing extension
79 |
80 | public typealias Element = URLSessionWebSocketTask.Message
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
81 |
82 | public func makeAsyncIterator() -> AsyncIterator {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:25:26: warning: reference to property 'task' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
23 | self?.streamContinuation = continuation
24 |
25 | Task { [weak task] in
| `- warning: reference to property 'task' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
26 | guard let task else { return }
27 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:30:28: warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
28 | while task.closeCode == .invalid {
29 | let message = try await task.receive()
30 | if sessionInterface.loggingEnabled {
| `- warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
31 | if case .string(let string) = message {
32 | WebSocketLogger.log(receivedMessage: string)
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:41:24: warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
39 | }
40 | } catch {
41 | if sessionInterface.loggingEnabled { WebSocketLogger.log(error: error) }
| `- warning: reference to property 'sessionInterface' in closure requires explicit use of 'self' to make capture semantics explicit; this is an error in the Swift 6 language mode
42 | continuation.finish(throwing: error)
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:25:13: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
19 | private var stream: WebSocketStream?
20 |
21 | private var newStream: WebSocketStream {
| `- note: add @available attribute to enclosing property
22 | return WebSocketStream { [weak self] continuation in
23 | self?.streamContinuation = continuation
24 |
25 | Task { [weak task] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | guard let task else { return }
27 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:25:13: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
19 | private var stream: WebSocketStream?
20 |
21 | private var newStream: WebSocketStream {
| `- note: add @available attribute to enclosing property
22 | return WebSocketStream { [weak self] continuation in
23 | self?.streamContinuation = continuation
24 |
25 | Task { [weak task] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | guard let task else { return }
27 | do {
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:55:9: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
53 |
54 | deinit {
55 | Task { try await disconnect() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:55:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
9 |
10 | /// Worker class intended for web-socket tasks
11 | public class WebSocketWorker {
| `- note: add @available attribute to enclosing class
12 |
13 | private let sessionInterface: WebSocketSessionInterface
:
53 |
54 | deinit {
55 | Task { try await disconnect() }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:55:14: warning: capture of 'self' in a closure that outlives deinit; this is an error in the Swift 6 language mode
53 |
54 | deinit {
55 | Task { try await disconnect() }
| `- warning: capture of 'self' in a closure that outlives deinit; this is an error in the Swift 6 language mode
56 | }
57 |
/Users/admin/builder/spi-builder-workspace/Sources/NetworkXI/WebSocket/WebSocketWorker.swift:88:23: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
76 | }
77 |
78 | extension WebSocketWorker: WebSocketService {
| `- note: add @available attribute to enclosing extension
79 |
80 | public typealias Element = URLSessionWebSocketTask.Message
81 |
82 | public func makeAsyncIterator() -> AsyncIterator {
| `- note: add @available attribute to enclosing instance method
83 | guard let stream else {
84 | stream = newStream
:
86 | }
87 |
88 | return stream.makeAsyncIterator()
| |- error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 |
[36/39] Compiling NetworkXI ConsoleLogger.swift
[37/39] Compiling NetworkXI FailureResponse.swift
[38/39] Compiling NetworkXI MultipartFormDataRequest.swift
[39/39] Compiling NetworkXI NetworkCompose.swift
BUILD FAILURE 6.1 macosSpm