Build Information
Failed to build EZNetworking, reference main (539241
), with Swift 6.1 for macOS (SPM) on 13 Sep 2025 05:13:38 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
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 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:77:21: warning: capture of 'self' with non-sendable type 'RequestPerformer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: consider making struct 'RequestPerformer' conform to the 'Sendable' protocol
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
75 | let task = urlSession.dataTask(with: urlRequest) { data, urlResponse, error in
76 | do {
77 | try validator.validateNoError(error)
| `- warning: capture of 'self' with non-sendable type 'RequestPerformer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
78 | try validator.validateStatus(from: urlResponse)
79 | let validData = try validator.validateData(data)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:82:17: warning: capture of 'completion' with non-sendable type '(Result<T, NetworkingError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
80 |
81 | let result = try requestDecoder.decode(decodableObject, from: validData)
82 | completion(.success(result))
| |- warning: capture of 'completion' with non-sendable type '(Result<T, NetworkingError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
83 | } catch {
84 | completion(.failure(mapError(error)))
[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/Downloader/FileDownloadable.swift:101:23: warning: capture of 'self' with non-sendable type 'FileDownloader?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: class 'FileDownloader' does not conform to the 'Sendable' protocol
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
99 |
100 | let task = urlSession.downloadTask(with: url) { [weak self] localURL, response, error in
101 | guard let self else {
| `- warning: capture of 'self' with non-sendable type 'FileDownloader?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
102 | completion(.failure(.internalError(.lostReferenceOfSelf)))
103 | return
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:102:17: warning: capture of 'completion' with non-sendable type 'DownloadCompletionHandler' (aka '(Result<URL, NetworkingError>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
100 | let task = urlSession.downloadTask(with: url) { [weak self] localURL, response, error in
101 | guard let self else {
102 | completion(.failure(.internalError(.lostReferenceOfSelf)))
| |- warning: capture of 'completion' with non-sendable type 'DownloadCompletionHandler' (aka '(Result<URL, NetworkingError>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 | return
104 | }
/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 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:77:21: warning: capture of 'self' with non-sendable type 'RequestPerformer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: consider making struct 'RequestPerformer' conform to the 'Sendable' protocol
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
75 | let task = urlSession.dataTask(with: urlRequest) { data, urlResponse, error in
76 | do {
77 | try validator.validateNoError(error)
| `- warning: capture of 'self' with non-sendable type 'RequestPerformer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
78 | try validator.validateStatus(from: urlResponse)
79 | let validData = try validator.validateData(data)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:82:17: warning: capture of 'completion' with non-sendable type '(Result<T, NetworkingError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
80 |
81 | let result = try requestDecoder.decode(decodableObject, from: validData)
82 | completion(.success(result))
| |- warning: capture of 'completion' with non-sendable type '(Result<T, NetworkingError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
83 | } catch {
84 | completion(.failure(mapError(error)))
[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/Downloader/FileDownloadable.swift:101:23: warning: capture of 'self' with non-sendable type 'FileDownloader?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
12 | }
13 |
14 | public class FileDownloader: FileDownloadable {
| `- note: class 'FileDownloader' does not conform to the 'Sendable' protocol
15 | private let urlSession: URLSessionTaskProtocol
16 | private let validator: ResponseValidator
:
99 |
100 | let task = urlSession.downloadTask(with: url) { [weak self] localURL, response, error in
101 | guard let self else {
| `- warning: capture of 'self' with non-sendable type 'FileDownloader?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
102 | completion(.failure(.internalError(.lostReferenceOfSelf)))
103 | return
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Downloader/FileDownloadable.swift:102:17: warning: capture of 'completion' with non-sendable type 'DownloadCompletionHandler' (aka '(Result<URL, NetworkingError>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
100 | let task = urlSession.downloadTask(with: url) { [weak self] localURL, response, error in
101 | guard let self else {
102 | completion(.failure(.internalError(.lostReferenceOfSelf)))
| |- warning: capture of 'completion' with non-sendable type 'DownloadCompletionHandler' (aka '(Result<URL, NetworkingError>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
103 | return
104 | }
/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 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:77:21: warning: capture of 'self' with non-sendable type 'RequestPerformer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
8 | }
9 |
10 | public struct RequestPerformer: RequestPerformable {
| `- note: consider making struct 'RequestPerformer' conform to the 'Sendable' protocol
11 | private let urlSession: URLSessionTaskProtocol
12 | private let validator: ResponseValidator
:
75 | let task = urlSession.dataTask(with: urlRequest) { data, urlResponse, error in
76 | do {
77 | try validator.validateNoError(error)
| `- warning: capture of 'self' with non-sendable type 'RequestPerformer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
78 | try validator.validateStatus(from: urlResponse)
79 | let validData = try validator.validateData(data)
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Util/Performers/RequestPerformer.swift:82:17: warning: capture of 'completion' with non-sendable type '(Result<T, NetworkingError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
80 |
81 | let result = try requestDecoder.decode(decodableObject, from: validData)
82 | completion(.success(result))
| |- warning: capture of 'completion' with non-sendable type '(Result<T, NetworkingError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
83 | } catch {
84 | completion(.failure(mapError(error)))
[7/42] Compiling EZNetworking RequestDecoder.swift
[8/42] Compiling EZNetworking HTTPHeaderEncoder.swift
[9/42] Compiling EZNetworking HTTPParameterEncoder.swift
[10/42] Compiling EZNetworking InternalError.swift
[11/42] Compiling EZNetworking CacheInterceptor.swift
[12/42] Compiling EZNetworking DataTaskInterceptor.swift
[13/42] Compiling EZNetworking DownloadTaskInterceptor.swift
[14/42] Compiling EZNetworking MetricsInterceptor.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 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.data:2:13: note: 'data(for:delegate:)' declared here
1 | class URLSession {
2 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(for:delegate:)' declared here
3 |
/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.data:2:13: note: 'data(from:delegate:)' declared here
1 | class URLSession {
2 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(from:delegate:)' declared here
3 |
/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.download:2:13: note: 'download(from:delegate:)' declared here
1 | class URLSession {
2 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)}
| `- note: 'download(from:delegate:)' declared here
3 |
[20/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.data:2:13: note: 'data(for:delegate:)' declared here
1 | class URLSession {
2 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(for:delegate:)' declared here
3 |
/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.data:2:13: note: 'data(from:delegate:)' declared here
1 | class URLSession {
2 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(from:delegate:)' declared here
3 |
/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.download:2:13: note: 'download(from:delegate:)' declared here
1 | class URLSession {
2 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)}
| `- note: 'download(from:delegate:)' declared here
3 |
[21/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.data:2:13: note: 'data(for:delegate:)' declared here
1 | class URLSession {
2 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(for:delegate:)' declared here
3 |
/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.data:2:13: note: 'data(from:delegate:)' declared here
1 | class URLSession {
2 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(from:delegate:)' declared here
3 |
/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.download:2:13: note: 'download(from:delegate:)' declared here
1 | class URLSession {
2 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)}
| `- note: 'download(from:delegate:)' declared here
3 |
[22/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.data:2:13: note: 'data(for:delegate:)' declared here
1 | class URLSession {
2 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(for:delegate:)' declared here
3 |
/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.data:2:13: note: 'data(from:delegate:)' declared here
1 | class URLSession {
2 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(from:delegate:)' declared here
3 |
/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.download:2:13: note: 'download(from:delegate:)' declared here
1 | class URLSession {
2 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)}
| `- note: 'download(from:delegate:)' declared here
3 |
[23/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 |
[24/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 |
[25/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 |
[26/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 |
[27/42] Compiling EZNetworking HTTPHeader.swift
[28/42] Compiling EZNetworking HTTPMethod.swift
[29/42] Compiling EZNetworking HTTPParameters.swift
[30/42] Compiling EZNetworking AuthenticationInterceptor.swift
[31/42] Compiling EZNetworking NetworkingError.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:8:10: warning: associated value 'information' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPInformationalStatus, URLResponseHeaders)' (aka '(HTTPInformationalStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
6 |
7 | // HTTP Status Code errors
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
| `- warning: associated value 'information' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPInformationalStatus, URLResponseHeaders)' (aka '(HTTPInformationalStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:9:10: warning: associated value 'redirect' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPRedirectionStatus, URLResponseHeaders)' (aka '(HTTPRedirectionStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
7 | // HTTP Status Code errors
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
| `- warning: associated value 'redirect' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPRedirectionStatus, URLResponseHeaders)' (aka '(HTTPRedirectionStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:10:10: warning: associated value 'httpClientError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPClientErrorStatus, URLResponseHeaders)' (aka '(HTTPClientErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
| `- warning: associated value 'httpClientError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPClientErrorStatus, URLResponseHeaders)' (aka '(HTTPClientErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
12 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:11:10: warning: associated value 'httpServerError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPServerErrorStatus, URLResponseHeaders)' (aka '(HTTPServerErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
| `- warning: associated value 'httpServerError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPServerErrorStatus, URLResponseHeaders)' (aka '(HTTPServerErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
12 |
13 | // URL Errors
[32/42] Compiling EZNetworking HTTPStatusCodeType.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:8:10: warning: associated value 'information' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPInformationalStatus, URLResponseHeaders)' (aka '(HTTPInformationalStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
6 |
7 | // HTTP Status Code errors
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
| `- warning: associated value 'information' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPInformationalStatus, URLResponseHeaders)' (aka '(HTTPInformationalStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:9:10: warning: associated value 'redirect' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPRedirectionStatus, URLResponseHeaders)' (aka '(HTTPRedirectionStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
7 | // HTTP Status Code errors
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
| `- warning: associated value 'redirect' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPRedirectionStatus, URLResponseHeaders)' (aka '(HTTPRedirectionStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:10:10: warning: associated value 'httpClientError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPClientErrorStatus, URLResponseHeaders)' (aka '(HTTPClientErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
| `- warning: associated value 'httpClientError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPClientErrorStatus, URLResponseHeaders)' (aka '(HTTPClientErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
12 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:11:10: warning: associated value 'httpServerError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPServerErrorStatus, URLResponseHeaders)' (aka '(HTTPServerErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
| `- warning: associated value 'httpServerError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPServerErrorStatus, URLResponseHeaders)' (aka '(HTTPServerErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
12 |
13 | // URL Errors
[33/42] Compiling EZNetworking HTTPClientErrorStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:8:10: warning: associated value 'information' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPInformationalStatus, URLResponseHeaders)' (aka '(HTTPInformationalStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
6 |
7 | // HTTP Status Code errors
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
| `- warning: associated value 'information' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPInformationalStatus, URLResponseHeaders)' (aka '(HTTPInformationalStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:9:10: warning: associated value 'redirect' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPRedirectionStatus, URLResponseHeaders)' (aka '(HTTPRedirectionStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
7 | // HTTP Status Code errors
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
| `- warning: associated value 'redirect' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPRedirectionStatus, URLResponseHeaders)' (aka '(HTTPRedirectionStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:10:10: warning: associated value 'httpClientError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPClientErrorStatus, URLResponseHeaders)' (aka '(HTTPClientErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
| `- warning: associated value 'httpClientError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPClientErrorStatus, URLResponseHeaders)' (aka '(HTTPClientErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
12 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:11:10: warning: associated value 'httpServerError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPServerErrorStatus, URLResponseHeaders)' (aka '(HTTPServerErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
| `- warning: associated value 'httpServerError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPServerErrorStatus, URLResponseHeaders)' (aka '(HTTPServerErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
12 |
13 | // URL Errors
[34/42] Compiling EZNetworking HTTPInformationalStatus.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:8:10: warning: associated value 'information' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPInformationalStatus, URLResponseHeaders)' (aka '(HTTPInformationalStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
6 |
7 | // HTTP Status Code errors
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
| `- warning: associated value 'information' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPInformationalStatus, URLResponseHeaders)' (aka '(HTTPInformationalStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:9:10: warning: associated value 'redirect' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPRedirectionStatus, URLResponseHeaders)' (aka '(HTTPRedirectionStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
7 | // HTTP Status Code errors
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
| `- warning: associated value 'redirect' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPRedirectionStatus, URLResponseHeaders)' (aka '(HTTPRedirectionStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:10:10: warning: associated value 'httpClientError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPClientErrorStatus, URLResponseHeaders)' (aka '(HTTPClientErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
8 | case information(HTTPInformationalStatus, URLResponseHeaders) /// 1xx status code errors
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
| `- warning: associated value 'httpClientError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPClientErrorStatus, URLResponseHeaders)' (aka '(HTTPClientErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
12 |
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Error/NetworkingError.swift:11:10: warning: associated value 'httpServerError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPServerErrorStatus, URLResponseHeaders)' (aka '(HTTPServerErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
9 | case redirect(HTTPRedirectionStatus, URLResponseHeaders) /// 3xx status code errors
10 | case httpClientError(HTTPClientErrorStatus, URLResponseHeaders) /// 4xx status code errors
11 | case httpServerError(HTTPServerErrorStatus, URLResponseHeaders) /// 5xx status code errors
| `- warning: associated value 'httpServerError' of 'Sendable'-conforming enum 'NetworkingError' has non-sendable type '(HTTPServerErrorStatus, URLResponseHeaders)' (aka '(HTTPServerErrorStatus, Dictionary<AnyHashable, Any>)'); this is an error in the Swift 6 language mode
12 |
13 | // URL Errors
[35/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)
[36/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)
[37/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)
[38/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)
[39/42] Compiling EZNetworking SessionDelegate+URLSessionDataDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(_ session: URLSession,
5 | didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor? = nil
5 | public weak var authenticationInterceptor: AuthenticationInterceptor? = nil
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor? = nil
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor? = nil
6 | public weak var redirectInterceptor: RedirectInterceptor? = nil
[40/42] Compiling EZNetworking SessionDelegate+URLSessionDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(_ session: URLSession,
5 | didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor? = nil
5 | public weak var authenticationInterceptor: AuthenticationInterceptor? = nil
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor? = nil
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor? = nil
6 | public weak var redirectInterceptor: RedirectInterceptor? = nil
[41/42] Compiling EZNetworking SessionDelegate+URLSessionDownloadDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(_ session: URLSession,
5 | didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor? = nil
5 | public weak var authenticationInterceptor: AuthenticationInterceptor? = nil
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor? = nil
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor? = nil
6 | public weak var redirectInterceptor: RedirectInterceptor? = nil
[42/42] Compiling EZNetworking SessionDelegate+URLSessionStreamDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate+Extensions/SessionDelegate+URLSessionDelegate.swift:3:1: warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | extension SessionDelegate: URLSessionDelegate {
| `- warning: conformance to 'Sendable' must occur in the same source file as class 'SessionDelegate'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
4 | public func urlSession(_ session: URLSession,
5 | didReceive challenge: URLAuthenticationChallenge) async -> (URLSession.AuthChallengeDisposition, URLCredential?) {
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate.swift:3:14: warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public class SessionDelegate: NSObject {
| `- warning: non-final class 'SessionDelegate' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
4 | public weak var cacheInterceptor: CacheInterceptor? = nil
5 | public weak var authenticationInterceptor: AuthenticationInterceptor? = nil
/Users/admin/builder/spi-builder-workspace/Sources/EZNetworking/Interceptors/SessionDelegate.swift:4:21: warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
2 |
3 | public class SessionDelegate: NSObject {
4 | public weak var cacheInterceptor: CacheInterceptor? = nil
| `- warning: stored property 'cacheInterceptor' of 'Sendable'-conforming class 'SessionDelegate' is mutable; this is an error in the Swift 6 language mode
5 | public weak var authenticationInterceptor: AuthenticationInterceptor? = nil
6 | public weak var redirectInterceptor: RedirectInterceptor? = nil
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/38] 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.data:2:13: note: 'data(for:delegate:)' declared here
1 | class URLSession {
2 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(for:delegate:)' declared here
3 |
/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.data:2:13: note: 'data(from:delegate:)' declared here
1 | class URLSession {
2 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(from:delegate:)' declared here
3 |
/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.download:2:13: note: 'download(from:delegate:)' declared here
1 | class URLSession {
2 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)}
| `- note: 'download(from:delegate:)' declared here
3 |
/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
[3/41] 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 |
[4/41] 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 |
[5/41] 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 |
[6/41] 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 |
[7/41] 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.data:2:13: note: 'data(for:delegate:)' declared here
1 | class URLSession {
2 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(for:delegate:)' declared here
3 |
/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.data:2:13: note: 'data(from:delegate:)' declared here
1 | class URLSession {
2 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(from:delegate:)' declared here
3 |
/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.download:2:13: note: 'download(from:delegate:)' declared here
1 | class URLSession {
2 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)}
| `- note: 'download(from:delegate:)' declared here
3 |
[8/41] 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.data:2:13: note: 'data(for:delegate:)' declared here
1 | class URLSession {
2 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(for:delegate:)' declared here
3 |
/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.data:2:13: note: 'data(from:delegate:)' declared here
1 | class URLSession {
2 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(from:delegate:)' declared here
3 |
/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.download:2:13: note: 'download(from:delegate:)' declared here
1 | class URLSession {
2 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)}
| `- note: 'download(from:delegate:)' declared here
3 |
[9/41] 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.data:2:13: note: 'data(for:delegate:)' declared here
1 | class URLSession {
2 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(for:delegate:)' declared here
3 |
/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.data:2:13: note: 'data(from:delegate:)' declared here
1 | class URLSession {
2 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(from:delegate:)' declared here
3 |
/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.download:2:13: note: 'download(from:delegate:)' declared here
1 | class URLSession {
2 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)}
| `- note: 'download(from:delegate:)' declared here
3 |
[10/41] 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.data:2:13: note: 'data(for:delegate:)' declared here
1 | class URLSession {
2 | public func data(for request: URLRequest, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(for:delegate:)' declared here
3 |
/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.data:2:13: note: 'data(from:delegate:)' declared here
1 | class URLSession {
2 | public func data(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (Data, URLResponse)}
| `- note: 'data(from:delegate:)' declared here
3 |
/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.download:2:13: note: 'download(from:delegate:)' declared here
1 | class URLSession {
2 | public func download(from url: URL, delegate: (any URLSessionTaskDelegate)? = nil) async throws -> (URL, URLResponse)}
| `- note: 'download(from:delegate:)' declared here
3 |
[11/41] Compiling EZNetworking CacheInterceptor.swift
[12/41] Compiling EZNetworking DataTaskInterceptor.swift
[13/41] Compiling EZNetworking DownloadTaskInterceptor.swift
[14/41] Compiling EZNetworking MetricsInterceptor.swift
[15/41] Compiling EZNetworking RequestDecoder.swift
[16/41] Compiling EZNetworking HTTPHeaderEncoder.swift
[17/41] Compiling EZNetworking HTTPParameterEncoder.swift
[18/41] Compiling EZNetworking InternalError.swift
[19/41] 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)
[20/41] 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)
[21/41] 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)
[22/41] 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)
[23/41] Compiling EZNetworking SessionDelegate+URLSessionDataDelegate.swift
[24/41] Compiling EZNetworking SessionDelegate+URLSessionDelegate.swift
[25/41] Compiling EZNetworking SessionDelegate+URLSessionDownloadDelegate.swift
[26/41] Compiling EZNetworking SessionDelegate+URLSessionStreamDelegate.swift
[27/41] Compiling EZNetworking HTTPRedirectionStatus.swift
[28/41] Compiling EZNetworking HTTPServerErrorStatus.swift
[29/41] Compiling EZNetworking HTTPSuccessStatus.swift
[30/41] Compiling EZNetworking HTTPBody.swift
[31/41] Compiling EZNetworking HTTPHeader.swift
[32/41] Compiling EZNetworking HTTPMethod.swift
[33/41] Compiling EZNetworking HTTPParameters.swift
[34/41] Compiling EZNetworking AuthenticationInterceptor.swift
[35/41] Compiling EZNetworking NetworkingError.swift
[36/41] Compiling EZNetworking HTTPStatusCodeType.swift
[37/41] Compiling EZNetworking HTTPClientErrorStatus.swift
[38/41] Compiling EZNetworking HTTPInformationalStatus.swift
[39/41] 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 |
[40/41] 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 |
[41/41] 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 |
BUILD FAILURE 6.1 macosSpm