Build Information
Failed to build JNetworkManager, reference 1.3.3 (78dd63
), with Swift 6.0 for macOS (SPM) on 3 Apr 2025 09:50:22 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jeetrajput01/JNetworkManager.git
Reference: 1.3.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jeetrajput01/JNetworkManager
* tag 1.3.3 -> FETCH_HEAD
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 1.3.3
Fetching https://github.com/Alamofire/Alamofire.git
[1/30132] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (2.77s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.9.1 (0.45s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.9.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "jnetworkmanager",
"name": "JNetworkManager",
"url": "https://github.com/jeetrajput01/JNetworkManager.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/JNetworkManager",
"dependencies": [
{
"identity": "alamofire",
"name": "Alamofire",
"url": "https://github.com/Alamofire/Alamofire.git",
"version": "5.10.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Alamofire",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/jeetrajput01/JNetworkManager.git
[1/203] Fetching jnetworkmanager
Fetched https://github.com/jeetrajput01/JNetworkManager.git from cache (0.68s)
Fetching https://github.com/Alamofire/Alamofire.git from cache
Fetched https://github.com/Alamofire/Alamofire.git from cache (0.66s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (0.40s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.10.2
Creating working copy for https://github.com/jeetrajput01/JNetworkManager.git
Working copy of https://github.com/jeetrajput01/JNetworkManager.git resolved at 1.3.3 (78dd634)
warning: '.resolve-product-dependencies': dependency 'jnetworkmanager' is not used by any target
Found 1 product dependencies
- Alamofire
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/jeetrajput01/JNetworkManager.git
https://github.com/jeetrajput01/JNetworkManager.git
{
"dependencies" : [
{
"identity" : "alamofire",
"requirement" : {
"range" : [
{
"lower_bound" : "5.9.1",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Alamofire/Alamofire.git"
}
],
"manifest_display_name" : "JNetworkManager",
"name" : "JNetworkManager",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "JNetworkManager",
"targets" : [
"JNetworkManager"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "JNetworkManagerTests",
"module_type" : "SwiftTarget",
"name" : "JNetworkManagerTests",
"path" : "Tests/JNetworkManagerTests",
"sources" : [
"JNetworkManagerTests.swift"
],
"target_dependencies" : [
"JNetworkManager"
],
"type" : "test"
},
{
"c99name" : "JNetworkManager",
"module_type" : "SwiftTarget",
"name" : "JNetworkManager",
"path" : "Sources/JNetworkManager",
"product_dependencies" : [
"Alamofire"
],
"product_memberships" : [
"JNetworkManager"
],
"sources" : [
"Extension.swift",
"JNetworkManager.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/4] Write sources
[2/4] Copying PrivacyInfo.xcprivacy
[3/4] Write swift-version-5BDAB9E9C0126B9D.txt
[5/44] Emitting module Alamofire
[6/48] Compiling Alamofire URLRequest+Alamofire.swift
[7/48] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[8/48] Compiling Alamofire AlamofireExtended.swift
[9/48] Compiling Alamofire AuthenticationInterceptor.swift
[10/48] Compiling Alamofire MultipartFormData.swift
[11/48] Compiling Alamofire MultipartUpload.swift
[12/48] Compiling Alamofire NetworkReachabilityManager.swift
[13/48] Compiling Alamofire RedirectHandler.swift
[14/48] Compiling Alamofire HTTPHeaders.swift
[15/48] Compiling Alamofire HTTPMethod.swift
[16/48] Compiling Alamofire Notifications.swift
[17/48] Compiling Alamofire ParameterEncoder.swift
[18/48] Compiling Alamofire ParameterEncoding.swift
[19/48] Compiling Alamofire SessionDelegate.swift
[20/48] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[21/48] Compiling Alamofire UploadRequest.swift
[22/48] Compiling Alamofire WebSocketRequest.swift
[23/48] Compiling Alamofire Alamofire.swift
[24/48] Compiling Alamofire AFError.swift
[25/48] Compiling Alamofire DataRequest.swift
[26/48] Compiling Alamofire DataStreamRequest.swift
[27/48] Compiling Alamofire DownloadRequest.swift
[28/48] Compiling Alamofire ServerTrustEvaluation.swift
[29/48] Compiling Alamofire URLEncodedFormEncoder.swift
[30/48] Compiling Alamofire Validation.swift
[31/48] Compiling Alamofire resource_bundle_accessor.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 CachedResponseHandler.swift
[37/48] Compiling Alamofire Combine.swift
[38/48] Compiling Alamofire Concurrency.swift
[39/48] Compiling Alamofire EventMonitor.swift
[40/48] Compiling Alamofire RequestCompression.swift
[41/48] Compiling Alamofire RequestInterceptor.swift
[42/48] Compiling Alamofire ResponseSerialization.swift
[43/48] Compiling Alamofire RetryPolicy.swift
[44/48] Compiling Alamofire Protected.swift
[45/48] Compiling Alamofire Request.swift
[46/48] Compiling Alamofire RequestTaskMap.swift
[47/48] Compiling Alamofire Response.swift
[48/48] Compiling Alamofire Session.swift
[49/51] Compiling JNetworkManager Extension.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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: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: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: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
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/41] Compiling Alamofire DispatchQueue+Alamofire.swift
[3/41] Compiling Alamofire OperationQueue+Alamofire.swift
[4/41] Compiling Alamofire Result+Alamofire.swift
[5/41] Compiling Alamofire StringEncoding+Alamofire.swift
[6/45] Compiling Alamofire SessionDelegate.swift
[7/45] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[8/45] Compiling Alamofire UploadRequest.swift
[9/45] Compiling Alamofire WebSocketRequest.swift
[10/45] Compiling Alamofire HTTPHeaders.swift
[11/45] Compiling Alamofire HTTPMethod.swift
[12/45] Compiling Alamofire Notifications.swift
[13/45] Compiling Alamofire ParameterEncoder.swift
[14/45] Compiling Alamofire ParameterEncoding.swift
[15/45] Compiling Alamofire Alamofire.swift
[16/45] Compiling Alamofire AFError.swift
[17/45] Compiling Alamofire DataRequest.swift
[18/45] Compiling Alamofire DataStreamRequest.swift
[19/45] Compiling Alamofire DownloadRequest.swift
[20/45] Emitting module Alamofire
[21/45] Compiling Alamofire MultipartFormData.swift
[22/45] Compiling Alamofire MultipartUpload.swift
[23/45] Compiling Alamofire NetworkReachabilityManager.swift
[24/45] Compiling Alamofire RedirectHandler.swift
[25/45] Compiling Alamofire RequestCompression.swift
[26/45] Compiling Alamofire RequestInterceptor.swift
[27/45] Compiling Alamofire ResponseSerialization.swift
[28/45] Compiling Alamofire RetryPolicy.swift
[29/45] Compiling Alamofire CachedResponseHandler.swift
[30/45] Compiling Alamofire Combine.swift
[31/45] Compiling Alamofire Concurrency.swift
[32/45] Compiling Alamofire EventMonitor.swift
[33/45] Compiling Alamofire URLRequest+Alamofire.swift
[34/45] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[35/45] Compiling Alamofire AlamofireExtended.swift
[36/45] Compiling Alamofire AuthenticationInterceptor.swift
[37/45] Compiling Alamofire Protected.swift
[38/45] Compiling Alamofire Request.swift
[39/45] Compiling Alamofire RequestTaskMap.swift
[40/45] Compiling Alamofire Response.swift
[41/45] Compiling Alamofire Session.swift
[42/45] Compiling Alamofire ServerTrustEvaluation.swift
[43/45] Compiling Alamofire URLEncodedFormEncoder.swift
[44/45] Compiling Alamofire Validation.swift
[45/45] Compiling Alamofire resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[46/48] Compiling JNetworkManager Extension.swift
[47/48] 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 |
[48/48] 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: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: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: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
BUILD FAILURE 6.0 macosSpm