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, reference master (7e3d24), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 16:07:59 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bgoncal/Starscream.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/bgoncal/Starscream
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7e3d244 Avoid creating multiple URLSessions
Cloned https://github.com/bgoncal/Starscream.git
Revision (git rev-parse @):
7e3d24425c20649105cb4bdd612b6bab66f73ade
SUCCESS checkout https://github.com/bgoncal/Starscream.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/bgoncal/Starscream.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun 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-117DEE11B69C53C9.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; 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 |         }
[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; 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 |         }
[9/25] Compiling Starscream Compression.swift
[10/25] Compiling Starscream WSCompression.swift
[11/25] Compiling Starscream Data+Extensions.swift
[12/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
[13/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
[14/25] Compiling Starscream FoundationHTTPServerHandler.swift
[15/25] Compiling Starscream FrameCollector.swift
[16/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |             `- 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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                 `- 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; this is an error in the Swift 6 language mode
 68 |         case .ping:
 69 |             task?.sendPing(pongReceiveHandler: { (error) in
 70 |                 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'
 71 |             })
 72 |         default:
[17/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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |             `- 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; this is an error in the Swift 6 language mode
 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; this is an error in the Swift 6 language mode
    |                 `- 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; this is an error in the Swift 6 language mode
 68 |         case .ping:
 69 |             task?.sendPing(pongReceiveHandler: { (error) in
 70 |                 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'
 71 |             })
 72 |         default:
[18/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))
[19/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))
[20/25] Compiling Starscream StringHTTPHandler.swift
[21/25] Compiling Starscream FoundationSecurity.swift
[22/25] Compiling Starscream Security.swift
[23/25] Compiling Starscream Server.swift
[24/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 |         }
[25/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 |         }
Build complete! (17.24s)
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.