Build Information
Successful build of HAP, reference master (51e350
), with Swift 6.0 for macOS (SPM) on 30 Oct 2024 23:00:40 UTC.
Swift 6 data race errors: 429
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:68: warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:307:7: note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:93: warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:24:14: note: class 'Device' does not conform to the 'Sendable' protocol
22 |
23 | // swiftlint:disable:next type_body_length
24 | public class Device {
| `- note: class 'Device' does not conform to the 'Sendable' protocol
25 | internal(set) public var name: String {
26 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Utils/WeakObjectSet.swift:15:21: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | // adapted from: http://stackoverflow.com/a/36184182
2 |
3 | class WeakObject<T: AnyObject>: Equatable, Hashable {
| `- note: 'T' previously declared here
4 | weak var object: T?
5 | init(_ object: T) {
:
13 | }
14 |
15 | static func == <T> (lhs: WeakObject<T>, rhs: WeakObject<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
16 | lhs.object === rhs.object
17 | }
[1119/1128] Compiling HAP FileManager+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:28:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | { context, request in
27 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
28 | promise.completeWith(application(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
1 | import Foundation
2 | import VaporHTTP
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
3 |
4 | import Logging
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:30:26: warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | promise.completeWith(application(context, request))
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
| `- warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | let method = request.method
32 | let path = request.urlString
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:326:10: note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
324 | }
325 |
326 | protocol RequestContext {
| `- note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
327 | var channel: Channel { get }
328 | func triggerUserOutboundEvent(_ event: Any, promise: EventLoopPromise<Void>?)
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:31:26: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
31 | let method = request.method
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | let path = request.urlString
33 | let status = response.status.code
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPRequest.swift:8:15: note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
6 | ///
7 | /// See `HTTPClient` and `HTTPServer`.
8 | public struct HTTPRequest: HTTPMessage {
| `- note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | /// Internal storage is an NIO `HTTPRequestHead`
10 | internal var head: HTTPRequestHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:50:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | guard let route = routes.first(where: { $0.path == request.url.path }) else {
49 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
50 | promise.succeed(.notFound)
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | return promise.futureResult
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:62:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | logger.warning("Unauthorized request to \(request.urlString)")
61 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
62 | promise.succeed(HTTPResponse(status: .unauthorized,
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | body: "You are not authorized. Start a session through /pair-verify."))
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:73:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
71 | { context, request in
72 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
73 | promise.succeed(sync(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | return promise.futureResult
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:30: warning: result of call to 'addHandler(_:name:position:)' is unused
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: result of call to 'addHandler(_:name:position:)' is unused
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:30: warning: result of call to 'removeHandler' is unused
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: result of call to 'removeHandler' is unused
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:62: warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Security/Cryptographer.swift:12:7: note: class 'Cryptographer' does not conform to the 'Sendable' protocol
10 | // <n:encrypted data according to AEAD algorithm, up to 1024 bytes>
11 | // <16:authTag according to AEAD algorithm>
12 | class Cryptographer {
| `- note: class 'Cryptographer' does not conform to the 'Sendable' protocol
13 | enum Error: Swift.Error {
14 | case invalidArgument
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:44: warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | }
276 |
277 | class CryptographerInstallerHandler: ChannelOutboundHandler, RemovableChannelHandler {
| `- note: class 'CryptographerInstallerHandler' does not conform to the 'Sendable' protocol
278 | typealias OutboundIn = HTTPResponse
279 | typealias OutboundOut = HTTPResponse
:
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:27: warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
:
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:68: warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:307:7: note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:93: warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:24:14: note: class 'Device' does not conform to the 'Sendable' protocol
22 |
23 | // swiftlint:disable:next type_body_length
24 | public class Device {
| `- note: class 'Device' does not conform to the 'Sendable' protocol
25 | internal(set) public var name: String {
26 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Utils/WeakObjectSet.swift:15:21: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | // adapted from: http://stackoverflow.com/a/36184182
2 |
3 | class WeakObject<T: AnyObject>: Equatable, Hashable {
| `- note: 'T' previously declared here
4 | weak var object: T?
5 | init(_ object: T) {
:
13 | }
14 |
15 | static func == <T> (lhs: WeakObject<T>, rhs: WeakObject<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
16 | lhs.object === rhs.object
17 | }
[1120/1128] Compiling HAP FixedWidthInteger+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:28:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | { context, request in
27 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
28 | promise.completeWith(application(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
1 | import Foundation
2 | import VaporHTTP
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
3 |
4 | import Logging
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:30:26: warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | promise.completeWith(application(context, request))
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
| `- warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | let method = request.method
32 | let path = request.urlString
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:326:10: note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
324 | }
325 |
326 | protocol RequestContext {
| `- note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
327 | var channel: Channel { get }
328 | func triggerUserOutboundEvent(_ event: Any, promise: EventLoopPromise<Void>?)
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:31:26: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
31 | let method = request.method
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | let path = request.urlString
33 | let status = response.status.code
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPRequest.swift:8:15: note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
6 | ///
7 | /// See `HTTPClient` and `HTTPServer`.
8 | public struct HTTPRequest: HTTPMessage {
| `- note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | /// Internal storage is an NIO `HTTPRequestHead`
10 | internal var head: HTTPRequestHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:50:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | guard let route = routes.first(where: { $0.path == request.url.path }) else {
49 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
50 | promise.succeed(.notFound)
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | return promise.futureResult
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:62:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | logger.warning("Unauthorized request to \(request.urlString)")
61 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
62 | promise.succeed(HTTPResponse(status: .unauthorized,
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | body: "You are not authorized. Start a session through /pair-verify."))
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:73:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
71 | { context, request in
72 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
73 | promise.succeed(sync(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | return promise.futureResult
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:30: warning: result of call to 'addHandler(_:name:position:)' is unused
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: result of call to 'addHandler(_:name:position:)' is unused
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:30: warning: result of call to 'removeHandler' is unused
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: result of call to 'removeHandler' is unused
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:62: warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Security/Cryptographer.swift:12:7: note: class 'Cryptographer' does not conform to the 'Sendable' protocol
10 | // <n:encrypted data according to AEAD algorithm, up to 1024 bytes>
11 | // <16:authTag according to AEAD algorithm>
12 | class Cryptographer {
| `- note: class 'Cryptographer' does not conform to the 'Sendable' protocol
13 | enum Error: Swift.Error {
14 | case invalidArgument
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:44: warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | }
276 |
277 | class CryptographerInstallerHandler: ChannelOutboundHandler, RemovableChannelHandler {
| `- note: class 'CryptographerInstallerHandler' does not conform to the 'Sendable' protocol
278 | typealias OutboundIn = HTTPResponse
279 | typealias OutboundOut = HTTPResponse
:
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:27: warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
:
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:68: warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:307:7: note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:93: warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:24:14: note: class 'Device' does not conform to the 'Sendable' protocol
22 |
23 | // swiftlint:disable:next type_body_length
24 | public class Device {
| `- note: class 'Device' does not conform to the 'Sendable' protocol
25 | internal(set) public var name: String {
26 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Utils/WeakObjectSet.swift:15:21: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | // adapted from: http://stackoverflow.com/a/36184182
2 |
3 | class WeakObject<T: AnyObject>: Equatable, Hashable {
| `- note: 'T' previously declared here
4 | weak var object: T?
5 | init(_ object: T) {
:
13 | }
14 |
15 | static func == <T> (lhs: WeakObject<T>, rhs: WeakObject<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
16 | lhs.object === rhs.object
17 | }
[1121/1128] Compiling HAP QRCode.swift
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:28:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | { context, request in
27 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
28 | promise.completeWith(application(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
1 | import Foundation
2 | import VaporHTTP
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
3 |
4 | import Logging
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:30:26: warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | promise.completeWith(application(context, request))
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
| `- warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | let method = request.method
32 | let path = request.urlString
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:326:10: note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
324 | }
325 |
326 | protocol RequestContext {
| `- note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
327 | var channel: Channel { get }
328 | func triggerUserOutboundEvent(_ event: Any, promise: EventLoopPromise<Void>?)
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:31:26: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
31 | let method = request.method
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | let path = request.urlString
33 | let status = response.status.code
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPRequest.swift:8:15: note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
6 | ///
7 | /// See `HTTPClient` and `HTTPServer`.
8 | public struct HTTPRequest: HTTPMessage {
| `- note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | /// Internal storage is an NIO `HTTPRequestHead`
10 | internal var head: HTTPRequestHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:50:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | guard let route = routes.first(where: { $0.path == request.url.path }) else {
49 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
50 | promise.succeed(.notFound)
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | return promise.futureResult
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:62:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | logger.warning("Unauthorized request to \(request.urlString)")
61 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
62 | promise.succeed(HTTPResponse(status: .unauthorized,
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | body: "You are not authorized. Start a session through /pair-verify."))
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:73:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
71 | { context, request in
72 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
73 | promise.succeed(sync(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | return promise.futureResult
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:30: warning: result of call to 'addHandler(_:name:position:)' is unused
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: result of call to 'addHandler(_:name:position:)' is unused
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:30: warning: result of call to 'removeHandler' is unused
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: result of call to 'removeHandler' is unused
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:62: warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Security/Cryptographer.swift:12:7: note: class 'Cryptographer' does not conform to the 'Sendable' protocol
10 | // <n:encrypted data according to AEAD algorithm, up to 1024 bytes>
11 | // <16:authTag according to AEAD algorithm>
12 | class Cryptographer {
| `- note: class 'Cryptographer' does not conform to the 'Sendable' protocol
13 | enum Error: Swift.Error {
14 | case invalidArgument
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:44: warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | }
276 |
277 | class CryptographerInstallerHandler: ChannelOutboundHandler, RemovableChannelHandler {
| `- note: class 'CryptographerInstallerHandler' does not conform to the 'Sendable' protocol
278 | typealias OutboundIn = HTTPResponse
279 | typealias OutboundOut = HTTPResponse
:
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:27: warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
:
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:68: warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:307:7: note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:93: warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:24:14: note: class 'Device' does not conform to the 'Sendable' protocol
22 |
23 | // swiftlint:disable:next type_body_length
24 | public class Device {
| `- note: class 'Device' does not conform to the 'Sendable' protocol
25 | internal(set) public var name: String {
26 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Utils/WeakObjectSet.swift:15:21: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | // adapted from: http://stackoverflow.com/a/36184182
2 |
3 | class WeakObject<T: AnyObject>: Equatable, Hashable {
| `- note: 'T' previously declared here
4 | weak var object: T?
5 | init(_ object: T) {
:
13 | }
14 |
15 | static func == <T> (lhs: WeakObject<T>, rhs: WeakObject<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
16 | lhs.object === rhs.object
17 | }
[1122/1128] Compiling HAP Sequence+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:28:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | { context, request in
27 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
28 | promise.completeWith(application(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
1 | import Foundation
2 | import VaporHTTP
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
3 |
4 | import Logging
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:30:26: warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | promise.completeWith(application(context, request))
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
| `- warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | let method = request.method
32 | let path = request.urlString
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:326:10: note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
324 | }
325 |
326 | protocol RequestContext {
| `- note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
327 | var channel: Channel { get }
328 | func triggerUserOutboundEvent(_ event: Any, promise: EventLoopPromise<Void>?)
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:31:26: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
31 | let method = request.method
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | let path = request.urlString
33 | let status = response.status.code
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPRequest.swift:8:15: note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
6 | ///
7 | /// See `HTTPClient` and `HTTPServer`.
8 | public struct HTTPRequest: HTTPMessage {
| `- note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | /// Internal storage is an NIO `HTTPRequestHead`
10 | internal var head: HTTPRequestHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:50:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | guard let route = routes.first(where: { $0.path == request.url.path }) else {
49 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
50 | promise.succeed(.notFound)
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | return promise.futureResult
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:62:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | logger.warning("Unauthorized request to \(request.urlString)")
61 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
62 | promise.succeed(HTTPResponse(status: .unauthorized,
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | body: "You are not authorized. Start a session through /pair-verify."))
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:73:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
71 | { context, request in
72 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
73 | promise.succeed(sync(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | return promise.futureResult
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:30: warning: result of call to 'addHandler(_:name:position:)' is unused
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: result of call to 'addHandler(_:name:position:)' is unused
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:30: warning: result of call to 'removeHandler' is unused
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: result of call to 'removeHandler' is unused
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:62: warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Security/Cryptographer.swift:12:7: note: class 'Cryptographer' does not conform to the 'Sendable' protocol
10 | // <n:encrypted data according to AEAD algorithm, up to 1024 bytes>
11 | // <16:authTag according to AEAD algorithm>
12 | class Cryptographer {
| `- note: class 'Cryptographer' does not conform to the 'Sendable' protocol
13 | enum Error: Swift.Error {
14 | case invalidArgument
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:44: warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | }
276 |
277 | class CryptographerInstallerHandler: ChannelOutboundHandler, RemovableChannelHandler {
| `- note: class 'CryptographerInstallerHandler' does not conform to the 'Sendable' protocol
278 | typealias OutboundIn = HTTPResponse
279 | typealias OutboundOut = HTTPResponse
:
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:27: warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
:
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:68: warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:307:7: note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:93: warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:24:14: note: class 'Device' does not conform to the 'Sendable' protocol
22 |
23 | // swiftlint:disable:next type_body_length
24 | public class Device {
| `- note: class 'Device' does not conform to the 'Sendable' protocol
25 | internal(set) public var name: String {
26 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Utils/WeakObjectSet.swift:15:21: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | // adapted from: http://stackoverflow.com/a/36184182
2 |
3 | class WeakObject<T: AnyObject>: Equatable, Hashable {
| `- note: 'T' previously declared here
4 | weak var object: T?
5 | init(_ object: T) {
:
13 | }
14 |
15 | static func == <T> (lhs: WeakObject<T>, rhs: WeakObject<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
16 | lhs.object === rhs.object
17 | }
[1123/1128] Compiling HAP String+padLeft.swift
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:28:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | { context, request in
27 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
28 | promise.completeWith(application(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
1 | import Foundation
2 | import VaporHTTP
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
3 |
4 | import Logging
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:30:26: warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | promise.completeWith(application(context, request))
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
| `- warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | let method = request.method
32 | let path = request.urlString
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:326:10: note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
324 | }
325 |
326 | protocol RequestContext {
| `- note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
327 | var channel: Channel { get }
328 | func triggerUserOutboundEvent(_ event: Any, promise: EventLoopPromise<Void>?)
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:31:26: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
31 | let method = request.method
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | let path = request.urlString
33 | let status = response.status.code
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPRequest.swift:8:15: note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
6 | ///
7 | /// See `HTTPClient` and `HTTPServer`.
8 | public struct HTTPRequest: HTTPMessage {
| `- note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | /// Internal storage is an NIO `HTTPRequestHead`
10 | internal var head: HTTPRequestHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:50:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | guard let route = routes.first(where: { $0.path == request.url.path }) else {
49 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
50 | promise.succeed(.notFound)
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | return promise.futureResult
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:62:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | logger.warning("Unauthorized request to \(request.urlString)")
61 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
62 | promise.succeed(HTTPResponse(status: .unauthorized,
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | body: "You are not authorized. Start a session through /pair-verify."))
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:73:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
71 | { context, request in
72 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
73 | promise.succeed(sync(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | return promise.futureResult
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:30: warning: result of call to 'addHandler(_:name:position:)' is unused
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: result of call to 'addHandler(_:name:position:)' is unused
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:30: warning: result of call to 'removeHandler' is unused
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: result of call to 'removeHandler' is unused
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:62: warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Security/Cryptographer.swift:12:7: note: class 'Cryptographer' does not conform to the 'Sendable' protocol
10 | // <n:encrypted data according to AEAD algorithm, up to 1024 bytes>
11 | // <16:authTag according to AEAD algorithm>
12 | class Cryptographer {
| `- note: class 'Cryptographer' does not conform to the 'Sendable' protocol
13 | enum Error: Swift.Error {
14 | case invalidArgument
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:44: warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | }
276 |
277 | class CryptographerInstallerHandler: ChannelOutboundHandler, RemovableChannelHandler {
| `- note: class 'CryptographerInstallerHandler' does not conform to the 'Sendable' protocol
278 | typealias OutboundIn = HTTPResponse
279 | typealias OutboundOut = HTTPResponse
:
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:27: warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
:
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:68: warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:307:7: note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:93: warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:24:14: note: class 'Device' does not conform to the 'Sendable' protocol
22 |
23 | // swiftlint:disable:next type_body_length
24 | public class Device {
| `- note: class 'Device' does not conform to the 'Sendable' protocol
25 | internal(set) public var name: String {
26 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Utils/WeakObjectSet.swift:15:21: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | // adapted from: http://stackoverflow.com/a/36184182
2 |
3 | class WeakObject<T: AnyObject>: Equatable, Hashable {
| `- note: 'T' previously declared here
4 | weak var object: T?
5 | init(_ object: T) {
:
13 | }
14 |
15 | static func == <T> (lhs: WeakObject<T>, rhs: WeakObject<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
16 | lhs.object === rhs.object
17 | }
[1124/1128] Compiling HAP TLV8.swift
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:28:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | { context, request in
27 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
28 | promise.completeWith(application(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
1 | import Foundation
2 | import VaporHTTP
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
3 |
4 | import Logging
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:30:26: warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | promise.completeWith(application(context, request))
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
| `- warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | let method = request.method
32 | let path = request.urlString
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:326:10: note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
324 | }
325 |
326 | protocol RequestContext {
| `- note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
327 | var channel: Channel { get }
328 | func triggerUserOutboundEvent(_ event: Any, promise: EventLoopPromise<Void>?)
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:31:26: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
31 | let method = request.method
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | let path = request.urlString
33 | let status = response.status.code
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPRequest.swift:8:15: note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
6 | ///
7 | /// See `HTTPClient` and `HTTPServer`.
8 | public struct HTTPRequest: HTTPMessage {
| `- note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | /// Internal storage is an NIO `HTTPRequestHead`
10 | internal var head: HTTPRequestHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:50:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | guard let route = routes.first(where: { $0.path == request.url.path }) else {
49 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
50 | promise.succeed(.notFound)
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | return promise.futureResult
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:62:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | logger.warning("Unauthorized request to \(request.urlString)")
61 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
62 | promise.succeed(HTTPResponse(status: .unauthorized,
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | body: "You are not authorized. Start a session through /pair-verify."))
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:73:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
71 | { context, request in
72 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
73 | promise.succeed(sync(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | return promise.futureResult
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:30: warning: result of call to 'addHandler(_:name:position:)' is unused
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: result of call to 'addHandler(_:name:position:)' is unused
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:30: warning: result of call to 'removeHandler' is unused
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: result of call to 'removeHandler' is unused
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:62: warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Security/Cryptographer.swift:12:7: note: class 'Cryptographer' does not conform to the 'Sendable' protocol
10 | // <n:encrypted data according to AEAD algorithm, up to 1024 bytes>
11 | // <16:authTag according to AEAD algorithm>
12 | class Cryptographer {
| `- note: class 'Cryptographer' does not conform to the 'Sendable' protocol
13 | enum Error: Swift.Error {
14 | case invalidArgument
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:44: warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | }
276 |
277 | class CryptographerInstallerHandler: ChannelOutboundHandler, RemovableChannelHandler {
| `- note: class 'CryptographerInstallerHandler' does not conform to the 'Sendable' protocol
278 | typealias OutboundIn = HTTPResponse
279 | typealias OutboundOut = HTTPResponse
:
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:27: warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
:
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:68: warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:307:7: note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:93: warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:24:14: note: class 'Device' does not conform to the 'Sendable' protocol
22 |
23 | // swiftlint:disable:next type_body_length
24 | public class Device {
| `- note: class 'Device' does not conform to the 'Sendable' protocol
25 | internal(set) public var name: String {
26 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Utils/WeakObjectSet.swift:15:21: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | // adapted from: http://stackoverflow.com/a/36184182
2 |
3 | class WeakObject<T: AnyObject>: Equatable, Hashable {
| `- note: 'T' previously declared here
4 | weak var object: T?
5 | init(_ object: T) {
:
13 | }
14 |
15 | static func == <T> (lhs: WeakObject<T>, rhs: WeakObject<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
16 | lhs.object === rhs.object
17 | }
[1125/1128] Compiling HAP WeakObjectSet.swift
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:28:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | { context, request in
27 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
28 | promise.completeWith(application(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
1 | import Foundation
2 | import VaporHTTP
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'VaporHTTP'
3 |
4 | import Logging
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:30:26: warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | promise.completeWith(application(context, request))
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
| `- warning: capture of 'context' with non-sendable type 'any RequestContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | let method = request.method
32 | let path = request.urlString
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:326:10: note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
324 | }
325 |
326 | protocol RequestContext {
| `- note: protocol 'RequestContext' does not conform to the 'Sendable' protocol
327 | var channel: Channel { get }
328 | func triggerUserOutboundEvent(_ event: Any, promise: EventLoopPromise<Void>?)
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:31:26: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | promise.futureResult.whenSuccess { response in
30 | let client = context.channel.remoteAddress?.description ?? "N/A"
31 | let method = request.method
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | let path = request.urlString
33 | let status = response.status.code
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPRequest.swift:8:15: note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
6 | ///
7 | /// See `HTTPClient` and `HTTPServer`.
8 | public struct HTTPRequest: HTTPMessage {
| `- note: struct 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | /// Internal storage is an NIO `HTTPRequestHead`
10 | internal var head: HTTPRequestHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:50:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
48 | guard let route = routes.first(where: { $0.path == request.url.path }) else {
49 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
50 | promise.succeed(.notFound)
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
51 | return promise.futureResult
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:62:21: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
60 | logger.warning("Unauthorized request to \(request.urlString)")
61 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
62 | promise.succeed(HTTPResponse(status: .unauthorized,
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | body: "You are not authorized. Start a session through /pair-verify."))
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Endpoints/root().swift:73:17: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
71 | { context, request in
72 | let promise = context.channel.eventLoop.makePromise(of: HTTPResponse.self)
73 | promise.succeed(sync(context, request))
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | return promise.futureResult
75 | }
/Users/admin/builder/spi-builder-workspace/Sources/VaporHTTP/Message/HTTPResponse.swift:6:15: note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
4 | ///
5 | /// See `HTTPClient` and `HTTPServer`.
6 | public struct HTTPResponse: HTTPMessage {
| `- note: struct 'HTTPResponse' does not conform to the 'Sendable' protocol
7 | /// Internal storage is an NIO `HTTPResponseHead`
8 | internal var head: HTTPResponseHead
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:124:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 | // to wait for the next opportunity.
123 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(5)) {
124 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | }
126 | } else {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:17: warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 |
105 | class EventHandler: ChannelOutboundHandler {
| `- note: class 'EventHandler' does not conform to the 'Sendable' protocol
106 | typealias OutboundIn = ByteBuffer
107 | typealias OutboundOut = ByteBuffer
:
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'self' with non-sendable type 'EventHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:146:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | let waitms = nextAllowableNotificationTime.timeIntervalSinceNow * 1000
145 | _ = context.eventLoop.scheduleTask(in: TimeAmount.milliseconds(Int64(waitms))) {
146 | self.writePendingNotifications(context: context)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | }
148 | return
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:30: warning: result of call to 'addHandler(_:name:position:)' is unused
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: result of call to 'addHandler(_:name:position:)' is unused
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:30: warning: result of call to 'removeHandler' is unused
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: result of call to 'removeHandler' is unused
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:290:62: warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
288 | context.write(data).whenSuccess {
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
| `- warning: capture of 'cryptographer' with non-sendable type 'Cryptographer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 | context.pipeline.removeHandler(self)
292 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Security/Cryptographer.swift:12:7: note: class 'Cryptographer' does not conform to the 'Sendable' protocol
10 | // <n:encrypted data according to AEAD algorithm, up to 1024 bytes>
11 | // <16:authTag according to AEAD algorithm>
12 | class Cryptographer {
| `- note: class 'Cryptographer' does not conform to the 'Sendable' protocol
13 | enum Error: Swift.Error {
14 | case invalidArgument
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:291:44: warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | }
276 |
277 | class CryptographerInstallerHandler: ChannelOutboundHandler, RemovableChannelHandler {
| `- note: class 'CryptographerInstallerHandler' does not conform to the 'Sendable' protocol
278 | typealias OutboundIn = HTTPResponse
279 | typealias OutboundOut = HTTPResponse
:
289 | promise?.succeed(())
290 | context.pipeline.addHandler(CryptographerHandler(cryptographer), position: .first)
291 | context.pipeline.removeHandler(self)
| `- warning: capture of 'self' with non-sendable type 'CryptographerInstallerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
292 | }
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:321:27: warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
:
319 | let response = responder(context, request)
320 | response.whenSuccess { response in
321 | context.write(self.wrapOutboundOut(response), promise: nil)
| `- warning: capture of 'self' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:18:10: warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
9 | // MARK: Pairing State
10 |
11 | public enum PairingState {
| `- note: consider making enum 'PairingState' conform to the 'Sendable' protocol
12 | case notPaired
13 | case pairing
:
16 |
17 | public enum PairingStateError: Error {
18 | case invalidTransition(from: PairingState, to: PairingState)
| `- warning: associated value 'invalidTransition(from:to:)' of 'Sendable'-conforming enum 'PairingStateError' has non-sendable type 'PairingState'; this is an error in the Swift 6 language mode
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:68: warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'application' with non-sendable type 'ApplicationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/ChannelHandlers.swift:307:7: note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
305 | typealias Responder = (RequestContext, HTTPRequest) -> EventLoopFuture<HTTPResponse>
306 |
307 | class ApplicationHandler: ChannelInboundHandler {
| `- note: class 'ApplicationHandler' does not conform to the 'Sendable' protocol
308 | typealias InboundIn = HTTPRequest
309 | typealias OutboundOut = HTTPResponse
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Server.swift:63:93: warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | // It's important we use the same handler for all accepted channels.
62 | // The ControllerHandler is thread-safe!
63 | channel.pipeline.addHapClientHandlers(application: application, controller: device.controllerHandler!)
| `- warning: capture of 'device' with non-sendable type 'Device' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Server/Device.swift:24:14: note: class 'Device' does not conform to the 'Sendable' protocol
22 |
23 | // swiftlint:disable:next type_body_length
24 | public class Device {
| `- note: class 'Device' does not conform to the 'Sendable' protocol
25 | internal(set) public var name: String {
26 | didSet {
/Users/admin/builder/spi-builder-workspace/Sources/HAP/Utils/WeakObjectSet.swift:15:21: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
1 | // adapted from: http://stackoverflow.com/a/36184182
2 |
3 | class WeakObject<T: AnyObject>: Equatable, Hashable {
| `- note: 'T' previously declared here
4 | weak var object: T?
5 | init(_ object: T) {
:
13 | }
14 |
15 | static func == <T> (lhs: WeakObject<T>, rhs: WeakObject<T>) -> Bool {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
16 | lhs.object === rhs.object
17 | }
[1126/1133] Compiling HAPDemo createLogHandler.swift
[1127/1133] Compiling HAPDemo Delegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/HAPDemo/Delegate.swift:58:12: warning: main actor-isolated let 'device' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
57 | func printPairingInstructions() {
| `- note: add '@MainActor' to make instance method 'printPairingInstructions()' part of global actor 'MainActor'
58 | if device.isPaired {
| `- warning: main actor-isolated let 'device' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
59 | print()
60 | print(
/Users/admin/builder/spi-builder-workspace/Sources/HAPDemo/main.swift:43:5: note: let declared here
41 |
42 | // Attach those to the bridge device.
43 | let device = Device(
| `- note: let declared here
44 | bridgeInfo: Service.Info(name: "Bridge", serialNumber: "00001"),
45 | setupCode: "123-44-321",
/Users/admin/builder/spi-builder-workspace/Sources/HAPDemo/Delegate.swift:70:19: warning: main actor-isolated let 'device' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
55 | }
56 |
57 | func printPairingInstructions() {
| `- note: add '@MainActor' to make instance method 'printPairingInstructions()' part of global actor 'MainActor'
58 | if device.isPaired {
59 | print()
:
68 | print("Scan the following QR code using your iPhone to pair this device:")
69 | print()
70 | print(device.setupQRCode.asText)
| `- warning: main actor-isolated let 'device' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
71 | print()
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/HAPDemo/main.swift:43:5: note: let declared here
41 |
42 | // Attach those to the bridge device.
43 | let device = Device(
| `- note: let declared here
44 | bridgeInfo: Service.Info(name: "Bridge", serialNumber: "00001"),
45 | setupCode: "123-44-321",
[1128/1133] Compiling HAPDemo FoundationCompat.swift
[1129/1133] Emitting module HAPDemo
/Users/admin/builder/spi-builder-workspace/Sources/HAPDemo/main.swift:13:25: warning: converting non-sendable function value to '@Sendable (String) -> any LogHandler' may introduce data races
11 |
12 | fileprivate let logger = Logger(label: "bridge")
13 | LoggingSystem.bootstrap(createLogHandler)
| `- warning: converting non-sendable function value to '@Sendable (String) -> any LogHandler' may introduce data races
14 |
15 | #if DEBUG
[1130/1133] Compiling HAPDemo main.swift
/Users/admin/builder/spi-builder-workspace/Sources/HAPDemo/main.swift:13:25: warning: converting non-sendable function value to '@Sendable (String) -> any LogHandler' may introduce data races
11 |
12 | fileprivate let logger = Logger(label: "bridge")
13 | LoggingSystem.bootstrap(createLogHandler)
| `- warning: converting non-sendable function value to '@Sendable (String) -> any LogHandler' may introduce data races
14 |
15 | #if DEBUG
[1130/1133] Write Objects.LinkFileList
[1131/1133] Linking hap-demo
[1132/1133] Applying hap-demo
Build complete! (52.17s)
Build complete.
{
"dependencies" : [
{
"identity" : "srp",
"requirement" : {
"range" : [
{
"lower_bound" : "3.2.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Bouke/SRP.git"
},
{
"identity" : "regex",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/crossroadlabs/Regex.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.13.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-crypto",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-crypto.git"
}
],
"manifest_display_name" : "HAP",
"name" : "HAP",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
}
],
"products" : [
{
"name" : "HAP",
"targets" : [
"HAP"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "hap-demo",
"targets" : [
"HAPDemo"
],
"type" : {
"executable" : null
}
},
{
"name" : "hap-update",
"targets" : [
"HAPInspector"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "VaporHTTP",
"module_type" : "SwiftTarget",
"name" : "VaporHTTP",
"path" : "Sources/VaporHTTP",
"product_dependencies" : [
"NIO",
"NIOHTTP1",
"NIOFoundationCompat"
],
"product_memberships" : [
"HAP",
"hap-demo"
],
"sources" : [
"Body/HTTPBody.swift",
"Body/HTTPBodyRepresentable.swift",
"Body/HTTPBodyStorage.swift",
"Exports.swift",
"Message/HTTPHeaderName.swift",
"Message/HTTPHeaders.swift",
"Message/HTTPMessage.swift",
"Message/HTTPRequest.swift",
"Message/HTTPResponse.swift",
"Responder/HTTPServerResponder.swift",
"Utilities/Debug.swift",
"Utilities/RFC1123.swift",
"Utilities/RequestHandler.swift"
],
"target_dependencies" : [
"COperatingSystem"
],
"type" : "library"
},
{
"c99name" : "HAPTests",
"module_type" : "SwiftTarget",
"name" : "HAPTests",
"path" : "Tests/HAPTests",
"sources" : [
"AccessoriesTests.swift",
"CharacteristicTests.swift",
"DeviceTests.swift",
"EndpointTests.swift",
"FixedWithInteger+ExtensionsTests.swift",
"PairSetupControllerTests.swift",
"PairVerifyControllerTests.swift",
"PairingsEndpointTests.swift",
"Server/CryptographerTests.swift",
"StorageTests.swift",
"TLV8Tests.swift",
"Utils/MockContext.swift"
],
"target_dependencies" : [
"HAP"
],
"type" : "test"
},
{
"c99name" : "HAPInspector",
"module_type" : "SwiftTarget",
"name" : "HAPInspector",
"path" : "Sources/HAPInspector",
"product_memberships" : [
"hap-update"
],
"sources" : [
"Inspector.swift",
"main.swift"
],
"type" : "executable"
},
{
"c99name" : "HAPDemo",
"module_type" : "SwiftTarget",
"name" : "HAPDemo",
"path" : "Sources/HAPDemo",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"hap-demo"
],
"sources" : [
"Delegate.swift",
"FoundationCompat.swift",
"createLogHandler.swift",
"main.swift"
],
"target_dependencies" : [
"HAP"
],
"type" : "executable"
},
{
"c99name" : "HAP",
"module_type" : "SwiftTarget",
"name" : "HAP",
"path" : "Sources/HAP",
"product_dependencies" : [
"SRP",
"Logging",
"Regex",
"Crypto"
],
"product_memberships" : [
"HAP",
"hap-demo"
],
"sources" : [
"Accessories/AirQualitySensor.swift",
"Accessories/BatteryService.swift",
"Accessories/BridgingState.swift",
"Accessories/ContactSensor.swift",
"Accessories/Door.swift",
"Accessories/Fan.swift",
"Accessories/GarageDoorOpener.swift",
"Accessories/HumiditySensor.swift",
"Accessories/LightSensor.swift",
"Accessories/Lightbulb.swift",
"Accessories/LockMechanism.swift",
"Accessories/MotionSensor.swift",
"Accessories/OccupancySensor.swift",
"Accessories/Outlet.swift",
"Accessories/SecuritySystem.swift",
"Accessories/SmokeSensor.swift",
"Accessories/Switch.swift",
"Accessories/Television.swift",
"Accessories/Thermometer.swift",
"Accessories/Thermostat.swift",
"Accessories/Window.swift",
"Accessories/WindowCovering.swift",
"Base/Accessory.swift",
"Base/AccessoryDelegate.swift",
"Base/Characteristic.swift",
"Base/CharacteristicValueType.swift",
"Base/Constants.swift",
"Base/Info.swift",
"Base/Predefined/AccessoryType.swift",
"Base/Predefined/CharacteristicFormat.swift",
"Base/Predefined/CharacteristicType.swift",
"Base/Predefined/CharacteristicUnit.swift",
"Base/Predefined/Characteristics/Characteristic.AccessoryFlags.swift",
"Base/Predefined/Characteristics/Characteristic.Active.swift",
"Base/Predefined/Characteristics/Characteristic.ActiveIdentifier.swift",
"Base/Predefined/Characteristics/Characteristic.ActivityInterval.swift",
"Base/Predefined/Characteristics/Characteristic.AdministratorOnlyAccess.swift",
"Base/Predefined/Characteristics/Characteristic.ApplicationMatchingIdentifier.swift",
"Base/Predefined/Characteristics/Characteristic.AssetUpdateReadiness.swift",
"Base/Predefined/Characteristics/Characteristic.AudioFeedback.swift",
"Base/Predefined/Characteristics/Characteristic.BatteryLevel.swift",
"Base/Predefined/Characteristics/Characteristic.Brightness.swift",
"Base/Predefined/Characteristics/Characteristic.CarbonDioxideDetected.swift",
"Base/Predefined/Characteristics/Characteristic.CarbonDioxideLevel.swift",
"Base/Predefined/Characteristics/Characteristic.CarbonDioxidePeakLevel.swift",
"Base/Predefined/Characteristics/Characteristic.CarbonMonoxideDetected.swift",
"Base/Predefined/Characteristics/Characteristic.CarbonMonoxideLevel.swift",
"Base/Predefined/Characteristics/Characteristic.CarbonMonoxidePeakLevel.swift",
"Base/Predefined/Characteristics/Characteristic.CcaEnergyDetectThreshold.swift",
"Base/Predefined/Characteristics/Characteristic.CcaSignalDetectThreshold.swift",
"Base/Predefined/Characteristics/Characteristic.CharacteristicValueActiveTransitionCount.swift",
"Base/Predefined/Characteristics/Characteristic.CharacteristicValueTransitionControl.swift",
"Base/Predefined/Characteristics/Characteristic.ChargingState.swift",
"Base/Predefined/Characteristics/Characteristic.ClosedCaptions.swift",
"Base/Predefined/Characteristics/Characteristic.ColorTemperature.swift",
"Base/Predefined/Characteristics/Characteristic.ConfiguredName.swift",
"Base/Predefined/Characteristics/Characteristic.ContactSensorState.swift",
"Base/Predefined/Characteristics/Characteristic.CoolingThresholdTemperature.swift",
"Base/Predefined/Characteristics/Characteristic.CryptoHash.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentAirPurifierState.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentAirQuality.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentDoorState.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentFanState.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentHeaterCoolerState.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentHeatingCoolingState.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentHorizontalTiltAngle.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentHumidifierDehumidifierState.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentLightLevel.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentMediaState.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentPosition.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentRelativeHumidity.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentSlatState.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentTemperature.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentTiltAngle.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentTransport.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentVerticalTiltAngle.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentVisibilityState.swift",
"Base/Predefined/Characteristics/Characteristic.CurrentWaterLevel.swift",
"Base/Predefined/Characteristics/Characteristic.DisplayOrder.swift",
"Base/Predefined/Characteristics/Characteristic.EventRetransmissionMaximum.swift",
"Base/Predefined/Characteristics/Characteristic.EventTransmissionCounters.swift",
"Base/Predefined/Characteristics/Characteristic.FilterChangeIndication.swift",
"Base/Predefined/Characteristics/Characteristic.FilterLifeLevel.swift",
"Base/Predefined/Characteristics/Characteristic.FilterResetChangeIndication.swift",
"Base/Predefined/Characteristics/Characteristic.FirmwareRevision.swift",
"Base/Predefined/Characteristics/Characteristic.FirmwareUpdateReadiness.swift",
"Base/Predefined/Characteristics/Characteristic.FirmwareUpdateStatus.swift",
"Base/Predefined/Characteristics/Characteristic.HardwareFinish.swift",
"Base/Predefined/Characteristics/Characteristic.HardwareRevision.swift",
"Base/Predefined/Characteristics/Characteristic.HeartBeat.swift",
"Base/Predefined/Characteristics/Characteristic.HeatingThresholdTemperature.swift",
"Base/Predefined/Characteristics/Characteristic.HoldPosition.swift",
"Base/Predefined/Characteristics/Characteristic.Hue.swift",
"Base/Predefined/Characteristics/Characteristic.Identifier.swift",
"Base/Predefined/Characteristics/Characteristic.Identify.swift",
"Base/Predefined/Characteristics/Characteristic.InUse.swift",
"Base/Predefined/Characteristics/Characteristic.InputDeviceType.swift",
"Base/Predefined/Characteristics/Characteristic.InputSourceType.swift",
"Base/Predefined/Characteristics/Characteristic.IsConfigured.swift",
"Base/Predefined/Characteristics/Characteristic.LabelIndex.swift",
"Base/Predefined/Characteristics/Characteristic.LabelNamespace.swift",
"Base/Predefined/Characteristics/Characteristic.LeakDetected.swift",
"Base/Predefined/Characteristics/Characteristic.LockControlPoint.swift",
"Base/Predefined/Characteristics/Characteristic.LockCurrentState.swift",
"Base/Predefined/Characteristics/Characteristic.LockLastKnownAction.swift",
"Base/Predefined/Characteristics/Characteristic.LockManagementAutoSecurityTimeout.swift",
"Base/Predefined/Characteristics/Characteristic.LockPhysicalControls.swift",
"Base/Predefined/Characteristics/Characteristic.LockTargetState.swift",
"Base/Predefined/Characteristics/Characteristic.Logs.swift",
"Base/Predefined/Characteristics/Characteristic.MacRetransmissionMaximum.swift",
"Base/Predefined/Characteristics/Characteristic.MacTransmissionCounters.swift",
"Base/Predefined/Characteristics/Characteristic.Manufacturer.swift",
"Base/Predefined/Characteristics/Characteristic.MaximumTransmitPower.swift",
"Base/Predefined/Characteristics/Characteristic.MetricsBufferFullState.swift",
"Base/Predefined/Characteristics/Characteristic.Model.swift",
"Base/Predefined/Characteristics/Characteristic.MotionDetected.swift",
"Base/Predefined/Characteristics/Characteristic.Mute.swift",
"Base/Predefined/Characteristics/Characteristic.Name.swift",
"Base/Predefined/Characteristics/Characteristic.NitrogenDioxideDensity.swift",
"Base/Predefined/Characteristics/Characteristic.ObstructionDetected.swift",
"Base/Predefined/Characteristics/Characteristic.OccupancyDetected.swift",
"Base/Predefined/Characteristics/Characteristic.OperatingStateResponse.swift",
"Base/Predefined/Characteristics/Characteristic.OutletInUse.swift",
"Base/Predefined/Characteristics/Characteristic.OzoneDensity.swift",
"Base/Predefined/Characteristics/Characteristic.PictureMode.swift",
"Base/Predefined/Characteristics/Characteristic.Ping.swift",
"Base/Predefined/Characteristics/Characteristic.Pm10Density.swift",
"Base/Predefined/Characteristics/Characteristic.Pm25Density.swift",
"Base/Predefined/Characteristics/Characteristic.PositionState.swift",
"Base/Predefined/Characteristics/Characteristic.PowerModeSelection.swift",
"Base/Predefined/Characteristics/Characteristic.PowerState.swift",
"Base/Predefined/Characteristics/Characteristic.ProductData.swift",
"Base/Predefined/Characteristics/Characteristic.ProgramMode.swift",
"Base/Predefined/Characteristics/Characteristic.ProgrammableSwitchEvent.swift",
"Base/Predefined/Characteristics/Characteristic.ProgrammableSwitchOutputState.swift",
"Base/Predefined/Characteristics/Characteristic.ReceivedSignalStrengthIndication.swift",
"Base/Predefined/Characteristics/Characteristic.ReceiverSensitivity.swift",
"Base/Predefined/Characteristics/Characteristic.RelativeHumidityDehumidifierThreshold.swift",
"Base/Predefined/Characteristics/Characteristic.RelativeHumidityHumidifierThreshold.swift",
"Base/Predefined/Characteristics/Characteristic.RemainingDuration.swift",
"Base/Predefined/Characteristics/Characteristic.RemoteKey.swift",
"Base/Predefined/Characteristics/Characteristic.RotationDirection.swift",
"Base/Predefined/Characteristics/Characteristic.RotationSpeed.swift",
"Base/Predefined/Characteristics/Characteristic.Saturation.swift",
"Base/Predefined/Characteristics/Characteristic.SecuritySystemAlarmType.swift",
"Base/Predefined/Characteristics/Characteristic.SecuritySystemCurrentState.swift",
"Base/Predefined/Characteristics/Characteristic.SecuritySystemTargetState.swift",
"Base/Predefined/Characteristics/Characteristic.SelectedDiagnosticsModes.swift",
"Base/Predefined/Characteristics/Characteristic.SerialNumber.swift",
"Base/Predefined/Characteristics/Characteristic.SetDuration.swift",
"Base/Predefined/Characteristics/Characteristic.SetupTransferTransport.swift",
"Base/Predefined/Characteristics/Characteristic.SignalToNoiseRatio.swift",
"Base/Predefined/Characteristics/Characteristic.SlatType.swift",
"Base/Predefined/Characteristics/Characteristic.SleepDiscoveryMode.swift",
"Base/Predefined/Characteristics/Characteristic.SleepInterval.swift",
"Base/Predefined/Characteristics/Characteristic.SmokeDetected.swift",
"Base/Predefined/Characteristics/Characteristic.SoftwareRevision.swift",
"Base/Predefined/Characteristics/Characteristic.StagedFirmwareVersion.swift",
"Base/Predefined/Characteristics/Characteristic.StatusActive.swift",
"Base/Predefined/Characteristics/Characteristic.StatusFault.swift",
"Base/Predefined/Characteristics/Characteristic.StatusLowBattery.swift",
"Base/Predefined/Characteristics/Characteristic.StatusTampered.swift",
"Base/Predefined/Characteristics/Characteristic.SulphurDioxideDensity.swift",
"Base/Predefined/Characteristics/Characteristic.SupportedAssetTypes.swift",
"Base/Predefined/Characteristics/Characteristic.SupportedCharacteristicValueTransitionConfiguration.swift",
"Base/Predefined/Characteristics/Characteristic.SupportedDiagnosticsModes.swift",
"Base/Predefined/Characteristics/Characteristic.SupportedDiagnosticsSnapshot.swift",
"Base/Predefined/Characteristics/Characteristic.SupportedFirmwareUpdateConfiguration.swift",
"Base/Predefined/Characteristics/Characteristic.SupportedMetrics.swift",
"Base/Predefined/Characteristics/Characteristic.SupportedTransferTransportConfiguration.swift",
"Base/Predefined/Characteristics/Characteristic.SwingMode.swift",
"Base/Predefined/Characteristics/Characteristic.TapType.swift",
"Base/Predefined/Characteristics/Characteristic.TargetAirPurifierState.swift",
"Base/Predefined/Characteristics/Characteristic.TargetDoorState.swift",
"Base/Predefined/Characteristics/Characteristic.TargetFanState.swift",
"Base/Predefined/Characteristics/Characteristic.TargetHeaterCoolerState.swift",
"Base/Predefined/Characteristics/Characteristic.TargetHeatingCoolingState.swift",
"Base/Predefined/Characteristics/Characteristic.TargetHorizontalTiltAngle.swift",
"Base/Predefined/Characteristics/Characteristic.TargetHumidifierDehumidifierState.swift",
"Base/Predefined/Characteristics/Characteristic.TargetMediaState.swift",
"Base/Predefined/Characteristics/Characteristic.TargetPosition.swift",
"Base/Predefined/Characteristics/Characteristic.TargetRelativeHumidity.swift",
"Base/Predefined/Characteristics/Characteristic.TargetTemperature.swift",
"Base/Predefined/Characteristics/Characteristic.TargetTiltAngle.swift",
"Base/Predefined/Characteristics/Characteristic.TargetVerticalTiltAngle.swift",
"Base/Predefined/Characteristics/Characteristic.TargetVisibilityState.swift",
"Base/Predefined/Characteristics/Characteristic.TemperatureDisplayUnits.swift",
"Base/Predefined/Characteristics/Characteristic.ThreadControlPoint.swift",
"Base/Predefined/Characteristics/Characteristic.ThreadNodeCapabilities.swift",
"Base/Predefined/Characteristics/Characteristic.ThreadOpenthreadVersion.swift",
"Base/Predefined/Characteristics/Characteristic.ThreadStatus.swift",
"Base/Predefined/Characteristics/Characteristic.Token.swift",
"Base/Predefined/Characteristics/Characteristic.TransmitPower.swift",
"Base/Predefined/Characteristics/Characteristic.ValveType.swift",
"Base/Predefined/Characteristics/Characteristic.Version.swift",
"Base/Predefined/Characteristics/Characteristic.VolatileOrganicCompoundDensity.swift",
"Base/Predefined/Characteristics/Characteristic.Volume.swift",
"Base/Predefined/Characteristics/Characteristic.VolumeControlType.swift",
"Base/Predefined/Characteristics/Characteristic.VolumeSelector.swift",
"Base/Predefined/Characteristics/Characteristic.WiFiCapabilities.swift",
"Base/Predefined/Characteristics/Characteristic.WiFiConfigurationControl.swift",
"Base/Predefined/Enums.swift",
"Base/Predefined/Enums/Enums.Active.swift",
"Base/Predefined/Enums/Enums.CarbonDioxideDetected.swift",
"Base/Predefined/Enums/Enums.ChargingState.swift",
"Base/Predefined/Enums/Enums.ClosedCaptions.swift",
"Base/Predefined/Enums/Enums.ContactSensorState.swift",
"Base/Predefined/Enums/Enums.CurrentAirPurifierState.swift",
"Base/Predefined/Enums/Enums.CurrentAirQuality.swift",
"Base/Predefined/Enums/Enums.CurrentDoorState.swift",
"Base/Predefined/Enums/Enums.CurrentFanState.swift",
"Base/Predefined/Enums/Enums.CurrentHeaterCoolerState.swift",
"Base/Predefined/Enums/Enums.CurrentHeatingCoolingState.swift",
"Base/Predefined/Enums/Enums.CurrentHumidifierDehumidifierState.swift",
"Base/Predefined/Enums/Enums.CurrentSlatState.swift",
"Base/Predefined/Enums/Enums.CurrentVisibilityState.swift",
"Base/Predefined/Enums/Enums.FilterChangeIndication.swift",
"Base/Predefined/Enums/Enums.InputDeviceType.swift",
"Base/Predefined/Enums/Enums.InputSourceType.swift",
"Base/Predefined/Enums/Enums.IsConfigured.swift",
"Base/Predefined/Enums/Enums.LeakDetected.swift",
"Base/Predefined/Enums/Enums.LockCurrentState.swift",
"Base/Predefined/Enums/Enums.LockTargetState.swift",
"Base/Predefined/Enums/Enums.OccupancyDetected.swift",
"Base/Predefined/Enums/Enums.PictureMode.swift",
"Base/Predefined/Enums/Enums.PositionState.swift",
"Base/Predefined/Enums/Enums.PowerModeSelection.swift",
"Base/Predefined/Enums/Enums.RemoteKey.swift",
"Base/Predefined/Enums/Enums.RotationDirection.swift",
"Base/Predefined/Enums/Enums.SecuritySystemCurrentState.swift",
"Base/Predefined/Enums/Enums.SecuritySystemTargetState.swift",
"Base/Predefined/Enums/Enums.SleepDiscoveryMode.swift",
"Base/Predefined/Enums/Enums.SmokeDetected.swift",
"Base/Predefined/Enums/Enums.StatusLowBattery.swift",
"Base/Predefined/Enums/Enums.TargetAirPurifierState.swift",
"Base/Predefined/Enums/Enums.TargetDoorState.swift",
"Base/Predefined/Enums/Enums.TargetFanState.swift",
"Base/Predefined/Enums/Enums.TargetHeaterCoolerState.swift",
"Base/Predefined/Enums/Enums.TargetHeatingCoolingState.swift",
"Base/Predefined/Enums/Enums.TargetHumidifierDehumidifierState.swift",
"Base/Predefined/Enums/Enums.TargetMediaState.swift",
"Base/Predefined/Enums/Enums.TargetVisibilityState.swift",
"Base/Predefined/Enums/Enums.TemperatureDisplayUnits.swift",
"Base/Predefined/Enums/Enums.VolumeControlType.swift",
"Base/Predefined/Enums/Enums.VolumeSelector.swift",
"Base/Predefined/PredefinedCharacteristic.swift",
"Base/Predefined/ServiceType.swift",
"Base/Predefined/Services/Service.AccessoryMetrics.swift",
"Base/Predefined/Services/Service.AccessoryRuntimeInformation.swift",
"Base/Predefined/Services/Service.AirPurifier.swift",
"Base/Predefined/Services/Service.AirQualitySensor.swift",
"Base/Predefined/Services/Service.AssetUpdate.swift",
"Base/Predefined/Services/Service.Battery.swift",
"Base/Predefined/Services/Service.CarbonDioxideSensor.swift",
"Base/Predefined/Services/Service.CarbonMonoxideSensor.swift",
"Base/Predefined/Services/Service.ContactSensor.swift",
"Base/Predefined/Services/Service.Diagnostics.swift",
"Base/Predefined/Services/Service.Door.swift",
"Base/Predefined/Services/Service.Doorbell.swift",
"Base/Predefined/Services/Service.Fan.swift",
"Base/Predefined/Services/Service.FanV2.swift",
"Base/Predefined/Services/Service.Faucet.swift",
"Base/Predefined/Services/Service.FilterMaintenance.swift",
"Base/Predefined/Services/Service.FirmwareUpdate.swift",
"Base/Predefined/Services/Service.GarageDoorOpener.swift",
"Base/Predefined/Services/Service.HeaterCooler.swift",
"Base/Predefined/Services/Service.HumidifierDehumidifier.swift",
"Base/Predefined/Services/Service.HumiditySensor.swift",
"Base/Predefined/Services/Service.Info.swift",
"Base/Predefined/Services/Service.InputSource.swift",
"Base/Predefined/Services/Service.IrrigationSystem.swift",
"Base/Predefined/Services/Service.Label.swift",
"Base/Predefined/Services/Service.LeakSensor.swift",
"Base/Predefined/Services/Service.LightSensor.swift",
"Base/Predefined/Services/Service.Lightbulb.swift",
"Base/Predefined/Services/Service.LockManagement.swift",
"Base/Predefined/Services/Service.LockMechanism.swift",
"Base/Predefined/Services/Service.Microphone.swift",
"Base/Predefined/Services/Service.MotionSensor.swift",
"Base/Predefined/Services/Service.OccupancySensor.swift",
"Base/Predefined/Services/Service.Outlet.swift",
"Base/Predefined/Services/Service.SecuritySystem.swift",
"Base/Predefined/Services/Service.Slats.swift",
"Base/Predefined/Services/Service.SmokeSensor.swift",
"Base/Predefined/Services/Service.Speaker.swift",
"Base/Predefined/Services/Service.StatefulProgrammableSwitch.swift",
"Base/Predefined/Services/Service.StatelessProgrammableSwitch.swift",
"Base/Predefined/Services/Service.Switch.swift",
"Base/Predefined/Services/Service.TapManagement.swift",
"Base/Predefined/Services/Service.Television.swift",
"Base/Predefined/Services/Service.TemperatureSensor.swift",
"Base/Predefined/Services/Service.Thermostat.swift",
"Base/Predefined/Services/Service.ThreadTransport.swift",
"Base/Predefined/Services/Service.TransferTransportManagement.swift",
"Base/Predefined/Services/Service.Valve.swift",
"Base/Predefined/Services/Service.WiFiTransport.swift",
"Base/Predefined/Services/Service.Window.swift",
"Base/Predefined/Services/Service.WindowCovering.swift",
"Base/Service.swift",
"Controllers/PairSetupController.swift",
"Controllers/PairVerifyController.swift",
"Controllers/PairingsController.swift",
"Endpoints/HTTPExtensions.swift",
"Endpoints/Protocol.swift",
"Endpoints/accessories().swift",
"Endpoints/characteristics().swift",
"Endpoints/identify().swift",
"Endpoints/pairSetup().swift",
"Endpoints/pairVerify().swift",
"Endpoints/pairings().swift",
"Endpoints/root().swift",
"Security/Cryptographer.swift",
"Server/ChannelHandlers.swift",
"Server/Configuration.swift",
"Server/Device.SetupCode.swift",
"Server/Device.swift",
"Server/DeviceDelegate.swift",
"Server/JSON.swift",
"Server/Pairing.swift",
"Server/Server.swift",
"Server/Storage.swift",
"Utils/ByteBuffer+Extensions.swift",
"Utils/Crypto+Extensions.swift",
"Utils/Data+Extensions.swift",
"Utils/DataScanner.swift",
"Utils/Event.swift",
"Utils/FileManager+Extensions.swift",
"Utils/FixedWidthInteger+Extensions.swift",
"Utils/QRCode.swift",
"Utils/Sequence+Extensions.swift",
"Utils/String+padLeft.swift",
"Utils/TLV8.swift",
"Utils/WeakObjectSet.swift"
],
"target_dependencies" : [
"CQRCode",
"VaporHTTP"
],
"type" : "library"
},
{
"c99name" : "CQRCode",
"module_type" : "ClangTarget",
"name" : "CQRCode",
"path" : "Sources/CQRCode",
"product_memberships" : [
"HAP",
"hap-demo"
],
"sources" : [
"qrcode.c"
],
"type" : "library"
},
{
"c99name" : "COperatingSystem",
"module_type" : "SwiftTarget",
"name" : "COperatingSystem",
"path" : "Sources/COperatingSystem",
"product_memberships" : [
"HAP",
"hap-demo"
],
"sources" : [
"libc.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.