The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AsyncGuardKit, reference master (5cb33a), with Swift 6.1 for macOS (SPM) on 30 Oct 2026 07:33:33 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ANSCoder/AsyncGuardKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ANSCoder/AsyncGuardKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 5cb33ab Modernize concurrency: Swift 6 mode, safety fixes, README rewrite (#1)
Cloned https://github.com/ANSCoder/AsyncGuardKit.git
Revision (git rev-parse @):
5cb33ab9c8b08c16eec460731200cc5a102853e0
SUCCESS checkout https://github.com/ANSCoder/AsyncGuardKit.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ANSCoder/AsyncGuardKit.git
https://github.com/ANSCoder/AsyncGuardKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AsyncGuardKit",
  "name" : "AsyncGuardKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncGuardKit",
      "targets" : [
        "AsyncGuardKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "6"
  ],
  "targets" : [
    {
      "c99name" : "AsyncGuardKitTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncGuardKitTests",
      "path" : "Tests/AsyncGuardKitTests",
      "sources" : [
        "BenchmarkTests.swift",
        "DelayTests.swift",
        "ExecutionTests.swift",
        "IntegrationTests.swift",
        "RegressionTests.swift",
        "RetryTests.swift",
        "ScopeTests.swift",
        "SingleFlightTests.swift",
        "TestHelpers.swift"
      ],
      "target_dependencies" : [
        "AsyncGuardKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncGuardKit",
      "module_type" : "SwiftTarget",
      "name" : "AsyncGuardKit",
      "path" : "Sources/AsyncGuardKit",
      "product_memberships" : [
        "AsyncGuardKit"
      ],
      "sources" : [
        "Configuration/AsyncGuardConfiguration.swift",
        "Core/AsyncCancellable.swift",
        "Core/AsyncGuard.swift",
        "Core/AsyncTask.swift",
        "Diagnostics/Diagnostics.swift",
        "Execution/SingleFlightRegistry.swift",
        "Policies/Retry.swift",
        "Policies/SingleFlight.swift",
        "Scope/AsyncLifetime.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/12] Compiling AsyncGuardKit AsyncLifetime.swift
[4/12] Compiling AsyncGuardKit SingleFlight.swift
[5/12] Compiling AsyncGuardKit SingleFlightRegistry.swift
[6/12] Compiling AsyncGuardKit AsyncTask.swift
[7/12] Compiling AsyncGuardKit AsyncGuardConfiguration.swift
[8/12] Compiling AsyncGuardKit Diagnostics.swift
[9/12] Compiling AsyncGuardKit AsyncCancellable.swift
[10/12] Compiling AsyncGuardKit AsyncGuard.swift
[11/12] Emitting module AsyncGuardKit
[12/12] Compiling AsyncGuardKit Retry.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncGuardKit/Policies/Retry.swift:79:36: error: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'operation'
 62 | /// - Throws: The error from the final attempt, or `CancellationError` if
 63 | ///   the enclosing task is cancelled.
 64 | public func retry<T>(
    |                   `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 65 |     attempts: Int,
 66 |     backoff: RetryBackoff = .none,
    :
 77 |
 78 |         do {
 79 |             let result = try await operation()
    |                                    `- error: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'operation'
 80 |             Diagnostics.log("retry.succeeded", context: "attempt=\(attempt + 1)")
 81 |             return result
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/11] Compiling AsyncGuardKit AsyncGuard.swift
[3/11] Compiling AsyncGuardKit AsyncGuardConfiguration.swift
[4/11] Compiling AsyncGuardKit AsyncTask.swift
[5/11] Emitting module AsyncGuardKit
[6/11] Compiling AsyncGuardKit AsyncLifetime.swift
[7/11] Compiling AsyncGuardKit SingleFlightRegistry.swift
[8/11] Compiling AsyncGuardKit SingleFlight.swift
[9/11] Compiling AsyncGuardKit AsyncCancellable.swift
[10/11] Compiling AsyncGuardKit Diagnostics.swift
[11/11] Compiling AsyncGuardKit Retry.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncGuardKit/Policies/Retry.swift:79:36: error: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'operation'
 62 | /// - Throws: The error from the final attempt, or `CancellationError` if
 63 | ///   the enclosing task is cancelled.
 64 | public func retry<T>(
    |                   `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 65 |     attempts: Int,
 66 |     backoff: RetryBackoff = .none,
    :
 77 |
 78 |         do {
 79 |             let result = try await operation()
    |                                    `- error: non-sendable result type 'T' cannot be sent from nonisolated context in call to parameter 'operation'
 80 |             Diagnostics.log("retry.succeeded", context: "attempt=\(attempt + 1)")
 81 |             return result
BUILD FAILURE 6.1 macosSpm