Build Information
Successful build of Glider with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 30
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
[87/97] Compiling Glider RemoteTransportConnection.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:55:38: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
53 | /// Enables remote logging.
54 | /// The transport will start searching for available servers.
55 | queue.async(execute: startBrowser)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
56 | } else {
57 | /// Disables remote logging and disconnects from the server.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:58:38: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
56 | } else {
57 | /// Disables remote logging and disconnects from the server.
58 | queue.async(execute: cancel)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:121:34: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
119 |
120 | if isEnabled {
121 | queue.async(execute: startBrowser)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
122 | }
123 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:127:13: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
125 | // iniitial (automatic) connection to the server.
126 | queue.asyncAfter(deadline: .now() + .seconds(2)) { [weak self] in
127 | self?.buffer = nil
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:176:30: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
174 | // Listen when state did change
175 | browser.stateUpdateHandler = { [weak self] newState in
176 | guard let self = self, self.isEnabled else { return }
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 |
178 | if case .failed = newState {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:186:30: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
184 | // Listen for new discovered endpoints
185 | browser.browseResultsChangedHandler = { [weak self] results, _ in
186 | guard let self = self, self.isEnabled else { return }
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 |
188 | self.servers = results
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:204:13: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
202 | // Automatically retry until the user cancels
203 | queue.asyncAfter(deadline: .now() + .seconds(configuration.autoRetryConnectInterval)) { [weak self] in
204 | self?.startBrowser()
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 | }
206 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:252:30: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
250 |
251 | queue.async { [weak self] in
252 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
253 |
254 | switch self.connectionState {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:329:30: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
327 | // Set timeout and retry in case there was no response from the server
328 | queue.asyncAfter(deadline: .now() + .seconds(10)) { [weak self] in
329 | guard let self = self else { return } // Failed to connect in 10 sec
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
330 |
331 | guard self.connectionState == .connecting else { return }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:334:56: warning: capture of 'connection' with non-sendable type 'RemoteTransport.Connection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
332 |
333 | self.delegate?.remoteTransport(self,
334 | connection: connection,
| `- warning: capture of 'connection' with non-sendable type 'RemoteTransport.Connection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
335 | error: .init(message: "The handshake with the server timed out. Will retry in few moments."))
336 | self.scheduleConnectionRetry()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportConnection.swift:24:24: note: class 'Connection' does not conform to the 'Sendable' protocol
22 |
23 | /// Identify a connection server which will receive messages from the transport.
24 | public final class Connection {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
25 |
26 | // MARK: - Private Properties
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:115:13: warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// a server where SDKs can connect and send messages.
30 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
31 | public class RemoteTransportServer {
| `- note: class 'RemoteTransportServer' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public Properties
:
113 |
114 | listener.stateUpdateHandler = { [weak self] state in
115 | self?.didUpdateState(state)
| `- warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 | }
117 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:119:13: warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// a server where SDKs can connect and send messages.
30 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
31 | public class RemoteTransportServer {
| `- note: class 'RemoteTransportServer' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public Properties
:
117 |
118 | listener.newConnectionHandler = { [weak self] connection in
119 | self?.didReceiveNewConnection(connection)
| `- warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:158:18: warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// a server where SDKs can connect and send messages.
30 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
31 | public class RemoteTransportServer {
| `- note: class 'RemoteTransportServer' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public Properties
:
156 | // Automatically retry until the user cancels
157 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(3)) { [weak self] in
158 | try? self?.start()
| `- warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:176:13: warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// a server where SDKs can connect and send messages.
30 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
31 | public class RemoteTransportServer {
| `- note: class 'RemoteTransportServer' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public Properties
:
174 |
175 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(15)) { [weak self] in
176 | self?.connections[id] = nil
| `- warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | }
178 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:60:17: warning: capture of 'self' with non-sendable type 'RemoteTransportServer.Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |
21 | /// Identify a client connected to the server.
22 | public final class Client: Identifiable {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public Properties
:
58 |
59 | pingTimer = Timer.scheduledTimer(withTimeInterval: 2, repeats: true) { [weak self]_ in
60 | self?.connection?.sendPacketCode(.ping)
| `- warning: capture of 'self' with non-sendable type 'RemoteTransportServer.Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportConnection.swift:62:34: warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 |
23 | /// Identify a connection server which will receive messages from the transport.
24 | public final class Connection {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
25 |
26 | // MARK: - Private Properties
:
60 | public func start(on queue: DispatchQueue) {
61 | connection.stateUpdateHandler = { [weak self] in
62 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 |
64 | self.delegate?.connection(self, didChangeState: $0)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportConnection.swift:108:25: warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 |
23 | /// Identify a connection server which will receive messages from the transport.
24 | public final class Connection {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
25 |
26 | // MARK: - Private Properties
:
106 | connection.send(content: data, completion: .contentProcessed({ [weak self] error in
107 | if let error = error {
108 | self?.delegate?.connection(self!, failedToSendPacket: packet, error: error)
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | }
110 | }))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportConnection.swift:108:79: warning: capture of 'packet' with non-sendable type 'any RemoteTransportPacket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | connection.send(content: data, completion: .contentProcessed({ [weak self] error in
107 | if let error = error {
108 | self?.delegate?.connection(self!, failedToSendPacket: packet, error: error)
| `- warning: capture of 'packet' with non-sendable type 'any RemoteTransportPacket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | }
110 | }))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:48:17: note: protocol 'RemoteTransportPacket' does not conform to the 'Sendable' protocol
46 |
47 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
48 | public protocol RemoteTransportPacket {
| `- note: protocol 'RemoteTransportPacket' does not conform to the 'Sendable' protocol
49 | var code: RemoteTransport.PacketCode { get }
50 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportConnection.swift:120:34: warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 |
23 | /// Identify a connection server which will receive messages from the transport.
24 | public final class Connection {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
25 |
26 | // MARK: - Private Properties
:
118 | private func receive() {
119 | connection.receive(minimumIncompleteLength: 1, maximumLength: 65535) { [weak self] data, _, isCompleted, error in
120 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | if let data = data, !data.isEmpty {
122 | self.process(data: data)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'RemoteTransport.PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'RemoteTransport.PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:158:18: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
156 | // Automatically retry until the user cancels
157 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(3)) { [weak self] in
158 | try? self?.start()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
159 | }
160 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:176:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
174 |
175 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(15)) { [weak self] in
176 | self?.connections[id] = nil
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
177 | }
178 | }
[88/97] Compiling Glider RemoteTransportPackets.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:55:38: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
53 | /// Enables remote logging.
54 | /// The transport will start searching for available servers.
55 | queue.async(execute: startBrowser)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
56 | } else {
57 | /// Disables remote logging and disconnects from the server.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:58:38: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
56 | } else {
57 | /// Disables remote logging and disconnects from the server.
58 | queue.async(execute: cancel)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:121:34: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
119 |
120 | if isEnabled {
121 | queue.async(execute: startBrowser)
| `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
122 | }
123 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:127:13: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
125 | // iniitial (automatic) connection to the server.
126 | queue.asyncAfter(deadline: .now() + .seconds(2)) { [weak self] in
127 | self?.buffer = nil
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:176:30: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
174 | // Listen when state did change
175 | browser.stateUpdateHandler = { [weak self] newState in
176 | guard let self = self, self.isEnabled else { return }
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 |
178 | if case .failed = newState {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:186:30: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
184 | // Listen for new discovered endpoints
185 | browser.browseResultsChangedHandler = { [weak self] results, _ in
186 | guard let self = self, self.isEnabled else { return }
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 |
188 | self.servers = results
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:204:13: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
202 | // Automatically retry until the user cancels
203 | queue.asyncAfter(deadline: .now() + .seconds(configuration.autoRetryConnectInterval)) { [weak self] in
204 | self?.startBrowser()
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 | }
206 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:252:30: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
250 |
251 | queue.async { [weak self] in
252 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
253 |
254 | switch self.connectionState {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:329:30: warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | ///
38 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
39 | public class RemoteTransport: Transport {
| `- note: class 'RemoteTransport' does not conform to the 'Sendable' protocol
40 |
41 | // MARK: - Public Properties
:
327 | // Set timeout and retry in case there was no response from the server
328 | queue.asyncAfter(deadline: .now() + .seconds(10)) { [weak self] in
329 | guard let self = self else { return } // Failed to connect in 10 sec
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
330 |
331 | guard self.connectionState == .connecting else { return }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:334:56: warning: capture of 'connection' with non-sendable type 'RemoteTransport.Connection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
332 |
333 | self.delegate?.remoteTransport(self,
334 | connection: connection,
| `- warning: capture of 'connection' with non-sendable type 'RemoteTransport.Connection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
335 | error: .init(message: "The handshake with the server timed out. Will retry in few moments."))
336 | self.scheduleConnectionRetry()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportConnection.swift:24:24: note: class 'Connection' does not conform to the 'Sendable' protocol
22 |
23 | /// Identify a connection server which will receive messages from the transport.
24 | public final class Connection {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
25 |
26 | // MARK: - Private Properties
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:115:13: warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// a server where SDKs can connect and send messages.
30 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
31 | public class RemoteTransportServer {
| `- note: class 'RemoteTransportServer' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public Properties
:
113 |
114 | listener.stateUpdateHandler = { [weak self] state in
115 | self?.didUpdateState(state)
| `- warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 | }
117 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:119:13: warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// a server where SDKs can connect and send messages.
30 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
31 | public class RemoteTransportServer {
| `- note: class 'RemoteTransportServer' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public Properties
:
117 |
118 | listener.newConnectionHandler = { [weak self] connection in
119 | self?.didReceiveNewConnection(connection)
| `- warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:158:18: warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// a server where SDKs can connect and send messages.
30 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
31 | public class RemoteTransportServer {
| `- note: class 'RemoteTransportServer' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public Properties
:
156 | // Automatically retry until the user cancels
157 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(3)) { [weak self] in
158 | try? self?.start()
| `- warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | }
160 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:176:13: warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | /// a server where SDKs can connect and send messages.
30 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
31 | public class RemoteTransportServer {
| `- note: class 'RemoteTransportServer' does not conform to the 'Sendable' protocol
32 |
33 | // MARK: - Public Properties
:
174 |
175 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(15)) { [weak self] in
176 | self?.connections[id] = nil
| `- warning: capture of 'self' with non-sendable type 'RemoteTransportServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | }
178 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift:60:17: warning: capture of 'self' with non-sendable type 'RemoteTransportServer.Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 |
21 | /// Identify a client connected to the server.
22 | public final class Client: Identifiable {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public Properties
:
58 |
59 | pingTimer = Timer.scheduledTimer(withTimeInterval: 2, repeats: true) { [weak self]_ in
60 | self?.connection?.sendPacketCode(.ping)
| `- warning: capture of 'self' with non-sendable type 'RemoteTransportServer.Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportConnection.swift:62:34: warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 |
23 | /// Identify a connection server which will receive messages from the transport.
24 | public final class Connection {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
25 |
26 | // MARK: - Private Properties
:
60 | public func start(on queue: DispatchQueue) {
61 | connection.stateUpdateHandler = { [weak self] in
62 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 |
64 | self.delegate?.connection(self, didChangeState: $0)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportConnection.swift:108:25: warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 |
23 | /// Identify a connection server which will receive messages from the transport.
24 | public final class Connection {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
25 |
26 | // MARK: - Private Properties
:
106 | connection.send(content: data, completion: .contentProcessed({ [weak self] error in
107 | if let error = error {
108 | self?.delegate?.connection(self!, failedToSendPacket: packet, error: error)
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | }
110 | }))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportConnection.swift:108:79: warning: capture of 'packet' with non-sendable type 'any RemoteTransportPacket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | connection.send(content: data, completion: .contentProcessed({ [weak self] error in
107 | if let error = error {
108 | self?.delegate?.connection(self!, failedToSendPacket: packet, error: error)
| `- warning: capture of 'packet' with non-sendable type 'any RemoteTransportPacket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | }
110 | }))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:48:17: note: protocol 'RemoteTransportPacket' does not conform to the 'Sendable' protocol
46 |
47 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
48 | public protocol RemoteTransportPacket {
| `- note: protocol 'RemoteTransportPacket' does not conform to the 'Sendable' protocol
49 | var code: RemoteTransport.PacketCode { get }
50 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportConnection.swift:120:34: warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 |
23 | /// Identify a connection server which will receive messages from the transport.
24 | public final class Connection {
| `- note: class 'Connection' does not conform to the 'Sendable' protocol
25 |
26 | // MARK: - Private Properties
:
118 | private func receive() {
119 | connection.receive(minimumIncompleteLength: 1, maximumLength: 65535) { [weak self] data, _, isCompleted, error in
120 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'RemoteTransport.Connection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | if let data = data, !data.isEmpty {
122 | self.process(data: data)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:139:31: warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'RemoteTransport.PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public struct AppInfo: Codable {
| `- note: consider making struct 'AppInfo' conform to the 'Sendable' protocol
139 | public static let current = AppInfo()
| |- warning: static property 'current' is not concurrency-safe because non-'Sendable' type 'RemoteTransport.PacketHello.AppInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 |
141 | public let sdkVersion: String
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:158:18: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
156 | // Automatically retry until the user cancels
157 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(3)) { [weak self] in
158 | try? self?.start()
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
159 | }
160 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift:176:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
174 |
175 | DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(15)) { [weak self] in
176 | self?.connections[id] = nil
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
177 | }
178 | }
[89/97] Compiling Glider WebSocketClient.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:448:13: warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
446 | // MARK: - NWConnection Extension
447 |
448 | private var _intentionalDisconnection: Bool = false
| |- warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_intentionalDisconnection' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
449 |
450 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:106:44: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
104 | if connection == nil {
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:107:49: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
109 | listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:108:48: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
109 | listen()
110 | connection?.start(queue: connectionQueue)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:142:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
140 | public func listen() {
141 | connection?.receiveMessage { [weak self] (data, context, _, error) in
142 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | return
144 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:163:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
161 | open func ping(interval: TimeInterval) {
162 | pingTimer = .scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
163 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | return
165 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:176:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
174 | let metadata = NWProtocolWebSocket.Metadata(opcode: .ping)
175 | metadata.setPongHandler(connectionQueue) { [weak self] error in
176 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | return
178 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:274:55: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
272 | case .ready:
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:275:60: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
277 | self.connection = migratedConnection
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:276:59: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
277 | self.connection = migratedConnection
278 | self.listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:267:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
265 | let migratedConnection = NWConnection(to: endpoint, using: parameters)
266 | migratedConnection.stateUpdateHandler = { [weak self] state in
267 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
268 | return
269 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:279:17: warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 | self.connection = migratedConnection
278 | self.listen()
279 | completionHandler(.success(self))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
280 | case .waiting(let error):
281 | completionHandler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:342:46: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
340 | isComplete: true,
341 | completion: .contentProcessed({ [weak self] error in
342 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 | return
344 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:45:24: warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Ticket for connection identifier.
45 | private static var nextID: Int = 0
| |- warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nextID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | private let connection: NWConnection
47 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:97:39: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
95 | /// You should not call this method directly, it will be called by the parent server.
96 | internal func start() {
97 | connection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
98 | listen()
99 | connection.start(queue: .global(qos: .background))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:151:17: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
149 | connection.receiveMessage { (data, context, _, error) in
150 | if let data = data, let context = context, !data.isEmpty {
151 | self.receiveMessage(data: data, context: context)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:174:37: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
172 | completion: .contentProcessed({ error in
173 | if let error = error {
174 | self.connectionDidReceiveError(error)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | return
176 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:94:38: warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
92 | }
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
95 | listener?.newConnectionHandler = self.didAccept(connection:)
96 | listener?.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:95:40: warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
95 | listener?.newConnectionHandler = self.didAccept(connection:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
96 | listener?.start(queue: .main)
97 | }
[90/97] Compiling Glider WebSocketClientDelegate.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:448:13: warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
446 | // MARK: - NWConnection Extension
447 |
448 | private var _intentionalDisconnection: Bool = false
| |- warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_intentionalDisconnection' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
449 |
450 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:106:44: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
104 | if connection == nil {
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:107:49: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
109 | listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:108:48: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
109 | listen()
110 | connection?.start(queue: connectionQueue)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:142:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
140 | public func listen() {
141 | connection?.receiveMessage { [weak self] (data, context, _, error) in
142 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | return
144 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:163:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
161 | open func ping(interval: TimeInterval) {
162 | pingTimer = .scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
163 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | return
165 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:176:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
174 | let metadata = NWProtocolWebSocket.Metadata(opcode: .ping)
175 | metadata.setPongHandler(connectionQueue) { [weak self] error in
176 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | return
178 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:274:55: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
272 | case .ready:
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:275:60: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
277 | self.connection = migratedConnection
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:276:59: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
277 | self.connection = migratedConnection
278 | self.listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:267:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
265 | let migratedConnection = NWConnection(to: endpoint, using: parameters)
266 | migratedConnection.stateUpdateHandler = { [weak self] state in
267 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
268 | return
269 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:279:17: warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 | self.connection = migratedConnection
278 | self.listen()
279 | completionHandler(.success(self))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
280 | case .waiting(let error):
281 | completionHandler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:342:46: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
340 | isComplete: true,
341 | completion: .contentProcessed({ [weak self] error in
342 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 | return
344 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:45:24: warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Ticket for connection identifier.
45 | private static var nextID: Int = 0
| |- warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nextID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | private let connection: NWConnection
47 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:97:39: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
95 | /// You should not call this method directly, it will be called by the parent server.
96 | internal func start() {
97 | connection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
98 | listen()
99 | connection.start(queue: .global(qos: .background))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:151:17: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
149 | connection.receiveMessage { (data, context, _, error) in
150 | if let data = data, let context = context, !data.isEmpty {
151 | self.receiveMessage(data: data, context: context)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:174:37: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
172 | completion: .contentProcessed({ error in
173 | if let error = error {
174 | self.connectionDidReceiveError(error)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | return
176 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:94:38: warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
92 | }
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
95 | listener?.newConnectionHandler = self.didAccept(connection:)
96 | listener?.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:95:40: warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
95 | listener?.newConnectionHandler = self.didAccept(connection:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
96 | listener?.start(queue: .main)
97 | }
[91/97] Compiling Glider WebSocketPeer.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:448:13: warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
446 | // MARK: - NWConnection Extension
447 |
448 | private var _intentionalDisconnection: Bool = false
| |- warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_intentionalDisconnection' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
449 |
450 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:106:44: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
104 | if connection == nil {
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:107:49: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
109 | listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:108:48: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
109 | listen()
110 | connection?.start(queue: connectionQueue)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:142:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
140 | public func listen() {
141 | connection?.receiveMessage { [weak self] (data, context, _, error) in
142 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | return
144 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:163:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
161 | open func ping(interval: TimeInterval) {
162 | pingTimer = .scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
163 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | return
165 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:176:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
174 | let metadata = NWProtocolWebSocket.Metadata(opcode: .ping)
175 | metadata.setPongHandler(connectionQueue) { [weak self] error in
176 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | return
178 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:274:55: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
272 | case .ready:
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:275:60: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
277 | self.connection = migratedConnection
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:276:59: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
277 | self.connection = migratedConnection
278 | self.listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:267:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
265 | let migratedConnection = NWConnection(to: endpoint, using: parameters)
266 | migratedConnection.stateUpdateHandler = { [weak self] state in
267 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
268 | return
269 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:279:17: warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 | self.connection = migratedConnection
278 | self.listen()
279 | completionHandler(.success(self))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
280 | case .waiting(let error):
281 | completionHandler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:342:46: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
340 | isComplete: true,
341 | completion: .contentProcessed({ [weak self] error in
342 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 | return
344 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:45:24: warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Ticket for connection identifier.
45 | private static var nextID: Int = 0
| |- warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nextID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | private let connection: NWConnection
47 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:97:39: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
95 | /// You should not call this method directly, it will be called by the parent server.
96 | internal func start() {
97 | connection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
98 | listen()
99 | connection.start(queue: .global(qos: .background))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:151:17: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
149 | connection.receiveMessage { (data, context, _, error) in
150 | if let data = data, let context = context, !data.isEmpty {
151 | self.receiveMessage(data: data, context: context)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:174:37: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
172 | completion: .contentProcessed({ error in
173 | if let error = error {
174 | self.connectionDidReceiveError(error)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | return
176 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:94:38: warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
92 | }
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
95 | listener?.newConnectionHandler = self.didAccept(connection:)
96 | listener?.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:95:40: warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
95 | listener?.newConnectionHandler = self.didAccept(connection:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
96 | listener?.start(queue: .main)
97 | }
[92/97] Compiling Glider WebSocketServer.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:448:13: warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
446 | // MARK: - NWConnection Extension
447 |
448 | private var _intentionalDisconnection: Bool = false
| |- warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_intentionalDisconnection' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
449 |
450 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:106:44: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
104 | if connection == nil {
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:107:49: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
109 | listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:108:48: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
109 | listen()
110 | connection?.start(queue: connectionQueue)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:142:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
140 | public func listen() {
141 | connection?.receiveMessage { [weak self] (data, context, _, error) in
142 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | return
144 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:163:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
161 | open func ping(interval: TimeInterval) {
162 | pingTimer = .scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
163 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | return
165 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:176:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
174 | let metadata = NWProtocolWebSocket.Metadata(opcode: .ping)
175 | metadata.setPongHandler(connectionQueue) { [weak self] error in
176 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | return
178 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:274:55: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
272 | case .ready:
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:275:60: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
277 | self.connection = migratedConnection
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:276:59: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
277 | self.connection = migratedConnection
278 | self.listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:267:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
265 | let migratedConnection = NWConnection(to: endpoint, using: parameters)
266 | migratedConnection.stateUpdateHandler = { [weak self] state in
267 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
268 | return
269 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:279:17: warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 | self.connection = migratedConnection
278 | self.listen()
279 | completionHandler(.success(self))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
280 | case .waiting(let error):
281 | completionHandler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:342:46: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
340 | isComplete: true,
341 | completion: .contentProcessed({ [weak self] error in
342 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 | return
344 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:45:24: warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Ticket for connection identifier.
45 | private static var nextID: Int = 0
| |- warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nextID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | private let connection: NWConnection
47 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:97:39: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
95 | /// You should not call this method directly, it will be called by the parent server.
96 | internal func start() {
97 | connection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
98 | listen()
99 | connection.start(queue: .global(qos: .background))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:151:17: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
149 | connection.receiveMessage { (data, context, _, error) in
150 | if let data = data, let context = context, !data.isEmpty {
151 | self.receiveMessage(data: data, context: context)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:174:37: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
172 | completion: .contentProcessed({ error in
173 | if let error = error {
174 | self.connectionDidReceiveError(error)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | return
176 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:94:38: warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
92 | }
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
95 | listener?.newConnectionHandler = self.didAccept(connection:)
96 | listener?.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:95:40: warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
95 | listener?.newConnectionHandler = self.didAccept(connection:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
96 | listener?.start(queue: .main)
97 | }
[93/97] Compiling Glider WebSocketServerDelegate.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:448:13: warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
446 | // MARK: - NWConnection Extension
447 |
448 | private var _intentionalDisconnection: Bool = false
| |- warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_intentionalDisconnection' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
449 |
450 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:106:44: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
104 | if connection == nil {
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:107:49: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
109 | listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:108:48: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
109 | listen()
110 | connection?.start(queue: connectionQueue)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:142:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
140 | public func listen() {
141 | connection?.receiveMessage { [weak self] (data, context, _, error) in
142 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | return
144 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:163:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
161 | open func ping(interval: TimeInterval) {
162 | pingTimer = .scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
163 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | return
165 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:176:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
174 | let metadata = NWProtocolWebSocket.Metadata(opcode: .ping)
175 | metadata.setPongHandler(connectionQueue) { [weak self] error in
176 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | return
178 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:274:55: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
272 | case .ready:
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:275:60: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
277 | self.connection = migratedConnection
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:276:59: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
277 | self.connection = migratedConnection
278 | self.listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:267:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
265 | let migratedConnection = NWConnection(to: endpoint, using: parameters)
266 | migratedConnection.stateUpdateHandler = { [weak self] state in
267 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
268 | return
269 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:279:17: warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 | self.connection = migratedConnection
278 | self.listen()
279 | completionHandler(.success(self))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
280 | case .waiting(let error):
281 | completionHandler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:342:46: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
340 | isComplete: true,
341 | completion: .contentProcessed({ [weak self] error in
342 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 | return
344 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:45:24: warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Ticket for connection identifier.
45 | private static var nextID: Int = 0
| |- warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nextID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | private let connection: NWConnection
47 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:97:39: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
95 | /// You should not call this method directly, it will be called by the parent server.
96 | internal func start() {
97 | connection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
98 | listen()
99 | connection.start(queue: .global(qos: .background))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:151:17: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
149 | connection.receiveMessage { (data, context, _, error) in
150 | if let data = data, let context = context, !data.isEmpty {
151 | self.receiveMessage(data: data, context: context)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:174:37: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
172 | completion: .contentProcessed({ error in
173 | if let error = error {
174 | self.connectionDidReceiveError(error)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | return
176 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:94:38: warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
92 | }
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
95 | listener?.newConnectionHandler = self.didAccept(connection:)
96 | listener?.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:95:40: warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
95 | listener?.newConnectionHandler = self.didAccept(connection:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
96 | listener?.start(queue: .main)
97 | }
[94/97] Compiling Glider WebSocketTransportClient.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:448:13: warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
446 | // MARK: - NWConnection Extension
447 |
448 | private var _intentionalDisconnection: Bool = false
| |- warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_intentionalDisconnection' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
449 |
450 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:106:44: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
104 | if connection == nil {
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:107:49: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
109 | listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:108:48: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
109 | listen()
110 | connection?.start(queue: connectionQueue)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:142:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
140 | public func listen() {
141 | connection?.receiveMessage { [weak self] (data, context, _, error) in
142 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | return
144 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:163:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
161 | open func ping(interval: TimeInterval) {
162 | pingTimer = .scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
163 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | return
165 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:176:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
174 | let metadata = NWProtocolWebSocket.Metadata(opcode: .ping)
175 | metadata.setPongHandler(connectionQueue) { [weak self] error in
176 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | return
178 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:274:55: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
272 | case .ready:
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:275:60: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
277 | self.connection = migratedConnection
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:276:59: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
277 | self.connection = migratedConnection
278 | self.listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:267:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
265 | let migratedConnection = NWConnection(to: endpoint, using: parameters)
266 | migratedConnection.stateUpdateHandler = { [weak self] state in
267 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
268 | return
269 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:279:17: warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 | self.connection = migratedConnection
278 | self.listen()
279 | completionHandler(.success(self))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
280 | case .waiting(let error):
281 | completionHandler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:342:46: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
340 | isComplete: true,
341 | completion: .contentProcessed({ [weak self] error in
342 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 | return
344 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:45:24: warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Ticket for connection identifier.
45 | private static var nextID: Int = 0
| |- warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nextID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | private let connection: NWConnection
47 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:97:39: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
95 | /// You should not call this method directly, it will be called by the parent server.
96 | internal func start() {
97 | connection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
98 | listen()
99 | connection.start(queue: .global(qos: .background))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:151:17: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
149 | connection.receiveMessage { (data, context, _, error) in
150 | if let data = data, let context = context, !data.isEmpty {
151 | self.receiveMessage(data: data, context: context)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:174:37: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
172 | completion: .contentProcessed({ error in
173 | if let error = error {
174 | self.connectionDidReceiveError(error)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | return
176 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:94:38: warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
92 | }
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
95 | listener?.newConnectionHandler = self.didAccept(connection:)
96 | listener?.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:95:40: warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
95 | listener?.newConnectionHandler = self.didAccept(connection:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
96 | listener?.start(queue: .main)
97 | }
[95/97] Compiling Glider WebSocketTransportClientDelegate.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:448:13: warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
446 | // MARK: - NWConnection Extension
447 |
448 | private var _intentionalDisconnection: Bool = false
| |- warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_intentionalDisconnection' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
449 |
450 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:106:44: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
104 | if connection == nil {
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:107:49: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
109 | listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:108:48: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
109 | listen()
110 | connection?.start(queue: connectionQueue)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:142:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
140 | public func listen() {
141 | connection?.receiveMessage { [weak self] (data, context, _, error) in
142 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | return
144 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:163:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
161 | open func ping(interval: TimeInterval) {
162 | pingTimer = .scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
163 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | return
165 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:176:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
174 | let metadata = NWProtocolWebSocket.Metadata(opcode: .ping)
175 | metadata.setPongHandler(connectionQueue) { [weak self] error in
176 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | return
178 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:274:55: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
272 | case .ready:
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:275:60: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
277 | self.connection = migratedConnection
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:276:59: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
277 | self.connection = migratedConnection
278 | self.listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:267:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
265 | let migratedConnection = NWConnection(to: endpoint, using: parameters)
266 | migratedConnection.stateUpdateHandler = { [weak self] state in
267 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
268 | return
269 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:279:17: warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 | self.connection = migratedConnection
278 | self.listen()
279 | completionHandler(.success(self))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
280 | case .waiting(let error):
281 | completionHandler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:342:46: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
340 | isComplete: true,
341 | completion: .contentProcessed({ [weak self] error in
342 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 | return
344 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:45:24: warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Ticket for connection identifier.
45 | private static var nextID: Int = 0
| |- warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nextID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | private let connection: NWConnection
47 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:97:39: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
95 | /// You should not call this method directly, it will be called by the parent server.
96 | internal func start() {
97 | connection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
98 | listen()
99 | connection.start(queue: .global(qos: .background))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:151:17: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
149 | connection.receiveMessage { (data, context, _, error) in
150 | if let data = data, let context = context, !data.isEmpty {
151 | self.receiveMessage(data: data, context: context)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:174:37: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
172 | completion: .contentProcessed({ error in
173 | if let error = error {
174 | self.connectionDidReceiveError(error)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | return
176 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:94:38: warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
92 | }
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
95 | listener?.newConnectionHandler = self.didAccept(connection:)
96 | listener?.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:95:40: warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
95 | listener?.newConnectionHandler = self.didAccept(connection:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
96 | listener?.start(queue: .main)
97 | }
[96/97] Compiling Glider WebSocketTransportServer.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:448:13: warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
446 | // MARK: - NWConnection Extension
447 |
448 | private var _intentionalDisconnection: Bool = false
| |- warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_intentionalDisconnection' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
449 |
450 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:106:44: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
104 | if connection == nil {
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:107:49: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
109 | listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:108:48: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
109 | listen()
110 | connection?.start(queue: connectionQueue)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:142:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
140 | public func listen() {
141 | connection?.receiveMessage { [weak self] (data, context, _, error) in
142 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | return
144 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:163:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
161 | open func ping(interval: TimeInterval) {
162 | pingTimer = .scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
163 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | return
165 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:176:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
174 | let metadata = NWProtocolWebSocket.Metadata(opcode: .ping)
175 | metadata.setPongHandler(connectionQueue) { [weak self] error in
176 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | return
178 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:274:55: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
272 | case .ready:
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:275:60: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
277 | self.connection = migratedConnection
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:276:59: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
277 | self.connection = migratedConnection
278 | self.listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:267:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
265 | let migratedConnection = NWConnection(to: endpoint, using: parameters)
266 | migratedConnection.stateUpdateHandler = { [weak self] state in
267 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
268 | return
269 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:279:17: warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 | self.connection = migratedConnection
278 | self.listen()
279 | completionHandler(.success(self))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
280 | case .waiting(let error):
281 | completionHandler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:342:46: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
340 | isComplete: true,
341 | completion: .contentProcessed({ [weak self] error in
342 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 | return
344 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:45:24: warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Ticket for connection identifier.
45 | private static var nextID: Int = 0
| |- warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nextID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | private let connection: NWConnection
47 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:97:39: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
95 | /// You should not call this method directly, it will be called by the parent server.
96 | internal func start() {
97 | connection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
98 | listen()
99 | connection.start(queue: .global(qos: .background))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:151:17: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
149 | connection.receiveMessage { (data, context, _, error) in
150 | if let data = data, let context = context, !data.isEmpty {
151 | self.receiveMessage(data: data, context: context)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:174:37: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
172 | completion: .contentProcessed({ error in
173 | if let error = error {
174 | self.connectionDidReceiveError(error)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | return
176 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:94:38: warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
92 | }
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
95 | listener?.newConnectionHandler = self.didAccept(connection:)
96 | listener?.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:95:40: warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
95 | listener?.newConnectionHandler = self.didAccept(connection:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
96 | listener?.start(queue: .main)
97 | }
[97/97] Compiling Glider WebSocketTransportServerDelegate.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:448:13: warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
446 | // MARK: - NWConnection Extension
447 |
448 | private var _intentionalDisconnection: Bool = false
| |- warning: var '_intentionalDisconnection' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_intentionalDisconnection' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
449 |
450 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:106:44: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
104 | if connection == nil {
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:107:49: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
105 | connection = NWConnection(to: endpoint, using: parameters)
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
109 | listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:108:48: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
106 | connection?.stateUpdateHandler = stateDidChange(to:)
107 | connection?.betterPathUpdateHandler = betterPath(isAvailable:)
108 | connection?.viabilityUpdateHandler = viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
109 | listen()
110 | connection?.start(queue: connectionQueue)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:142:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
140 | public func listen() {
141 | connection?.receiveMessage { [weak self] (data, context, _, error) in
142 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | return
144 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:163:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
161 | open func ping(interval: TimeInterval) {
162 | pingTimer = .scheduledTimer(withTimeInterval: interval, repeats: true) { [weak self] _ in
163 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | return
165 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:176:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
174 | let metadata = NWProtocolWebSocket.Metadata(opcode: .ping)
175 | metadata.setPongHandler(connectionQueue) { [weak self] error in
176 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | return
178 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:274:55: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
272 | case .ready:
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:275:60: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
273 | self.connection = nil
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
277 | self.connection = migratedConnection
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:276:59: warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
274 | migratedConnection.stateUpdateHandler = self.stateDidChange(to:)
275 | migratedConnection.betterPathUpdateHandler = self.betterPath(isAvailable:)
276 | migratedConnection.viabilityUpdateHandler = self.viabilityDidChange(isViable:)
| `- warning: converting non-sendable function value to '@Sendable (Bool) -> Void' may introduce data races
277 | self.connection = migratedConnection
278 | self.listen()
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:267:30: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
265 | let migratedConnection = NWConnection(to: endpoint, using: parameters)
266 | migratedConnection.stateUpdateHandler = { [weak self] state in
267 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
268 | return
269 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:279:17: warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 | self.connection = migratedConnection
278 | self.listen()
279 | completionHandler(.success(self))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<WebSocketClient, NWError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
280 | case .waiting(let error):
281 | completionHandler(.failure(error))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:342:46: warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
23 | open class WebSocketClient {
| `- note: class 'WebSocketClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public properties
:
340 | isComplete: true,
341 | completion: .contentProcessed({ [weak self] error in
342 | guard let self = self else {
| `- warning: capture of 'self' with non-sendable type 'WebSocketClient?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
343 | return
344 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:45:24: warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | /// Ticket for connection identifier.
45 | private static var nextID: Int = 0
| |- warning: static property 'nextID' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nextID' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'nextID' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | private let connection: NWConnection
47 |
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:97:39: warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
95 | /// You should not call this method directly, it will be called by the parent server.
96 | internal func start() {
97 | connection.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection.State) -> Void' may introduce data races
98 | listen()
99 | connection.start(queue: .global(qos: .background))
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:151:17: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
149 | connection.receiveMessage { (data, context, _, error) in
150 | if let data = data, let context = context, !data.isEmpty {
151 | self.receiveMessage(data: data, context: context)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 | if let error = error {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:174:37: warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | /// Represent a single peer connected to the WSServer instance.
21 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, *)
22 | public class WebSocketPeer {
| `- note: class 'WebSocketPeer' does not conform to the 'Sendable' protocol
23 |
24 | // MARK: - Public properties
:
172 | completion: .contentProcessed({ error in
173 | if let error = error {
174 | self.connectionDidReceiveError(error)
| `- warning: capture of 'self' with non-sendable type 'WebSocketPeer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | return
176 | }
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:94:38: warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
92 | }
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
| `- warning: converting non-sendable function value to '@Sendable (NWListener.State) -> Void' may introduce data races
95 | listener?.newConnectionHandler = self.didAccept(connection:)
96 | listener?.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:95:40: warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
93 |
94 | listener?.stateUpdateHandler = self.stateDidChange(to:)
95 | listener?.newConnectionHandler = self.didAccept(connection:)
| `- warning: converting non-sendable function value to '@Sendable (NWConnection) -> Void' may introduce data races
96 | listener?.start(queue: .main)
97 | }
Build complete! (31.69s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Glider",
"name" : "Glider",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.14"
},
{
"name" : "tvos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "Glider",
"targets" : [
"Glider"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GliderTests",
"module_type" : "SwiftTarget",
"name" : "GliderTests",
"path" : "Tests/GliderTests",
"sources" : [
"Core+Tests.swift",
"Formatters+Tests.swift",
"LogInterpolation+Tests.swift",
"TableFormatter+Tests.swift",
"Transports/AsyncTransport+Tests.swift",
"Transports/BufferedTransport+Tests.swift",
"Transports/FileTransport+Tests.swift",
"Transports/HTTPTransport+Tests.swift",
"Transports/POSIXStreamTransport+Tests.swift",
"Transports/RemoteTransport+Tests.swift",
"Transports/SQLiteTransport+Tests.swift",
"Transports/SizeRotationFileTransport+Tests.swift",
"Transports/ThrottledTransport+Tests.swift",
"Transports/Utilities/Foundation+Extensions.swift",
"Transports/Utilities/HTTPServer.swift",
"Transports/WebSocketTransportClient+Tests.swift",
"Transports/WebSocketTransportServer+Tests.swift"
],
"target_dependencies" : [
"Glider"
],
"type" : "test"
},
{
"c99name" : "Glider",
"module_type" : "SwiftTarget",
"name" : "Glider",
"path" : "Glider/Sources",
"product_memberships" : [
"Glider"
],
"sources" : [
"Configuration.swift",
"Formatters/EventMessageFormatter.swift",
"Formatters/FieldsFormatter/FieldsFormatter+Field.swift",
"Formatters/FieldsFormatter/FieldsFormatter.swift",
"Formatters/JSONFormatter/JSONFormatter.swift",
"Formatters/MsgPackFormatter/MsgPackFormatter.swift",
"Formatters/MsgPackFormatter/Support/DataStream.swift",
"Formatters/MsgPackFormatter/Support/FlatValue.swift",
"Formatters/MsgPackFormatter/Support/Reader+Optionals.swift",
"Formatters/MsgPackFormatter/Support/Reader.swift",
"Formatters/MsgPackFormatter/Support/Types.swift",
"Formatters/MsgPackFormatter/Support/Writer+Optionals.swift",
"Formatters/MsgPackFormatter/Support/Writer.swift",
"Formatters/OSLogFormatter/OSLogFormatter.swift",
"Formatters/SysLogFormatter/SysLogFormatter.swift",
"Formatters/SysLogFormatter/SysLogPayload.swift",
"Formatters/TableFormatter/ASCII Table/ASCIITable+Borders.swift",
"Formatters/TableFormatter/ASCII Table/ASCIITable+Rendering.swift",
"Formatters/TableFormatter/ASCII Table/ASCIITable.swift",
"Formatters/TableFormatter/TableFormatter.swift",
"Formatters/TerminalFormatter/TerminalFormatter+Colorize.swift",
"Formatters/TerminalFormatter/TerminalFormatter.swift",
"Formatters/XCodeFormatter/XCodeFormatter+Colorize.swift",
"Formatters/XCodeFormatter/XCodeFormatter.swift",
"GliderSDK.swift",
"Log/Additional Structures/Event.swift",
"Log/Additional Structures/Foundation+Extensions/Bundle+Extension.swift",
"Log/Additional Structures/Foundation+Extensions/Data+Extension.swift",
"Log/Additional Structures/Foundation+Extensions/Date+Extension.swift",
"Log/Additional Structures/Foundation+Extensions/Dictionary+Extension.swift",
"Log/Additional Structures/Foundation+Extensions/Optional+Extension.swift",
"Log/Additional Structures/Foundation+Extensions/String+Extension.swift",
"Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift",
"Log/Additional Structures/Level.swift",
"Log/Additional Structures/LogInterpolation/LogInterpolation+Formatters.swift",
"Log/Additional Structures/LogInterpolation/LogInterpolation+Styles.swift",
"Log/Additional Structures/LogInterpolation/LogInterpolation.swift",
"Log/Additional Structures/Message.swift",
"Log/Additional Structures/Metadata.swift",
"Log/Additional Structures/ProcessIdentification.swift",
"Log/Additional Structures/Scope.swift",
"Log/Additional Structures/Serialization/Common Serializations/UIImage+Serialization.swift",
"Log/Additional Structures/Serialization/SerializableObject.swift",
"Log/Additional Structures/Serialization/SerializationStrategies.swift",
"Log/Additional Structures/StatusMonitor.swift",
"Log/Additional Structures/User.swift",
"Log/Channel.swift",
"Log/Context.swift",
"Log/Log.swift",
"Log/Transport.swift",
"Log/TransportFilter.swift",
"Log/TransportManager.swift",
"Transports/Base Transports/AsyncTransport.swift",
"Transports/Base Transports/BufferedTransport.swift",
"Transports/Base Transports/ThrottledTransport.swift",
"Transports/Console/ConsoleTransport.swift",
"Transports/Console/OSLogTransport.swift",
"Transports/File/FileTransport.swift",
"Transports/File/POSIXTransports/POSIXStreamTransport.swift",
"Transports/File/POSIXTransports/StdStreamsTransport.swift",
"Transports/File/SizeRotationFileTransport.swift",
"Transports/HTTPTransport/HTTPTransport.swift",
"Transports/HTTPTransport/HTTPTransportRequest.swift",
"Transports/HTTPTransport/Support/AsyncOperation.swift",
"Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift",
"Transports/HTTPTransport/Support/URLSession+Extensions.swift",
"Transports/LogstashTransport/LogstashTransport.swift",
"Transports/RemoteTransport/RemoteTransport+Config.swift",
"Transports/RemoteTransport/RemoteTransport.swift",
"Transports/RemoteTransport/RemoteTransportDelegate.swift",
"Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServer.swift",
"Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerClient.swift",
"Transports/RemoteTransport/RemoteTransportServer/RemoteTransportServerDelegate.swift",
"Transports/RemoteTransport/Support/Network+Extension.swift",
"Transports/RemoteTransport/Support/RemoteTransportConnection.swift",
"Transports/RemoteTransport/Support/RemoteTransportPackets.swift",
"Transports/SQLiteTransport/SQLiteTransport+Delegate.swift",
"Transports/SQLiteTransport/SQLiteTransport.swift",
"Transports/SQLiteTransport/Support/SQLite+Statement.swift",
"Transports/SQLiteTransport/Support/SQLiteDb+Additions.swift",
"Transports/SQLiteTransport/Support/SQLiteDb+Support.swift",
"Transports/SQLiteTransport/Support/SQLiteDb.swift",
"Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher+Configuration.swift",
"Transports/WebSocketTransport/Support/BonjourService/BonjourPublisher.swift",
"Transports/WebSocketTransport/Support/BonjourService/NetService+Extensions.swift",
"Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift",
"Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClientDelegate.swift",
"Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift",
"Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift",
"Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServerDelegate.swift",
"Transports/WebSocketTransport/WebSocketTransportClient/WebSocketTransportClient.swift",
"Transports/WebSocketTransport/WebSocketTransportClient/WebSocketTransportClientDelegate.swift",
"Transports/WebSocketTransport/WebSocketTransportServer/WebSocketTransportServer.swift",
"Transports/WebSocketTransport/WebSocketTransportServer/WebSocketTransportServerDelegate.swift"
],
"target_dependencies" : [
"CSQLiteGlider"
],
"type" : "library"
},
{
"c99name" : "CSQLiteGlider",
"module_type" : "SystemLibraryTarget",
"name" : "CSQLiteGlider",
"path" : "Sources/CSQLiteGlider",
"product_memberships" : [
"Glider"
],
"sources" : [
],
"type" : "system-target"
}
],
"tools_version" : "5.0"
}
Done.