Build Information
Failed to build EZNetworking, reference main (539241
), with Swift 6.0 for macOS (SPM) on 13 Sep 2025 05:12:51 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Aldo10012/EZNetworking.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Aldo10012/EZNetworking
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 5392414 Merge pull request #36 from Aldo10012/remove_image_download
Cloned https://github.com/Aldo10012/EZNetworking.git
Revision (git rev-parse @):
5392414c0799a2ff025796230e626ba144bd9b0f
SUCCESS checkout https://github.com/Aldo10012/EZNetworking.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Aldo10012/EZNetworking.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/39] Emitting module EZNetworking
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:6: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | 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
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:9: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
9 | 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
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:9: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
9 | 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
10 | }
11 |
/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)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'data(for:delegate:)' to be available in macOS 10.13 and newer
2 |
3 | public protocol URLSessionTaskProtocol {
4 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- note: protocol requirement here
5 | func data(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
6 |
:
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'data(for:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:3:17: note: 'data(for:delegate:)' declared here
1 | @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
2 | extension URLSession {
3 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
| `- note: 'data(for:delegate:)' declared here
4 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
5 | public func upload(for request: URLRequest, fromFile fileURL: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'data(from:delegate:)' to be available in macOS 10.13 and newer
3 | public protocol URLSessionTaskProtocol {
4 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
5 | func data(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- note: protocol requirement here
6 |
7 | func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
:
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'data(from:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:4:17: note: 'data(from:delegate:)' declared here
2 | extension URLSession {
3 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
4 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
| `- note: 'data(from:delegate:)' declared here
5 | public func upload(for request: URLRequest, fromFile fileURL: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
6 | public func upload(for request: URLRequest, from bodyData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'download(from:delegate:)' to be available in macOS 10.13 and newer
9 |
10 | func downloadTask(with url: URL, completionHandler: @escaping @Sendable (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
11 | func download(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (URL, URLResponse)
| `- note: protocol requirement here
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'download(from:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:8:17: note: 'download(from:delegate:)' declared here
6 | public func upload(for request: URLRequest, from bodyData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
7 | public func download(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
8 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
| `- note: 'download(from:delegate:)' declared here
9 | public func download(resumeFrom resumeData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
10 | public struct AsyncBytes : AsyncSequence, Sendable {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:10:77: 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(with url: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(url: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadPublisher(url: 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 |
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:85:84: error: 'AnyPublisher' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
83 | // MARK: Publisher
84 | @discardableResult
85 | public func downloadPublisher(url: 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
86 | Future { promise in
87 | self._downloadFileTask(url: url, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:7:96: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public protocol RequestPerformable {
| `- note: add @available attribute to enclosing protocol
5 | func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T
6 | func performTask<T: Decodable>(request: Request, decodeTo decodableObject: T.Type, completion: @escaping((Result<T, NetworkingError>) -> Void)) -> URLSessionDataTask?
7 | func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:57:103: error: 'AnyPublisher' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
55 |
56 | // MARK: Publisher
57 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
58 | Future { promise in
59 | performDataTask(request: request, decodeTo: decodableObject) { result in
[4/42] Compiling EZNetworking FileDownloadable.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:10:77: 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(with url: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(url: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadPublisher(url: 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 |
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:85:84: error: 'AnyPublisher' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
83 | // MARK: Publisher
84 | @discardableResult
85 | public func downloadPublisher(url: 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
86 | Future { promise in
87 | self._downloadFileTask(url: url, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:65:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
62 |
63 | // MARK: Async Await
64 | public func downloadFile(with url: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add @available attribute to enclosing instance method
65 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | _downloadFileTask(url: url, progress: progress) { result in
67 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:65:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:65:51: note: expanded code originates here
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
62 |
63 | // MARK: Async Await
64 | public func downloadFile(with url: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add @available attribute to enclosing instance method
65 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift
|63 |
|64 |
|65 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-----------------------------------------------------------------------------------------------------------
66 | _downloadFileTask(url: url, progress: progress) { result in
67 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:86:9: error: 'Future' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
83 | // MARK: Publisher
84 | @discardableResult
85 | public func downloadPublisher(url: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
86 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | self._downloadFileTask(url: url, progress: progress) { result in
88 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:91:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
83 | // MARK: Publisher
84 | @discardableResult
85 | public func downloadPublisher(url: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
86 | Future { promise in
87 | self._downloadFileTask(url: url, progress: progress) { result in
:
89 | }
90 | }
91 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:7:96: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public protocol RequestPerformable {
| `- note: add @available attribute to enclosing protocol
5 | func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T
6 | func performTask<T: Decodable>(request: Request, decodeTo decodableObject: T.Type, completion: @escaping((Result<T, NetworkingError>) -> Void)) -> URLSessionDataTask?
7 | func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:57:103: error: 'AnyPublisher' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
55 |
56 | // MARK: Publisher
57 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
58 | Future { promise in
59 | performDataTask(request: request, decodeTo: decodableObject) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:38:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
35 |
36 | // MARK: Async Await
37 | public func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T {
| `- note: add @available attribute to enclosing instance method
38 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | performDataTask(request: request, decodeTo: decodableObject, completion: { result in
40 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:38:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:38:51: note: expanded code originates here
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
35 |
36 | // MARK: Async Await
37 | public func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T {
| `- note: add @available attribute to enclosing instance method
38 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift
|36 |
|37 |
|38 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-----------------------------------------------------------------------------------------------------------
39 | performDataTask(request: request, decodeTo: decodableObject, completion: { result in
40 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:58:9: error: 'Future' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
55 |
56 | // MARK: Publisher
57 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
58 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | performDataTask(request: request, decodeTo: decodableObject) { result in
60 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:63:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
55 |
56 | // MARK: Publisher
57 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
58 | Future { promise in
59 | performDataTask(request: request, decodeTo: decodableObject) { result in
:
61 | }
62 | }
63 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | }
65 |
[5/42] Compiling EZNetworking RequestPerformer.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:10:77: 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(with url: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(url: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadPublisher(url: 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 |
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:85:84: error: 'AnyPublisher' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
83 | // MARK: Publisher
84 | @discardableResult
85 | public func downloadPublisher(url: 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
86 | Future { promise in
87 | self._downloadFileTask(url: url, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:65:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
62 |
63 | // MARK: Async Await
64 | public func downloadFile(with url: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add @available attribute to enclosing instance method
65 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | _downloadFileTask(url: url, progress: progress) { result in
67 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:65:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:65:51: note: expanded code originates here
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
62 |
63 | // MARK: Async Await
64 | public func downloadFile(with url: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add @available attribute to enclosing instance method
65 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift
|63 |
|64 |
|65 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-----------------------------------------------------------------------------------------------------------
66 | _downloadFileTask(url: url, progress: progress) { result in
67 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:86:9: error: 'Future' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
83 | // MARK: Publisher
84 | @discardableResult
85 | public func downloadPublisher(url: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
86 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | self._downloadFileTask(url: url, progress: progress) { result in
88 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:91:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
83 | // MARK: Publisher
84 | @discardableResult
85 | public func downloadPublisher(url: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
86 | Future { promise in
87 | self._downloadFileTask(url: url, progress: progress) { result in
:
89 | }
90 | }
91 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:7:96: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public protocol RequestPerformable {
| `- note: add @available attribute to enclosing protocol
5 | func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T
6 | func performTask<T: Decodable>(request: Request, decodeTo decodableObject: T.Type, completion: @escaping((Result<T, NetworkingError>) -> Void)) -> URLSessionDataTask?
7 | func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:57:103: error: 'AnyPublisher' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
55 |
56 | // MARK: Publisher
57 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
58 | Future { promise in
59 | performDataTask(request: request, decodeTo: decodableObject) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:38:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
35 |
36 | // MARK: Async Await
37 | public func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T {
| `- note: add @available attribute to enclosing instance method
38 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | performDataTask(request: request, decodeTo: decodableObject, completion: { result in
40 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:38:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:38:51: note: expanded code originates here
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
35 |
36 | // MARK: Async Await
37 | public func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T {
| `- note: add @available attribute to enclosing instance method
38 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift
|36 |
|37 |
|38 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-----------------------------------------------------------------------------------------------------------
39 | performDataTask(request: request, decodeTo: decodableObject, completion: { result in
40 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:58:9: error: 'Future' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
55 |
56 | // MARK: Publisher
57 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
58 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | performDataTask(request: request, decodeTo: decodableObject) { result in
60 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:63:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
55 |
56 | // MARK: Publisher
57 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
58 | Future { promise in
59 | performDataTask(request: request, decodeTo: decodableObject) { result in
:
61 | }
62 | }
63 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | }
65 |
[6/42] Compiling EZNetworking ResponseValidator.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:10:77: 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(with url: URL, progress: DownloadProgressHandler?) async throws -> URL
9 | func downloadFileTask(url: URL, progress: DownloadProgressHandler?, completion: @escaping(DownloadCompletionHandler)) -> URLSessionDownloadTask
10 | func downloadPublisher(url: 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 |
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:85:84: error: 'AnyPublisher' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
83 | // MARK: Publisher
84 | @discardableResult
85 | public func downloadPublisher(url: 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
86 | Future { promise in
87 | self._downloadFileTask(url: url, progress: progress) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:65:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
62 |
63 | // MARK: Async Await
64 | public func downloadFile(with url: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add @available attribute to enclosing instance method
65 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | _downloadFileTask(url: url, progress: progress) { result in
67 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:65:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:65:51: note: expanded code originates here
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
62 |
63 | // MARK: Async Await
64 | public func downloadFile(with url: URL, progress: DownloadProgressHandler? = nil) async throws -> URL {
| `- note: add @available attribute to enclosing instance method
65 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift
|63 |
|64 |
|65 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-----------------------------------------------------------------------------------------------------------
66 | _downloadFileTask(url: url, progress: progress) { result in
67 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:86:9: error: 'Future' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
83 | // MARK: Publisher
84 | @discardableResult
85 | public func downloadPublisher(url: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
86 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | self._downloadFileTask(url: url, progress: progress) { result in
88 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:91:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: add @available attribute to enclosing class
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
83 | // MARK: Publisher
84 | @discardableResult
85 | public func downloadPublisher(url: URL, progress: DownloadProgressHandler?) -> AnyPublisher<URL, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
86 | Future { promise in
87 | self._downloadFileTask(url: url, progress: progress) { result in
:
89 | }
90 | }
91 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:7:96: error: 'AnyPublisher' is only available in macOS 10.15 or newer
2 | import Foundation
3 |
4 | public protocol RequestPerformable {
| `- note: add @available attribute to enclosing protocol
5 | func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T
6 | func performTask<T: Decodable>(request: Request, decodeTo decodableObject: T.Type, completion: @escaping((Result<T, NetworkingError>) -> Void)) -> URLSessionDataTask?
7 | func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError>
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:57:103: error: 'AnyPublisher' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
55 |
56 | // MARK: Publisher
57 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
58 | Future { promise in
59 | performDataTask(request: request, decodeTo: decodableObject) { result in
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:38:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
35 |
36 | // MARK: Async Await
37 | public func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T {
| `- note: add @available attribute to enclosing instance method
38 | try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | performDataTask(request: request, decodeTo: decodableObject, completion: { result in
40 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:38:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:38:51: note: expanded code originates here
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
35 |
36 | // MARK: Async Await
37 | public func perform<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) async throws -> T {
| `- note: add @available attribute to enclosing instance method
38 | try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift
|36 |
|37 |
|38 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+-----------------------------------------------------------------------------------------------------------
39 | performDataTask(request: request, decodeTo: decodableObject, completion: { result in
40 | switch result {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:58:9: error: 'Future' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
55 |
56 | // MARK: Publisher
57 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
58 | Future { promise in
| |- error: 'Future' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | performDataTask(request: request, decodeTo: decodableObject) { result in
60 | promise(result)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:63:10: error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: add @available attribute to enclosing struct
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
55 |
56 | // MARK: Publisher
57 | public func performPublisher<T: Decodable>(request: Request, decodeTo decodableObject: T.Type) -> AnyPublisher<T, NetworkingError> {
| `- note: add @available attribute to enclosing instance method
58 | Future { promise in
59 | performDataTask(request: request, decodeTo: decodableObject) { result in
:
61 | }
62 | }
63 | .eraseToAnyPublisher()
| |- error: 'eraseToAnyPublisher()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | }
65 |
[7/42] Compiling EZNetworking RedirectInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:6: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | 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
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:9: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
9 | 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
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:9: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
9 | 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
10 | }
11 |
[8/42] Compiling EZNetworking StreamTaskInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:6: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | 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
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:9: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
9 | 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
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:9: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
9 | 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
10 | }
11 |
[9/42] Compiling EZNetworking TaskLifecycleInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:6: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | 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
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:9: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
9 | 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
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:9: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
9 | 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
10 | }
11 |
[10/42] Compiling EZNetworking WebSocketTaskInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:6: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | 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
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:9: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
9 | 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
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/Protocols/WebSocketTaskInterceptor.swift:9: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 | /// Intercepts when a WebSocket task opens with a protocol.
6 | func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?)
7 |
8 | /// Intercepts when a WebSocket task closes with a code and reason.
9 | 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
10 | }
11 |
[11/42] Compiling EZNetworking RequestDecoder.swift
[12/42] Compiling EZNetworking HTTPHeaderEncoder.swift
[13/42] Compiling EZNetworking HTTPParameterEncoder.swift
[14/42] Compiling EZNetworking InternalError.swift
[15/42] Compiling EZNetworking HTTPRedirectionStatus.swift
[16/42] Compiling EZNetworking HTTPServerErrorStatus.swift
[17/42] Compiling EZNetworking HTTPSuccessStatus.swift
[18/42] Compiling EZNetworking HTTPBody.swift
[19/42] Compiling EZNetworking CacheInterceptor.swift
[20/42] Compiling EZNetworking DataTaskInterceptor.swift
[21/42] Compiling EZNetworking DownloadTaskInterceptor.swift
[22/42] Compiling EZNetworking MetricsInterceptor.swift
[23/42] Compiling EZNetworking HTTPHeader.swift
[24/42] Compiling EZNetworking HTTPMethod.swift
[25/42] Compiling EZNetworking HTTPParameters.swift
[26/42] Compiling EZNetworking AuthenticationInterceptor.swift
[27/42] Compiling EZNetworking SessionDelegate+URLSessionDataDelegate.swift
[28/42] Compiling EZNetworking SessionDelegate+URLSessionDelegate.swift
[29/42] Compiling EZNetworking SessionDelegate+URLSessionDownloadDelegate.swift
[30/42] Compiling EZNetworking SessionDelegate+URLSessionStreamDelegate.swift
[31/42] 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)
[32/42] 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)
[33/42] Compiling EZNetworking SessionDelegate.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)
[34/42] Compiling EZNetworking EmptyResponse.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)
[35/42] Compiling EZNetworking URLSessionTaskProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'data(for:delegate:)' to be available in macOS 10.13 and newer
2 |
3 | public protocol URLSessionTaskProtocol {
4 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- note: protocol requirement here
5 | func data(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
6 |
:
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'data(for:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:3:17: note: 'data(for:delegate:)' declared here
1 | @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
2 | extension URLSession {
3 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
| `- note: 'data(for:delegate:)' declared here
4 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
5 | public func upload(for request: URLRequest, fromFile fileURL: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'data(from:delegate:)' to be available in macOS 10.13 and newer
3 | public protocol URLSessionTaskProtocol {
4 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
5 | func data(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- note: protocol requirement here
6 |
7 | func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
:
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'data(from:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:4:17: note: 'data(from:delegate:)' declared here
2 | extension URLSession {
3 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
4 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
| `- note: 'data(from:delegate:)' declared here
5 | public func upload(for request: URLRequest, fromFile fileURL: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
6 | public func upload(for request: URLRequest, from bodyData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'download(from:delegate:)' to be available in macOS 10.13 and newer
9 |
10 | func downloadTask(with url: URL, completionHandler: @escaping @Sendable (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
11 | func download(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (URL, URLResponse)
| `- note: protocol requirement here
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'download(from:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:8:17: note: 'download(from:delegate:)' declared here
6 | public func upload(for request: URLRequest, from bodyData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
7 | public func download(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
8 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
| `- note: 'download(from:delegate:)' declared here
9 | public func download(resumeFrom resumeData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
10 | public struct AsyncBytes : AsyncSequence, Sendable {
[36/42] Compiling EZNetworking Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'data(for:delegate:)' to be available in macOS 10.13 and newer
2 |
3 | public protocol URLSessionTaskProtocol {
4 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- note: protocol requirement here
5 | func data(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
6 |
:
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'data(for:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:3:17: note: 'data(for:delegate:)' declared here
1 | @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
2 | extension URLSession {
3 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
| `- note: 'data(for:delegate:)' declared here
4 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
5 | public func upload(for request: URLRequest, fromFile fileURL: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'data(from:delegate:)' to be available in macOS 10.13 and newer
3 | public protocol URLSessionTaskProtocol {
4 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
5 | func data(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- note: protocol requirement here
6 |
7 | func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
:
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'data(from:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:4:17: note: 'data(from:delegate:)' declared here
2 | extension URLSession {
3 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
4 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
| `- note: 'data(from:delegate:)' declared here
5 | public func upload(for request: URLRequest, fromFile fileURL: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
6 | public func upload(for request: URLRequest, from bodyData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'download(from:delegate:)' to be available in macOS 10.13 and newer
9 |
10 | func downloadTask(with url: URL, completionHandler: @escaping @Sendable (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
11 | func download(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (URL, URLResponse)
| `- note: protocol requirement here
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'download(from:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:8:17: note: 'download(from:delegate:)' declared here
6 | public func upload(for request: URLRequest, from bodyData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
7 | public func download(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
8 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
| `- note: 'download(from:delegate:)' declared here
9 | public func download(resumeFrom resumeData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
10 | public struct AsyncBytes : AsyncSequence, Sendable {
[37/42] Compiling EZNetworking RequestBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'data(for:delegate:)' to be available in macOS 10.13 and newer
2 |
3 | public protocol URLSessionTaskProtocol {
4 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- note: protocol requirement here
5 | func data(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
6 |
:
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'data(for:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:3:17: note: 'data(for:delegate:)' declared here
1 | @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
2 | extension URLSession {
3 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
| `- note: 'data(for:delegate:)' declared here
4 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
5 | public func upload(for request: URLRequest, fromFile fileURL: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'data(from:delegate:)' to be available in macOS 10.13 and newer
3 | public protocol URLSessionTaskProtocol {
4 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
5 | func data(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- note: protocol requirement here
6 |
7 | func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
:
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'data(from:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:4:17: note: 'data(from:delegate:)' declared here
2 | extension URLSession {
3 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
4 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
| `- note: 'data(from:delegate:)' declared here
5 | public func upload(for request: URLRequest, fromFile fileURL: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
6 | public func upload(for request: URLRequest, from bodyData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'download(from:delegate:)' to be available in macOS 10.13 and newer
9 |
10 | func downloadTask(with url: URL, completionHandler: @escaping @Sendable (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
11 | func download(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (URL, URLResponse)
| `- note: protocol requirement here
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'download(from:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:8:17: note: 'download(from:delegate:)' declared here
6 | public func upload(for request: URLRequest, from bodyData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
7 | public func download(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
8 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
| `- note: 'download(from:delegate:)' declared here
9 | public func download(resumeFrom resumeData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
10 | public struct AsyncBytes : AsyncSequence, Sendable {
[38/42] Compiling EZNetworking RequestFactory.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'data(for:delegate:)' to be available in macOS 10.13 and newer
2 |
3 | public protocol URLSessionTaskProtocol {
4 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- note: protocol requirement here
5 | func data(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
6 |
:
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'data(for:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:3:17: note: 'data(for:delegate:)' declared here
1 | @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
2 | extension URLSession {
3 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
| `- note: 'data(for:delegate:)' declared here
4 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
5 | public func upload(for request: URLRequest, fromFile fileURL: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'data(from:delegate:)' to be available in macOS 10.13 and newer
3 | public protocol URLSessionTaskProtocol {
4 | func data(for request: URLRequest, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
5 | func data(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (Data, URLResponse)
| `- note: protocol requirement here
6 |
7 | func dataTask(with request: URLRequest, completionHandler: @escaping @Sendable (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
:
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'data(from:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:4:17: note: 'data(from:delegate:)' declared here
2 | extension URLSession {
3 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
4 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
| `- note: 'data(from:delegate:)' declared here
5 | public func upload(for request: URLRequest, fromFile fileURL: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
6 | public func upload(for request: URLRequest, from bodyData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Other/URLSessionTaskProtocol.swift:14:1: error: protocol 'URLSessionTaskProtocol' requires 'download(from:delegate:)' to be available in macOS 10.13 and newer
9 |
10 | func downloadTask(with url: URL, completionHandler: @escaping @Sendable (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
11 | func download(from url: URL, delegate: (URLSessionTaskDelegate)?) async throws -> (URL, URLResponse)
| `- note: protocol requirement here
12 | }
13 |
14 | extension URLSession: URLSessionTaskProtocol {}
| `- error: protocol 'URLSessionTaskProtocol' requires 'download(from:delegate:)' to be available in macOS 10.13 and newer
15 |
Foundation.URLSession:8:17: note: 'download(from:delegate:)' declared here
6 | public func upload(for request: URLRequest, from bodyData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)
7 | public func download(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
8 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
| `- note: 'download(from:delegate:)' declared here
9 | public func download(resumeFrom resumeData: Data, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)
10 | public struct AsyncBytes : AsyncSequence, Sendable {
[39/42] Compiling EZNetworking NetworkingError.swift
[40/42] Compiling EZNetworking HTTPStatusCodeType.swift
[41/42] Compiling EZNetworking HTTPClientErrorStatus.swift
[42/42] Compiling EZNetworking HTTPInformationalStatus.swift
BUILD FAILURE 6.0 macosSpm