The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SwiftMQTT, reference 3.0.1 (e412d4), with Swift 6.0 for Linux on 16 Sep 2024 00:49:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aciidgh/SwiftMQTT.git
Reference: 3.0.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/aciidgh/SwiftMQTT
 * tag               3.0.1      -> FETCH_HEAD
HEAD is now at e412d41 Cleanup build warnings
Cloned https://github.com/aciidgh/SwiftMQTT.git
Revision (git rev-parse @):
e412d414fbc03cabcee7fcbc8432aa1efb558c94
SUCCESS checkout https://github.com/aciidgh/SwiftMQTT.git at 3.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/aciidgh/SwiftMQTT.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/21] Compiling SwiftMQTT MQTTExtensions.swift
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:125:13: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
123 |         keepAliveTimer?.cancel()
124 |         delegateQueue.async { [weak self] in
125 |             self?.delegate?.mqttDidDisconnect(session: self!, error: error)
    |             `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |         }
127 |     }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:146:20: warning: capture of 'connAckPacket' with non-sendable type 'MQTTConnAckPacket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 |         case let connAckPacket as MQTTConnAckPacket:
145 |             delegateQueue.async { [weak self] in
146 |                 if connAckPacket.response == .connectionAccepted {
    |                    `- warning: capture of 'connAckPacket' with non-sendable type 'MQTTConnAckPacket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 |                     self?.connectionCompletionBlock?(MQTTSessionError.none)
148 |                 } else {
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/Models/MQTTConnAckPacket.swift:11:7: note: class 'MQTTConnAckPacket' does not conform to the 'Sendable' protocol
 9 | import Foundation
10 |
11 | class MQTTConnAckPacket: MQTTPacket {
   |       `- note: class 'MQTTConnAckPacket' does not conform to the 'Sendable' protocol
12 |
13 |     let sessionPresent: Bool
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:147:21: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
145 |             delegateQueue.async { [weak self] in
146 |                 if connAckPacket.response == .connectionAccepted {
147 |                     self?.connectionCompletionBlock?(MQTTSessionError.none)
    |                     `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 |                 } else {
149 |                     self?.connectionCompletionBlock?(MQTTSessionError.connectionError(connAckPacket.response))
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:163:17: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
161 |             let message = MQTTMessage(publishPacket: publishPacket)
162 |             delegateQueue.async { [weak self] in
163 |                 self?.delegate?.mqttDidReceive(message: message, from: self!)
    |                 `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |             }
165 |         case _ as MQTTPingResp:
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:163:57: warning: capture of 'message' with non-sendable type 'MQTTMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 |             let message = MQTTMessage(publishPacket: publishPacket)
162 |             delegateQueue.async { [weak self] in
163 |                 self?.delegate?.mqttDidReceive(message: message, from: self!)
    |                                                         `- warning: capture of 'message' with non-sendable type 'MQTTMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |             }
165 |         case _ as MQTTPingResp:
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/Models/MQTTMessage.swift:11:15: note: consider making struct 'MQTTMessage' conform to the 'Sendable' protocol
 9 | import Foundation
10 |
11 | public struct MQTTMessage {
   |               `- note: consider making struct 'MQTTMessage' conform to the 'Sendable' protocol
12 |     public let topic: String
13 |     public let payload: Data
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:167:17: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
165 |         case _ as MQTTPingResp:
166 |             delegateQueue.async { [weak self] in
167 |                 self?.delegate?.mqttDidAcknowledgePing(from: self!)
    |                 `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |             }
169 |         default:
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:181:35: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
179 |     private func callSuccessCompletionBlock(for messageId: UInt16) {
180 |         delegateQueue.async { [weak self] in
181 |             let completionBlock = self?.messagesCompletionBlocks.removeValue(forKey: messageId)
    |                                   `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 |             completionBlock?(MQTTSessionError.none)
183 |         }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:212:21: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
210 |             if send(connectPacket) == false {
211 |                 delegateQueue.async { [weak self] in
212 |                     self?.connectionCompletionBlock?(MQTTSessionError.socketError)
    |                     `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
213 |                     self?.connectionCompletionBlock = nil
214 |                 }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:227:17: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
225 |             cleanupDisconnection(.socketError)
226 |             delegateQueue.async { [weak self] in
227 |                 self?.connectionCompletionBlock?(MQTTSessionError.socketError)
    |                 `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 |             }
229 |         }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:94:6: error: Objective-C interoperability is disabled
 92 | extension MQTTSessionStream: StreamDelegate {
 93 |
 94 |     @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
    |      `- error: Objective-C interoperability is disabled
 95 |
 96 |         switch eventCode {
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:31:16: error: type 'Stream' has no member 'getStreamsToHost'
 29 |         var inputStream: InputStream?
 30 |         var outputStream: OutputStream?
 31 |         Stream.getStreamsToHost(withName: host, port: Int(port), inputStream: &inputStream, outputStream: &outputStream)
    |                `- error: type 'Stream' has no member 'getStreamsToHost'
 32 |
 33 |         let queueLabel = host.components(separatedBy: ".").reversed().joined(separator: ".") + ".stream\(port)"
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:51:70: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 49 |
 50 |             self.currentRunLoop = RunLoop.current
 51 |             inputStream?.schedule(in: self.currentRunLoop, forMode: .defaultRunLoopMode)
    |                                                                      `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 52 |             outputStream?.schedule(in: self.currentRunLoop, forMode: .defaultRunLoopMode)
 53 |
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:73:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 71 |         delegate = nil
 72 |         inputStream?.close()
 73 |         inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
    |                                                             `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 74 |         outputStream?.close()
 75 |         outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:75:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 73 |         inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
 74 |         outputStream?.close()
 75 |         outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
    |                                                              `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 76 |     }
 77 |
[4/21] Compiling SwiftMQTT MQTTSession.swift
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:125:13: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
123 |         keepAliveTimer?.cancel()
124 |         delegateQueue.async { [weak self] in
125 |             self?.delegate?.mqttDidDisconnect(session: self!, error: error)
    |             `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |         }
127 |     }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:146:20: warning: capture of 'connAckPacket' with non-sendable type 'MQTTConnAckPacket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 |         case let connAckPacket as MQTTConnAckPacket:
145 |             delegateQueue.async { [weak self] in
146 |                 if connAckPacket.response == .connectionAccepted {
    |                    `- warning: capture of 'connAckPacket' with non-sendable type 'MQTTConnAckPacket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 |                     self?.connectionCompletionBlock?(MQTTSessionError.none)
148 |                 } else {
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/Models/MQTTConnAckPacket.swift:11:7: note: class 'MQTTConnAckPacket' does not conform to the 'Sendable' protocol
 9 | import Foundation
10 |
11 | class MQTTConnAckPacket: MQTTPacket {
   |       `- note: class 'MQTTConnAckPacket' does not conform to the 'Sendable' protocol
12 |
13 |     let sessionPresent: Bool
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:147:21: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
145 |             delegateQueue.async { [weak self] in
146 |                 if connAckPacket.response == .connectionAccepted {
147 |                     self?.connectionCompletionBlock?(MQTTSessionError.none)
    |                     `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 |                 } else {
149 |                     self?.connectionCompletionBlock?(MQTTSessionError.connectionError(connAckPacket.response))
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:163:17: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
161 |             let message = MQTTMessage(publishPacket: publishPacket)
162 |             delegateQueue.async { [weak self] in
163 |                 self?.delegate?.mqttDidReceive(message: message, from: self!)
    |                 `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |             }
165 |         case _ as MQTTPingResp:
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:163:57: warning: capture of 'message' with non-sendable type 'MQTTMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 |             let message = MQTTMessage(publishPacket: publishPacket)
162 |             delegateQueue.async { [weak self] in
163 |                 self?.delegate?.mqttDidReceive(message: message, from: self!)
    |                                                         `- warning: capture of 'message' with non-sendable type 'MQTTMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |             }
165 |         case _ as MQTTPingResp:
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/Models/MQTTMessage.swift:11:15: note: consider making struct 'MQTTMessage' conform to the 'Sendable' protocol
 9 | import Foundation
10 |
11 | public struct MQTTMessage {
   |               `- note: consider making struct 'MQTTMessage' conform to the 'Sendable' protocol
12 |     public let topic: String
13 |     public let payload: Data
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:167:17: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
165 |         case _ as MQTTPingResp:
166 |             delegateQueue.async { [weak self] in
167 |                 self?.delegate?.mqttDidAcknowledgePing(from: self!)
    |                 `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |             }
169 |         default:
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:181:35: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
179 |     private func callSuccessCompletionBlock(for messageId: UInt16) {
180 |         delegateQueue.async { [weak self] in
181 |             let completionBlock = self?.messagesCompletionBlocks.removeValue(forKey: messageId)
    |                                   `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 |             completionBlock?(MQTTSessionError.none)
183 |         }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:212:21: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
210 |             if send(connectPacket) == false {
211 |                 delegateQueue.async { [weak self] in
212 |                     self?.connectionCompletionBlock?(MQTTSessionError.socketError)
    |                     `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
213 |                     self?.connectionCompletionBlock = nil
214 |                 }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:227:17: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
225 |             cleanupDisconnection(.socketError)
226 |             delegateQueue.async { [weak self] in
227 |                 self?.connectionCompletionBlock?(MQTTSessionError.socketError)
    |                 `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 |             }
229 |         }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:94:6: error: Objective-C interoperability is disabled
 92 | extension MQTTSessionStream: StreamDelegate {
 93 |
 94 |     @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
    |      `- error: Objective-C interoperability is disabled
 95 |
 96 |         switch eventCode {
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:31:16: error: type 'Stream' has no member 'getStreamsToHost'
 29 |         var inputStream: InputStream?
 30 |         var outputStream: OutputStream?
 31 |         Stream.getStreamsToHost(withName: host, port: Int(port), inputStream: &inputStream, outputStream: &outputStream)
    |                `- error: type 'Stream' has no member 'getStreamsToHost'
 32 |
 33 |         let queueLabel = host.components(separatedBy: ".").reversed().joined(separator: ".") + ".stream\(port)"
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:51:70: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 49 |
 50 |             self.currentRunLoop = RunLoop.current
 51 |             inputStream?.schedule(in: self.currentRunLoop, forMode: .defaultRunLoopMode)
    |                                                                      `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 52 |             outputStream?.schedule(in: self.currentRunLoop, forMode: .defaultRunLoopMode)
 53 |
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:73:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 71 |         delegate = nil
 72 |         inputStream?.close()
 73 |         inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
    |                                                             `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 74 |         outputStream?.close()
 75 |         outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:75:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 73 |         inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
 74 |         outputStream?.close()
 75 |         outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
    |                                                              `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 76 |     }
 77 |
[5/21] Compiling SwiftMQTT MQTTSessionStream.swift
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:125:13: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
123 |         keepAliveTimer?.cancel()
124 |         delegateQueue.async { [weak self] in
125 |             self?.delegate?.mqttDidDisconnect(session: self!, error: error)
    |             `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |         }
127 |     }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:146:20: warning: capture of 'connAckPacket' with non-sendable type 'MQTTConnAckPacket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 |         case let connAckPacket as MQTTConnAckPacket:
145 |             delegateQueue.async { [weak self] in
146 |                 if connAckPacket.response == .connectionAccepted {
    |                    `- warning: capture of 'connAckPacket' with non-sendable type 'MQTTConnAckPacket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 |                     self?.connectionCompletionBlock?(MQTTSessionError.none)
148 |                 } else {
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/Models/MQTTConnAckPacket.swift:11:7: note: class 'MQTTConnAckPacket' does not conform to the 'Sendable' protocol
 9 | import Foundation
10 |
11 | class MQTTConnAckPacket: MQTTPacket {
   |       `- note: class 'MQTTConnAckPacket' does not conform to the 'Sendable' protocol
12 |
13 |     let sessionPresent: Bool
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:147:21: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
145 |             delegateQueue.async { [weak self] in
146 |                 if connAckPacket.response == .connectionAccepted {
147 |                     self?.connectionCompletionBlock?(MQTTSessionError.none)
    |                     `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 |                 } else {
149 |                     self?.connectionCompletionBlock?(MQTTSessionError.connectionError(connAckPacket.response))
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:163:17: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
161 |             let message = MQTTMessage(publishPacket: publishPacket)
162 |             delegateQueue.async { [weak self] in
163 |                 self?.delegate?.mqttDidReceive(message: message, from: self!)
    |                 `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |             }
165 |         case _ as MQTTPingResp:
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:163:57: warning: capture of 'message' with non-sendable type 'MQTTMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 |             let message = MQTTMessage(publishPacket: publishPacket)
162 |             delegateQueue.async { [weak self] in
163 |                 self?.delegate?.mqttDidReceive(message: message, from: self!)
    |                                                         `- warning: capture of 'message' with non-sendable type 'MQTTMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |             }
165 |         case _ as MQTTPingResp:
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/Models/MQTTMessage.swift:11:15: note: consider making struct 'MQTTMessage' conform to the 'Sendable' protocol
 9 | import Foundation
10 |
11 | public struct MQTTMessage {
   |               `- note: consider making struct 'MQTTMessage' conform to the 'Sendable' protocol
12 |     public let topic: String
13 |     public let payload: Data
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:167:17: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
165 |         case _ as MQTTPingResp:
166 |             delegateQueue.async { [weak self] in
167 |                 self?.delegate?.mqttDidAcknowledgePing(from: self!)
    |                 `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 |             }
169 |         default:
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:181:35: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
179 |     private func callSuccessCompletionBlock(for messageId: UInt16) {
180 |         delegateQueue.async { [weak self] in
181 |             let completionBlock = self?.messagesCompletionBlocks.removeValue(forKey: messageId)
    |                                   `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
182 |             completionBlock?(MQTTSessionError.none)
183 |         }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:212:21: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
210 |             if send(connectPacket) == false {
211 |                 delegateQueue.async { [weak self] in
212 |                     self?.connectionCompletionBlock?(MQTTSessionError.socketError)
    |                     `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
213 |                     self?.connectionCompletionBlock = nil
214 |                 }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSession.swift:227:17: warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | public typealias MQTTSessionCompletionBlock = (_ error: MQTTSessionError) -> Void
 18 |
 19 | open class MQTTSession {
    |            `- note: class 'MQTTSession' does not conform to the 'Sendable' protocol
 20 |
 21 |     let host: String
    :
225 |             cleanupDisconnection(.socketError)
226 |             delegateQueue.async { [weak self] in
227 |                 self?.connectionCompletionBlock?(MQTTSessionError.socketError)
    |                 `- warning: capture of 'self' with non-sendable type 'MQTTSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 |             }
229 |         }
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:94:6: error: Objective-C interoperability is disabled
 92 | extension MQTTSessionStream: StreamDelegate {
 93 |
 94 |     @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
    |      `- error: Objective-C interoperability is disabled
 95 |
 96 |         switch eventCode {
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:31:16: error: type 'Stream' has no member 'getStreamsToHost'
 29 |         var inputStream: InputStream?
 30 |         var outputStream: OutputStream?
 31 |         Stream.getStreamsToHost(withName: host, port: Int(port), inputStream: &inputStream, outputStream: &outputStream)
    |                `- error: type 'Stream' has no member 'getStreamsToHost'
 32 |
 33 |         let queueLabel = host.components(separatedBy: ".").reversed().joined(separator: ".") + ".stream\(port)"
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:51:70: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 49 |
 50 |             self.currentRunLoop = RunLoop.current
 51 |             inputStream?.schedule(in: self.currentRunLoop, forMode: .defaultRunLoopMode)
    |                                                                      `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 52 |             outputStream?.schedule(in: self.currentRunLoop, forMode: .defaultRunLoopMode)
 53 |
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:73:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 71 |         delegate = nil
 72 |         inputStream?.close()
 73 |         inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
    |                                                             `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 74 |         outputStream?.close()
 75 |         outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:75:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 73 |         inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
 74 |         outputStream?.close()
 75 |         outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
    |                                                              `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
 76 |     }
 77 |
[6/23] Compiling SwiftMQTT MQTTPubAck.swift
[7/23] Compiling SwiftMQTT MQTTPubMsg.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/23] Compiling SwiftMQTT MQTTConnAckPacket.swift
[9/23] Compiling SwiftMQTT MQTTConnectPacket.swift
[10/23] Compiling SwiftMQTT MQTTDisconnectPacket.swift
[11/23] Compiling SwiftMQTT MQTTPacketFixedHeader.swift
[12/23] Compiling SwiftMQTT MQTTPingPacket.swift
[13/23] Compiling SwiftMQTT MQTTPingResp.swift
[14/23] Emitting module SwiftMQTT
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:94:6: error: Objective-C interoperability is disabled
 92 | extension MQTTSessionStream: StreamDelegate {
 93 |
 94 |     @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
    |      `- error: Objective-C interoperability is disabled
 95 |
 96 |         switch eventCode {
[15/23] Compiling SwiftMQTT MQTTSubAckPacket.swift
[16/23] Compiling SwiftMQTT MQTTSubPacket.swift
[17/23] Compiling SwiftMQTT MQTTPublishPacket.swift
[18/23] Compiling SwiftMQTT MQTTStreamable.swift
[19/23] Compiling SwiftMQTT MQTTMessage.swift
[20/23] Compiling SwiftMQTT MQTTPacket.swift
[21/23] Compiling SwiftMQTT MQTTPacketFactory.swift
[22/23] Compiling SwiftMQTT MQTTUnSubAckPacket.swift
[23/23] Compiling SwiftMQTT MQTTUnsubPacket.swift
BUILD FAILURE 6.0 linux