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

Swift 6 data race errors: 0

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/alexanderwe/WebSocketKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexanderwe/WebSocketKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7b56172 chore(documentation): Generate documentation
Cloned https://github.com/alexanderwe/WebSocketKit.git
Revision (git rev-parse @):
7b561724c9ebd4fc08e08e47cd5546571b11b10b
SUCCESS checkout https://github.com/alexanderwe/WebSocketKit.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/alexanderwe/WebSocketKit.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/6] Compiling WebSocketKit WebSocketConnection.swift
[4/6] Compiling WebSocketKit WebSocketKit.swift
[5/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 |             }
[6/6] Emitting module WebSocketKit
Build complete! (16.87s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.