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

Swift 6 data race errors: 1

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/timdonnelly/DisplayLink.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/timdonnelly/DisplayLink
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 520ed87 Remove unavailable framework import within WatchOS
Cloned https://github.com/timdonnelly/DisplayLink.git
Revision (git rev-parse @):
520ed874d5d3f6ee9bbb4e21d8edfe4af9baa19e
SUCCESS checkout https://github.com/timdonnelly/DisplayLink.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/timdonnelly/DisplayLink.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 DisplayLink DisplayLink.swift
/Users/admin/builder/spi-builder-workspace/Sources/DisplayLink/DisplayLink.swift:79: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
  4 |
  5 | // A publisher that emits new values when the system is about to update the display.
  6 | public final class DisplayLink: Publisher {
    |                    `- note: class 'DisplayLink' does not conform to the 'Sendable' protocol
  7 |     public typealias Output = Frame
  8 |     public typealias Failure = Never
    :
 77 |
 78 | extension DisplayLink {
 79 |     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
 80 | }
 81 |
/Users/admin/builder/spi-builder-workspace/Sources/DisplayLink/DisplayLink.swift:202: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
168 |
169 |     /// DisplayLink is used to hook into screen refreshes.
170 |     fileprivate final class PlatformDisplayLink {
    |                             `- note: class 'PlatformDisplayLink' does not conform to the 'Sendable' protocol
171 |
172 |         /// The callback to call for each frame.
    :
200 |
201 |                 DispatchQueue.main.async {
202 |                     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
203 |                 }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/DisplayLink/DisplayLink.swift:202: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
168 |
169 |     /// DisplayLink is used to hook into screen refreshes.
170 |     fileprivate final class PlatformDisplayLink {
    |                             `- note: class 'PlatformDisplayLink' does not conform to the 'Sendable' protocol
171 |
172 |         /// The callback to call for each frame.
    :
200 |
201 |                 DispatchQueue.main.async {
202 |                     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
203 |                 }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/DisplayLink/DisplayLink.swift:202:41: warning: capture of 'frame' with non-sendable type 'DisplayLink.Frame' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 55 |
 56 |     // Represents a frame that is about to be drawn
 57 |     public struct Frame {
    |                   `- note: consider making struct 'Frame' conform to the 'Sendable' protocol
 58 |
 59 |         // The system timestamp for the frame to be drawn
    :
200 |
201 |                 DispatchQueue.main.async {
202 |                     self?.handle(frame: frame)
    |                                         `- warning: capture of 'frame' with non-sendable type 'DisplayLink.Frame' in a `@Sendable` closure; this is an error in the Swift 6 language mode
203 |                 }
204 |
/Users/admin/builder/spi-builder-workspace/Sources/DisplayLink/DisplayLink.swift:202:21: warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
200 |
201 |                 DispatchQueue.main.async {
202 |                     self?.handle(frame: frame)
    |                     `- warning: reference to captured var 'self' in concurrently-executing code; this is an error in the Swift 6 language mode
203 |                 }
204 |
[4/5] Compiling DisplayLink OnFrame.swift
/Users/admin/builder/spi-builder-workspace/Sources/DisplayLink/DisplayLink.swift:79: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
  4 |
  5 | // A publisher that emits new values when the system is about to update the display.
  6 | public final class DisplayLink: Publisher {
    |                    `- note: class 'DisplayLink' does not conform to the 'Sendable' protocol
  7 |     public typealias Output = Frame
  8 |     public typealias Failure = Never
    :
 77 |
 78 | extension DisplayLink {
 79 |     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
 80 | }
 81 |
[5/5] Emitting module DisplayLink
/Users/admin/builder/spi-builder-workspace/Sources/DisplayLink/DisplayLink.swift:79: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
  4 |
  5 | // A publisher that emits new values when the system is about to update the display.
  6 | public final class DisplayLink: Publisher {
    |                    `- note: class 'DisplayLink' does not conform to the 'Sendable' protocol
  7 |     public typealias Output = Frame
  8 |     public typealias Failure = Never
    :
 77 |
 78 | extension DisplayLink {
 79 |     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
 80 | }
 81 |
Build complete! (31.06s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.