The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SRNetworkManager, reference main (7f5e12), with Swift 6.2 (beta) for macOS (SPM) on 23 Jun 2025 15:18:34 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/siamakrostami/SRNetworkManager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/siamakrostami/SRNetworkManager
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7f5e122 fix(version): macOS minimum version updated
Cloned https://github.com/siamakrostami/SRNetworkManager.git
Revision (git rev-parse @):
7f5e1229681896f35b9aa19259a0c7c45eb017a3
SUCCESS checkout https://github.com/siamakrostami/SRNetworkManager.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/siamakrostami/SRNetworkManager.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/19] Compiling SRNetworkManager MimeTypeDetector.swift
[4/19] Compiling SRNetworkManager Connectivity.swift
[5/20] Compiling SRNetworkManager SendablePromise.swift
[6/20] Compiling SRNetworkManager Data+Extentions.swift
[7/20] Compiling SRNetworkManager SRNetworkManager.swift
[8/20] Compiling SRNetworkManager HeaderHandler.swift
[9/20] Compiling SRNetworkManager URLSessionLogger.swift
[10/20] Compiling SRNetworkManager DefaultRetryHandler.swift
[11/20] Compiling SRNetworkManager RetryHandler.swift
[12/20] Emitting module SRNetworkManager
[13/20] Compiling SRNetworkManager NetworkParameterEncoding.swift
[14/20] Compiling SRNetworkManager NetworkError.swift
[15/20] Compiling SRNetworkManager APIClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:328:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
326 |
327 |         return try await withCheckedThrowingContinuation {
328 |             [weak self] continuation in
    |                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure
329 |             guard let self = self else {
330 |                 continuation.resume(throwing: NetworkError.unknown)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:336:45: warning: capture of non-sendable type 'T.Type' in an isolated closure
334 |                 Task {
335 |                     do {
336 |                         let result: T = try await self.makeAsyncRequest(
    |                                             `- warning: capture of non-sendable type 'T.Type' in an isolated closure
337 |                             urlRequest: urlRequest, retryCount: 3)
338 |                         continuation.resume(returning: result)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:328:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
326 |
327 |         return try await withCheckedThrowingContinuation {
328 |             [weak self] continuation in
    |                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure
329 |             guard let self = self else {
330 |                 continuation.resume(throwing: NetworkError.unknown)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:415:49: warning: capture of non-sendable type 'T.Type' in an isolated closure
413 |
414 |                         do {
415 |                             let result: T = try await makeAsyncRequest(
    |                                                 `- warning: capture of non-sendable type 'T.Type' in an isolated closure
416 |                                 urlRequest: newUrlRequest, retryCount: retryCount - 1)
417 |                             continuation.resume(returning: result)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:393:60: warning: capture of non-sendable type 'T.Type' in an isolated closure
391 |         let networkError = error as? NetworkError ?? mapErrorToNetworkError(error)
392 |
393 |         return try await withCheckedThrowingContinuation { continuation in
    |                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure
394 |             Task {
395 |                 do {
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:453:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
451 |
452 |         return try await withCheckedThrowingContinuation {
453 |             [weak self] continuation in
    |                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure
454 |             guard let self = self else {
455 |                 continuation.resume(throwing: NetworkError.unknown)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:461:45: warning: capture of non-sendable type 'T.Type' in an isolated closure
459 |                 Task {
460 |                     do {
461 |                         let result: T = try await self.makeAsyncUploadRequest(
    |                                             `- warning: capture of non-sendable type 'T.Type' in an isolated closure
462 |                             urlRequest: urlRequest, params: endpoint.params,
463 |                             withName: withName, data: file,
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:453:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
451 |
452 |         return try await withCheckedThrowingContinuation {
453 |             [weak self] continuation in
    |                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure
454 |             guard let self = self else {
455 |                 continuation.resume(throwing: NetworkError.unknown)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:734:65: warning: capture of non-sendable type 'T.Type' in an isolated closure
732 |                             do {
733 |                                 let decoder = JSONDecoder()
734 |                                 let decodedObject = try decoder.decode(
    |                                                                 `- warning: capture of non-sendable type 'T.Type' in an isolated closure
735 |                                     T.self, from: lineData)
736 |                                 continuation.yield(decodedObject)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:702:50: warning: capture of non-sendable type 'T.Type' in an isolated closure
700 |         -> AsyncThrowingStream<T, Error>
701 |     {
702 |         return AsyncThrowingStream { [weak self] continuation in
    |                                                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure
703 |             guard let self = self else {
704 |                 continuation.finish(throwing: NetworkError.unknown)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:766:42: warning: capture of non-sendable type 'T.Type' in an isolated closure
764 |             }
765 |
766 |             continuation.onTermination = { @Sendable _ in
    |                                          `- warning: capture of non-sendable type 'T.Type' in an isolated closure
767 |                 task.cancel()
768 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:736:46: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
734 |                                 let decodedObject = try decoder.decode(
735 |                                     T.self, from: lineData)
736 |                                 continuation.yield(decodedObject)
    |                                              |- error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
    |                                              `- note: task-isolated 'decodedObject' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
737 |                             } catch {
738 |                                 // Handle decoding error for this chunk
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:751:42: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
749 |                             let decodedObject = try decoder.decode(
750 |                                 T.self, from: dataBuffer)
751 |                             continuation.yield(decodedObject)
    |                                          |- error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
    |                                          `- note: task-isolated 'decodedObject' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
752 |                         } catch {
753 |                             continuation.finish(throwing: error)
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[16/20] Compiling SRNetworkManager APIVersion.swift
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:328:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
326 |
327 |         return try await withCheckedThrowingContinuation {
328 |             [weak self] continuation in
    |                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure
329 |             guard let self = self else {
330 |                 continuation.resume(throwing: NetworkError.unknown)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:336:45: warning: capture of non-sendable type 'T.Type' in an isolated closure
334 |                 Task {
335 |                     do {
336 |                         let result: T = try await self.makeAsyncRequest(
    |                                             `- warning: capture of non-sendable type 'T.Type' in an isolated closure
337 |                             urlRequest: urlRequest, retryCount: 3)
338 |                         continuation.resume(returning: result)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:328:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
326 |
327 |         return try await withCheckedThrowingContinuation {
328 |             [weak self] continuation in
    |                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure
329 |             guard let self = self else {
330 |                 continuation.resume(throwing: NetworkError.unknown)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:415:49: warning: capture of non-sendable type 'T.Type' in an isolated closure
413 |
414 |                         do {
415 |                             let result: T = try await makeAsyncRequest(
    |                                                 `- warning: capture of non-sendable type 'T.Type' in an isolated closure
416 |                                 urlRequest: newUrlRequest, retryCount: retryCount - 1)
417 |                             continuation.resume(returning: result)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:393:60: warning: capture of non-sendable type 'T.Type' in an isolated closure
391 |         let networkError = error as? NetworkError ?? mapErrorToNetworkError(error)
392 |
393 |         return try await withCheckedThrowingContinuation { continuation in
    |                                                            `- warning: capture of non-sendable type 'T.Type' in an isolated closure
394 |             Task {
395 |                 do {
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:453:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
451 |
452 |         return try await withCheckedThrowingContinuation {
453 |             [weak self] continuation in
    |                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure
454 |             guard let self = self else {
455 |                 continuation.resume(throwing: NetworkError.unknown)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:461:45: warning: capture of non-sendable type 'T.Type' in an isolated closure
459 |                 Task {
460 |                     do {
461 |                         let result: T = try await self.makeAsyncUploadRequest(
    |                                             `- warning: capture of non-sendable type 'T.Type' in an isolated closure
462 |                             urlRequest: urlRequest, params: endpoint.params,
463 |                             withName: withName, data: file,
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:453:25: warning: capture of non-sendable type 'T.Type' in an isolated closure
451 |
452 |         return try await withCheckedThrowingContinuation {
453 |             [weak self] continuation in
    |                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure
454 |             guard let self = self else {
455 |                 continuation.resume(throwing: NetworkError.unknown)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:734:65: warning: capture of non-sendable type 'T.Type' in an isolated closure
732 |                             do {
733 |                                 let decoder = JSONDecoder()
734 |                                 let decodedObject = try decoder.decode(
    |                                                                 `- warning: capture of non-sendable type 'T.Type' in an isolated closure
735 |                                     T.self, from: lineData)
736 |                                 continuation.yield(decodedObject)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:702:50: warning: capture of non-sendable type 'T.Type' in an isolated closure
700 |         -> AsyncThrowingStream<T, Error>
701 |     {
702 |         return AsyncThrowingStream { [weak self] continuation in
    |                                                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure
703 |             guard let self = self else {
704 |                 continuation.finish(throwing: NetworkError.unknown)
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:766:42: warning: capture of non-sendable type 'T.Type' in an isolated closure
764 |             }
765 |
766 |             continuation.onTermination = { @Sendable _ in
    |                                          `- warning: capture of non-sendable type 'T.Type' in an isolated closure
767 |                 task.cancel()
768 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:736:46: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
734 |                                 let decodedObject = try decoder.decode(
735 |                                     T.self, from: lineData)
736 |                                 continuation.yield(decodedObject)
    |                                              |- error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
    |                                              `- note: task-isolated 'decodedObject' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
737 |                             } catch {
738 |                                 // Handle decoding error for this chunk
/Users/admin/builder/spi-builder-workspace/Sources/Client/APIClient.swift:751:42: error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
749 |                             let decodedObject = try decoder.decode(
750 |                                 T.self, from: dataBuffer)
751 |                             continuation.yield(decodedObject)
    |                                          |- error: sending 'decodedObject' risks causing data races [#SendingRisksDataRace]
    |                                          `- note: task-isolated 'decodedObject' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
752 |                         } catch {
753 |                             continuation.finish(throwing: error)
[#SendingRisksDataRace]: <https://docs.swift.org/compiler/documentation/diagnostics/sending-risks-data-race>
[17/20] Compiling SRNetworkManager NetworkRouter.swift
[18/20] Compiling SRNetworkManager NetworkMonitor.swift
[19/20] Compiling SRNetworkManager VPNChecking.swift
[20/20] Compiling SRNetworkManager UploadProgressDelegate.swift
BUILD FAILURE 6.2 macosSpm