Build Information
Failed to build JNetworkManager, reference main (2ead1d
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 13:01:27 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.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 2ead1dc update new version information
Cloned https://github.com/jeetrajput01/JNetworkManager.git
Revision (git rev-parse @):
2ead1dcbd53792eabf7093061b9193226610d85d
SUCCESS checkout https://github.com/jeetrajput01/JNetworkManager.git at main
Fetching https://github.com/Alamofire/Alamofire.git
[1/29795] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (4.77s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.9.1 (0.54s)
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.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Alamofire",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/jeetrajput01/JNetworkManager.git
[1/130] Fetching jnetworkmanager
Fetched https://github.com/jeetrajput01/JNetworkManager.git from cache (0.71s)
Fetching https://github.com/Alamofire/Alamofire.git from cache
Fetched https://github.com/Alamofire/Alamofire.git from cache (0.70s)
Computing version for https://github.com/Alamofire/Alamofire.git
warning: 'alamofire': /Package.swift:28:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
26 | import PackageDescription
27 |
28 | let package = Package(name: "Alamofire",
| |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
| `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
29 | platforms: [.macOS(.v10_13),
30 | .iOS(.v12),
Computed https://github.com/Alamofire/Alamofire.git at 5.10.1 (0.50s)
Creating working copy for https://github.com/jeetrajput01/JNetworkManager.git
Working copy of https://github.com/jeetrajput01/JNetworkManager.git resolved at main (2ead1dc)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.10.1
warning: 'alamofire': /Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Alamofire/Package.swift:28:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
26 | import PackageDescription
27 |
28 | let package = Package(name: "Alamofire",
| |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)'
| `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
29 | platforms: [.macOS(.v10_13),
30 | .iOS(.v12),
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
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[2/4] Copying PrivacyInfo.xcprivacy
[3/4] Write swift-version--7754E27361AE5C74.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 HTTPHeaders.swift
[11/48] Compiling Alamofire HTTPMethod.swift
[12/48] Compiling Alamofire Notifications.swift
[13/48] Compiling Alamofire ParameterEncoder.swift
[14/48] Compiling Alamofire ParameterEncoding.swift
[15/48] Compiling Alamofire MultipartFormData.swift
[16/48] Compiling Alamofire MultipartUpload.swift
[17/48] Compiling Alamofire NetworkReachabilityManager.swift
[18/48] Compiling Alamofire RedirectHandler.swift
[19/48] Compiling Alamofire DispatchQueue+Alamofire.swift
[20/48] Compiling Alamofire OperationQueue+Alamofire.swift
[21/48] Compiling Alamofire Result+Alamofire.swift
[22/48] Compiling Alamofire StringEncoding+Alamofire.swift
[23/48] Compiling Alamofire ServerTrustEvaluation.swift
[24/48] Compiling Alamofire URLEncodedFormEncoder.swift
[25/48] Compiling Alamofire Validation.swift
[26/48] Compiling Alamofire resource_bundle_accessor.swift
[27/48] Compiling Alamofire RequestCompression.swift
[28/48] Compiling Alamofire RequestInterceptor.swift
[29/48] Compiling Alamofire ResponseSerialization.swift
[30/48] Compiling Alamofire RetryPolicy.swift
[31/48] Compiling Alamofire CachedResponseHandler.swift
[32/48] Compiling Alamofire Combine.swift
[33/48] Compiling Alamofire Concurrency.swift
[34/48] Compiling Alamofire EventMonitor.swift
[35/48] Compiling Alamofire SessionDelegate.swift
[36/48] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[37/48] Compiling Alamofire UploadRequest.swift
[38/48] Compiling Alamofire WebSocketRequest.swift
[39/48] Compiling Alamofire Protected.swift
[40/48] Compiling Alamofire Request.swift
[41/48] Compiling Alamofire RequestTaskMap.swift
[42/48] Compiling Alamofire Response.swift
[43/48] Compiling Alamofire Session.swift
[44/48] Compiling Alamofire Alamofire.swift
[45/48] Compiling Alamofire AFError.swift
[46/48] Compiling Alamofire DataRequest.swift
[47/48] Compiling Alamofire DataStreamRequest.swift
[48/48] Compiling Alamofire DownloadRequest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[49/52] Compiling JNetworkManager NetworkReachability.swift
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/NetworkReachability.swift:12:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | class NetworkReachability {
11 |
12 | static var shared = NetworkReachability()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | func isInternetAvailable() -> Bool {
[50/52] Compiling JNetworkManager Extension.swift
[51/52] Emitting module JNetworkManager
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:623:102: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
610 |
611 | //MARK: - Error handling
612 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
613 |
614 | /// Handles errors returned by Alamofire during network requests.
:
621 | /// - response: The `AFDataResponse<Data>` that contains the response data and metadata associated with the failed request.
622 | /// - continuation: A `CheckedContinuation<Result<Any, Error>, Error>` used to resume the asynchronous operation with the error result.
623 | 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
624 | print("Request failed: \(error.localizedDescription)")
625 | if error.isSessionTaskError || error.isExplicitlyCancelledError {
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:645:105: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
610 |
611 | //MARK: - Error handling
612 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
613 |
614 | /// Handles errors returned by Alamofire during network requests.
:
643 | /// - response: The `AFDataResponse<Data>` that contains the response data and metadata associated with the failed request.
644 | /// - continuation: A `CheckedContinuation<Result<T, Error>, Error>` used to resume the asynchronous operation with the error result for a generic type `T`.
645 | 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
646 | print("Request failed: \(error.localizedDescription)")
647 |
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/NetworkReachability.swift:12:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | class NetworkReachability {
11 |
12 | static var shared = NetworkReachability()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | func isInternetAvailable() -> Bool {
[52/52] Compiling JNetworkManager JNetworkManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:623:102: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
610 |
611 | //MARK: - Error handling
612 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
613 |
614 | /// Handles errors returned by Alamofire during network requests.
:
621 | /// - response: The `AFDataResponse<Data>` that contains the response data and metadata associated with the failed request.
622 | /// - continuation: A `CheckedContinuation<Result<Any, Error>, Error>` used to resume the asynchronous operation with the error result.
623 | 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
624 | print("Request failed: \(error.localizedDescription)")
625 | if error.isSessionTaskError || error.isExplicitlyCancelledError {
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:645:105: error: 'CheckedContinuation' is only available in macOS 10.15 or newer
610 |
611 | //MARK: - Error handling
612 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
613 |
614 | /// Handles errors returned by Alamofire during network requests.
:
643 | /// - response: The `AFDataResponse<Data>` that contains the response data and metadata associated with the failed request.
644 | /// - continuation: A `CheckedContinuation<Result<T, Error>, Error>` used to resume the asynchronous operation with the error result for a generic type `T`.
645 | 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
646 | print("Request failed: \(error.localizedDescription)")
647 |
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:88:34: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class JNetworkManager {
| `- note: add @available attribute to enclosing class
65 |
66 | /// Asynchronously makes an API request using a generic `Codable` type for the response.
:
77 | /// - type: The type conforming to `Codable` that the response should be decoded into.
78 | /// - 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.
79 | 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
80 |
81 | guard NetworkReachability.shared.isInternetAvailable() else {
:
86 | case .success(let urlRequest):
87 | do {
88 | 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
89 |
90 | AF.request(urlRequest)
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:88:67: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:88:66: note: expanded code originates here
62 | }
63 |
64 | public class JNetworkManager {
| `- note: add @available attribute to enclosing class
65 |
66 | /// Asynchronously makes an API request using a generic `Codable` type for the response.
:
77 | /// - type: The type conforming to `Codable` that the response should be decoded into.
78 | /// - 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.
79 | 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
80 |
81 | guard NetworkReachability.shared.isInternetAvailable() else {
:
86 | case .success(let urlRequest):
87 | do {
88 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift
|86 |
|87 |
|88 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------
89 |
90 | AF.request(urlRequest)
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/NetworkReachability.swift:12:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | class NetworkReachability {
11 |
12 | static var shared = NetworkReachability()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | func isInternetAvailable() -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:180:35: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class JNetworkManager {
| `- note: add @available attribute to enclosing class
65 |
66 | /// Asynchronously makes an API request using a generic `Codable` type for the response.
:
167 | /// - progressHandler: A closure to handle progress updates, with the progress fraction passed as a `Double` (0.0 to 1.0). Optional.
168 | /// - 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.
169 | public class func makeAsyncUploadRequest<T: Codable>(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObj: [String: mediaObject]?, 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
170 |
171 | guard NetworkReachability.shared.isInternetAvailable() else {
:
178 |
179 | do {
180 | 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
181 |
182 | AF.upload(multipartFormData: { multipartFormData in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:180:68: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:180:67: note: expanded code originates here
62 | }
63 |
64 | public class JNetworkManager {
| `- note: add @available attribute to enclosing class
65 |
66 | /// Asynchronously makes an API request using a generic `Codable` type for the response.
:
167 | /// - progressHandler: A closure to handle progress updates, with the progress fraction passed as a `Double` (0.0 to 1.0). Optional.
168 | /// - 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.
169 | public class func makeAsyncUploadRequest<T: Codable>(url: String, method: HTTPMethod, parameter: [String: Any]?, mediaObj: [String: mediaObject]?, 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
170 |
171 | guard NetworkReachability.shared.isInternetAvailable() else {
:
178 |
179 | do {
180 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift
|178 |
|179 |
|180 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------
181 |
182 | AF.upload(multipartFormData: { multipartFormData in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:269:34: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
62 | }
63 |
64 | public class JNetworkManager {
| `- note: add @available attribute to enclosing class
65 |
66 | /// Asynchronously makes an API request using a generic `Codable` type for the response.
:
257 | /// - progressHandler: A closure to handle progress updates, with the progress fraction passed as a `Double` (0.0 to 1.0). Optional.
258 | /// - 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.
259 | 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
260 |
261 | guard NetworkReachability.shared.isInternetAvailable() else {
:
267 | case .success(let urlRequest):
268 | do {
269 | 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
270 |
271 | AF.upload(multipartFormData: { multipartFormData in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:269:67: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:269:66: note: expanded code originates here
62 | }
63 |
64 | public class JNetworkManager {
| `- note: add @available attribute to enclosing class
65 |
66 | /// Asynchronously makes an API request using a generic `Codable` type for the response.
:
257 | /// - progressHandler: A closure to handle progress updates, with the progress fraction passed as a `Double` (0.0 to 1.0). Optional.
258 | /// - 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.
259 | 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
260 |
261 | guard NetworkReachability.shared.isInternetAvailable() else {
:
267 | case .success(let urlRequest):
268 | do {
269 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift
|267 |
|268 |
|269 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------
270 |
271 | AF.upload(multipartFormData: { multipartFormData in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:359:34: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
333 |
334 | //MARK: - Without generic
335 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
336 |
337 | /// Asynchronously performs an API request and returns the response as a generic result.
:
348 | /// - timeoutInterval: The timeout interval for the request in seconds. The default value is 30 seconds.
349 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
350 | 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
351 |
352 | guard NetworkReachability.shared.isInternetAvailable() else {
:
357 | case .success(let urlRequest):
358 | do {
359 | 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
360 |
361 | AF.request(urlRequest)
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:359:67: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:359:66: note: expanded code originates here
333 |
334 | //MARK: - Without generic
335 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
336 |
337 | /// Asynchronously performs an API request and returns the response as a generic result.
:
348 | /// - timeoutInterval: The timeout interval for the request in seconds. The default value is 30 seconds.
349 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
350 | 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
351 |
352 | guard NetworkReachability.shared.isInternetAvailable() else {
:
357 | case .success(let urlRequest):
358 | do {
359 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift
|357 |
|358 |
|359 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------
360 |
361 | AF.request(urlRequest)
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:456:34: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
333 |
334 | //MARK: - Without generic
335 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
336 |
337 | /// Asynchronously performs an API request and returns the response as a generic result.
:
444 | /// - progressHandler: A closure to handle progress updates, with the progress fraction passed as a `Double` (0.0 to 1.0). Optional.
445 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
446 | 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
447 |
448 | guard NetworkReachability.shared.isInternetAvailable() else {
:
454 | case .success(let urlRequest):
455 | do {
456 | 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
457 |
458 | // Perform the upload
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:456:67: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:456:66: note: expanded code originates here
333 |
334 | //MARK: - Without generic
335 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
336 |
337 | /// Asynchronously performs an API request and returns the response as a generic result.
:
444 | /// - progressHandler: A closure to handle progress updates, with the progress fraction passed as a `Double` (0.0 to 1.0). Optional.
445 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
446 | 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
447 |
448 | guard NetworkReachability.shared.isInternetAvailable() else {
:
454 | case .success(let urlRequest):
455 | do {
456 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift
|454 |
|455 |
|456 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------
457 |
458 | // Perform the upload
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:544:34: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
333 |
334 | //MARK: - Without generic
335 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
336 |
337 | /// Asynchronously performs an API request and returns the response as a generic result.
:
532 | /// - progressHandler: A closure to handle progress updates, with the progress fraction passed as a `Double` (0.0 to 1.0). Optional.
533 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
534 | 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
535 |
536 | guard NetworkReachability.shared.isInternetAvailable() else {
:
542 | case .success(let urlRequest):
543 | do {
544 | 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
545 |
546 | AF.upload(multipartFormData: { multipartFormData in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:544:67: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:544:66: note: expanded code originates here
333 |
334 | //MARK: - Without generic
335 | extension JNetworkManager {
| `- note: add @available attribute to enclosing extension
336 |
337 | /// Asynchronously performs an API request and returns the response as a generic result.
:
532 | /// - progressHandler: A closure to handle progress updates, with the progress fraction passed as a `Double` (0.0 to 1.0). Optional.
533 | /// - Returns: An asynchronous result of type `Result<Any, Error>`. The result will either contain the parsed response on success, or an error on failure.
534 | 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
535 |
536 | guard NetworkReachability.shared.isInternetAvailable() else {
:
542 | case .success(let urlRequest):
543 | do {
544 | return try await withCheckedThrowingContinuation { continuation in
+--- /Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift
|542 |
|543 |
|544 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+---------------------------------------------------------------------------------------------
545 |
546 | AF.upload(multipartFormData: { multipartFormData in
BUILD FAILURE 6.0 macosSpm