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 DisplayLink, reference 0.2.0 (e95f59), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 09:48:55 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/timdonnelly/DisplayLink.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/timdonnelly/DisplayLink
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at e95f592 Update README.md
Cloned https://github.com/timdonnelly/DisplayLink.git
Revision (git rev-parse @):
e95f592a176246172324f10eb1bdc92f121d479f
SUCCESS checkout https://github.com/timdonnelly/DisplayLink.git at 0.2.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": "displaylink",
      "name": "DisplayLink",
      "url": "https://github.com/timdonnelly/DisplayLink.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DisplayLink",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/timdonnelly/DisplayLink.git
[1/39] Fetching displaylink
Fetched https://github.com/timdonnelly/DisplayLink.git from cache (0.64s)
Creating working copy for https://github.com/timdonnelly/DisplayLink.git
Working copy of https://github.com/timdonnelly/DisplayLink.git resolved at 0.2.0 (e95f592)
warning: '.resolve-product-dependencies': dependency 'displaylink' 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/timdonnelly/DisplayLink.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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--7754E27361AE5C74.txt
[3/5] Compiling DisplayLink OnFrame.swift
/Users/admin/builder/spi-builder-workspace/Sources/DisplayLink/DisplayLink.swift:80:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DisplayLink' may have shared mutable state; this is an error in the Swift 6 language mode
  5 |
  6 | // A publisher that emits new values when the system is about to update the display.
  7 | public final class DisplayLink: Publisher {
    |                    `- note: class 'DisplayLink' does not conform to the 'Sendable' protocol
  8 |     public typealias Output = Frame
  9 |     public typealias Failure = Never
    :
 78 |
 79 | extension DisplayLink {
 80 |     public static let shared = DisplayLink()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DisplayLink' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 81 | }
 82 |
[4/5] Compiling DisplayLink DisplayLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/DisplayLink/DisplayLink.swift:80:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DisplayLink' may have shared mutable state; this is an error in the Swift 6 language mode
  5 |
  6 | // A publisher that emits new values when the system is about to update the display.
  7 | public final class DisplayLink: Publisher {
    |                    `- note: class 'DisplayLink' does not conform to the 'Sendable' protocol
  8 |     public typealias Output = Frame
  9 |     public typealias Failure = Never
    :
 78 |
 79 | extension DisplayLink {
 80 |     public static let shared = DisplayLink()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DisplayLink' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 81 | }
 82 |
/Users/admin/builder/spi-builder-workspace/Sources/DisplayLink/DisplayLink.swift:203:21: warning: capture of 'self' with non-sendable type 'DisplayLink.PlatformDisplayLink?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 |
170 |     /// DisplayLink is used to hook into screen refreshes.
171 |     fileprivate final class PlatformDisplayLink {
    |                             `- note: class 'PlatformDisplayLink' does not conform to the 'Sendable' protocol
172 |
173 |         /// The callback to call for each frame.
    :
201 |
202 |                 DispatchQueue.main.async {
203 |                     self?.handle(frame: frame)
    |                     `- warning: capture of 'self' with non-sendable type 'DisplayLink.PlatformDisplayLink?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 |                 }
205 |
[5/5] Emitting module DisplayLink
/Users/admin/builder/spi-builder-workspace/Sources/DisplayLink/DisplayLink.swift:80:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DisplayLink' may have shared mutable state; this is an error in the Swift 6 language mode
  5 |
  6 | // A publisher that emits new values when the system is about to update the display.
  7 | public final class DisplayLink: Publisher {
    |                    `- note: class 'DisplayLink' does not conform to the 'Sendable' protocol
  8 |     public typealias Output = Frame
  9 |     public typealias Failure = Never
    :
 78 |
 79 | extension DisplayLink {
 80 |     public static let shared = DisplayLink()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'DisplayLink' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 81 | }
 82 |
Build complete! (10.52s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DisplayLink",
  "name" : "DisplayLink",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "DisplayLink",
      "targets" : [
        "DisplayLink"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DisplayLinkTests",
      "module_type" : "SwiftTarget",
      "name" : "DisplayLinkTests",
      "path" : "Tests/DisplayLinkTests",
      "sources" : [
        "DisplayLinkTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "DisplayLink"
      ],
      "type" : "test"
    },
    {
      "c99name" : "DisplayLink",
      "module_type" : "SwiftTarget",
      "name" : "DisplayLink",
      "path" : "Sources/DisplayLink",
      "product_memberships" : [
        "DisplayLink"
      ],
      "sources" : [
        "DisplayLink.swift",
        "OnFrame.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.