The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build FuturaAsync, reference master (52a7f9), with Swift 6.1 for macOS (SPM) on 24 Apr 2025 09:49:37 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kaqu/futuraasync.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kaqu/futuraasync
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 52a7f9c Result -> Either change
Cloned https://github.com/kaqu/futuraasync.git
Revision (git rev-parse @):
52a7f9c39634d26b53bacc4099786e4001df42cc
SUCCESS checkout https://github.com/kaqu/futuraasync.git at master
Fetching https://github.com/kaqu/FuturaFunc.git
[3/90] Fetching futurafunc
Fetched https://github.com/kaqu/FuturaFunc.git from cache (0.58s)
Creating working copy for https://github.com/kaqu/FuturaFunc.git
Working copy of https://github.com/kaqu/FuturaFunc.git resolved at master (aae2984)
========================================
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": "futuraasync",
      "name": "FuturaAsync",
      "url": "https://github.com/kaqu/futuraasync.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/futuraasync",
      "dependencies": [
        {
          "identity": "futurafunc",
          "name": "FuturaFunc",
          "url": "https://github.com/kaqu/FuturaFunc.git",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FuturaFunc",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/kaqu/futuraasync.git
[1/460] Fetching futuraasync
Fetched https://github.com/kaqu/futuraasync.git from cache (0.71s)
Fetching https://github.com/kaqu/FuturaFunc.git from cache
Fetched https://github.com/kaqu/FuturaFunc.git from cache (0.40s)
Creating working copy for https://github.com/kaqu/futuraasync.git
Working copy of https://github.com/kaqu/futuraasync.git resolved at master (52a7f9c)
Creating working copy for https://github.com/kaqu/FuturaFunc.git
Working copy of https://github.com/kaqu/FuturaFunc.git resolved at master (aae2984)
warning: '.resolve-product-dependencies': dependency 'futuraasync' is not used by any target
Found 1 product dependencies
  - FuturaFunc
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/kaqu/futuraasync.git
https://github.com/kaqu/futuraasync.git
{
  "dependencies" : [
    {
      "identity" : "futurafunc",
      "requirement" : {
        "branch" : [
          "master"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kaqu/FuturaFunc.git"
    }
  ],
  "manifest_display_name" : "FuturaAsync",
  "name" : "FuturaAsync",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FuturaAsync",
      "targets" : [
        "FuturaAsync"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FuturaAsyncTests",
      "module_type" : "SwiftTarget",
      "name" : "FuturaAsyncTests",
      "path" : "Tests/FuturaAsyncTests",
      "product_dependencies" : [
        "FuturaFunc"
      ],
      "sources" : [
        "FuturaAsyncTests.swift",
        "FutureTests.swift",
        "LockTests.swift",
        "PromiseAndFutureTests.swift",
        "WorkerAndCatchableTests.swift"
      ],
      "target_dependencies" : [
        "FuturaAsync"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FuturaAsync",
      "module_type" : "SwiftTarget",
      "name" : "FuturaAsync",
      "path" : "Sources/FuturaAsync",
      "product_dependencies" : [
        "FuturaFunc"
      ],
      "product_memberships" : [
        "FuturaAsync"
      ],
      "sources" : [
        "Future/Catchable.swift",
        "Future/Delayed.swift",
        "Future/EitherFuture.swift",
        "Future/FailableFuture.swift",
        "Future/Future+Join.swift",
        "Future/Future.swift",
        "Future/Promise.swift",
        "Schedule/DispatchQueueWorker.swift",
        "Schedule/ExecutionContext.swift",
        "Schedule/Schedule.swift",
        "Schedule/Worker.swift",
        "Synchronization/Lock.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.1"
}
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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/14] Compiling FuturaFunc Filter.swift
[5/14] Compiling FuturaFunc Map.swift
[6/15] Compiling FuturaFunc PrecedenceGroups.swift
[7/15] Compiling FuturaFunc Curry.swift
[8/15] Compiling FuturaFunc Either.swift
[9/15] Compiling FuturaFunc Operators.swift
[10/15] Compiling FuturaFunc Lens.swift
[11/15] Compiling FuturaFunc Flip.swift
[12/15] Emitting module FuturaFunc
[13/15] Compiling FuturaFunc Application.swift
[14/15] Compiling FuturaFunc Composition.swift
[15/15] Compiling FuturaFunc xxx.swift
[16/27] Compiling FuturaAsync Worker.swift
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Schedule/Worker.swift:2:12: warning: var 'mainWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 1 | /// worker using main thread/queue of application
 2 | public var mainWorker: Worker = DispatchQueueWorker.main
   |            |- warning: var 'mainWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'mainWorker' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: add '@MainActor' to make var 'mainWorker' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 3 | /// default async worker
 4 | public var asyncWorker: Worker = DispatchQueueWorker.default
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Schedule/Worker.swift:4:12: warning: var 'asyncWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 2 | public var mainWorker: Worker = DispatchQueueWorker.main
 3 | /// default async worker
 4 | public var asyncWorker: Worker = DispatchQueueWorker.default
   |            |- warning: var 'asyncWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'asyncWorker' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: add '@MainActor' to make var 'asyncWorker' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | public var defaultWorker: Worker = asyncWorker
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Schedule/Worker.swift:6:12: warning: var 'defaultWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 | public var asyncWorker: Worker = DispatchQueueWorker.default
 5 |
 6 | public var defaultWorker: Worker = asyncWorker
   |            |- warning: var 'defaultWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'defaultWorker' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: add '@MainActor' to make var 'defaultWorker' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |
 8 | public protocol Worker {
[17/28] Compiling FuturaAsync Future.swift
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Future.swift:16:28: error: cannot find 'expectation' in scope
14 |     deinit {
15 |         #if DEBUG
16 |         guard case .none = expectation else { return }
   |                            `- error: cannot find 'expectation' in scope
17 |         print("WARNING - dealocating not completed future! - \(self)")
18 |         #endif
[18/28] Compiling FuturaAsync Lock.swift
[19/28] Compiling FuturaAsync ExecutionContext.swift
[20/28] Compiling FuturaAsync Future+Join.swift
[21/28] Compiling FuturaAsync Schedule.swift
[22/28] Compiling FuturaAsync Catchable.swift
[23/28] Compiling FuturaAsync Delayed.swift
[24/28] Compiling FuturaAsync EitherFuture.swift
[25/28] Compiling FuturaAsync FailableFuture.swift
[26/28] Emitting module FuturaAsync
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:7:5: warning: 'public' modifier is redundant for initializer declared in a public extension
 5 | public extension Promise {
 6 |
 7 |     public convenience init<T>(using worker: Worker = asyncWorker, withRetriesCount retryCount: UInt = 0, performing task: @escaping () throws -> (T))  where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
 8 |         self.init()
 9 |         var lastError: Error?
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |     }
18 |
19 |     public func fulfill<T>(with value: T) where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 |         future.becomeLeft(with: value)
21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:23:5: warning: 'public' modifier is redundant for instance method declared in a public extension
21 |     }
22 |
23 |     public func `break`<T>(with error: Error = PromiseError.cancelled) where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
24 |         future.becomeRight(with: error)
25 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Schedule/Worker.swift:2:12: warning: var 'mainWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 1 | /// worker using main thread/queue of application
 2 | public var mainWorker: Worker = DispatchQueueWorker.main
   |            |- warning: var 'mainWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'mainWorker' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: add '@MainActor' to make var 'mainWorker' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 3 | /// default async worker
 4 | public var asyncWorker: Worker = DispatchQueueWorker.default
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Schedule/Worker.swift:4:12: warning: var 'asyncWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 2 | public var mainWorker: Worker = DispatchQueueWorker.main
 3 | /// default async worker
 4 | public var asyncWorker: Worker = DispatchQueueWorker.default
   |            |- warning: var 'asyncWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'asyncWorker' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: add '@MainActor' to make var 'asyncWorker' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 5 |
 6 | public var defaultWorker: Worker = asyncWorker
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Schedule/Worker.swift:6:12: warning: var 'defaultWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 4 | public var asyncWorker: Worker = DispatchQueueWorker.default
 5 |
 6 | public var defaultWorker: Worker = asyncWorker
   |            |- warning: var 'defaultWorker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: convert 'defaultWorker' to a 'let' constant to make 'Sendable' shared state immutable
   |            |- note: add '@MainActor' to make var 'defaultWorker' part of global actor 'MainActor'
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |
 8 | public protocol Worker {
[27/28] Compiling FuturaAsync DispatchQueueWorker.swift
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Schedule/DispatchQueueWorker.swift:14:30: warning: passing non-sendable parameter 'work' to function expecting a @Sendable closure
11 | extension DispatchQueueWorker : Worker {
12 |
13 |     public func schedule(_ work: @escaping () -> Void) -> Void {
   |                            `- note: parameter 'work' is implicitly non-sendable
14 |         queue.async(execute: work)
   |                              `- warning: passing non-sendable parameter 'work' to function expecting a @Sendable closure
15 |     }
16 |
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Schedule/DispatchQueueWorker.swift:22:21: warning: capture of 'work' with non-sendable type '() throws -> Void' in a '@Sendable' closure
20 |         queue.async {
21 |             do {
22 |                 try work()
   |                     |- warning: capture of 'work' with non-sendable type '() throws -> Void' in a '@Sendable' closure
   |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
23 |                 catchable.close()
24 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Schedule/DispatchQueueWorker.swift:23:17: warning: capture of 'catchable' with non-sendable type 'Catchable' in a '@Sendable' closure
21 |             do {
22 |                 try work()
23 |                 catchable.close()
   |                 `- warning: capture of 'catchable' with non-sendable type 'Catchable' in a '@Sendable' closure
24 |             } catch {
25 |                 catchable.handle(error: error)
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Catchable.swift:1:20: note: class 'Catchable' does not conform to the 'Sendable' protocol
 1 | public final class Catchable {
   |                    `- note: class 'Catchable' does not conform to the 'Sendable' protocol
 2 |
 3 |     private let future: EitherFuture<Error, Void> = Future()
[28/28] Compiling FuturaAsync Promise.swift
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:7:5: warning: 'public' modifier is redundant for initializer declared in a public extension
 5 | public extension Promise {
 6 |
 7 |     public convenience init<T>(using worker: Worker = asyncWorker, withRetriesCount retryCount: UInt = 0, performing task: @escaping () throws -> (T))  where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
 8 |         self.init()
 9 |         var lastError: Error?
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |     }
18 |
19 |     public func fulfill<T>(with value: T) where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 |         future.becomeLeft(with: value)
21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:23:5: warning: 'public' modifier is redundant for instance method declared in a public extension
21 |     }
22 |
23 |     public func `break`<T>(with error: Error = PromiseError.cancelled) where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
24 |         future.becomeRight(with: error)
25 |     }
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/12] Compiling FuturaFunc Operators.swift
[3/12] Compiling FuturaFunc PrecedenceGroups.swift
[4/13] Compiling FuturaFunc Lens.swift
[5/13] Compiling FuturaFunc Map.swift
[6/13] Compiling FuturaFunc Flip.swift
[7/13] Compiling FuturaFunc Either.swift
[8/13] Compiling FuturaFunc Application.swift
[9/13] Compiling FuturaFunc Composition.swift
[10/13] Emitting module FuturaFunc
[11/13] Compiling FuturaFunc Filter.swift
[12/13] Compiling FuturaFunc Curry.swift
[13/13] Compiling FuturaFunc xxx.swift
[14/25] Compiling FuturaAsync Schedule.swift
[15/26] Compiling FuturaAsync Worker.swift
[16/26] Compiling FuturaAsync ExecutionContext.swift
[17/26] Compiling FuturaAsync Future+Join.swift
[18/26] Compiling FuturaAsync EitherFuture.swift
[19/26] Compiling FuturaAsync FailableFuture.swift
[20/26] Compiling FuturaAsync Promise.swift
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:7:5: warning: 'public' modifier is redundant for initializer declared in a public extension
 5 | public extension Promise {
 6 |
 7 |     public convenience init<T>(using worker: Worker = asyncWorker, withRetriesCount retryCount: UInt = 0, performing task: @escaping () throws -> (T))  where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
 8 |         self.init()
 9 |         var lastError: Error?
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |     }
18 |
19 |     public func fulfill<T>(with value: T) where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 |         future.becomeLeft(with: value)
21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:23:5: warning: 'public' modifier is redundant for instance method declared in a public extension
21 |     }
22 |
23 |     public func `break`<T>(with error: Error = PromiseError.cancelled) where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
24 |         future.becomeRight(with: error)
25 |     }
[21/26] Emitting module FuturaAsync
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:7:5: warning: 'public' modifier is redundant for initializer declared in a public extension
 5 | public extension Promise {
 6 |
 7 |     public convenience init<T>(using worker: Worker = asyncWorker, withRetriesCount retryCount: UInt = 0, performing task: @escaping () throws -> (T))  where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for initializer declared in a public extension
 8 |         self.init()
 9 |         var lastError: Error?
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:19:5: warning: 'public' modifier is redundant for instance method declared in a public extension
17 |     }
18 |
19 |     public func fulfill<T>(with value: T) where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
20 |         future.becomeLeft(with: value)
21 |     }
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Promise.swift:23:5: warning: 'public' modifier is redundant for instance method declared in a public extension
21 |     }
22 |
23 |     public func `break`<T>(with error: Error = PromiseError.cancelled) where Value == Either<T, Error> {
   |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
24 |         future.becomeRight(with: error)
25 |     }
[22/26] Compiling FuturaAsync Future.swift
/Users/admin/builder/spi-builder-workspace/Sources/FuturaAsync/Future/Future.swift:16:28: error: cannot find 'expectation' in scope
14 |     deinit {
15 |         #if DEBUG
16 |         guard case .none = expectation else { return }
   |                            `- error: cannot find 'expectation' in scope
17 |         print("WARNING - dealocating not completed future! - \(self)")
18 |         #endif
[23/26] Compiling FuturaAsync Catchable.swift
[24/26] Compiling FuturaAsync Delayed.swift
[25/26] Compiling FuturaAsync DispatchQueueWorker.swift
[26/26] Compiling FuturaAsync Lock.swift
BUILD FAILURE 6.1 macosSpm