Build Information
Failed to build EZNetworking, reference main (973335), with Swift 6.2 for macOS (SPM) on 15 Dec 2025 04:17:43 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64Build Log
| `- note: add '@available' attribute to enclosing instance method
59 | Future { promise in
60 | performDataTask(request: request, decodeTo: decodableObject) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:39:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public struct RequestPerformer: RequestPerformable {
| `- note: add '@available' attribute to enclosing struct
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
36 |
37 | // MARK: Async Await
38 | public func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
39 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | performDataTask(request: request, decodeTo: decodableObject, completion: { result in
41 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:39:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:39:51: note: expanded code originates here
2 | import Foundation
3 |
4 | public struct RequestPerformer: RequestPerformable {
| `- note: add '@available' attribute to enclosing struct
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
36 |
37 | // MARK: Async Await
38 | public func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T {
| `- note: add '@available' attribute to enclosing instance method
39 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift
|37 |
|38 |
|39 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-----------------------------------------------------------------------------------------------------------
40 | performDataTask(request: request, decodeTo: decodableObject, completion: { result in
41 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:59:9: error: 'Future' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public struct RequestPerformer: RequestPerformable {
| `- note: add '@available' attribute to enclosing struct
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
56 |
57 | // MARK: Publisher
58 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
59 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | performDataTask(request: request, decodeTo: decodableObject) { result in
61 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:64:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public struct RequestPerformer: RequestPerformable {
| `- note: add '@available' attribute to enclosing struct
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
56 |
57 | // MARK: Publisher
58 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
59 | Future { promise in
60 | performDataTask(request: request, decodeTo: decodableObject) { result in
:
62 | }
63 | }
64 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | }
66 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:82:56: warning: capture of 'decodableObject' with non-Sendable type 'T.Type' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
80 | let validData = try validator.validateData(data)
81 |
82 | let result = try requestDecoder.decode(decodableObject, from: validData)
| `- warning: capture of 'decodableObject' with non-Sendable type 'T.Type' in a '@Sendable' closure; this is an error in the Swift 6 language mode [#SendableClosureCaptures]
83 | completion(.success(result))
84 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/DataUploader/DataUploader.swift:63:111: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class DataUploader: DataUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
61 | // MARK: Publisher
62 |
63 | public func uploadDataPublisher(_ data: Data, with request: Request, progress: UploadProgressHandler?) -> AnyPublisher<Data, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
64 | Future { promise in
65 | _ = self._uploadDataTask(data, with: request, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/DataUploader/DataUploader.swift:74:74: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class DataUploader: DataUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
72 | // MARK: Async Stream
73 |
74 | public func uploadDataStream(_ data: Data, with request: Request) -> AsyncStream<UploadStreamEvent> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
75 | AsyncStream { continuation in
76 | let progressHandler: UploadProgressHandler = { progress in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/DataUploader/DataUploader.swift:42:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class DataUploader: DataUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
39 | // MARK: Async Await
40 |
41 | public func uploadData(_ data: Data, with request: Request, progress: UploadProgressHandler?) async throws -> Data {
| `- note: add '@available' attribute to enclosing instance method
42 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | self._uploadDataTask(data, with: request, progress: progress) { result in
44 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/DataUploader/DataUploader.swift:42:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/DataUploader/DataUploader.swift:42:51: note: expanded code originates here
2 | import Combine
3 |
4 | public class DataUploader: DataUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
39 | // MARK: Async Await
40 |
41 | public func uploadData(_ data: Data, with request: Request, progress: UploadProgressHandler?) async throws -> Data {
| `- note: add '@available' attribute to enclosing instance method
42 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/DataUploader/DataUploader.swift
|40 |
|41 |
|42 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------
43 | self._uploadDataTask(data, with: request, progress: progress) { result in
44 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/DataUploader/DataUploader.swift:64:9: error: 'Future' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class DataUploader: DataUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
61 | // MARK: Publisher
62 |
63 | public func uploadDataPublisher(_ data: Data, with request: Request, progress: UploadProgressHandler?) -> AnyPublisher<Data, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
64 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | _ = self._uploadDataTask(data, with: request, progress: progress) { result in
66 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/DataUploader/DataUploader.swift:69:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class DataUploader: DataUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
61 | // MARK: Publisher
62 |
63 | public func uploadDataPublisher(_ data: Data, with request: Request, progress: UploadProgressHandler?) -> AnyPublisher<Data, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
64 | Future { promise in
65 | _ = self._uploadDataTask(data, with: request, progress: progress) { result in
:
67 | }
68 | }
69 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/DataUploader/DataUploader.swift:75:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class DataUploader: DataUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
72 | // MARK: Async Stream
73 |
74 | public func uploadDataStream(_ data: Data, with request: Request) -> AsyncStream<UploadStreamEvent> {
| `- note: add '@available' attribute to enclosing instance method
75 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | let progressHandler: UploadProgressHandler = { progress in
77 | continuation.yield(.progress(progress))
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/DataUploader/Protocols/DataUploadable.swift:7:104: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public protocol DataUploadable {
| `- note: add '@available' attribute to enclosing protocol
5 | func uploadData(_ data: Data, with request: Request, progress: UploadProgressHandler?) async throws -> Data
6 | func uploadDataTask(_ data: Data, with request: Request, progress: UploadProgressHandler?, completion: @escaping(UploadCompletionHandler)) -> URLSessionUploadTask?
7 | func uploadDataPublisher(_ data: Data, with request: Request, progress: UploadProgressHandler?) -> AnyPublisher<Data, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
8 | func uploadDataStream(_ data: Data, with request: Request) -> AsyncStream<UploadStreamEvent>
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/DataUploader/Protocols/DataUploadable.swift:8:67: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public protocol DataUploadable {
| `- note: add '@available' attribute to enclosing protocol
5 | func uploadData(_ data: Data, with request: Request, progress: UploadProgressHandler?) async throws -> Data
6 | func uploadDataTask(_ data: Data, with request: Request, progress: UploadProgressHandler?, completion: @escaping(UploadCompletionHandler)) -> URLSessionUploadTask?
7 | func uploadDataPublisher(_ data: Data, with request: Request, progress: UploadProgressHandler?) -> AnyPublisher<Data, NetworkingError>
8 | func uploadDataStream(_ data: Data, with request: Request) -> AsyncStream<UploadStreamEvent>
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/FileUploader.swift:64:117: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class FileUploader: FileUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
62 | // MARK: Publisher
63 |
64 | public func uploadFilePublisher(_ fileURL: URL, with request: any Request, progress: UploadProgressHandler?) -> AnyPublisher<Data, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
65 | Future { promise in
66 | _ = self._uploadFileTask(fileURL, with: request, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/FileUploader.swift:75:80: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class FileUploader: FileUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
73 | // MARK: AsyncStream
74 |
75 | public func uploadFileStream(_ fileURL: URL, with request: any Request) -> AsyncStream<UploadStreamEvent> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
76 | AsyncStream { continuation in
77 | let progressHandler: UploadProgressHandler = { progress in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/FileUploader.swift:43:18: warning: result of call to '_uploadFileTask(_:with:progress:completion:)' is unused [#no-usage]
41 | public func uploadFile(_ fileURL: URL, with request: any Request, progress: UploadProgressHandler?) async throws -> Data {
42 | try await withCheckedThrowingContinuation { continuation in
43 | self._uploadFileTask(fileURL, with: request, progress: progress) { result in
| `- warning: result of call to '_uploadFileTask(_:with:progress:completion:)' is unused [#no-usage]
44 | switch result {
45 | case .success(let data):
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/FileUploader.swift:42:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class FileUploader: FileUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
39 | // MARK: Async Await
40 |
41 | public func uploadFile(_ fileURL: URL, with request: any Request, progress: UploadProgressHandler?) async throws -> Data {
| `- note: add '@available' attribute to enclosing instance method
42 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | self._uploadFileTask(fileURL, with: request, progress: progress) { result in
44 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/FileUploader.swift:42:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/FileUploader.swift:42:51: note: expanded code originates here
2 | import Combine
3 |
4 | public class FileUploader: FileUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
39 | // MARK: Async Await
40 |
41 | public func uploadFile(_ fileURL: URL, with request: any Request, progress: UploadProgressHandler?) async throws -> Data {
| `- note: add '@available' attribute to enclosing instance method
42 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/FileUploader.swift
|40 |
|41 |
|42 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------
43 | self._uploadFileTask(fileURL, with: request, progress: progress) { result in
44 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/FileUploader.swift:65:9: error: 'Future' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class FileUploader: FileUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
62 | // MARK: Publisher
63 |
64 | public func uploadFilePublisher(_ fileURL: URL, with request: any Request, progress: UploadProgressHandler?) -> AnyPublisher<Data, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
65 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | _ = self._uploadFileTask(fileURL, with: request, progress: progress) { result in
67 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/FileUploader.swift:70:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class FileUploader: FileUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
62 | // MARK: Publisher
63 |
64 | public func uploadFilePublisher(_ fileURL: URL, with request: any Request, progress: UploadProgressHandler?) -> AnyPublisher<Data, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
65 | Future { promise in
66 | _ = self._uploadFileTask(fileURL, with: request, progress: progress) { result in
:
68 | }
69 | }
70 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/FileUploader.swift:76:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public class FileUploader: FileUploadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
73 | // MARK: AsyncStream
74 |
75 | public func uploadFileStream(_ fileURL: URL, with request: any Request) -> AsyncStream<UploadStreamEvent> {
| `- note: add '@available' attribute to enclosing instance method
76 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | let progressHandler: UploadProgressHandler = { progress in
78 | continuation.yield(.progress(progress))
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/Protocols/FileUploadable.swift:7:106: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public protocol FileUploadable {
| `- note: add '@available' attribute to enclosing protocol
5 | func uploadFile(_ fileURL: URL, with request: Request, progress: UploadProgressHandler?) async throws -> Data
6 | func uploadFileTask(_ fileURL: URL, with request: Request, progress: UploadProgressHandler?, completion: @escaping(UploadCompletionHandler)) -> URLSessionUploadTask?
7 | func uploadFilePublisher(_ fileURL: URL, with request: Request, progress: UploadProgressHandler?) -> AnyPublisher<Data, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
8 | func uploadFileStream(_ fileURL: URL, with request: Request) -> AsyncStream<UploadStreamEvent>
9 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Uploader/FileUploader/Protocols/FileUploadable.swift:8:69: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Combine
3 |
4 | public protocol FileUploadable {
| `- note: add '@available' attribute to enclosing protocol
5 | func uploadFile(_ fileURL: URL, with request: Request, progress: UploadProgressHandler?) async throws -> Data
6 | func uploadFileTask(_ fileURL: URL, with request: Request, progress: UploadProgressHandler?, completion: @escaping(UploadCompletionHandler)) -> URLSessionUploadTask?
7 | func uploadFilePublisher(_ fileURL: URL, with request: Request, progress: UploadProgressHandler?) -> AnyPublisher<Data, NetworkingError>
8 | func uploadFileStream(_ fileURL: URL, with request: Request) -> AsyncStream<UploadStreamEvent>
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
9 | }
10 |
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[22/63] Compiling EZNetworking SessionDelegate+URLSessionDataDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:5:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
5 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | didOpenWithProtocol protocol: String?) {
7 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:11:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
13 | reason: Data?) {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:12:51: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
13 | reason: Data?) {
14 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
[23/63] Compiling EZNetworking SessionDelegate+URLSessionDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:5:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
5 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | didOpenWithProtocol protocol: String?) {
7 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:11:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
13 | reason: Data?) {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:12:51: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
13 | reason: Data?) {
14 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
[24/63] Compiling EZNetworking SessionDelegate+URLSessionDownloadDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:5:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
5 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | didOpenWithProtocol protocol: String?) {
7 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:11:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
13 | reason: Data?) {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:12:51: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
13 | reason: Data?) {
14 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
[25/63] Compiling EZNetworking SessionDelegate+URLSessionStreamDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:5:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
5 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | didOpenWithProtocol protocol: String?) {
7 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:11:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
13 | reason: Data?) {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:12:51: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
13 | reason: Data?) {
14 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
[26/63] Compiling EZNetworking SessionDelegate+URLSessionTaskDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:5:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
5 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | didOpenWithProtocol protocol: String?) {
7 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:11:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
13 | reason: Data?) {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:12:51: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
13 | reason: Data?) {
14 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
[27/63] Compiling EZNetworking SessionDelegate+URLSessionWebSocketDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:5:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
5 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
6 | didOpenWithProtocol protocol: String?) {
7 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didOpenWithProtocol: `protocol`)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:11:42: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
13 | reason: Data?) {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionWebSocketDelegate.swift:12:51: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionWebSocketDelegate {
| `- note: add '@available' attribute to enclosing extension
4 | public func urlSession(_ session: URLSession,
5 | webSocketTask: URLSessionWebSocketTask,
:
8 | }
9 |
10 | public func urlSession(_ session: URLSession,
| `- note: add '@available' attribute to enclosing instance method
11 | webSocketTask: URLSessionWebSocketTask,
12 | didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
13 | reason: Data?) {
14 | webSocketTaskInterceptor?.urlSession(session, webSocketTask: webSocketTask, didCloseWith: closeCode, reason: reason)
[28/63] Compiling EZNetworking RequestDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/HTTPError/HTTPError.swift:5:16: warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
3 | public struct HTTPError: Error {
4 | public let statusCode: Int
5 | public let headers: [AnyHashable: Any]
| `- warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
6 | public let category: HTTPErrorCategory
7 |
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[29/63] Compiling EZNetworking HTTPHeaderEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/HTTPError/HTTPError.swift:5:16: warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
3 | public struct HTTPError: Error {
4 | public let statusCode: Int
5 | public let headers: [AnyHashable: Any]
| `- warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
6 | public let category: HTTPErrorCategory
7 |
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[30/63] Compiling EZNetworking HTTPParameterEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/HTTPError/HTTPError.swift:5:16: warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
3 | public struct HTTPError: Error {
4 | public let statusCode: Int
5 | public let headers: [AnyHashable: Any]
| `- warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
6 | public let category: HTTPErrorCategory
7 |
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[31/63] Compiling EZNetworking HTTPError.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/HTTPError/HTTPError.swift:5:16: warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
3 | public struct HTTPError: Error {
4 | public let statusCode: Int
5 | public let headers: [AnyHashable: Any]
| `- warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
6 | public let category: HTTPErrorCategory
7 |
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[32/63] Compiling EZNetworking HTTPClientErrorStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/HTTPError/HTTPError.swift:5:16: warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
3 | public struct HTTPError: Error {
4 | public let statusCode: Int
5 | public let headers: [AnyHashable: Any]
| `- warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
6 | public let category: HTTPErrorCategory
7 |
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[33/63] Compiling EZNetworking HTTPInformationalStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/HTTPError/HTTPError.swift:5:16: warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
3 | public struct HTTPError: Error {
4 | public let statusCode: Int
5 | public let headers: [AnyHashable: Any]
| `- warning: stored property 'headers' of 'Sendable'-conforming struct 'HTTPError' has non-Sendable type '[AnyHashable : Any]'
6 | public let category: HTTPErrorCategory
7 |
Swift.Dictionary:1:23: note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
1 | @frozen public struct Dictionary<Key, Value> where Key : Hashable {
| `- note: generic struct 'Dictionary' does not conform to the 'Sendable' protocol
2 | public typealias Element = (key: Key, value: Value)
3 | @inlinable public init(_immutableCocoaDictionary: __owned AnyObject)
[34/63] Compiling EZNetworking SessionDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:19: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:50: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:6:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | 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
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:9:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | 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
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:10:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:12:36: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | 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
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:13:65: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- note: protocol requirement here
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- note: protocol requirement here
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.send:2:29: note: 'send(_:completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable ((any Error)?) -> Void)}
| `- note: 'send(_:completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- note: protocol requirement here
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- note: protocol requirement here
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.receive:2:29: note: 'receive(completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, any Error>) -> Void)}
| `- note: 'receive(completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:11: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
17 |
[35/63] Compiling EZNetworking EmptyResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:19: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:50: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:6:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | 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
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:9:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | 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
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:10:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:12:36: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | 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
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:13:65: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- note: protocol requirement here
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- note: protocol requirement here
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.send:2:29: note: 'send(_:completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable ((any Error)?) -> Void)}
| `- note: 'send(_:completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- note: protocol requirement here
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- note: protocol requirement here
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.receive:2:29: note: 'receive(completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, any Error>) -> Void)}
| `- note: 'receive(completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:11: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
17 |
[36/63] Compiling EZNetworking Data-ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:19: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:50: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:6:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | 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
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:9:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | 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
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:10:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:12:36: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | 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
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:13:65: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- note: protocol requirement here
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- note: protocol requirement here
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.send:2:29: note: 'send(_:completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable ((any Error)?) -> Void)}
| `- note: 'send(_:completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- note: protocol requirement here
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- note: protocol requirement here
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.receive:2:29: note: 'receive(completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, any Error>) -> Void)}
| `- note: 'receive(completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:11: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
17 |
[37/63] Compiling EZNetworking String-ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:19: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:50: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:6:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | 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
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:9:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | 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
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:10:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:12:36: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | 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
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:13:65: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- note: protocol requirement here
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- note: protocol requirement here
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.send:2:29: note: 'send(_:completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable ((any Error)?) -> Void)}
| `- note: 'send(_:completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- note: protocol requirement here
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- note: protocol requirement here
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.receive:2:29: note: 'receive(completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, any Error>) -> Void)}
| `- note: 'receive(completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:11: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
17 |
[38/63] Compiling EZNetworking URLSessionTaskProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:19: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:50: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:6:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | 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
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:9:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | 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
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:10:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:12:36: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | 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
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:13:65: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- note: protocol requirement here
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- note: protocol requirement here
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.send:2:29: note: 'send(_:completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable ((any Error)?) -> Void)}
| `- note: 'send(_:completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- note: protocol requirement here
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- note: protocol requirement here
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.receive:2:29: note: 'receive(completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, any Error>) -> Void)}
| `- note: 'receive(completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:11: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
17 |
[39/63] Compiling EZNetworking WebSocketTaskProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:19: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:18:50: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSession: URLSessionTaskProtocol {
| `- note: add '@available' attribute to enclosing extension
17 | public func webSocketTaskInspectable(with request: URLRequest) -> WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing instance method
18 | let task: URLSessionWebSocketTask = self.webSocketTask(with: request)
| |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | return task as WebSocketTaskProtocol
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:6:33: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | 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
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:9:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | 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
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:10:26: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:12:36: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | 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
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:13:65: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | // protocol to allow unit testing and mocking for URLSessionWebSocketTask
4 | public protocol WebSocketTaskProtocol {
| `- note: add '@available' attribute to enclosing protocol
5 | func resume()
6 | func cancel(with closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
:
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
7 | func sendPing(pongReceiveHandler: @escaping @Sendable ((any Error)?) -> Void)
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
| `- note: protocol requirement here
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
8 |
9 | func send(_ message: URLSessionWebSocketTask.Message) async throws
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
| `- note: protocol requirement here
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
:
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'send(_:completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.send:2:29: note: 'send(_:completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable ((any Error)?) -> Void)}
| `- note: 'send(_:completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
10 | func send(_ message: URLSessionWebSocketTask.Message, completionHandler: @escaping @Sendable (Error?) -> Void)
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
| `- note: protocol requirement here
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive()' to be available in macOS 10.13 and newer
17 |
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/EZNetworking/Other/WebSocketTaskProtocol.swift:16:1: error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
11 |
12 | func receive() async throws -> URLSessionWebSocketTask.Message
13 | func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, Error>) -> Void)
| `- note: protocol requirement here
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| `- error: protocol 'WebSocketTaskProtocol' requires 'receive(completionHandler:)' to be available in macOS 10.13 and newer
17 |
Foundation.URLSessionWebSocketTask.receive:2:29: note: 'receive(completionHandler:)' declared here
1 | class URLSessionWebSocketTask {
2 | @preconcurrency public func receive(completionHandler: @escaping @Sendable (Result<URLSessionWebSocketTask.Message, any Error>) -> Void)}
| `- note: 'receive(completionHandler:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/WebSocketTaskProtocol.swift:16:11: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
14 | }
15 |
16 | extension URLSessionWebSocketTask: WebSocketTaskProtocol {}
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
17 |
[40/63] Compiling EZNetworking HTTPMethod.swift
[41/63] Compiling EZNetworking HTTPParameters.swift
[42/63] Compiling EZNetworking AuthenticationInterceptor.swift
[43/63] Compiling EZNetworking CacheInterceptor.swift
[44/63] Compiling EZNetworking DataTaskInterceptor.swift
[45/63] Compiling EZNetworking DownloadTaskInterceptor.swift
[46/63] Compiling EZNetworking MetricsInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:8:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
7 | /// Intercepts when a WebSocket task opens with a protocol.
8 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:108: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: add '@available' attribute to enclosing enum
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | }
22 |
[47/63] Compiling EZNetworking RedirectInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:8:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
7 | /// Intercepts when a WebSocket task opens with a protocol.
8 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:108: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: add '@available' attribute to enclosing enum
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | }
22 |
[48/63] Compiling EZNetworking StreamTaskInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:8:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
7 | /// Intercepts when a WebSocket task opens with a protocol.
8 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:108: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: add '@available' attribute to enclosing enum
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | }
22 |
[49/63] Compiling EZNetworking TaskLifecycleInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:8:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
7 | /// Intercepts when a WebSocket task opens with a protocol.
8 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:108: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: add '@available' attribute to enclosing enum
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | }
22 |
[50/63] Compiling EZNetworking UploadTaskInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:8:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
7 | /// Intercepts when a WebSocket task opens with a protocol.
8 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:108: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: add '@available' attribute to enclosing enum
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | }
22 |
[51/63] Compiling EZNetworking WebSocketTaskInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:8:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
7 | /// Intercepts when a WebSocket task opens with a protocol.
8 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:59: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:11:108: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
2 |
3 | /// Protocol for intercepting WebSocket tasks specifically.
4 | public protocol WebSocketTaskInterceptor: AnyObject {
| `- note: add '@available' attribute to enclosing protocol
5 | var onEvent: ((WebSocketTaskEvent) -> Void)? { get set }
6 |
:
9 |
10 | /// Intercepts when a WebSocket task closes with a code and reason.
11 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?)
| | `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 |
13 | /// Intercepts when a task completes with an error.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:20:25: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
15 | }
16 |
17 | public enum WebSocketTaskEvent {
| `- note: add '@available' attribute to enclosing enum
18 | case didOpenWithProtocol(protocolStr: String?)
19 | case didOpenWithError(error: Error)
20 | case didClose(code: URLSessionWebSocketTask.CloseCode, reason: Data?)
| `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
21 | }
22 |
[52/63] Compiling EZNetworking HTTPBody.swift
[53/63] Compiling EZNetworking MultipartFormData.swift
[54/63] Compiling EZNetworking MultipartFormPart.swift
[55/63] Compiling EZNetworking AuthorizationType.swift
[56/63] Compiling EZNetworking HTTPHeader.swift
[57/63] Compiling EZNetworking MimeType.swift
[58/63] Compiling EZNetworking Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:69:99: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:80:60: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
82 | // Progress handler yields progress updates to the stream.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:51: note: expanded code originates here
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift
|46 |
|47 |
|48 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:70:9: error: 'Future' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
72 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:75:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
:
73 | }
74 | }
75 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:81:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | // Progress handler yields progress updates to the stream.
83 | let progressHandler: DownloadProgressHandler = { progress in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:10:92: error: 'AnyPublisher' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:11:53: error: 'AsyncStream' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | }
13 |
[59/63] Compiling EZNetworking RequestBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:69:99: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:80:60: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
82 | // Progress handler yields progress updates to the stream.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:51: note: expanded code originates here
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift
|46 |
|47 |
|48 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:70:9: error: 'Future' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
72 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:75:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
:
73 | }
74 | }
75 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:81:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | // Progress handler yields progress updates to the stream.
83 | let progressHandler: DownloadProgressHandler = { progress in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:10:92: error: 'AnyPublisher' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:11:53: error: 'AsyncStream' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | }
13 |
[60/63] Compiling EZNetworking RequestFactory.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:69:99: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:80:60: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
82 | // Progress handler yields progress updates to the stream.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:51: note: expanded code originates here
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift
|46 |
|47 |
|48 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:70:9: error: 'Future' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
72 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:75:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
:
73 | }
74 | }
75 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:81:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | // Progress handler yields progress updates to the stream.
83 | let progressHandler: DownloadProgressHandler = { progress in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:10:92: error: 'AnyPublisher' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:11:53: error: 'AsyncStream' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | }
13 |
[61/63] Compiling EZNetworking FileDownloader.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:69:99: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:80:60: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
82 | // Progress handler yields progress updates to the stream.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:51: note: expanded code originates here
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift
|46 |
|47 |
|48 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:70:9: error: 'Future' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
72 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:75:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
:
73 | }
74 | }
75 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:81:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | // Progress handler yields progress updates to the stream.
83 | let progressHandler: DownloadProgressHandler = { progress in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:10:92: error: 'AnyPublisher' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:11:53: error: 'AsyncStream' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | }
13 |
[62/63] Compiling EZNetworking DefaultDownloadTaskInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:69:99: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:80:60: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
82 | // Progress handler yields progress updates to the stream.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:51: note: expanded code originates here
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift
|46 |
|47 |
|48 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:70:9: error: 'Future' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
72 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:75:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
:
73 | }
74 | }
75 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:81:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | // Progress handler yields progress updates to the stream.
83 | let progressHandler: DownloadProgressHandler = { progress in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:10:92: error: 'AnyPublisher' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:11:53: error: 'AsyncStream' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | }
13 |
[63/63] Compiling EZNetworking FileDownloadable.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:69:99: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:80:60: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
82 | // Progress handler yields progress updates to the stream.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:48:51: note: expanded code originates here
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
45 | // MARK: Async Await
46 |
47 | public func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add '@available' attribute to enclosing instance method
48 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift
|46 |
|47 |
|48 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------------------
49 | performDownloadTask(url: serverUrl, progress: progress) { result in
50 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:70:9: error: 'Future' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
72 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:75:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
67 | // MARK: Publisher
68 |
69 | public func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add '@available' attribute to enclosing instance method
70 | Future { promise in
71 | self.performDownloadTask(url: serverUrl, progress: progress) { result in
:
73 | }
74 | }
75 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | }
77 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloader.swift:81:9: error: 'AsyncStream' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public class FileDownloader: FileDownloadable {
| `- note: add '@available' attribute to enclosing class
5 | private let urlSession: URLSessionTaskProtocol
6 | private let validator: ResponseValidator
:
78 | // MARK: AsyncStream
79 |
80 | public func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent> {
| `- note: add '@available' attribute to enclosing instance method
81 | AsyncStream { continuation in
| |- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | // Progress handler yields progress updates to the stream.
83 | let progressHandler: DownloadProgressHandler = { progress in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:10:92: error: 'AnyPublisher' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/Protocols/FileDownloadable.swift:11:53: error: 'AsyncStream' is only available in macOS 10.15 or newer
5 | public typealias DownloadCompletionHandler = (Result<URL, NetworkingError>) -> Void
6 |
7 | public protocol FileDownloadable {
| `- note: add '@available' attribute to enclosing protocol
8 | func downloadFile(from serverUrl: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(from serverUrl: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadFilePublisher(from serverUrl: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError>
11 | func downloadFileStream(from serverUrl: URL) -> AsyncStream<DownloadStreamEvent>
| | `- error: 'AsyncStream' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | }
13 |
BUILD FAILURE 6.2 macosSpm