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

Successful build of ASAPExecution, reference main (192997), with Swift 6.0 for macOS (SPM) on 5 Jan 2025 09:45:49 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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

Build Log

========================================
RunAll
========================================
Builder version: 4.60.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Frizlab/ASAPExecution.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Frizlab/ASAPExecution
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 192997f Add more ASAP run variants (combination of already existing variants)
Cloned https://github.com/Frizlab/ASAPExecution.git
Revision (git rev-parse @):
192997fd3b5b48e1e7216613cd3ba11382e1e2a7
SUCCESS checkout https://github.com/Frizlab/ASAPExecution.git at main
Fetching https://github.com/happn-app/RunLoopThread.git
[1/67] Fetching runloopthread
Fetched https://github.com/happn-app/RunLoopThread.git from cache (0.67s)
Computing version for https://github.com/happn-app/RunLoopThread.git
Computed https://github.com/happn-app/RunLoopThread.git at 1.1.0 (0.58s)
Creating working copy for https://github.com/happn-app/RunLoopThread.git
Working copy of https://github.com/happn-app/RunLoopThread.git resolved at 1.1.0
========================================
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": "asapexecution",
      "name": "ASAPExecution",
      "url": "https://github.com/Frizlab/ASAPExecution.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ASAPExecution",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Frizlab/ASAPExecution.git
[1/103] Fetching asapexecution
Fetched https://github.com/Frizlab/ASAPExecution.git from cache (0.67s)
Creating working copy for https://github.com/Frizlab/ASAPExecution.git
Working copy of https://github.com/Frizlab/ASAPExecution.git resolved at main (192997f)
warning: '.resolve-product-dependencies': dependency 'asapexecution' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Frizlab/ASAPExecution.git
https://github.com/Frizlab/ASAPExecution.git
{
  "dependencies" : [
    {
      "identity" : "runloopthread",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/happn-app/RunLoopThread.git"
    }
  ],
  "manifest_display_name" : "ASAPExecution",
  "name" : "ASAPExecution",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "ASAPExecution",
      "targets" : [
        "ASAPExecution"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ASAPExecutionTests",
      "module_type" : "SwiftTarget",
      "name" : "ASAPExecutionTests",
      "path" : "Tests/ASAPExecutionTests",
      "product_dependencies" : [
        "RunLoopThread"
      ],
      "sources" : [
        "ASAPExecutionUntilTests.swift",
        "ASAPExecutionWhenTests.swift"
      ],
      "target_dependencies" : [
        "ASAPExecution"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ASAPExecution",
      "module_type" : "SwiftTarget",
      "name" : "ASAPExecution",
      "path" : "Sources/ASAPExecution",
      "product_memberships" : [
        "ASAPExecution"
      ],
      "sources" : [
        "ASAPExecution.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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/2] Write sources
[1/2] Write swift-version-5BDAB9E9C0126B9D.txt
[3/4] Compiling ASAPExecution ASAPExecution.swift
/Users/admin/builder/spi-builder-workspace/Sources/ASAPExecution/ASAPExecution.swift:196:11: warning: capture of 'self' with non-sendable type 'ASAPExecution<R>' in a `@Sendable` closure
  4 |
  5 | /* Note: A fun thing to do later (when Swift allows it) would be to try and reimplement this as an actor using a custom executor. */
  6 | public final class ASAPExecution<R> {
    |                    `- note: generic class 'ASAPExecution' does not conform to the 'Sendable' protocol
  7 |
  8 | 	@discardableResult
    :
194 | 		runLoop.perform(inModes: runLoopModes, block: {
195 | 			/* If we’re already cancelled, we have nothing to do. */
196 | 			guard !self.isCancelled else {
    |           `- warning: capture of 'self' with non-sendable type 'ASAPExecution<R>' in a `@Sendable` closure
197 | 				return
198 | 			}
/Users/admin/builder/spi-builder-workspace/Sources/ASAPExecution/ASAPExecution.swift:235:50: warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
233 | 		} else {
234 | 			/* We schedule immediately… on next run loop. */
235 | 			runLoop.perform(inModes: runLoopModes, block: runNextTry)
    |                                                  `- warning: converting non-sendable function value to '@Sendable () -> Void' may introduce data races
236 | 		}
237 | 	}
/Users/admin/builder/spi-builder-workspace/Sources/ASAPExecution/ASAPExecution.swift:224:18: warning: capture of 'self' with non-sendable type 'ASAPExecution<R>' in a `@Sendable` closure
  4 |
  5 | /* Note: A fun thing to do later (when Swift allows it) would be to try and reimplement this as an actor using a custom executor. */
  6 | public final class ASAPExecution<R> {
    |                    `- note: generic class 'ASAPExecution' does not conform to the 'Sendable' protocol
  7 |
  8 | 	@discardableResult
    :
222 | 		if let retryDelay = retryDelay {
223 | 			let t = Timer(timeInterval: retryDelay, repeats: false, block: { t in
224 | 				assert(t === self.timer)
    |                  `- warning: capture of 'self' with non-sendable type 'ASAPExecution<R>' in a `@Sendable` closure
225 | 				self.timer = nil
226 | 				t.invalidate() /* Probably unneeded */
/Users/admin/builder/spi-builder-workspace/Sources/ASAPExecution/ASAPExecution.swift:224:18: warning: implicit capture of 'self' requires that 'ASAPExecution<R>' conforms to `Sendable`; this is an error in the Swift 6 language mode
  4 |
  5 | /* Note: A fun thing to do later (when Swift allows it) would be to try and reimplement this as an actor using a custom executor. */
  6 | public final class ASAPExecution<R> {
    |                    `- note: generic class 'ASAPExecution' does not conform to the 'Sendable' protocol
  7 |
  8 | 	@discardableResult
    :
222 | 		if let retryDelay = retryDelay {
223 | 			let t = Timer(timeInterval: retryDelay, repeats: false, block: { t in
224 | 				assert(t === self.timer)
    |                  `- warning: implicit capture of 'self' requires that 'ASAPExecution<R>' conforms to `Sendable`; this is an error in the Swift 6 language mode
225 | 				self.timer = nil
226 | 				t.invalidate() /* Probably unneeded */
[4/4] Emitting module ASAPExecution
Build complete! (6.02s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "runloopthread",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/happn-app/RunLoopThread.git"
    }
  ],
  "manifest_display_name" : "ASAPExecution",
  "name" : "ASAPExecution",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "ASAPExecution",
      "targets" : [
        "ASAPExecution"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ASAPExecutionTests",
      "module_type" : "SwiftTarget",
      "name" : "ASAPExecutionTests",
      "path" : "Tests/ASAPExecutionTests",
      "product_dependencies" : [
        "RunLoopThread"
      ],
      "sources" : [
        "ASAPExecutionUntilTests.swift",
        "ASAPExecutionWhenTests.swift"
      ],
      "target_dependencies" : [
        "ASAPExecution"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ASAPExecution",
      "module_type" : "SwiftTarget",
      "name" : "ASAPExecution",
      "path" : "Sources/ASAPExecution",
      "product_memberships" : [
        "ASAPExecution"
      ],
      "sources" : [
        "ASAPExecution.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.