Build Information
Failed to build SwiftMQTT, reference 3.0.1 (e412d4), with Swift 6.1 for Android on 29 May 2025 09:46:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/aciidgh/SwiftMQTT.git
https://github.com/aciidgh/SwiftMQTT.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "SwiftMQTT",
"name" : "SwiftMQTT",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftMQTT",
"targets" : [
"SwiftMQTT"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftMQTTTests",
"module_type" : "SwiftTarget",
"name" : "SwiftMQTTTests",
"path" : "SwiftMQTT/SwiftMQTTTests",
"sources" : [
"SwiftMQTTTests.swift"
],
"target_dependencies" : [
"SwiftMQTT"
],
"type" : "test"
},
{
"c99name" : "SwiftMQTT",
"module_type" : "SwiftTarget",
"name" : "SwiftMQTT",
"path" : "SwiftMQTT/SwiftMQTT",
"product_memberships" : [
"SwiftMQTT"
],
"sources" : [
"MQTTExtensions.swift",
"MQTTSession.swift",
"MQTTSessionStream.swift",
"Models/MQTTConnAckPacket.swift",
"Models/MQTTConnectPacket.swift",
"Models/MQTTDisconnectPacket.swift",
"Models/MQTTMessage.swift",
"Models/MQTTPacket.swift",
"Models/MQTTPacketFactory.swift",
"Models/MQTTPacketFixedHeader.swift",
"Models/MQTTPingPacket.swift",
"Models/MQTTPingResp.swift",
"Models/MQTTPubAck.swift",
"Models/MQTTPubMsg.swift",
"Models/MQTTPublishPacket.swift",
"Models/MQTTStreamable.swift",
"Models/MQTTSubAckPacket.swift",
"Models/MQTTSubPacket.swift",
"Models/MQTTUnSubAckPacket.swift",
"Models/MQTTUnsubPacket.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-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: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 {
[4/23] Compiling SwiftMQTT MQTTUnSubAckPacket.swift
[5/23] Compiling SwiftMQTT MQTTUnsubPacket.swift
[6/23] Compiling SwiftMQTT MQTTPubAck.swift
[7/23] Compiling SwiftMQTT MQTTPubMsg.swift
[8/23] Compiling SwiftMQTT MQTTPublishPacket.swift
[9/23] Compiling SwiftMQTT MQTTStreamable.swift
[10/23] Compiling SwiftMQTT MQTTMessage.swift
[11/23] Compiling SwiftMQTT MQTTPacket.swift
[12/23] Compiling SwiftMQTT MQTTPacketFactory.swift
[13/23] Compiling SwiftMQTT MQTTSubAckPacket.swift
[14/23] Compiling SwiftMQTT MQTTSubPacket.swift
[15/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: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 |
[16/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: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 |
[17/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: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 |
[18/23] Compiling SwiftMQTT MQTTConnAckPacket.swift
[19/23] Compiling SwiftMQTT MQTTConnectPacket.swift
[20/23] Compiling SwiftMQTT MQTTDisconnectPacket.swift
[21/23] Compiling SwiftMQTT MQTTPacketFixedHeader.swift
[22/23] Compiling SwiftMQTT MQTTPingPacket.swift
[23/23] Compiling SwiftMQTT MQTTPingResp.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/20] 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 {
[3/22] Compiling SwiftMQTT MQTTMessage.swift
[4/22] Compiling SwiftMQTT MQTTPacket.swift
[5/22] Compiling SwiftMQTT MQTTPacketFactory.swift
[6/22] Compiling SwiftMQTT MQTTPacketFixedHeader.swift
[7/22] Compiling SwiftMQTT MQTTPingPacket.swift
[8/22] Compiling SwiftMQTT MQTTPingResp.swift
[9/22] Compiling SwiftMQTT MQTTSubAckPacket.swift
[10/22] Compiling SwiftMQTT MQTTSubPacket.swift
[11/22] Compiling SwiftMQTT MQTTConnAckPacket.swift
[12/22] Compiling SwiftMQTT MQTTConnectPacket.swift
[13/22] Compiling SwiftMQTT MQTTDisconnectPacket.swift
[14/22] Compiling SwiftMQTT MQTTPubAck.swift
[15/22] Compiling SwiftMQTT MQTTPubMsg.swift
[16/22] Compiling SwiftMQTT MQTTPublishPacket.swift
[17/22] Compiling SwiftMQTT MQTTStreamable.swift
[18/22] Compiling SwiftMQTT MQTTExtensions.swift
/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 |
[19/22] Compiling SwiftMQTT MQTTSession.swift
/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 |
[20/22] Compiling SwiftMQTT MQTTSessionStream.swift
/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 |
[21/22] Compiling SwiftMQTT MQTTUnSubAckPacket.swift
[22/22] Compiling SwiftMQTT MQTTUnsubPacket.swift
BUILD FAILURE 6.1 android