The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Starscream, reference 4.0.9 (aaaf60), with Swift 6.1 for macOS (SPM) on 25 Mar 2026 01:42:38 UTC.

Swift 6 data race errors: 2

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 InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bgoncal/Starscream.git
Reference: 4.0.9
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/bgoncal/Starscream
 * tag               4.0.9      -> FETCH_HEAD
HEAD is now at aaaf609 Merge pull request #2 from bgoncal/fix/foundation-transport-disconnect-race
Cloned https://github.com/bgoncal/Starscream.git
Revision (git rev-parse @):
aaaf609d07eb487b2fccbe77f6267cf0843e2b19
SUCCESS checkout https://github.com/bgoncal/Starscream.git at 4.0.9
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/bgoncal/Starscream.git
https://github.com/bgoncal/Starscream.git
{
  "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"
}
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/3] Copying PrivacyInfo.xcprivacy
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.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 |     private var session: URLSession?
/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 |     private var session: URLSession?
 29 |     weak var delegate: EngineDelegate?
[5/25] Compiling Starscream Transport.swift
[6/25] Compiling Starscream resource_bundle_accessor.swift
[7/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
 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
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
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
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
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
    |                 `- 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 |         }
[8/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
 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
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
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
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
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
    |                 `- 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 |         }
[9/25] Compiling Starscream Security.swift
[10/25] Compiling Starscream Server.swift
[11/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 |     private var session: URLSession?
/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 |     private var session: URLSession?
 29 |     weak var delegate: EngineDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:55:13: warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
 53 |     public func write(string: String, completion: (() -> ())?) {
 54 |         task?.send(.string(string), completionHandler: { (error) in
 55 |             completion?()
    |             |- warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 56 |         })
 57 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:63:17: warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
 61 |         case .binaryFrame:
 62 |             task?.send(.data(data), completionHandler: { (error) in
 63 |                 completion?()
    |                 |- warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 64 |             })
 65 |         case .textFrame:
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:70:17: warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
 68 |         case .ping:
 69 |             task?.sendPing(pongReceiveHandler: { (error) in
 70 |                 completion?()
    |                 |- warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |             })
 72 |         default:
[12/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 |     private var session: URLSession?
/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 |     private var session: URLSession?
 29 |     weak var delegate: EngineDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:55:13: warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
 53 |     public func write(string: String, completion: (() -> ())?) {
 54 |         task?.send(.string(string), completionHandler: { (error) in
 55 |             completion?()
    |             |- warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 56 |         })
 57 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:63:17: warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
 61 |         case .binaryFrame:
 62 |             task?.send(.data(data), completionHandler: { (error) in
 63 |                 completion?()
    |                 |- warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 64 |             })
 65 |         case .textFrame:
/Users/admin/builder/spi-builder-workspace/Sources/Engine/NativeEngine.swift:70:17: warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
 68 |         case .ping:
 69 |             task?.sendPing(pongReceiveHandler: { (error) in
 70 |                 completion?()
    |                 |- warning: capture of 'completion' with non-sendable type '(() -> ())?' in a '@Sendable' closure
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 71 |             })
 72 |         default:
[13/25] Compiling Starscream StringHTTPHandler.swift
[14/25] Compiling Starscream FoundationSecurity.swift
[15/25] Compiling Starscream FoundationHTTPServerHandler.swift
[16/25] Compiling Starscream FrameCollector.swift
[17/25] Compiling Starscream Compression.swift
[18/25] Compiling Starscream WSCompression.swift
[19/25] Compiling Starscream Data+Extensions.swift
[20/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
 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
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
 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
171 |             s.onEvent?(event)
172 |         }
[21/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
 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
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
 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
171 |             s.onEvent?(event)
172 |         }
[22/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
 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
 91 |             if !s.isOpen {
 92 |                 s.delegate?.connectionChanged(state: .failed(FoundationTransportError.timeout))
/Users/admin/builder/spi-builder-workspace/Sources/Transport/FoundationTransport.swift:123:13: warning: capture of 'capturedInput' with non-sendable type 'InputStream?' in a '@Sendable' closure
121 |
122 |         workQueue.async {
123 |             capturedInput?.delegate = nil
    |             `- warning: capture of 'capturedInput' with non-sendable type 'InputStream?' in a '@Sendable' closure
124 |             capturedOutput?.delegate = nil
125 |             _ = (capturedInput, capturedOutput)
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/Transport/FoundationTransport.swift:124:13: warning: capture of 'capturedOutput' with non-sendable type 'OutputStream?' in a '@Sendable' closure
122 |         workQueue.async {
123 |             capturedInput?.delegate = nil
124 |             capturedOutput?.delegate = nil
    |             `- warning: capture of 'capturedOutput' with non-sendable type 'OutputStream?' in a '@Sendable' closure
125 |             _ = (capturedInput, capturedOutput)
126 |         }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/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
 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
    |             `- 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
 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
146 |             if let data = data {
147 |                 s.delegate?.connectionChanged(state: .receive(data))
[23/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
 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
 91 |             if !s.isOpen {
 92 |                 s.delegate?.connectionChanged(state: .failed(FoundationTransportError.timeout))
/Users/admin/builder/spi-builder-workspace/Sources/Transport/FoundationTransport.swift:123:13: warning: capture of 'capturedInput' with non-sendable type 'InputStream?' in a '@Sendable' closure
121 |
122 |         workQueue.async {
123 |             capturedInput?.delegate = nil
    |             `- warning: capture of 'capturedInput' with non-sendable type 'InputStream?' in a '@Sendable' closure
124 |             capturedOutput?.delegate = nil
125 |             _ = (capturedInput, capturedOutput)
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/Transport/FoundationTransport.swift:124:13: warning: capture of 'capturedOutput' with non-sendable type 'OutputStream?' in a '@Sendable' closure
122 |         workQueue.async {
123 |             capturedInput?.delegate = nil
124 |             capturedOutput?.delegate = nil
    |             `- warning: capture of 'capturedOutput' with non-sendable type 'OutputStream?' in a '@Sendable' closure
125 |             _ = (capturedInput, capturedOutput)
126 |         }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
/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
 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
    |             `- 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
 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
146 |             if let data = data {
147 |                 s.delegate?.connectionChanged(state: .receive(data))
[24/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
 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
114 |             while(true) {
115 |                let event = self?.process() ?? .needsMoreData
[25/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
 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
114 |             while(true) {
115 |                let event = self?.process() ?? .needsMoreData
Build complete! (5.85s)
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.