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

Swift 6 data race errors: 2

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/daltoniam/Starscream.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/daltoniam/Starscream
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c6bfd1a chore: update release tooling
Cloned https://github.com/daltoniam/Starscream.git
Revision (git rev-parse @):
c6bfd1af48efcc9a9ad203665db12375ba6b145a
SUCCESS checkout https://github.com/daltoniam/Starscream.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/daltoniam/Starscream.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/3] Write sources
[1/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/23] Emitting module Starscream
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:26:14: warning: non-final class 'NativeEngine' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 24 |
 25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 26 | public class NativeEngine: NSObject, Engine, URLSessionDataDelegate, URLSessionWebSocketDelegate {
    |              `- warning: non-final class 'NativeEngine' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 27 |     private var task: URLSessionWebSocketTask?
 28 |     weak var delegate: EngineDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:27:17: warning: stored property 'task' of 'Sendable'-conforming class 'NativeEngine' is mutable; this is an error in the Swift 6 language mode
 25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 26 | public class NativeEngine: NSObject, Engine, URLSessionDataDelegate, URLSessionWebSocketDelegate {
 27 |     private var task: URLSessionWebSocketTask?
    |                 `- warning: stored property 'task' of 'Sendable'-conforming class 'NativeEngine' is mutable; this is an error in the Swift 6 language mode
 28 |     weak var delegate: EngineDelegate?
 29 |
[5/25] Compiling Starscream Engine.swift
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:26:14: warning: non-final class 'NativeEngine' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 24 |
 25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 26 | public class NativeEngine: NSObject, Engine, URLSessionDataDelegate, URLSessionWebSocketDelegate {
    |              `- warning: non-final class 'NativeEngine' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 27 |     private var task: URLSessionWebSocketTask?
 28 |     weak var delegate: EngineDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:27:17: warning: stored property 'task' of 'Sendable'-conforming class 'NativeEngine' is mutable; this is an error in the Swift 6 language mode
 25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 26 | public class NativeEngine: NSObject, Engine, URLSessionDataDelegate, URLSessionWebSocketDelegate {
 27 |     private var task: URLSessionWebSocketTask?
    |                 `- warning: stored property 'task' of 'Sendable'-conforming class 'NativeEngine' is mutable; this is an error in the Swift 6 language mode
 28 |     weak var delegate: EngineDelegate?
 29 |
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:67:17: warning: capture of 'completion' with non-sendable type '(() -> ())?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 65 |         case .ping:
 66 |             task?.sendPing(pongReceiveHandler: { (error) in
 67 |                 completion?()
    |                 |- warning: capture of 'completion' with non-sendable type '(() -> ())?' 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'
 68 |             })
 69 |         default:
[6/25] Compiling Starscream NativeEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:26:14: warning: non-final class 'NativeEngine' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 24 |
 25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 26 | public class NativeEngine: NSObject, Engine, URLSessionDataDelegate, URLSessionWebSocketDelegate {
    |              `- warning: non-final class 'NativeEngine' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 27 |     private var task: URLSessionWebSocketTask?
 28 |     weak var delegate: EngineDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:27:17: warning: stored property 'task' of 'Sendable'-conforming class 'NativeEngine' is mutable; this is an error in the Swift 6 language mode
 25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
 26 | public class NativeEngine: NSObject, Engine, URLSessionDataDelegate, URLSessionWebSocketDelegate {
 27 |     private var task: URLSessionWebSocketTask?
    |                 `- warning: stored property 'task' of 'Sendable'-conforming class 'NativeEngine' is mutable; this is an error in the Swift 6 language mode
 28 |     weak var delegate: EngineDelegate?
 29 |
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:67:17: warning: capture of 'completion' with non-sendable type '(() -> ())?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 65 |         case .ping:
 66 |             task?.sendPing(pongReceiveHandler: { (error) in
 67 |                 completion?()
    |                 |- warning: capture of 'completion' with non-sendable type '(() -> ())?' 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'
 68 |             })
 69 |         default:
[7/25] Compiling Starscream Transport.swift
[8/25] Compiling Starscream resource_bundle_accessor.swift
[9/25] Compiling Starscream Security.swift
[10/25] Compiling Starscream Server.swift
[11/25] Compiling Starscream FoundationHTTPServerHandler.swift
[12/25] Compiling Starscream FrameCollector.swift
[13/25] Compiling Starscream StringHTTPHandler.swift
[14/25] Compiling Starscream FoundationSecurity.swift
[15/25] Compiling Starscream WebSocketServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Server/WebSocketServer.swift:52:26: warning: capture of 'self' with non-sendable type 'WebSocketServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 28 | @available(watchOS, unavailable)
 29 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
 30 | public class WebSocketServer: Server, ConnectionDelegate {
    |              `- note: class 'WebSocketServer' does not conform to the 'Sendable' protocol
 31 |     public var onEvent: ((ServerEvent) -> Void)?
 32 |     private var connections = [String: ServerConnection]()
    :
 50 |             let transport = TCPTransport(connection: conn)
 51 |             let c = ServerConnection(transport: transport)
 52 |             c.delegate = self
    |                          `- warning: capture of 'self' with non-sendable type 'WebSocketServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 |             self?.connections[c.uuid] = c
 54 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Starscream/WebSocket.swift:169:27: warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 93 | }
 94 |
 95 | open class WebSocket: WebSocketClient, EngineDelegate {
    |            `- note: class 'WebSocket' does not conform to the 'Sendable' protocol
 96 |     private let engine: Engine
 97 |     public weak var delegate: WebSocketDelegate?
    :
167 |     public func didReceive(event: WebSocketEvent) {
168 |         callbackQueue.async { [weak self] in
169 |             guard let s = self else { return }
    |                           `- warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
170 |             s.delegate?.didReceive(event: event, client: s)
171 |             s.onEvent?(event)
/Users/admin/builder/spi-builder-workspace/Sources/Starscream/WebSocket.swift:170:43: warning: capture of 'event' with non-sendable type 'WebSocketEvent' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 | }
 76 |
 77 | public enum WebSocketEvent {
    |             `- note: consider making enum 'WebSocketEvent' conform to the 'Sendable' protocol
 78 |     case connected([String: String])
 79 |     case disconnected(String, UInt16)
    :
168 |         callbackQueue.async { [weak self] in
169 |             guard let s = self else { return }
170 |             s.delegate?.didReceive(event: event, client: s)
    |                                           `- warning: capture of 'event' with non-sendable type 'WebSocketEvent' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 |             s.onEvent?(event)
172 |         }
[16/25] Compiling Starscream WebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Server/WebSocketServer.swift:52:26: warning: capture of 'self' with non-sendable type 'WebSocketServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 28 | @available(watchOS, unavailable)
 29 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
 30 | public class WebSocketServer: Server, ConnectionDelegate {
    |              `- note: class 'WebSocketServer' does not conform to the 'Sendable' protocol
 31 |     public var onEvent: ((ServerEvent) -> Void)?
 32 |     private var connections = [String: ServerConnection]()
    :
 50 |             let transport = TCPTransport(connection: conn)
 51 |             let c = ServerConnection(transport: transport)
 52 |             c.delegate = self
    |                          `- warning: capture of 'self' with non-sendable type 'WebSocketServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 |             self?.connections[c.uuid] = c
 54 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Starscream/WebSocket.swift:169:27: warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 93 | }
 94 |
 95 | open class WebSocket: WebSocketClient, EngineDelegate {
    |            `- note: class 'WebSocket' does not conform to the 'Sendable' protocol
 96 |     private let engine: Engine
 97 |     public weak var delegate: WebSocketDelegate?
    :
167 |     public func didReceive(event: WebSocketEvent) {
168 |         callbackQueue.async { [weak self] in
169 |             guard let s = self else { return }
    |                           `- warning: capture of 'self' with non-sendable type 'WebSocket?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
170 |             s.delegate?.didReceive(event: event, client: s)
171 |             s.onEvent?(event)
/Users/admin/builder/spi-builder-workspace/Sources/Starscream/WebSocket.swift:170:43: warning: capture of 'event' with non-sendable type 'WebSocketEvent' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 | }
 76 |
 77 | public enum WebSocketEvent {
    |             `- note: consider making enum 'WebSocketEvent' conform to the 'Sendable' protocol
 78 |     case connected([String: String])
 79 |     case disconnected(String, UInt16)
    :
168 |         callbackQueue.async { [weak self] in
169 |             guard let s = self else { return }
170 |             s.delegate?.didReceive(event: event, client: s)
    |                                           `- warning: capture of 'event' with non-sendable type 'WebSocketEvent' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 |             s.onEvent?(event)
172 |         }
[17/25] Compiling Starscream WSEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/Engine/WSEngine.swift:115:27: warning: capture of 'self' with non-sendable type 'WSEngine?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 | import Foundation
 24 |
 25 | public class WSEngine: Engine, TransportEventClient, FramerEventClient,
    |              `- note: class 'WSEngine' does not conform to the 'Sendable' protocol
 26 | FrameCollectorDelegate, HTTPHandlerDelegate {
 27 |     private let transport: Transport
    :
113 |     public func write(data: Data, opcode: FrameOpCode, completion: (() -> ())?) {
114 |         writeQueue.async { [weak self] in
115 |             guard let s = self else { return }
    |                           `- warning: capture of 'self' with non-sendable type 'WSEngine?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 |             s.mutex.wait()
117 |             let canWrite = s.canSend
/Users/admin/builder/spi-builder-workspace/Sources/Engine/WSEngine.swift:130:63: warning: capture of 'opcode' with non-sendable type 'FrameOpCode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 |             }
129 |
130 |             let frameData = s.framer.createWriteFrame(opcode: opcode, payload: sendData, isCompressed: isCompressed)
    |                                                               `- warning: capture of 'opcode' with non-sendable type 'FrameOpCode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 |             s.transport.write(data: frameData, completion: {_ in
132 |                 completion?()
/Users/admin/builder/spi-builder-workspace/Sources/Framer/Framer.swift:47:13: note: consider making enum 'FrameOpCode' conform to the 'Sendable' protocol
 45 | }
 46 |
 47 | public enum FrameOpCode: UInt8 {
    |             `- note: consider making enum 'FrameOpCode' conform to the 'Sendable' protocol
 48 |     case continueFrame = 0x0
 49 |     case textFrame = 0x1
/Users/admin/builder/spi-builder-workspace/Sources/Engine/WSEngine.swift:132:17: warning: capture of 'completion' with non-sendable type '(() -> ())?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 |             let frameData = s.framer.createWriteFrame(opcode: opcode, payload: sendData, isCompressed: isCompressed)
131 |             s.transport.write(data: frameData, completion: {_ in
132 |                 completion?()
    |                 |- warning: capture of 'completion' with non-sendable type '(() -> ())?' 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'
133 |             })
134 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Engine/WSEngine.swift:132:17: warning: capture of 'completion' with non-sendable type '(() -> ())?' in an isolated closure; this is an error in the Swift 6 language mode
130 |             let frameData = s.framer.createWriteFrame(opcode: opcode, payload: sendData, isCompressed: isCompressed)
131 |             s.transport.write(data: frameData, completion: {_ in
132 |                 completion?()
    |                 |- warning: capture of 'completion' with non-sendable type '(() -> ())?' in an isolated closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
133 |             })
134 |         }
[18/25] Compiling Starscream FoundationHTTPHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Engine/WSEngine.swift:115:27: warning: capture of 'self' with non-sendable type 'WSEngine?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 23 | import Foundation
 24 |
 25 | public class WSEngine: Engine, TransportEventClient, FramerEventClient,
    |              `- note: class 'WSEngine' does not conform to the 'Sendable' protocol
 26 | FrameCollectorDelegate, HTTPHandlerDelegate {
 27 |     private let transport: Transport
    :
113 |     public func write(data: Data, opcode: FrameOpCode, completion: (() -> ())?) {
114 |         writeQueue.async { [weak self] in
115 |             guard let s = self else { return }
    |                           `- warning: capture of 'self' with non-sendable type 'WSEngine?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 |             s.mutex.wait()
117 |             let canWrite = s.canSend
/Users/admin/builder/spi-builder-workspace/Sources/Engine/WSEngine.swift:130:63: warning: capture of 'opcode' with non-sendable type 'FrameOpCode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 |             }
129 |
130 |             let frameData = s.framer.createWriteFrame(opcode: opcode, payload: sendData, isCompressed: isCompressed)
    |                                                               `- warning: capture of 'opcode' with non-sendable type 'FrameOpCode' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 |             s.transport.write(data: frameData, completion: {_ in
132 |                 completion?()
/Users/admin/builder/spi-builder-workspace/Sources/Framer/Framer.swift:47:13: note: consider making enum 'FrameOpCode' conform to the 'Sendable' protocol
 45 | }
 46 |
 47 | public enum FrameOpCode: UInt8 {
    |             `- note: consider making enum 'FrameOpCode' conform to the 'Sendable' protocol
 48 |     case continueFrame = 0x0
 49 |     case textFrame = 0x1
/Users/admin/builder/spi-builder-workspace/Sources/Engine/WSEngine.swift:132:17: warning: capture of 'completion' with non-sendable type '(() -> ())?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 |             let frameData = s.framer.createWriteFrame(opcode: opcode, payload: sendData, isCompressed: isCompressed)
131 |             s.transport.write(data: frameData, completion: {_ in
132 |                 completion?()
    |                 |- warning: capture of 'completion' with non-sendable type '(() -> ())?' 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'
133 |             })
134 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Engine/WSEngine.swift:132:17: warning: capture of 'completion' with non-sendable type '(() -> ())?' in an isolated closure; this is an error in the Swift 6 language mode
130 |             let frameData = s.framer.createWriteFrame(opcode: opcode, payload: sendData, isCompressed: isCompressed)
131 |             s.transport.write(data: frameData, completion: {_ in
132 |                 completion?()
    |                 |- warning: capture of 'completion' with non-sendable type '(() -> ())?' in an isolated closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
133 |             })
134 |         }
[19/25] Compiling Starscream Framer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Framer/Framer.swift:113:13: warning: capture of 'self' with non-sendable type 'WSFramer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 | }
 85 |
 86 | public class WSFramer: Framer {
    |              `- note: class 'WSFramer' does not conform to the 'Sendable' protocol
 87 |     private let queue = DispatchQueue(label: "com.vluxe.starscream.wsframer", attributes: [])
 88 |     private weak var delegate: FramerEventClient?
    :
111 |     public func add(data: Data) {
112 |         queue.async { [weak self] in
113 |             self?.buffer.append(data)
    |             `- warning: capture of 'self' with non-sendable type 'WSFramer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |             while(true) {
115 |                let event = self?.process() ?? .needsMoreData
[20/25] Compiling Starscream HTTPHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Framer/Framer.swift:113:13: warning: capture of 'self' with non-sendable type 'WSFramer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 | }
 85 |
 86 | public class WSFramer: Framer {
    |              `- note: class 'WSFramer' does not conform to the 'Sendable' protocol
 87 |     private let queue = DispatchQueue(label: "com.vluxe.starscream.wsframer", attributes: [])
 88 |     private weak var delegate: FramerEventClient?
    :
111 |     public func add(data: Data) {
112 |         queue.async { [weak self] in
113 |             self?.buffer.append(data)
    |             `- warning: capture of 'self' with non-sendable type 'WSFramer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
114 |             while(true) {
115 |                let event = self?.process() ?? .needsMoreData
[21/25] Compiling Starscream Compression.swift
[22/25] Compiling Starscream WSCompression.swift
[23/25] Compiling Starscream Data+Extensions.swift
[24/25] Compiling Starscream FoundationTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/FoundationTransport.swift:90:27: warning: capture of 'self' with non-sendable type 'FoundationTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 | }
 30 |
 31 | public class FoundationTransport: NSObject, Transport, StreamDelegate {
    |              `- note: class 'FoundationTransport' does not conform to the 'Sendable' protocol
 32 |     private weak var delegate: TransportEventClient?
 33 |     private let workQueue = DispatchQueue(label: "com.vluxe.starscream.websocket", attributes: [])
    :
 88 |
 89 |         workQueue.asyncAfter(deadline: .now() + timeout, execute: { [weak self] in
 90 |             guard let s = self else { return }
    |                           `- warning: capture of 'self' with non-sendable type 'FoundationTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 91 |             if !s.isOpen {
 92 |                 s.delegate?.connectionChanged(state: .failed(FoundationTransportError.timeout))
/Users/admin/builder/spi-builder-workspace/Sources/Transport/TCPTransport.swift:101:13: warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |     public func write(data: Data, completion: @escaping ((Error?) -> ())) {
100 |         connection?.send(content: data, completion: .contentProcessed { (error) in
101 |             completion(error)
    |             |- warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' 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'
102 |         })
103 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Transport/TCPTransport.swift:112:17: warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 30 |
 31 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
 32 | public class TCPTransport: Transport {
    |              `- note: class 'TCPTransport' does not conform to the 'Sendable' protocol
 33 |     private var connection: NWConnection?
 34 |     private let queue = DispatchQueue(label: "com.vluxe.starscream.networkstream", attributes: [])
    :
110 |             switch newState {
111 |             case .ready:
112 |                 self?.delegate?.connectionChanged(state: .connected)
    |                 `- warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 |             case .waiting:
114 |                 self?.delegate?.connectionChanged(state: .waiting)
/Users/admin/builder/spi-builder-workspace/Sources/Transport/TCPTransport.swift:127:13: warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 30 |
 31 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
 32 | public class TCPTransport: Transport {
    |              `- note: class 'TCPTransport' does not conform to the 'Sendable' protocol
 33 |     private var connection: NWConnection?
 34 |     private let queue = DispatchQueue(label: "com.vluxe.starscream.networkstream", attributes: [])
    :
125 |
126 |         conn.viabilityUpdateHandler = { [weak self] (isViable) in
127 |             self?.delegate?.connectionChanged(state: .viability(isViable))
    |             `- warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 |         }
129 |
/Users/admin/builder/spi-builder-workspace/Sources/Transport/TCPTransport.swift:131:13: warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 30 |
 31 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
 32 | public class TCPTransport: Transport {
    |              `- note: class 'TCPTransport' does not conform to the 'Sendable' protocol
 33 |     private var connection: NWConnection?
 34 |     private let queue = DispatchQueue(label: "com.vluxe.starscream.networkstream", attributes: [])
    :
129 |
130 |         conn.betterPathUpdateHandler = { [weak self] (isBetter) in
131 |             self?.delegate?.connectionChanged(state: .shouldReconnect(isBetter))
    |             `- warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 |         }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/Transport/TCPTransport.swift:145:27: warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 30 |
 31 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
 32 | public class TCPTransport: Transport {
    |              `- note: class 'TCPTransport' does not conform to the 'Sendable' protocol
 33 |     private var connection: NWConnection?
 34 |     private let queue = DispatchQueue(label: "com.vluxe.starscream.networkstream", attributes: [])
    :
143 |         }
144 |         connection?.receive(minimumIncompleteLength: 2, maximumLength: 4096, completion: {[weak self] (data, context, isComplete, error) in
145 |             guard let s = self else {return}
    |                           `- warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |             if let data = data {
147 |                 s.delegate?.connectionChanged(state: .receive(data))
[25/25] Compiling Starscream TCPTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/FoundationTransport.swift:90:27: warning: capture of 'self' with non-sendable type 'FoundationTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 | }
 30 |
 31 | public class FoundationTransport: NSObject, Transport, StreamDelegate {
    |              `- note: class 'FoundationTransport' does not conform to the 'Sendable' protocol
 32 |     private weak var delegate: TransportEventClient?
 33 |     private let workQueue = DispatchQueue(label: "com.vluxe.starscream.websocket", attributes: [])
    :
 88 |
 89 |         workQueue.asyncAfter(deadline: .now() + timeout, execute: { [weak self] in
 90 |             guard let s = self else { return }
    |                           `- warning: capture of 'self' with non-sendable type 'FoundationTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 91 |             if !s.isOpen {
 92 |                 s.delegate?.connectionChanged(state: .failed(FoundationTransportError.timeout))
/Users/admin/builder/spi-builder-workspace/Sources/Transport/TCPTransport.swift:101:13: warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |     public func write(data: Data, completion: @escaping ((Error?) -> ())) {
100 |         connection?.send(content: data, completion: .contentProcessed { (error) in
101 |             completion(error)
    |             |- warning: capture of 'completion' with non-sendable type '((any Error)?) -> ()' 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'
102 |         })
103 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Transport/TCPTransport.swift:112:17: warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 30 |
 31 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
 32 | public class TCPTransport: Transport {
    |              `- note: class 'TCPTransport' does not conform to the 'Sendable' protocol
 33 |     private var connection: NWConnection?
 34 |     private let queue = DispatchQueue(label: "com.vluxe.starscream.networkstream", attributes: [])
    :
110 |             switch newState {
111 |             case .ready:
112 |                 self?.delegate?.connectionChanged(state: .connected)
    |                 `- warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 |             case .waiting:
114 |                 self?.delegate?.connectionChanged(state: .waiting)
/Users/admin/builder/spi-builder-workspace/Sources/Transport/TCPTransport.swift:127:13: warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 30 |
 31 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
 32 | public class TCPTransport: Transport {
    |              `- note: class 'TCPTransport' does not conform to the 'Sendable' protocol
 33 |     private var connection: NWConnection?
 34 |     private let queue = DispatchQueue(label: "com.vluxe.starscream.networkstream", attributes: [])
    :
125 |
126 |         conn.viabilityUpdateHandler = { [weak self] (isViable) in
127 |             self?.delegate?.connectionChanged(state: .viability(isViable))
    |             `- warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 |         }
129 |
/Users/admin/builder/spi-builder-workspace/Sources/Transport/TCPTransport.swift:131:13: warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 30 |
 31 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
 32 | public class TCPTransport: Transport {
    |              `- note: class 'TCPTransport' does not conform to the 'Sendable' protocol
 33 |     private var connection: NWConnection?
 34 |     private let queue = DispatchQueue(label: "com.vluxe.starscream.networkstream", attributes: [])
    :
129 |
130 |         conn.betterPathUpdateHandler = { [weak self] (isBetter) in
131 |             self?.delegate?.connectionChanged(state: .shouldReconnect(isBetter))
    |             `- warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 |         }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/Transport/TCPTransport.swift:145:27: warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 30 |
 31 | @available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
 32 | public class TCPTransport: Transport {
    |              `- note: class 'TCPTransport' does not conform to the 'Sendable' protocol
 33 |     private var connection: NWConnection?
 34 |     private let queue = DispatchQueue(label: "com.vluxe.starscream.networkstream", attributes: [])
    :
143 |         }
144 |         connection?.receive(minimumIncompleteLength: 2, maximumLength: 4096, completion: {[weak self] (data, context, isComplete, error) in
145 |             guard let s = self else {return}
    |                           `- warning: capture of 'self' with non-sendable type 'TCPTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |             if let data = data {
147 |                 s.delegate?.connectionChanged(state: .receive(data))
Build complete! (25.75s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/Info.plist
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Starscream",
  "name" : "Starscream",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Starscream",
      "targets" : [
        "Starscream"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Starscream",
      "module_type" : "SwiftTarget",
      "name" : "Starscream",
      "path" : "Sources",
      "product_memberships" : [
        "Starscream"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Compression/Compression.swift",
        "Compression/WSCompression.swift",
        "DataBytes/Data+Extensions.swift",
        "Engine/Engine.swift",
        "Engine/NativeEngine.swift",
        "Engine/WSEngine.swift",
        "Framer/FoundationHTTPHandler.swift",
        "Framer/FoundationHTTPServerHandler.swift",
        "Framer/FrameCollector.swift",
        "Framer/Framer.swift",
        "Framer/HTTPHandler.swift",
        "Framer/StringHTTPHandler.swift",
        "Security/FoundationSecurity.swift",
        "Security/Security.swift",
        "Server/Server.swift",
        "Server/WebSocketServer.swift",
        "Starscream/WebSocket.swift",
        "Transport/FoundationTransport.swift",
        "Transport/TCPTransport.swift",
        "Transport/Transport.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.