Build Information
Successful build of NWWebSocket, reference 1.0.0 (770267), with Swift 6.1 for macOS (SPM) on 4 Oct 2026 03:34:24 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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 InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pusher/NWWebSocket.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pusher/NWWebSocket
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 7702675 Merge pull request #70 from pusher/bump-ios-minimum-to-15
Cloned https://github.com/pusher/NWWebSocket.git
Revision (git rev-parse @):
77026756335b3a9822b92e04b2b20c9b3e1c5c14
SUCCESS checkout https://github.com/pusher/NWWebSocket.git at 1.0.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/pusher/NWWebSocket.git
https://github.com/pusher/NWWebSocket.git
{
"dependencies" : [
],
"manifest_display_name" : "NWWebSocket",
"name" : "NWWebSocket",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "NWWebSocket",
"targets" : [
"NWWebSocket"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NWWebSocketTests",
"module_type" : "SwiftTarget",
"name" : "NWWebSocketTests",
"path" : "Tests/NWWebSocketTests",
"sources" : [
"NWWebSocketTests.swift",
"Server/NWServerConnection.swift",
"Server/NWWebSocketServer.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"NWWebSocket"
],
"type" : "test"
},
{
"c99name" : "NWWebSocket",
"module_type" : "SwiftTarget",
"name" : "NWWebSocket",
"path" : "Sources/NWWebSocket",
"product_memberships" : [
"NWWebSocket"
],
"sources" : [
"Extension/NWConnection+Extension.swift",
"Model/Client/NWWebSocket.swift",
"Protocol/WebSocketConnection.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.txt
[3/6] Compiling NWWebSocket NWWebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:147:13: warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
3 |
4 | /// A WebSocket client that manages a socket connection.
5 | open class NWWebSocket: WebSocketConnection {
| `- note: class 'NWWebSocket' does not conform to the 'Sendable' protocol
6 |
7 | // MARK: - Public properties
:
145 | connection = NWConnection(to: endpoint, using: parameters)
146 | connection?.stateUpdateHandler = { [weak self] state in
147 | self?.stateDidChange(to: state, generation: generation)
| `- warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
148 | }
149 | connection?.betterPathUpdateHandler = { [weak self] isAvailable in
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:150:13: warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
3 |
4 | /// A WebSocket client that manages a socket connection.
5 | open class NWWebSocket: WebSocketConnection {
| `- note: class 'NWWebSocket' does not conform to the 'Sendable' protocol
6 |
7 | // MARK: - Public properties
:
148 | }
149 | connection?.betterPathUpdateHandler = { [weak self] isAvailable in
150 | self?.betterPath(isAvailable: isAvailable, generation: generation)
| `- warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
151 | }
152 | connection?.viabilityUpdateHandler = { [weak self] isViable in
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:153:13: warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
3 |
4 | /// A WebSocket client that manages a socket connection.
5 | open class NWWebSocket: WebSocketConnection {
| `- note: class 'NWWebSocket' does not conform to the 'Sendable' protocol
6 |
7 | // MARK: - Public properties
:
151 | }
152 | connection?.viabilityUpdateHandler = { [weak self] isViable in
153 | self?.viabilityDidChange(isViable: isViable, generation: generation)
| `- warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
154 | }
155 | listen(connection: connection, generation: generation)
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:192:30: warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure
3 |
4 | /// A WebSocket client that manages a socket connection.
5 | open class NWWebSocket: WebSocketConnection {
| `- note: class 'NWWebSocket' does not conform to the 'Sendable' protocol
6 |
7 | // MARK: - Public properties
:
190 |
191 | connection?.receiveMessage { [weak self] (data, context, _, error) in
192 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure
193 | return
194 | }
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:222:30: warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure
3 |
4 | /// A WebSocket client that manages a socket connection.
5 | open class NWWebSocket: WebSocketConnection {
| `- note: class 'NWWebSocket' does not conform to the 'Sendable' protocol
6 |
7 | // MARK: - Public properties
:
220 |
221 | pingTimer = .scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
222 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure
223 | return
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:236:30: warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure
3 |
4 | /// A WebSocket client that manages a socket connection.
5 | open class NWWebSocket: WebSocketConnection {
| `- note: class 'NWWebSocket' does not conform to the 'Sendable' protocol
6 |
7 | // MARK: - Public properties
:
234 | let metadata = NWProtocolWebSocket.Metadata(opcode: .ping)
235 | metadata.setPongHandler(connectionQueue) { [weak self] error in
236 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure
237 | return
238 | }
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:356:30: warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
3 |
4 | /// A WebSocket client that manages a socket connection.
5 | open class NWWebSocket: WebSocketConnection {
| `- note: class 'NWWebSocket' does not conform to the 'Sendable' protocol
6 |
7 | // MARK: - Public properties
:
354 | connection = NWConnection(to: endpoint, using: parameters)
355 | connection?.stateUpdateHandler = { [weak self] state in
356 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
357 | guard self.isCurrentConnectionGeneration(generation) else { return }
358 | self.stateDidChange(to: state, generation: generation)
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:363:17: warning: capture of 'completionHandler' with non-sendable type '(Result<any WebSocketConnection, NWError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
361 | switch state {
362 | case .ready:
363 | completionHandler(.success(self))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<any WebSocketConnection, NWError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
364 | case .failed(let error):
365 | completionHandler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:371:13: warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
3 |
4 | /// A WebSocket client that manages a socket connection.
5 | open class NWWebSocket: WebSocketConnection {
| `- note: class 'NWWebSocket' does not conform to the 'Sendable' protocol
6 |
7 | // MARK: - Public properties
:
369 | }
370 | connection?.betterPathUpdateHandler = { [weak self] isAvailable in
371 | self?.betterPath(isAvailable: isAvailable, generation: generation)
| `- warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
372 | }
373 | connection?.viabilityUpdateHandler = { [weak self] isViable in
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:374:13: warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
3 |
4 | /// A WebSocket client that manages a socket connection.
5 | open class NWWebSocket: WebSocketConnection {
| `- note: class 'NWWebSocket' does not conform to the 'Sendable' protocol
6 |
7 | // MARK: - Public properties
:
372 | }
373 | connection?.viabilityUpdateHandler = { [weak self] isViable in
374 | self?.viabilityDidChange(isViable: isViable, generation: generation)
| `- warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
375 | }
376 | listen(connection: connection, generation: generation)
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:434:30: warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure
3 |
4 | /// A WebSocket client that manages a socket connection.
5 | open class NWWebSocket: WebSocketConnection {
| `- note: class 'NWWebSocket' does not conform to the 'Sendable' protocol
6 |
7 | // MARK: - Public properties
:
432 | isComplete: true,
433 | completion: .contentProcessed({ [weak self] error in
434 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'NWWebSocket?' in a '@Sendable' closure
435 | return
436 | }
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:483:13: warning: capture of 'forceTeardownIfNeeded' with non-sendable type '() -> Void' in a '@Sendable' closure
481 | isComplete: true,
482 | completion: .contentProcessed({ _ in
483 | forceTeardownIfNeeded()
| |- warning: capture of 'forceTeardownIfNeeded' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
484 | }))
485 |
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:487:13: warning: capture of 'forceTeardownIfNeeded' with non-sendable type '() -> Void' in a '@Sendable' closure
485 |
486 | connectionQueue.asyncAfter(deadline: .now() + 0.25) {
487 | forceTeardownIfNeeded()
| |- warning: capture of 'forceTeardownIfNeeded' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
488 | }
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Model/Client/NWWebSocket.swift:587:40: warning: reference to captured var 'connectionToTearDown' in concurrently-executing code
585 | // Small delay to let any in-flight callbacks complete
586 | DispatchQueue.global().asyncAfter(deadline: .now() + 0.1) {
587 | guard let connection = connectionToTearDown else { return }
| `- warning: reference to captured var 'connectionToTearDown' in concurrently-executing code
588 |
589 | // Only cancel if not already cancelled
[4/6] Compiling NWWebSocket NWConnection+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Extension/NWConnection+Extension.swift:3:17: warning: var '_intentionalDisconnection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import Network
2 |
3 | fileprivate var _intentionalDisconnection: Bool = false
| |- warning: var '_intentionalDisconnection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_intentionalDisconnection' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 |
5 | internal extension NWConnection {
[5/6] Compiling NWWebSocket WebSocketConnection.swift
[6/6] Emitting module NWWebSocket
/Users/admin/builder/spi-builder-workspace/Sources/NWWebSocket/Extension/NWConnection+Extension.swift:3:17: warning: var '_intentionalDisconnection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import Network
2 |
3 | fileprivate var _intentionalDisconnection: Bool = false
| |- warning: var '_intentionalDisconnection' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_intentionalDisconnection' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
4 |
5 | internal extension NWConnection {
Build complete! (3.81s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "NWWebSocket",
"name" : "NWWebSocket",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "NWWebSocket",
"targets" : [
"NWWebSocket"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NWWebSocketTests",
"module_type" : "SwiftTarget",
"name" : "NWWebSocketTests",
"path" : "Tests/NWWebSocketTests",
"sources" : [
"NWWebSocketTests.swift",
"Server/NWServerConnection.swift",
"Server/NWWebSocketServer.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"NWWebSocket"
],
"type" : "test"
},
{
"c99name" : "NWWebSocket",
"module_type" : "SwiftTarget",
"name" : "NWWebSocket",
"path" : "Sources/NWWebSocket",
"product_memberships" : [
"NWWebSocket"
],
"sources" : [
"Extension/NWConnection+Extension.swift",
"Model/Client/NWWebSocket.swift",
"Protocol/WebSocketConnection.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.