The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JNetworkManager, reference 1.3.4 (349b9b), with Swift 6.2 for macOS (SPM) on 15 Sep 2025 13:44:42 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jeetrajput01/JNetworkManager.git
Reference: 1.3.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jeetrajput01/JNetworkManager
 * tag               1.3.4      -> FETCH_HEAD
HEAD is now at 349b9b5 add cURL logging for API requests
Cloned https://github.com/jeetrajput01/JNetworkManager.git
Revision (git rev-parse @):
349b9b5f258c01f7f678abe37796b282433a1cde
SUCCESS checkout https://github.com/jeetrajput01/JNetworkManager.git at 1.3.4
========================================
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
[1/4] Copying PrivacyInfo.xcprivacy
[1/4] Write sources
[3/4] Write swift-version-1EA4D86E10B52AF.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 RequestCompression.swift
[11/48] Compiling Alamofire RequestInterceptor.swift
[12/48] Compiling Alamofire ResponseSerialization.swift
[13/48] Compiling Alamofire RetryPolicy.swift
[14/48] Compiling Alamofire SessionDelegate.swift
[15/48] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[16/48] Compiling Alamofire UploadRequest.swift
[17/48] Compiling Alamofire WebSocketRequest.swift
[18/48] Compiling Alamofire Alamofire.swift
[19/48] Compiling Alamofire AFError.swift
[20/48] Compiling Alamofire DataRequest.swift
[21/48] Compiling Alamofire DataStreamRequest.swift
[22/48] Compiling Alamofire DownloadRequest.swift
[23/48] Compiling Alamofire DispatchQueue+Alamofire.swift
[24/48] Compiling Alamofire OperationQueue+Alamofire.swift
[25/48] Compiling Alamofire Result+Alamofire.swift
[26/48] Compiling Alamofire StringEncoding+Alamofire.swift
[27/48] Compiling Alamofire CachedResponseHandler.swift
[28/48] Compiling Alamofire Combine.swift
[29/48] Compiling Alamofire Concurrency.swift
[30/48] Compiling Alamofire EventMonitor.swift
[31/48] Compiling Alamofire HTTPHeaders.swift
[32/48] Compiling Alamofire HTTPMethod.swift
[33/48] Compiling Alamofire Notifications.swift
[34/48] Compiling Alamofire ParameterEncoder.swift
[35/48] Compiling Alamofire ParameterEncoding.swift
[36/48] Compiling Alamofire Protected.swift
[37/48] Compiling Alamofire Request.swift
[38/48] Compiling Alamofire RequestTaskMap.swift
[39/48] Compiling Alamofire Response.swift
[40/48] Compiling Alamofire Session.swift
[41/48] Compiling Alamofire MultipartFormData.swift
[42/48] Compiling Alamofire MultipartUpload.swift
[43/48] Compiling Alamofire NetworkReachabilityManager.swift
[44/48] Compiling Alamofire RedirectHandler.swift
[45/48] Compiling Alamofire ServerTrustEvaluation.swift
[46/48] Compiling Alamofire URLEncodedFormEncoder.swift
[47/48] Compiling Alamofire Validation.swift
[48/48] Compiling Alamofire resource_bundle_accessor.swift
[49/52] Compiling JNetworkManager CurlGenerator.swift
[50/52] Emitting module JNetworkManager
[51/52] Compiling JNetworkManager Extension.swift
[52/52] Compiling JNetworkManager JNetworkManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:100:37: warning: capture of 'progressHandler' with non-sendable type '((Double) -> Void)?' in a '@Sendable' closure [#SendableClosureCaptures]
 98 |                             box.request = AF.request(urlRequest)
 99 |                                 .uploadProgress { prog in
100 |                                     progressHandler?(prog.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'
101 |                                 }
102 |                                 .responseData(queue: .global(qos: .background)) { response in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:110:66: warning: capture of 'parameter' with non-sendable type 'Any?' in a '@Sendable' closure [#SendableClosureCaptures]
108 | #if DEBUG
109 |                                             print("Header = \(headers)")
110 |                                             print("parameter = \(parameter ?? [:])")
    |                                                                  `- warning: capture of 'parameter' with non-sendable type 'Any?' in a '@Sendable' closure [#SendableClosureCaptures]
111 |                                             print("Request URL = \(url)")
112 |                                             print(responseData.prettyPrintedJSONString ?? "")
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:120:62: warning: capture of non-sendable type 'T.Type' in an isolated closure
118 |
119 |                                             guard let httpResponse = response.response else {
120 |                                                 continuation.resume(returning: .failure(NetworkError.unknown))
    |                                                              `- warning: capture of non-sendable type 'T.Type' in an isolated closure
121 |                                                 return
122 |                                             }
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:96:76: warning: capture of non-sendable type 'T.Type' in an isolated closure
 94 |                 operation: {
 95 |                     do {
 96 |                         return try await withCheckedThrowingContinuation { continuation in
    |                                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure
 97 |
 98 |                             box.request = AF.request(urlRequest)
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:222:33: warning: capture of 'progressHandler' with non-sendable type '((Double) -> Void)?' in a '@Sendable' closure [#SendableClosureCaptures]
220 |                             }, with: urlRequest)
221 |                             .uploadProgress { progress in
222 |                                 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'
223 |                             }
224 |                             .responseData(queue: .global(qos: .background)) { response in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:235:62: warning: capture of 'parameter' with non-sendable type '[String : Any]?' in a '@Sendable' closure [#SendableClosureCaptures]
233 |                                         print("----- cURL Multipart Request -----")
234 |                                         print("Header = \(headers)")
235 |                                         print("parameter = \(parameter ?? [:])")
    |                                                              `- warning: capture of 'parameter' with non-sendable type '[String : Any]?' in a '@Sendable' closure [#SendableClosureCaptures]
236 |                                         print("Request URL = \(url)")
237 |                                         print(responseData.prettyPrintedJSONString ?? "")
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:252:58: warning: capture of non-sendable type 'T.Type' in an isolated closure
250 |
251 |                                         guard let httpResponse = response.response else {
252 |                                             continuation.resume(returning: .failure(NetworkError.unknown))
    |                                                          `- warning: capture of non-sendable type 'T.Type' in an isolated closure
253 |                                             return
254 |                                         }
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:198:76: warning: capture of non-sendable type 'T.Type' in an isolated closure
196 |
197 |                     do {
198 |                         return try await withCheckedThrowingContinuation { continuation in
    |                                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure
199 |
200 |                             box.request =  AF.upload(multipartFormData: { multipartFormData in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:346:66: warning: capture of 'parameter' with non-sendable type '[String : Any]?' in a '@Sendable' closure [#SendableClosureCaptures]
344 | #if DEBUG
345 |                                             print("Header = \(headers)")
346 |                                             print("parameter = \(parameter ?? [:])")
    |                                                                  `- warning: capture of 'parameter' with non-sendable type '[String : Any]?' in a '@Sendable' closure [#SendableClosureCaptures]
347 |                                             print("Request URL = \(url)")
348 |                                             print(responseData.prettyPrintedJSONString ?? "")
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:472:29: warning: capture of 'progressHandler' with non-sendable type '((Double) -> Void)?' in a '@Sendable' closure [#SendableClosureCaptures]
470 |                         }, with: urlRequest)
471 |                         .uploadProgress { progress in
472 |                             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'
473 |                         }
474 |                         .responseData(queue: .global(qos: .background)) { response in
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:483:62: warning: capture of 'parameter' with non-sendable type '[String : Any]?' in a '@Sendable' closure [#SendableClosureCaptures]
481 |                                         print("----- cURL Multipart Request -----")
482 |                                         print("Header = \(headers)")
483 |                                         print("parameter = \(parameter ?? [:])")
    |                                                              `- warning: capture of 'parameter' with non-sendable type '[String : Any]?' in a '@Sendable' closure [#SendableClosureCaptures]
484 |                                         print("Request URL = \(url)")
485 |                                         print(responseData.prettyPrintedJSONString ?? "")
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:129:62: error: sending value of non-Sendable type 'Result<T, any Error>' risks causing data races [#SendingRisksDataRace]
127 |                                             } else {
128 |                                                 let decoded = try JSONDecoder().decode(T.self, from: responseData)
129 |                                                 continuation.resume(returning: .success(decoded))
    |                                                              |- error: sending value of non-Sendable type 'Result<T, any Error>' risks causing data races [#SendingRisksDataRace]
    |                                                              `- note: Passing task-isolated value of non-Sendable type 'Result<T, any Error>' as a 'sending' parameter to instance method 'resume(returning:)' risks causing races inbetween task-isolated uses and uses reachable from 'resume(returning:)'
130 |                                             }
131 |                                         } catch {
/Users/admin/builder/spi-builder-workspace/Sources/JNetworkManager/JNetworkManager.swift:261:58: error: sending value of non-Sendable type 'Result<T, any Error>' risks causing data races [#SendingRisksDataRace]
259 |                                         } else {
260 |                                             let decoded = try JSONDecoder().decode(T.self, from: responseData)
261 |                                             continuation.resume(returning: .success(decoded))
    |                                                          |- error: sending value of non-Sendable type 'Result<T, any Error>' risks causing data races [#SendingRisksDataRace]
    |                                                          `- note: Passing task-isolated value of non-Sendable type 'Result<T, any Error>' as a 'sending' parameter to instance method 'resume(returning:)' risks causing races inbetween task-isolated uses and uses reachable from 'resume(returning:)'
262 |                                         }
263 |                                     } catch {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
Fetching https://github.com/Alamofire/Alamofire.git
[1/30289] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (2.71s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (3.16s)
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