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 WebSocketKit, reference v1.0.0 (37026b), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 11:37:37 UTC.

Swift 6 data race errors: 0

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexanderwe/WebSocketKit.git
Reference: v1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexanderwe/WebSocketKit
 * tag               v1.0.0     -> FETCH_HEAD
HEAD is now at 37026b6 Merge branch 'release/v1.0.0' into main
Cloned https://github.com/alexanderwe/WebSocketKit.git
Revision (git rev-parse @):
37026b6b186512bde5fa072a1247d72d130e9a51
SUCCESS checkout https://github.com/alexanderwe/WebSocketKit.git at v1.0.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": "websocketkit",
      "name": "WebSocketKit",
      "url": "https://github.com/alexanderwe/WebSocketKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WebSocketKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/alexanderwe/WebSocketKit.git
[1/177] Fetching websocketkit
Fetched https://github.com/alexanderwe/WebSocketKit.git from cache (0.81s)
Creating working copy for https://github.com/alexanderwe/WebSocketKit.git
Working copy of https://github.com/alexanderwe/WebSocketKit.git resolved at v1.0.0 (37026b6)
warning: 'websocketkit': the target name WebSocketKit has different case on the filesystem and the Package.swift manifest file
warning: '.resolve-product-dependencies': dependency 'websocketkit' 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/alexanderwe/WebSocketKit.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/6] Emitting module WebSocketKit
[4/6] Compiling WebSocketKit WebSocketConnection.swift
[5/6] Compiling WebSocketKit WebSocketKit.swift
[6/6] Compiling WebSocketKit WebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebSocketKit/WebSocket.swift:74:30: warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// Websocket representaton
 21 | public class WebSocket {
    |              `- note: class 'WebSocket' does not conform to the 'Sendable' protocol
 22 |
 23 |     // MARK: - Public properties
    :
 72 |     private func listen() {
 73 |         connection.receiveMessage { [weak self] (data, context, _, error) in
 74 |             guard let self = self else {
    |                              `- warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 |                 return
 76 |             }
/Users/admin/builder/spi-builder-workspace/Sources/WebSocketKit/WebSocket.swift:134:46: warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// Websocket representaton
 21 | public class WebSocket {
    |              `- note: class 'WebSocket' does not conform to the 'Sendable' protocol
 22 |
 23 |     // MARK: - Public properties
    :
132 |                         isComplete: true,
133 |                         completion: .contentProcessed({ [weak self] error in
134 |                             guard let self = self else {
    |                                              `- warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |                                 return
136 |                             }
/Users/admin/builder/spi-builder-workspace/Sources/WebSocketKit/WebSocket.swift:198:39: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
196 |
197 |     public func connect() {
198 |         connection.stateUpdateHandler = connectionStateDidChange(to:)
    |                                       `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
199 |         connection.start(queue: queue)
200 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WebSocketKit/WebSocket.swift:222:30: warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// Websocket representaton
 21 | public class WebSocket {
    |              `- note: class 'WebSocket' does not conform to the 'Sendable' protocol
 22 |
 23 |     // MARK: - Public properties
    :
220 |     public func ping(interval: TimeInterval) {
221 |         pingTimer = .scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
222 |             guard let self = self else {
    |                              `- warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
223 |                 return
224 |             }
/Users/admin/builder/spi-builder-workspace/Sources/WebSocketKit/WebSocket.swift:233:30: warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// Websocket representaton
 21 | public class WebSocket {
    |              `- note: class 'WebSocket' does not conform to the 'Sendable' protocol
 22 |
 23 |     // MARK: - Public properties
    :
231 |         let metadata = NWProtocolWebSocket.Metadata(opcode: .ping)
232 |         metadata.setPongHandler(queue) { [weak self] error in
233 |             guard let self = self else {
    |                              `- warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 |                 return
235 |             }
Build complete! (6.00s)
warning: 'spi-builder-workspace': the target name WebSocketKit has different case on the filesystem and the Package.swift manifest file
warning: 'spi-builder-workspace': the target name WebSocketKitTests has different case on the filesystem and the Package.swift manifest file
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WebSocketKit",
  "name" : "WebSocketKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "WebSocketKit",
      "targets" : [
        "WebSocketKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WebSocketKitTests",
      "module_type" : "SwiftTarget",
      "name" : "WebSocketKitTests",
      "path" : "Tests/WebSocketKitTests",
      "sources" : [
        "WebSocketKitTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "WebSocketKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WebSocketKit",
      "module_type" : "SwiftTarget",
      "name" : "WebSocketKit",
      "path" : "Sources/WebSocketKit",
      "product_memberships" : [
        "WebSocketKit"
      ],
      "sources" : [
        "WebSocket.swift",
        "WebSocketConnection.swift",
        "WebSocketKit.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
warning: 'spi-builder-workspace': the target name WebSocketKit has different case on the filesystem and the Package.swift manifest file
warning: 'spi-builder-workspace': the target name WebSocketKitTests has different case on the filesystem and the Package.swift manifest file
Done.