Build Information
Failed to build SwiftMQTT, reference master (6667e1
), with Swift 6.0 for Linux on 5 Nov 2024 01:22:17 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aciidgh/SwiftMQTT.git
Reference: master
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
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 6667e19 Bug/nil run loop (#41)
Cloned https://github.com/aciidgh/SwiftMQTT.git
Revision (git rev-parse @):
6667e19b0d63f00cfe7769b133ab95b1bbbf136a
SUCCESS checkout https://github.com/aciidgh/SwiftMQTT.git at master
========================================
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-4606859-0":/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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/21] Emitting module SwiftMQTT
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:95:6: error: Objective-C interoperability is disabled
93 | extension MQTTSessionStream: StreamDelegate {
94 |
95 | @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
| `- error: Objective-C interoperability is disabled
96 |
97 | switch eventCode {
[4/23] 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:95:6: error: Objective-C interoperability is disabled
93 | extension MQTTSessionStream: StreamDelegate {
94 |
95 | @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
| `- error: Objective-C interoperability is disabled
96 |
97 | 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:71: 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:74:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
72 | guard let currentRunLoop = currentRunLoop else { return }
73 | inputStream?.close()
74 | inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
| `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
75 | outputStream?.close()
76 | outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:76:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
74 | inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
75 | outputStream?.close()
76 | outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
| `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
77 | }
78 |
[5/23] 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:95:6: error: Objective-C interoperability is disabled
93 | extension MQTTSessionStream: StreamDelegate {
94 |
95 | @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
| `- error: Objective-C interoperability is disabled
96 |
97 | 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:71: 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:74:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
72 | guard let currentRunLoop = currentRunLoop else { return }
73 | inputStream?.close()
74 | inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
| `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
75 | outputStream?.close()
76 | outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:76:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
74 | inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
75 | outputStream?.close()
76 | outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
| `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
77 | }
78 |
[6/23] 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:95:6: error: Objective-C interoperability is disabled
93 | extension MQTTSessionStream: StreamDelegate {
94 |
95 | @objc internal func stream(_ aStream: Stream, handle eventCode: Stream.Event) {
| `- error: Objective-C interoperability is disabled
96 |
97 | 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:71: 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:74:61: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
72 | guard let currentRunLoop = currentRunLoop else { return }
73 | inputStream?.close()
74 | inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
| `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
75 | outputStream?.close()
76 | outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
/host/spi-builder-workspace/SwiftMQTT/SwiftMQTT/MQTTSessionStream.swift:76:62: error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
74 | inputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
75 | outputStream?.close()
76 | outputStream?.remove(from: currentRunLoop, forMode: .defaultRunLoopMode)
| `- error: type 'RunLoop.Mode' has no member 'defaultRunLoopMode'
77 | }
78 |
[7/23] Compiling SwiftMQTT MQTTPacketFixedHeader.swift
[8/23] Compiling SwiftMQTT MQTTPingPacket.swift
[9/23] Compiling SwiftMQTT MQTTPingResp.swift
[10/23] Compiling SwiftMQTT MQTTSubAckPacket.swift
[11/23] Compiling SwiftMQTT MQTTSubPacket.swift
[12/23] Compiling SwiftMQTT MQTTUnSubAckPacket.swift
[13/23] Compiling SwiftMQTT MQTTUnsubPacket.swift
[14/23] Compiling SwiftMQTT MQTTPublishPacket.swift
[15/23] Compiling SwiftMQTT MQTTStreamable.swift
[16/23] Compiling SwiftMQTT MQTTPubAck.swift
[17/23] Compiling SwiftMQTT MQTTPubMsg.swift
[18/23] Compiling SwiftMQTT MQTTConnAckPacket.swift
[19/23] Compiling SwiftMQTT MQTTConnectPacket.swift
[20/23] Compiling SwiftMQTT MQTTDisconnectPacket.swift
[21/23] Compiling SwiftMQTT MQTTMessage.swift
[22/23] Compiling SwiftMQTT MQTTPacket.swift
[23/23] Compiling SwiftMQTT MQTTPacketFactory.swift
BUILD FAILURE 6.0 linux