Build Information
Failed to build JNetworkManager, reference main (78dd63
), with Swift 6.2 (beta) for macOS (SPM) on 23 Jun 2025 14:33:34 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jeetrajput01/JNetworkManager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jeetrajput01/JNetworkManager
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 78dd634 version 1.3.3
Cloned https://github.com/jeetrajput01/JNetworkManager.git
Revision (git rev-parse @):
78dd6343c2155689bae4613bc2a0fcce07c47366
SUCCESS checkout https://github.com/jeetrajput01/JNetworkManager.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/jeetrajput01/JNetworkManager.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[0/4] Copying PrivacyInfo.xcprivacy
[2/4] Write sources
[3/4] Write swift-version-1EA4D86E10B52AF.txt
[5/44] Emitting module Alamofire
[6/48] Compiling Alamofire HTTPHeaders.swift
[7/48] Compiling Alamofire HTTPMethod.swift
[8/48] Compiling Alamofire Notifications.swift
[9/48] Compiling Alamofire ParameterEncoder.swift
[10/48] Compiling Alamofire ParameterEncoding.swift
[11/48] Compiling Alamofire ServerTrustEvaluation.swift
[12/48] Compiling Alamofire URLEncodedFormEncoder.swift
[13/48] Compiling Alamofire Validation.swift
[14/48] Compiling Alamofire resource_bundle_accessor.swift
[15/48] Compiling Alamofire URLRequest+Alamofire.swift
[16/48] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[17/48] Compiling Alamofire AlamofireExtended.swift
[18/48] Compiling Alamofire AuthenticationInterceptor.swift
[19/48] Compiling Alamofire CachedResponseHandler.swift
[20/48] Compiling Alamofire Combine.swift
[21/48] Compiling Alamofire Concurrency.swift
[22/48] Compiling Alamofire EventMonitor.swift
[23/48] Compiling Alamofire Protected.swift
[24/48] Compiling Alamofire Request.swift
[25/48] Compiling Alamofire RequestTaskMap.swift
[26/48] Compiling Alamofire Response.swift
[27/48] Compiling Alamofire Session.swift
[28/48] Compiling Alamofire SessionDelegate.swift
[29/48] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[30/48] Compiling Alamofire UploadRequest.swift
[31/48] Compiling Alamofire WebSocketRequest.swift
[32/48] Compiling Alamofire DispatchQueue+Alamofire.swift
[33/48] Compiling Alamofire OperationQueue+Alamofire.swift
[34/48] Compiling Alamofire Result+Alamofire.swift
[35/48] Compiling Alamofire StringEncoding+Alamofire.swift
[36/48] Compiling Alamofire RequestCompression.swift
[37/48] Compiling Alamofire RequestInterceptor.swift
[38/48] Compiling Alamofire ResponseSerialization.swift
[39/48] Compiling Alamofire RetryPolicy.swift
[40/48] Compiling Alamofire Alamofire.swift
[41/48] Compiling Alamofire AFError.swift
[42/48] Compiling Alamofire DataRequest.swift
[43/48] Compiling Alamofire DataStreamRequest.swift
[44/48] Compiling Alamofire DownloadRequest.swift
[45/48] Compiling Alamofire MultipartFormData.swift
[46/48] Compiling Alamofire MultipartUpload.swift
[47/48] Compiling Alamofire NetworkReachabilityManager.swift
[48/48] Compiling Alamofire RedirectHandler.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[49/51] Compiling JNetworkManager Extension.swift
[50/51] Emitting module JNetworkManager
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:528:102: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
515 |
516 | //MARK: - Error handling
517 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
518 |
519 | /// Handles errors returned by Alamofire during network requests.
:
526 | /// - response: The `AFDataResponse<Data>` that contains the response data and metadata associated with the failed request.
527 | /// - continuation: A `CheckedContinuation<Result<Any, Error>, Error>` used to resume the asynchronous operation with the error result.
528 | private class func handleAFError(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<Any, Error>, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class method
529 | print("Request failed: \(error.localizedDescription)")
530 | if error.isSessionTaskError || error.isExplicitlyCancelledError {
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:550:105: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
515 |
516 | //MARK: - Error handling
517 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
518 |
519 | /// Handles errors returned by Alamofire during network requests.
:
548 | /// - response: The `AFDataResponse<Data>` that contains the response data and metadata associated with the failed request.
549 | /// - continuation: A `CheckedContinuation<Result<T, Error>, Error>` used to resume the asynchronous operation with the error result for a generic type `T`.
550 | private class func handleAFError<T>(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<T, Error>, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class method
551 | print("Request failed: \(error.localizedDescription)")
552 |
[51/51] Compiling JNetworkManager JNetworkManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:528:102: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
515 |
516 | //MARK: - Error handling
517 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
518 |
519 | /// Handles errors returned by Alamofire during network requests.
:
526 | /// - response: The `AFDataResponse<Data>` that contains the response data and metadata associated with the failed request.
527 | /// - continuation: A `CheckedContinuation<Result<Any, Error>, Error>` used to resume the asynchronous operation with the error result.
528 | private class func handleAFError(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<Any, Error>, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class method
529 | print("Request failed: \(error.localizedDescription)")
530 | if error.isSessionTaskError || error.isExplicitlyCancelledError {
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:550:105: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
515 |
516 | //MARK: - Error handling
517 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
518 |
519 | /// Handles errors returned by Alamofire during network requests.
:
548 | /// - response: The `AFDataResponse<Data>` that contains the response data and metadata associated with the failed request.
549 | /// - continuation: A `CheckedContinuation<Result<T, Error>, Error>` used to resume the asynchronous operation with the error result for a generic type `T`.
550 | private class func handleAFError<T>(_ error: AFError, response: AFDataResponse<Data>, continuation: CheckedContinuation<Result<T, Error>, Error>) {
| | `- error: 'CheckedContinuation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class method
551 | print("Request failed: \(error.localizedDescription)")
552 |
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:80:34: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
54 | }
55 |
56 | public class JNetworkManager {
| `- note: add @available attribute to enclosing class
57 |
58 | /// Asynchronously makes an API request using a generic `Codable` type for the response.
:
69 | /// - type: The type conforming to `Codable` that the response should be decoded into.
70 | /// - Returns: An asynchronous result of type `Result<T, Error>`, where `T` is the specified `Codable` type. The result will either contain the decoded data on success, or an error on failure.
71 | public class func makeAsyncRequest<T:Codable>(url: String, method: HTTPMethod, parameter: [String:Any]?, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, type: T.Type) async -> Result<T,Error> {
| `- note: add @available attribute to enclosing class method
72 |
73 | guard self.isInternetAvailable() else {
:
78 | case .success(let urlRequest):
79 | do {
80 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 |
82 | AF.request(urlRequest)
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:80:67: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:80:66: note: expanded code originates here
54 | }
55 |
56 | public class JNetworkManager {
| `- note: add @available attribute to enclosing class
57 |
58 | /// Asynchronously makes an API request using a generic `Codable` type for the response.
:
69 | /// - type: The type conforming to `Codable` that the response should be decoded into.
70 | /// - Returns: An asynchronous result of type `Result<T, Error>`, where `T` is the specified `Codable` type. The result will either contain the decoded data on success, or an error on failure.
71 | public class func makeAsyncRequest<T:Codable>(url: String, method: HTTPMethod, parameter: [String:Any]?, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, type: T.Type) async -> Result<T,Error> {
| `- note: add @available attribute to enclosing class method
72 |
73 | guard self.isInternetAvailable() else {
:
78 | case .success(let urlRequest):
79 | do {
80 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift
|78 |
|79 |
|80 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------
81 |
82 | AF.request(urlRequest)
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:92:54: warning: capture of non-sendable type 'T.Type' in an isolated closure
90 | print(responseData.prettyPrintedJSONString ?? "")
91 | guard let httpResponse = response.response else {
92 | continuation.resume(returning: .failure(NetworkError.unknown))
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
93 | return
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:80:68: warning: capture of non-sendable type 'T.Type' in an isolated closure
78 | case .success(let urlRequest):
79 | do {
80 | return try await withCheckedThrowingContinuation { continuation in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
81 |
82 | AF.request(urlRequest)
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:172:34: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
54 | }
55 |
56 | public class JNetworkManager {
| `- note: add @available attribute to enclosing class
57 |
58 | /// Asynchronously makes an API request using a generic `Codable` type for the response.
:
160 | /// - Returns: An asynchronous result of type `Result<T, Error>`, where `T` is the specified `Codable` type. The result will either contain the decoded data on success, or an error on failure.
161 | @Sendable
162 | public class func makeAsyncUploadRequest<T: Codable>(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObjects: [String: [mediaObject]]? = nil, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, type: T.Type, progressHandler: ((Double) -> Void)? = nil) async -> Result<T, Error> {
| `- note: add @available attribute to enclosing class method
163 |
164 | guard self.isInternetAvailable() else {
:
170 | case .success(let urlRequest):
171 | do {
172 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
173 |
174 | AF.upload(multipartFormData: { multipartFormData in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:172:67: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:172:66: note: expanded code originates here
54 | }
55 |
56 | public class JNetworkManager {
| `- note: add @available attribute to enclosing class
57 |
58 | /// Asynchronously makes an API request using a generic `Codable` type for the response.
:
160 | /// - Returns: An asynchronous result of type `Result<T, Error>`, where `T` is the specified `Codable` type. The result will either contain the decoded data on success, or an error on failure.
161 | @Sendable
162 | public class func makeAsyncUploadRequest<T: Codable>(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObjects: [String: [mediaObject]]? = nil, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, type: T.Type, progressHandler: ((Double) -> Void)? = nil) async -> Result<T, Error> {
| `- note: add @available attribute to enclosing class method
163 |
164 | guard self.isInternetAvailable() else {
:
170 | case .success(let urlRequest):
171 | do {
172 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift
|170 |
|171 |
|172 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------
173 |
174 | AF.upload(multipartFormData: { multipartFormData in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:196:25: warning: capture of 'progressHandler' with non-sendable type '((Double) -> Void)?' in a '@Sendable' closure [#SendableClosureCaptures]
194 | }, with: urlRequest)
195 | .uploadProgress { progress in
196 | progressHandler?(progress.fractionCompleted)
| |- warning: capture of 'progressHandler' with non-sendable type '((Double) -> Void)?' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
197 | }
198 | .responseData(queue: .global(qos: .background)) { response in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:206:50: warning: capture of non-sendable type 'T.Type' in an isolated closure
204 | print(responseData.prettyPrintedJSONString ?? "")
205 | guard let httpResponse = response.response else {
206 | continuation.resume(returning: .failure(NetworkError.unknown))
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
207 | return
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:172:68: warning: capture of non-sendable type 'T.Type' in an isolated closure
170 | case .success(let urlRequest):
171 | do {
172 | return try await withCheckedThrowingContinuation { continuation in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
173 |
174 | AF.upload(multipartFormData: { multipartFormData in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:262:34: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
236 |
237 | //MARK: - Without generic
238 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
239 |
240 | /// Asynchronously performs an API request and returns the response as a generic result.
:
251 | /// - timeoutInterval: The timeout interval for the request in seconds. The default value is 30 seconds.
252 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
253 | public class func makeAsyncRequest(url: String, method: HTTPMethod, parameter: [String:Any]?,headers: [String: String] = [:],timeoutInterval: TimeInterval = 30) async -> Result<Any,Error> {
| `- note: add @available attribute to enclosing class method
254 |
255 | guard self.isInternetAvailable() else {
:
260 | case .success(let urlRequest):
261 | do {
262 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
263 |
264 | AF.request(urlRequest)
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:262:67: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:262:66: note: expanded code originates here
236 |
237 | //MARK: - Without generic
238 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
239 |
240 | /// Asynchronously performs an API request and returns the response as a generic result.
:
251 | /// - timeoutInterval: The timeout interval for the request in seconds. The default value is 30 seconds.
252 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
253 | public class func makeAsyncRequest(url: String, method: HTTPMethod, parameter: [String:Any]?,headers: [String: String] = [:],timeoutInterval: TimeInterval = 30) async -> Result<Any,Error> {
| `- note: add @available attribute to enclosing class method
254 |
255 | guard self.isInternetAvailable() else {
:
260 | case .success(let urlRequest):
261 | do {
262 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift
|260 |
|261 |
|262 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------
263 |
264 | AF.request(urlRequest)
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:360:34: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
236 |
237 | //MARK: - Without generic
238 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
239 |
240 | /// Asynchronously performs an API request and returns the response as a generic result.
:
348 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
349 | @Sendable
350 | public class func makeAsyncUploadRequest(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObj: [String: mediaObject]?, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, progressHandler: ((Double) -> Void)? = nil) async -> Result<Any, Error> {
| `- note: add @available attribute to enclosing class method
351 |
352 | guard self.isInternetAvailable() else {
:
358 | case .success(let urlRequest):
359 | do {
360 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 |
362 | // Perform the upload
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:360:67: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:360:66: note: expanded code originates here
236 |
237 | //MARK: - Without generic
238 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
239 |
240 | /// Asynchronously performs an API request and returns the response as a generic result.
:
348 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
349 | @Sendable
350 | public class func makeAsyncUploadRequest(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObj: [String: mediaObject]?, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, progressHandler: ((Double) -> Void)? = nil) async -> Result<Any, Error> {
| `- note: add @available attribute to enclosing class method
351 |
352 | guard self.isInternetAvailable() else {
:
358 | case .success(let urlRequest):
359 | do {
360 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift
|358 |
|359 |
|360 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------
361 |
362 | // Perform the upload
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:383:25: warning: capture of 'progressHandler' with non-sendable type '((Double) -> Void)?' in a '@Sendable' closure [#SendableClosureCaptures]
381 | }, with: urlRequest)
382 | .uploadProgress { progress in
383 | progressHandler?(progress.fractionCompleted)
| |- warning: capture of 'progressHandler' with non-sendable type '((Double) -> Void)?' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
384 | }
385 | .responseData(queue: .global(qos: .background)) { response in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:449:34: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
236 |
237 | //MARK: - Without generic
238 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
239 |
240 | /// Asynchronously performs an API request and returns the response as a generic result.
:
437 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
438 | @Sendable
439 | public class func makeAsyncUploadRequest(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObjects: [String: [mediaObject]]? = nil, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, progressHandler: ((Double) -> Void)? = nil) async -> Result<Any, Error> {
| `- note: add @available attribute to enclosing class method
440 |
441 | guard self.isInternetAvailable() else {
:
447 | case .success(let urlRequest):
448 | do {
449 | return try await withCheckedThrowingContinuation { continuation in
| |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
450 |
451 | AF.upload(multipartFormData: { multipartFormData in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:449:67: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:449:66: note: expanded code originates here
236 |
237 | //MARK: - Without generic
238 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
239 |
240 | /// Asynchronously performs an API request and returns the response as a generic result.
:
437 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
438 | @Sendable
439 | public class func makeAsyncUploadRequest(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObjects: [String: [mediaObject]]? = nil, headers: [String: String] = [:], timeoutInterval: TimeInterval = 30, progressHandler: ((Double) -> Void)? = nil) async -> Result<Any, Error> {
| `- note: add @available attribute to enclosing class method
440 |
441 | guard self.isInternetAvailable() else {
:
447 | case .success(let urlRequest):
448 | do {
449 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift
|447 |
|448 |
|449 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------
450 |
451 | AF.upload(multipartFormData: { multipartFormData in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:473:25: warning: capture of 'progressHandler' with non-sendable type '((Double) -> Void)?' in a '@Sendable' closure [#SendableClosureCaptures]
471 | }, with: urlRequest)
472 | .uploadProgress { progress in
473 | progressHandler?(progress.fractionCompleted)
| |- warning: capture of 'progressHandler' with non-sendable type '((Double) -> Void)?' in a '@Sendable' closure [#SendableClosureCaptures]
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
474 | }
475 | .responseData(queue: .global(qos: .background)) { response in
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
Fetching https://github.com/Alamofire/Alamofire.git
[1/30141] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (2.64s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (3.07s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.10.2
BUILD FAILURE 6.2 macosSpm