This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 DockProgress with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sindresorhus/DockProgress.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sindresorhus/DockProgress
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 639ca66 Fix version in readme
Cloned https://github.com/sindresorhus/DockProgress.git
Revision (git rev-parse @):
639ca66f19dda6f8bf73470f186447abb1a5a2a2
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/sindresorhus/DockProgress.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/sindresorhus/DockProgress.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/5] Compiling DockProgress DockProgress.swift
/Users/admin/builder/spi-builder-workspace/Sources/DockProgress/DockProgress.swift:24:5: warning: capture of 'displayLinkObserver' with non-sendable type 'DisplayLinkObserver' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 22 | 				displayedProgress = progress
 23 | 				elapsedTimeSinceLastRefresh = 0
 24 | 				displayLinkObserver.stop()
    |     `- warning: capture of 'displayLinkObserver' with non-sendable type 'DisplayLinkObserver' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 25 | 			} else {
 26 | 				displayedProgress = Easing.linearInterpolation(
/Users/admin/builder/spi-builder-workspace/Sources/DockProgress/Utilities.swift:350:13: note: class 'DisplayLinkObserver' does not conform to the 'Sendable' protocol
348 | This is useful for creating smooth animations that synchronize with the screen's refresh rate.
349 | */
350 | final class DisplayLinkObserver {
    |             `- note: class 'DisplayLinkObserver' does not conform to the 'Sendable' protocol
351 | 	private var displayLink: CVDisplayLink?
352 | 	fileprivate let callback: (DisplayLinkObserver, Double) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/DockProgress/Utilities.swift:157:13: warning: static property 'helveticaNeueBold' is not concurrency-safe because non-'Sendable' type 'NSFont?' may have shared mutable state; this is an error in the Swift 6 language mode
155 |
156 | extension NSFont {
157 | 	static let helveticaNeueBold = NSFont(name: "HelveticaNeue-Bold", size: 0)
    |             |- warning: static property 'helveticaNeueBold' is not concurrency-safe because non-'Sendable' type 'NSFont?' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'helveticaNeueBold' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 | }
159 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/DockProgress/DockProgress.swift:24:5: warning: sending 'displayLinkObserver' risks causing data races; this is an error in the Swift 6 language mode
 22 | 				displayedProgress = progress
 23 | 				elapsedTimeSinceLastRefresh = 0
 24 | 				displayLinkObserver.stop()
    |     |- warning: sending 'displayLinkObserver' risks causing data races; this is an error in the Swift 6 language mode
    |     `- note: task-isolated 'displayLinkObserver' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 25 | 			} else {
 26 | 				displayedProgress = Easing.linearInterpolation(
[4/5] Emitting module DockProgress
/Users/admin/builder/spi-builder-workspace/Sources/DockProgress/DockProgress.swift:24:5: warning: capture of 'displayLinkObserver' with non-sendable type 'DisplayLinkObserver' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 22 | 				displayedProgress = progress
 23 | 				elapsedTimeSinceLastRefresh = 0
 24 | 				displayLinkObserver.stop()
    |     `- warning: capture of 'displayLinkObserver' with non-sendable type 'DisplayLinkObserver' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 25 | 			} else {
 26 | 				displayedProgress = Easing.linearInterpolation(
/Users/admin/builder/spi-builder-workspace/Sources/DockProgress/Utilities.swift:350:13: note: class 'DisplayLinkObserver' does not conform to the 'Sendable' protocol
348 | This is useful for creating smooth animations that synchronize with the screen's refresh rate.
349 | */
350 | final class DisplayLinkObserver {
    |             `- note: class 'DisplayLinkObserver' does not conform to the 'Sendable' protocol
351 | 	private var displayLink: CVDisplayLink?
352 | 	fileprivate let callback: (DisplayLinkObserver, Double) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/DockProgress/Utilities.swift:157:13: warning: static property 'helveticaNeueBold' is not concurrency-safe because non-'Sendable' type 'NSFont?' may have shared mutable state; this is an error in the Swift 6 language mode
155 |
156 | extension NSFont {
157 | 	static let helveticaNeueBold = NSFont(name: "HelveticaNeue-Bold", size: 0)
    |             |- warning: static property 'helveticaNeueBold' is not concurrency-safe because non-'Sendable' type 'NSFont?' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'helveticaNeueBold' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 | }
159 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/DockProgress/DockProgress.swift:24:5: warning: sending 'displayLinkObserver' risks causing data races; this is an error in the Swift 6 language mode
 22 | 				displayedProgress = progress
 23 | 				elapsedTimeSinceLastRefresh = 0
 24 | 				displayLinkObserver.stop()
    |     |- warning: sending 'displayLinkObserver' risks causing data races; this is an error in the Swift 6 language mode
    |     `- note: task-isolated 'displayLinkObserver' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 25 | 			} else {
 26 | 				displayedProgress = Easing.linearInterpolation(
[5/5] Compiling DockProgress Utilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/DockProgress/Utilities.swift:157:13: warning: static property 'helveticaNeueBold' is not concurrency-safe because non-'Sendable' type 'NSFont?' may have shared mutable state; this is an error in the Swift 6 language mode
155 |
156 | extension NSFont {
157 | 	static let helveticaNeueBold = NSFont(name: "HelveticaNeue-Bold", size: 0)
    |             |- warning: static property 'helveticaNeueBold' is not concurrency-safe because non-'Sendable' type 'NSFont?' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'helveticaNeueBold' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
158 | }
159 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
Build complete! (24.71s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DockProgress",
  "name" : "DockProgress",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "DockProgress",
      "targets" : [
        "DockProgress"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DockProgress",
      "module_type" : "SwiftTarget",
      "name" : "DockProgress",
      "path" : "Sources/DockProgress",
      "product_memberships" : [
        "DockProgress"
      ],
      "sources" : [
        "DockProgress.swift",
        "Utilities.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.