Build Information
Successful build of Glider, reference main (c93275
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 07:53:34 UTC.
Swift 6 data race errors: 30
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
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
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
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
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 nonisolated 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 nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_intentionalDisconnection' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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
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
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
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
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
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
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
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
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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'nextID' part of global actor 'MainActor'
| `- 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
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
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
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
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 nonisolated 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 nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_intentionalDisconnection' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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
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
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
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
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
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
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
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
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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'nextID' part of global actor 'MainActor'
| `- 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
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
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
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
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 nonisolated 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 nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_intentionalDisconnection' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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
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
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
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
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
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
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
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
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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'nextID' part of global actor 'MainActor'
| `- 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
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
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
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
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 nonisolated 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 nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_intentionalDisconnection' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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
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
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
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
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
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
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
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
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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'nextID' part of global actor 'MainActor'
| `- 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
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
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
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
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 nonisolated 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 nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_intentionalDisconnection' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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
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
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
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
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
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
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
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
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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'nextID' part of global actor 'MainActor'
| `- 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
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
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
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
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 nonisolated 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 nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_intentionalDisconnection' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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
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
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
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
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
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
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
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
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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'nextID' part of global actor 'MainActor'
| `- 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
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
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
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
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 nonisolated 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 nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_intentionalDisconnection' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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
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
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
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
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
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
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
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
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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'nextID' part of global actor 'MainActor'
| `- 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
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
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
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
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 nonisolated 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 nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_intentionalDisconnection' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var '_intentionalDisconnection' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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
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
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
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
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
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
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
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
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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'nextID' part of global actor 'MainActor'
| `- 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
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
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
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
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 | }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/87] Compiling Glider Optional+Extension.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Metadata.swift:119:45: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
117 |
118 | let rawValues = try container.decode(Data.self, forKey: .values)
119 | self.values = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data?] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
120 | }
121 |
[3/87] Compiling Glider String+Extension.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Metadata.swift:119:45: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
117 |
118 | let rawValues = try container.decode(Data.self, forKey: .values)
119 | self.values = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data?] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
120 | }
121 |
[4/87] Compiling Glider UIDevice+Extension.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Metadata.swift:119:45: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
117 |
118 | let rawValues = try container.decode(Data.self, forKey: .values)
119 | self.values = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data?] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
120 | }
121 |
[5/87] Compiling Glider Level.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Metadata.swift:119:45: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
117 |
118 | let rawValues = try container.decode(Data.self, forKey: .values)
119 | self.values = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data?] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
120 | }
121 |
[6/87] Compiling Glider LogInterpolation+Formatters.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Metadata.swift:119:45: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
117 |
118 | let rawValues = try container.decode(Data.self, forKey: .values)
119 | self.values = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data?] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
120 | }
121 |
[7/87] Compiling Glider LogInterpolation+Styles.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Metadata.swift:119:45: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
117 |
118 | let rawValues = try container.decode(Data.self, forKey: .values)
119 | self.values = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data?] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
120 | }
121 |
[8/87] Compiling Glider LogInterpolation.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Metadata.swift:119:45: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
117 |
118 | let rawValues = try container.decode(Data.self, forKey: .values)
119 | self.values = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data?] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
120 | }
121 |
[9/87] Compiling Glider Message.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Metadata.swift:119:45: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
117 |
118 | let rawValues = try container.decode(Data.self, forKey: .values)
119 | self.values = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data?] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
120 | }
121 |
[10/87] Compiling Glider Metadata.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Metadata.swift:119:45: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
117 |
118 | let rawValues = try container.decode(Data.self, forKey: .values)
119 | self.values = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data?] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
120 | }
121 |
[11/87] Compiling Glider ProcessIdentification.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Metadata.swift:119:45: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
117 |
118 | let rawValues = try container.decode(Data.self, forKey: .values)
119 | self.values = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data?] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
120 | }
121 |
[12/96] Compiling Glider TerminalFormatter+Colorize.swift
[13/96] Compiling Glider TerminalFormatter.swift
[14/96] Compiling Glider XCodeFormatter+Colorize.swift
[15/96] Compiling Glider XCodeFormatter.swift
[16/96] Compiling Glider GliderSDK.swift
[17/96] Compiling Glider Event.swift
[18/96] Compiling Glider Bundle+Extension.swift
[19/96] Compiling Glider Data+Extension.swift
[20/96] Compiling Glider Date+Extension.swift
[21/96] Compiling Glider Dictionary+Extension.swift
[22/96] Compiling Glider POSIXStreamTransport.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
[23/96] Compiling Glider StdStreamsTransport.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
[24/96] Compiling Glider SizeRotationFileTransport.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
[25/96] Compiling Glider HTTPTransport.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
[26/96] Compiling Glider HTTPTransportRequest.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
[27/96] Compiling Glider AsyncOperation.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
[28/96] Compiling Glider AsyncURLRequestsOperation.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
[29/96] Compiling Glider URLSession+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
[30/96] Compiling Glider LogstashTransport.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
[31/96] Compiling Glider Transport.swift
[32/96] Compiling Glider TransportFilter.swift
[33/96] Compiling Glider TransportManager.swift
[34/96] Compiling Glider AsyncTransport.swift
[35/96] Compiling Glider BufferedTransport.swift
[36/96] Compiling Glider ThrottledTransport.swift
[37/96] Compiling Glider ConsoleTransport.swift
[38/96] Compiling Glider OSLogTransport.swift
[39/96] Compiling Glider FileTransport.swift
[40/96] Compiling Glider Configuration.swift
[41/96] Compiling Glider EventMessageFormatter.swift
[42/96] Compiling Glider FieldsFormatter+Field.swift
[43/96] Compiling Glider FieldsFormatter.swift
[44/96] Compiling Glider JSONFormatter.swift
[45/96] Compiling Glider MsgPackFormatter.swift
[46/96] Compiling Glider DataStream.swift
[47/96] Compiling Glider FlatValue.swift
[48/96] Compiling Glider Reader+Optionals.swift
[49/96] Compiling Glider Reader.swift
[50/96] Emitting module Glider
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/Foundation+Extensions/UIDevice+Extension.swift:151:1: warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
149 | // MARK: - CGSize
150 |
151 | extension CGSize: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'CGSize' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'CoreFoundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
152 |
153 | public var description: String {
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncOperation.swift:19:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
17 |
18 | /// This class allows subclasses in order to make an async Operation.
19 | public class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
20 |
21 | /// Identifier of the operation.
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Transports/HTTPTransport/Support/AsyncURLRequestsOperation.swift:18:20: warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
16 | import Foundation
17 |
18 | public final class AsyncURLRequestOperation: AsyncOperation {
| `- warning: class 'AsyncURLRequestOperation' must restate inherited '@unchecked Sendable' conformance
19 | public typealias Response = Result<Data, Error>
20 | typealias Callback = ((Response) -> Void)
[51/96] Compiling Glider SQLiteTransport+Delegate.swift
[52/96] Compiling Glider SQLiteTransport.swift
[53/96] Compiling Glider SQLite+Statement.swift
[54/96] Compiling Glider SQLiteDb+Additions.swift
[55/96] Compiling Glider SQLiteDb+Support.swift
[56/96] Compiling Glider SQLiteDb.swift
[57/96] Compiling Glider BonjourPublisher+Configuration.swift
[58/96] Compiling Glider BonjourPublisher.swift
[59/96] Compiling Glider NetService+Extensions.swift
[60/96] Compiling Glider Scope.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/User.swift:93:43: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
91 |
92 | let rawValues = try container.decode(Data.self, forKey: .data)
93 | self.data = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
94 | }
95 |
[61/96] Compiling Glider UIImage+Serialization.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/User.swift:93:43: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
91 |
92 | let rawValues = try container.decode(Data.self, forKey: .data)
93 | self.data = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
94 | }
95 |
[62/96] Compiling Glider SerializableObject.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/User.swift:93:43: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
91 |
92 | let rawValues = try container.decode(Data.self, forKey: .data)
93 | self.data = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
94 | }
95 |
[63/96] Compiling Glider SerializationStrategies.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/User.swift:93:43: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
91 |
92 | let rawValues = try container.decode(Data.self, forKey: .data)
93 | self.data = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
94 | }
95 |
[64/96] Compiling Glider StatusMonitor.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/User.swift:93:43: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
91 |
92 | let rawValues = try container.decode(Data.self, forKey: .data)
93 | self.data = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
94 | }
95 |
[65/96] Compiling Glider User.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/User.swift:93:43: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
91 |
92 | let rawValues = try container.decode(Data.self, forKey: .data)
93 | self.data = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
94 | }
95 |
[66/96] Compiling Glider Channel.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/User.swift:93:43: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
91 |
92 | let rawValues = try container.decode(Data.self, forKey: .data)
93 | self.data = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
94 | }
95 |
[67/96] Compiling Glider Context.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/User.swift:93:43: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
91 |
92 | let rawValues = try container.decode(Data.self, forKey: .data)
93 | self.data = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
94 | }
95 |
[68/96] Compiling Glider Log.swift
/Users/admin/builder/spi-builder-workspace/Glider/Sources/Log/Additional Structures/User.swift:93:43: warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
91 |
92 | let rawValues = try container.decode(Data.self, forKey: .data)
93 | self.data = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(rawValues) as? [String: Data] ?? [:]
| `- warning: 'unarchiveTopLevelObjectWithData' was deprecated in macOS 10.14: Use unarchivedObject(ofClass:from:) instead
94 | }
95 |
[69/96] Compiling Glider RemoteTransport+Config.swift
[70/96] Compiling Glider RemoteTransport.swift
[71/96] Compiling Glider RemoteTransportDelegate.swift
[72/96] Compiling Glider RemoteTransportServer.swift
[73/96] Compiling Glider RemoteTransportServerClient.swift
[74/96] Compiling Glider RemoteTransportServerDelegate.swift
[75/96] Compiling Glider Network+Extension.swift
[76/96] Compiling Glider RemoteTransportConnection.swift
[77/96] Compiling Glider RemoteTransportPackets.swift
[78/96] Compiling Glider Types.swift
[79/96] Compiling Glider Writer+Optionals.swift
[80/96] Compiling Glider Writer.swift
[81/96] Compiling Glider OSLogFormatter.swift
[82/96] Compiling Glider SysLogFormatter.swift
[83/96] Compiling Glider SysLogPayload.swift
[84/96] Compiling Glider ASCIITable+Borders.swift
[85/96] Compiling Glider ASCIITable+Rendering.swift
[86/96] Compiling Glider ASCIITable.swift
[87/96] Compiling Glider TableFormatter.swift
[88/96] Compiling Glider WebSocketClient.swift
[89/96] Compiling Glider WebSocketClientDelegate.swift
[90/96] Compiling Glider WebSocketPeer.swift
[91/96] Compiling Glider WebSocketServer.swift
[92/96] Compiling Glider WebSocketServerDelegate.swift
[93/96] Compiling Glider WebSocketTransportClient.swift
[94/96] Compiling Glider WebSocketTransportClientDelegate.swift
[95/96] Compiling Glider WebSocketTransportServer.swift
[96/96] Compiling Glider WebSocketTransportServerDelegate.swift
Build complete! (3.21s)
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"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/immobiliare/glider/main
Repository: immobiliare/Glider
Swift version used: 6.1
Target: Glider
Extracting symbol information for 'Glider'...
Finished extracting symbol information for 'Glider'. (4.01s)
Building documentation for 'Glider'...
warning: Parameter 'colorizeText' not found in type method declaration
--> Glider/Sources/Formatters/FieldsFormatter/FieldsFormatter.swift:49:11-49:61
47 | /// When unavailable the application's name is used as label of the log.
48 | /// - severityIcon: `true` to use emoji representation for severity levels in events instead of short description (like `ERR`).
49 + /// - colorizeText: `true` to apply color to the text.
| ╰─suggestion: Remove 'colorizeText' parameter documentation
50 | /// - Returns: `FieldsFormatter`
51 | open class func standard(useSubsystemIcon: Bool = false,
warning: Parameter 'value' not found in instance method declaration
--> Glider/Sources/Formatters/MsgPackFormatter/Support/Writer+Optionals.swift:64:9-64:65
62 | ///
63 | /// It must be composed of MessagePackFlatValue.
64 + /// - Parameter value: Array of MessagePackFlatValue to pack
| ╰─suggestion: Remove 'value' parameter documentation
65 | /// - Throws: throws MessagePackWriterError.arrayTooBig if the array is longer than 2^32-1 elements
66 | mutating func packOptionalFlatArray(_ array: [MessagePackFlatValue]?) throws {
warning: Parameter 'array' is missing documentation
--> Glider/Sources/Formatters/MsgPackFormatter/Support/Writer+Optionals.swift:64:65-64:65
62 | ///
63 | /// It must be composed of MessagePackFlatValue.
64 + /// - Parameter value: Array of MessagePackFlatValue to pack
| ╰─suggestion: Document 'array' parameter
65 | /// - Throws: throws MessagePackWriterError.arrayTooBig if the array is longer than 2^32-1 elements
66 | mutating func packOptionalFlatArray(_ array: [MessagePackFlatValue]?) throws {
warning: Parameter 'value' not found in instance method declaration
--> Glider/Sources/Formatters/MsgPackFormatter/Support/Writer+Optionals.swift:90:9-90:65
88 | ///
89 | /// It must be composed of MessagePackFlatValue.
90 + /// - Parameter value: Array of MessagePackFlatValue to pack
| ╰─suggestion: Remove 'value' parameter documentation
91 | /// - Throws: throws MessagePackWriterError.arrayTooBig if the array is longer than 2^32-1 elements
92 | mutating func packOptionalFlatDictionary(_ dictionary: [AnyHashable: MessagePackFlatValue]?) throws {
warning: Parameter 'dictionary' is missing documentation
--> Glider/Sources/Formatters/MsgPackFormatter/Support/Writer+Optionals.swift:90:65-90:65
88 | ///
89 | /// It must be composed of MessagePackFlatValue.
90 + /// - Parameter value: Array of MessagePackFlatValue to pack
| ╰─suggestion: Document 'dictionary' parameter
91 | /// - Throws: throws MessagePackWriterError.arrayTooBig if the array is longer than 2^32-1 elements
92 | mutating func packOptionalFlatDictionary(_ dictionary: [AnyHashable: MessagePackFlatValue]?) throws {
warning: Parameter 'value' not found in instance method declaration
--> Glider/Sources/Formatters/MsgPackFormatter/Support/Writer.swift:308:9-308:65
306 | ///
307 | /// It must be composed of MessagePackFlatValue.
308 + /// - Parameter value: Array of MessagePackFlatValue to pack
| ╰─suggestion: Remove 'value' parameter documentation
309 | /// - Throws: throws MessagePackWriterError.arrayTooBig if the array is longer than 2^32-1 elements
310 | mutating func packFlatArray(_ array: [MessagePackFlatValue]) throws {
warning: Parameter 'array' is missing documentation
--> Glider/Sources/Formatters/MsgPackFormatter/Support/Writer.swift:308:65-308:65
306 | ///
307 | /// It must be composed of MessagePackFlatValue.
308 + /// - Parameter value: Array of MessagePackFlatValue to pack
| ╰─suggestion: Document 'array' parameter
309 | /// - Throws: throws MessagePackWriterError.arrayTooBig if the array is longer than 2^32-1 elements
310 | mutating func packFlatArray(_ array: [MessagePackFlatValue]) throws {
warning: Parameter 'value' not found in instance method declaration
--> Glider/Sources/Formatters/MsgPackFormatter/Support/Writer.swift:371:9-371:65
369 | ///
370 | /// It must be composed of MessagePackFlatValue.
371 + /// - Parameter value: Array of MessagePackFlatValue to pack
| ╰─suggestion: Remove 'value' parameter documentation
372 | /// - Throws: throws MessagePackWriterError.arrayTooBig if the array is longer than 2^32-1 elements
373 | mutating func packFlatDictionary(_ dictionary: [AnyHashable: MessagePackFlatValue]) throws {
warning: Parameter 'dictionary' is missing documentation
--> Glider/Sources/Formatters/MsgPackFormatter/Support/Writer.swift:371:65-371:65
369 | ///
370 | /// It must be composed of MessagePackFlatValue.
371 + /// - Parameter value: Array of MessagePackFlatValue to pack
| ╰─suggestion: Document 'dictionary' parameter
372 | /// - Throws: throws MessagePackWriterError.arrayTooBig if the array is longer than 2^32-1 elements
373 | mutating func packFlatDictionary(_ dictionary: [AnyHashable: MessagePackFlatValue]) throws {
warning: Parameter 'data' not found in instance method declaration
--> Glider/Sources/Formatters/MsgPackFormatter/Support/Writer.swift:451:9-451:64
449 | /// Use this to copy already packed data, or data you manually packed, useful
450 | /// if the library doesn't support something you need.
451 + /// - Parameter data: data to append to the current message
| ╰─suggestion: Remove 'data' parameter documentation
452 | mutating func unsafePackRawData(_ rawData: Data) {
453 | _data.append(rawData)
warning: Parameter 'rawData' is missing documentation
--> Glider/Sources/Formatters/MsgPackFormatter/Support/Writer.swift:451:64-451:64
449 | /// Use this to copy already packed data, or data you manually packed, useful
450 | /// if the library doesn't support something you need.
451 + /// - Parameter data: data to append to the current message
| ╰─suggestion: Document 'rawData' parameter
452 | mutating func unsafePackRawData(_ rawData: Data) {
453 | _data.append(rawData)
warning: Parameter 'colorizeFields' is missing documentation
--> Glider/Sources/Formatters/XCodeFormatter/XCodeFormatter.swift:60:9-60:9
58 | /// - colorize: used to colorize the messages inside the xcode console
59 | /// (see the notice on `colorize` property to properly
60 + ///
| ╰─suggestion: Document 'colorizeFields' parameter
61 | /// setup the environment to show colors!
62 | public init(showCallSite: Bool = false,
warning: Parameter 'showCallSite' is missing documentation
--> Glider/Sources/Formatters/XCodeFormatter/XCodeFormatter.swift:78:46-78:46
76 | /// - Parameters:
77 | /// - colorize: colorize mode.
| ╰─suggestion: Document 'showCallSite' parameter
78 + /// - colorizeFields: colorized fields.
79 | /// - Returns: `[FieldsFormatter.Field]`
80 | open class func defaultFields(showCallSite: Bool = false,
warning: Parameter 'info' is missing documentation
--> Glider/Sources/GliderSDK.swift:97:46-97:46
95 | /// Initialize a new error with message.
96 | ///
97 + /// - Parameter message: message to hold.
| ╰─suggestion: Document 'info' parameter
98 | public init(message: String, info: [String: Any] = [:]) {
99 | self.message = message
warning: Parameter 'sentEvents' is missing documentation
--> Glider/Sources/Transports/Base Transports/AsyncTransport.swift:443:87-443:87
441 | /// - transport: transport.
442 | /// - unsentEventsToRetry: events failed to be sent and marked to retry.
| ╰─suggestion: Document 'sentEvents' parameter
443 + /// - discardedIDs: discarded events, will be removed from cache and never sent.
444 | func asyncTransport(_ transport: AsyncTransport,
445 | didFinishChunkSending sentEvents: Set<String>,
warning: Parameter 'bufferedItemBuilder' is missing documentation
--> Glider/Sources/Transports/Base Transports/BufferedTransport.swift:138:55-138:55
136 | /// Initialize a new `BufferedTransport` with configuration.
137 | ///
138 + /// - Parameter builder: builder configuration
| ╰─suggestion: Document 'bufferedItemBuilder' parameter
139 | public init(bufferedItemBuilder: @escaping BufferItemBuilder, _ builder: ((inout Configuration) -> Void)) {
140 | self.bufferedItemBuilder = bufferedItemBuilder
warning: Parameter 'delegate' is missing documentation
--> Glider/Sources/Transports/HTTPTransport/HTTPTransport.swift:77:61-77:61
75 |
76 | /// Initialize a new `HTTPTransport` for generic HTTP log sends.
77 + /// - Parameter builder: configuration builder callback.
| ╰─suggestion: Document 'delegate' parameter
78 | public convenience init(delegate: HTTPTransportDelegate, _ builder: ((inout Configuration) -> Void)? = nil) throws {
79 | try self.init(delegate: delegate, configuration: Configuration(builder))
warning: Parameter 'delegate' is missing documentation
--> Glider/Sources/Transports/LogstashTransport/LogstashTransport.swift:59:50-59:50
57 | /// Initialize with configuration.
58 | ///
59 + /// - Parameter configuration: configuration.
| ╰─suggestion: Document 'delegate' parameter
60 | public init(configuration: Configuration, delegate: LogstashTransportDelegate? = nil) throws {
61 | self.configuration = configuration
warning: Parameter 'serviceType' is missing documentation
--> Glider/Sources/Transports/RemoteTransport/RemoteTransport+Config.swift:57:51-57:51
55 | /// Initialize a new remote configuration object via builder function.
56 | ///
57 + /// - Parameter builder: builder callback.
| ╰─suggestion: Document 'serviceType' parameter
58 | public init(serviceType: String = "_glider._tcp", _ builder: ((inout Configuration) -> Void)?) {
59 | self.serviceType = serviceType
warning: Parameter 'delegate' is missing documentation
--> Glider/Sources/Transports/RemoteTransport/RemoteTransport.swift:114:50-114:50
112 | /// Initialize with configuration.
113 | ///
114 + /// - Parameter configuration: configuration.
| ╰─suggestion: Document 'delegate' parameter
115 | public init(configuration: Configuration, delegate: RemoteTransportDelegate? = nil) throws {
116 | self.configuration = configuration
warning: Parameter 'data' not found in type method declaration
--> Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:58:9-58:42
56 | /// Decode packet content.
57 | ///
58 + /// - Parameter data: data to decode.
| ╰─suggestion: Remove 'data' parameter documentation
59 | /// - Returns: `Self?`
60 | static func decode(_ packet: RemoteTransport.RawPacket) throws -> Self?
warning: Parameter 'packet' is missing documentation
--> Glider/Sources/Transports/RemoteTransport/Support/RemoteTransportPackets.swift:58:42-58:42
56 | /// Decode packet content.
57 | ///
58 + /// - Parameter data: data to decode.
| ╰─suggestion: Document 'packet' parameter
59 | /// - Returns: `Self?`
60 | static func decode(_ packet: RemoteTransport.RawPacket) throws -> Self?
warning: Parameter 'SQL' not found in instance method declaration
--> Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb.swift:155:9-155:37
153 | /// Execute an Update query statement.
154 | ///
155 + /// - Parameter SQL: SQL string.
| ╰─suggestion: Remove 'SQL' parameter documentation
156 | /// - Throws: throw an exception if something fails executing query.
157 | /// - Returns: Statement
warning: Parameter 'values' is missing documentation
--> Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb.swift:155:37-155:37
153 | /// Execute an Update query statement.
154 | ///
155 + /// - Parameter SQL: SQL string.
| ╰─suggestion: Document 'values' parameter
156 | /// - Throws: throw an exception if something fails executing query.
157 | /// - Returns: Statement
warning: Parameter 'sql' is missing documentation
--> Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb.swift:155:37-155:37
153 | /// Execute an Update query statement.
154 | ///
155 + /// - Parameter SQL: SQL string.
| ╰─suggestion: Document 'sql' parameter
156 | /// - Throws: throw an exception if something fails executing query.
157 | /// - Returns: Statement
warning: Parameter 'SQL' not found in instance method declaration
--> Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb.swift:184:11-184:29
182 | ///
183 | /// - Parameters:
184 + /// - SQL: SQL string.
| ╰─suggestion: Remove 'SQL' parameter documentation
185 | /// - values: values to bind.
186 | /// - Throws: throw an exception if something fails executing query.
warning: Parameter 'sql' is missing documentation
--> Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb.swift:185:36-185:36
183 | /// - Parameters:
184 | /// - SQL: SQL string.
185 + /// - values: values to bind.
| ╰─suggestion: Document 'sql' parameter
186 | /// - Throws: throw an exception if something fails executing query.
187 | /// - Returns: Statement
warning: Parameter 'handler' is missing documentation
--> Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb.swift:185:36-185:36
183 | /// - Parameters:
184 | /// - SQL: SQL string.
185 + /// - values: values to bind.
| ╰─suggestion: Document 'handler' parameter
186 | /// - Throws: throw an exception if something fails executing query.
187 | /// - Returns: Statement
warning: Parameter 'SQL' not found in instance method declaration
--> Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb.swift:216:11-216:28
214 | ///
215 | /// - Parameters:
216 + /// - SQL: sql query.
| ╰─suggestion: Remove 'SQL' parameter documentation
217 | /// - values: binded values
218 | /// - Returns: Statement
warning: Parameter 'sql' is missing documentation
--> Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb.swift:217:34-217:34
215 | /// - Parameters:
216 | /// - SQL: sql query.
217 + /// - values: binded values
| ╰─suggestion: Document 'sql' parameter
218 | /// - Returns: Statement
219 | public func select(sql: String, bindTo values: [Any?]? = nil) throws -> Statement {
warning: Parameter 'handler' is missing documentation
--> Glider/Sources/Transports/SQLiteTransport/Support/SQLiteDb.swift:232:36-232:36
230 | /// - Parameters:
231 | /// - SQL: SQL string.
232 + /// - values: values to bind.
| ╰─suggestion: Document 'handler' parameter
233 | /// - Throws: throw an exception if something fails executing query.
234 | /// - Returns: Statement.
warning: Parameter 'delegate' is missing documentation
--> Glider/Sources/Transports/WebSocketTransport/Support/WebSocketClient/WebSocketClient.swift:61:87-61:87
59 | /// - connectAutomatically: `true` to start connection automatically.
60 | /// - options: options for connection.
61 + /// - connectionQueue: queue of the connection, if not specified `main` is used.
| ╰─suggestion: Document 'delegate' parameter
62 | public init(url: URL,
63 | connectAutomatically: Bool = false,
warning: Parameter 'data' not found in instance method declaration
--> Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:68:11-68:24
66 | ///
67 | /// - Parameters:
68 + /// - data: data.
| ╰─suggestion: Remove 'data' parameter documentation
69 | /// - contextID: context identifier
70 | public func send(string: String) {
warning: Parameter 'contextID' not found in instance method declaration
--> Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:69:11-69:42
67 | /// - Parameters:
68 | /// - data: data.
69 + /// - contextID: context identifier
| ╰─suggestion: Remove 'contextID' parameter documentation
70 | public func send(string: String) {
71 | let metaData = NWProtocolWebSocket.Metadata(opcode: .text)
warning: Parameter 'string' is missing documentation
--> Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketPeer.swift:69:42-69:42
67 | /// - Parameters:
68 | /// - data: data.
69 + /// - contextID: context identifier
| ╰─suggestion: Document 'string' parameter
70 | public func send(string: String) {
71 | let metaData = NWProtocolWebSocket.Metadata(opcode: .text)
warning: Parameter 'delegate' is missing documentation
--> Glider/Sources/Transports/WebSocketTransport/Support/WebSocketServer/WebSocketServer.swift:57:40-57:40
55 | /// - port: port of listening.
56 | /// - parameters: network parameters settings.
57 + /// - options: websocket options.
| ╰─suggestion: Document 'delegate' parameter
58 | /// - `delegate`: delegate.
59 | public init(port: UInt16,
warning: Parameter 'code ' not found in instance method declaration
--> Glider/Sources/Transports/WebSocketTransport/WebSocketTransportClient/WebSocketTransportClientDelegate.swift:51:13-51:18
49 | /// - Parameters:
50 | /// - transport: transport instance.
51 + /// - code : disconnection code.
| ╰─suggestion: Replace 'code ' with 'code'
52 | /// - reason: readable reason of disconnection.
53 | func webSocketTransport(_ transport: WebSocketTransportClient,
warning: Parameter 'code' is missing documentation
--> Glider/Sources/Transports/WebSocketTransport/WebSocketTransportClient/WebSocketTransportClientDelegate.swift:52:54-52:54
50 | /// - transport: transport instance.
51 | /// - code : disconnection code.
52 + /// - reason: readable reason of disconnection.
| ╰─suggestion: Document 'code' parameter
53 | func webSocketTransport(_ transport: WebSocketTransportClient,
54 | didDisconnectedWithCode code: NWProtocolWebSocket.CloseCode,
warning: Parameter 'delegate' is missing documentation
--> Glider/Sources/Transports/WebSocketTransport/WebSocketTransportServer/WebSocketTransportServer.swift:87:44-87:44
85 | /// - Parameters:
86 | /// - port: port of the server.
87 + /// - builder: builder configuration.
| ╰─suggestion: Document 'delegate' parameter
88 | public convenience init(port: UInt16, delegate: WebSocketTransportServerDelegate? = nil,
89 | _ builder: ((inout Configuration) -> Void)? = nil) throws {
Finished building documentation for 'Glider' (1.06s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/immobiliare/glider/main
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.51s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (1.07s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.80s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.42s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Building for debugging...
[0/8] Write sources
[1/8] Write snippet-extract-tool-entitlement.plist
[2/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Compiling Snippets SnippetParser.swift
[7/53] Emitting module Snippets
[8/53] Compiling Snippets Snippet.swift
[9/53] Compiling SymbolKit Mixin+Equals.swift
[10/53] Compiling SymbolKit Mixin+Hash.swift
[11/53] Compiling SymbolKit Mixin.swift
[12/53] Compiling SymbolKit LineList.swift
[13/53] Compiling SymbolKit Position.swift
[14/57] Compiling SymbolKit DeclarationFragments.swift
[15/57] Compiling SymbolKit Fragment.swift
[16/57] Compiling SymbolKit FragmentKind.swift
[17/57] Compiling SymbolKit FunctionParameter.swift
[18/57] Compiling SymbolKit FunctionSignature.swift
[19/57] Compiling SymbolKit Identifier.swift
[20/57] Compiling SymbolKit KindIdentifier.swift
[21/57] Compiling SymbolKit Location.swift
[22/57] Compiling SymbolKit Mutability.swift
[23/57] Emitting module SymbolKit
[24/57] Compiling SymbolKit Symbol.swift
[25/57] Compiling SymbolKit SymbolKind.swift
[26/57] Compiling SymbolKit SymbolGraph.swift
[27/57] Compiling SymbolKit GraphCollector.swift
[28/57] Compiling SymbolKit Names.swift
[29/57] Compiling SymbolKit SPI.swift
[30/57] Compiling SymbolKit Snippet.swift
[31/57] Compiling SymbolKit Extension.swift
[32/57] Compiling SymbolKit SemanticVersion.swift
[33/57] Compiling SymbolKit AccessControl.swift
[34/57] Compiling SymbolKit Availability.swift
[35/57] Compiling SymbolKit AvailabilityItem.swift
[36/57] Compiling SymbolKit Domain.swift
[37/57] Compiling SymbolKit Relationship.swift
[38/57] Compiling SymbolKit RelationshipKind.swift
[39/57] Compiling SymbolKit SourceOrigin.swift
[40/57] Compiling SymbolKit GenericConstraints.swift
[41/57] Compiling SymbolKit Swift.swift
[42/57] Compiling SymbolKit SourceRange.swift
[43/57] Compiling SymbolKit Metadata.swift
[44/57] Compiling SymbolKit Module.swift
[45/57] Compiling SymbolKit OperatingSystem.swift
[46/57] Compiling SymbolKit Platform.swift
[47/57] Compiling SymbolKit GenericConstraint.swift
[48/57] Compiling SymbolKit GenericParameter.swift
[49/57] Compiling SymbolKit Generics.swift
[50/57] Compiling SymbolKit Namespace.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.38s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
Build of target: 'Glider' complete! (0.25s)
3560
21 /Users/admin/builder/spi-builder-workspace/.docs/immobiliare/glider/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/immobiliare/glider/main
File count: 3560
Doc size: 21.0MB
Preparing doc bundle ...
Uploading prod-immobiliare-glider-main-3575315c.zip to s3://spi-docs-inbox/prod-immobiliare-glider-main-3575315c.zip
Copying... [11%]
Copying... [21%]
Copying... [31%]
Copying... [41%]
Copying... [51%]
Copying... [60%]
Copying... [70%]
Copying... [81%]
Copying... [91%]
Copying... [100%]
Done.