Build Information
Failed to build CocoaMQTT, reference master (f183e8
), with Swift 6.2 (beta) for macOS (SPM) on 23 Jun 2025 14:51:40 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/emqx/CocoaMQTT.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/emqx/CocoaMQTT
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at f183e8d Update README to include Swift Package Manager installation instructions
Cloned https://github.com/emqx/CocoaMQTT.git
Revision (git rev-parse @):
f183e8d03eb4f8c050d6b698417fa815012b8746
SUCCESS checkout https://github.com/emqx/CocoaMQTT.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/emqx/CocoaMQTT.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[0/7] Copying PrivacyInfo.xcprivacy
[0/7] Write sources
[4/7] Write swift-version-1EA4D86E10B52AF.txt
[5/27] Compiling MqttCocoaAsyncSocket MGCDAsyncUdpSocket.m
[6/27] Compiling MqttCocoaAsyncSocket MGCDAsyncSocket.m
[8/66] Emitting module Starscream
[9/68] Emitting module CocoaMQTT
[10/72] Compiling CocoaMQTT MqttDecodeUnsubAck.swift
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:39:17: warning: capture of non-sendable type 'K.Type' in an isolated closure
37 | set(newValue) {
38 | concurrentQueue.async(flags: .barrier) {[weak self] in
39 | self?.dictionary[key] = newValue
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:38:59: warning: capture of non-sendable type 'K.Type' in an isolated closure
36 | public subscript(key: K) -> V? {
37 | set(newValue) {
38 | concurrentQueue.async(flags: .barrier) {[weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
39 | self?.dictionary[key] = newValue
40 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:64:13: warning: capture of non-sendable type 'K.Type' in an isolated closure
62 | public func removeAll() {
63 | concurrentQueue.async(flags: .barrier) {[weak self] in
64 | self?.dictionary.removeAll()
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:63:55: warning: capture of non-sendable type 'K.Type' in an isolated closure
61 |
62 | public func removeAll() {
63 | concurrentQueue.async(flags: .barrier) {[weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
64 | self?.dictionary.removeAll()
65 | }
[11/72] Compiling CocoaMQTT MqttPublishProperties.swift
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:39:17: warning: capture of non-sendable type 'K.Type' in an isolated closure
37 | set(newValue) {
38 | concurrentQueue.async(flags: .barrier) {[weak self] in
39 | self?.dictionary[key] = newValue
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:38:59: warning: capture of non-sendable type 'K.Type' in an isolated closure
36 | public subscript(key: K) -> V? {
37 | set(newValue) {
38 | concurrentQueue.async(flags: .barrier) {[weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
39 | self?.dictionary[key] = newValue
40 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:64:13: warning: capture of non-sendable type 'K.Type' in an isolated closure
62 | public func removeAll() {
63 | concurrentQueue.async(flags: .barrier) {[weak self] in
64 | self?.dictionary.removeAll()
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:63:55: warning: capture of non-sendable type 'K.Type' in an isolated closure
61 |
62 | public func removeAll() {
63 | concurrentQueue.async(flags: .barrier) {[weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
64 | self?.dictionary.removeAll()
65 | }
[12/72] Compiling CocoaMQTT MqttSubscription.swift
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:39:17: warning: capture of non-sendable type 'K.Type' in an isolated closure
37 | set(newValue) {
38 | concurrentQueue.async(flags: .barrier) {[weak self] in
39 | self?.dictionary[key] = newValue
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:38:59: warning: capture of non-sendable type 'K.Type' in an isolated closure
36 | public subscript(key: K) -> V? {
37 | set(newValue) {
38 | concurrentQueue.async(flags: .barrier) {[weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
39 | self?.dictionary[key] = newValue
40 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:64:13: warning: capture of non-sendable type 'K.Type' in an isolated closure
62 | public func removeAll() {
63 | concurrentQueue.async(flags: .barrier) {[weak self] in
64 | self?.dictionary.removeAll()
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:63:55: warning: capture of non-sendable type 'K.Type' in an isolated closure
61 |
62 | public func removeAll() {
63 | concurrentQueue.async(flags: .barrier) {[weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
64 | self?.dictionary.removeAll()
65 | }
[13/72] Compiling CocoaMQTT ThreadSafeDictionary.swift
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:39:17: warning: capture of non-sendable type 'K.Type' in an isolated closure
37 | set(newValue) {
38 | concurrentQueue.async(flags: .barrier) {[weak self] in
39 | self?.dictionary[key] = newValue
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:38:59: warning: capture of non-sendable type 'K.Type' in an isolated closure
36 | public subscript(key: K) -> V? {
37 | set(newValue) {
38 | concurrentQueue.async(flags: .barrier) {[weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
39 | self?.dictionary[key] = newValue
40 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:64:13: warning: capture of non-sendable type 'K.Type' in an isolated closure
62 | public func removeAll() {
63 | concurrentQueue.async(flags: .barrier) {[weak self] in
64 | self?.dictionary.removeAll()
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Source/ThreadSafeDictionary.swift:63:55: warning: capture of non-sendable type 'K.Type' in an isolated closure
61 |
62 | public func removeAll() {
63 | concurrentQueue.async(flags: .barrier) {[weak self] in
| `- warning: capture of non-sendable type 'K.Type' in an isolated closure
64 | self?.dictionary.removeAll()
65 | }
[14/72] Compiling Starscream Transport.swift
[15/72] Compiling Starscream resource_bundle_accessor.swift
[16/72] Compiling CocoaMQTT CocoaMQTTStorage.swift
[17/72] Compiling CocoaMQTT CocoaMQTTTimer.swift
[18/72] Compiling CocoaMQTT CocoaMQTTTypes.swift
[19/72] Compiling CocoaMQTT Frame.swift
[20/72] Compiling CocoaMQTT CocoaMQTTMessage.swift
[21/72] Compiling CocoaMQTT CocoaMQTTProperty.swift
[22/72] Compiling CocoaMQTT CocoaMQTTReader.swift
[23/72] Compiling CocoaMQTT CocoaMQTTReasonCode.swift
[24/72] Compiling CocoaMQTT CocoaMQTTSocket.swift
[25/72] Compiling CocoaMQTT FramePubRec.swift
[26/72] Compiling CocoaMQTT FramePubRel.swift
[27/72] Compiling CocoaMQTT FramePublish.swift
[28/72] Compiling CocoaMQTT FrameSubAck.swift
[29/72] Compiling CocoaMQTT CocoaMQTT.swift
[30/72] Compiling CocoaMQTT CocoaMQTT5.swift
[31/72] Compiling CocoaMQTT CocoaMQTT5Message.swift
[32/72] Compiling CocoaMQTT CocoaMQTTDeliver.swift
[33/72] Compiling CocoaMQTT CocoaMQTTLogger.swift
[34/72] Compiling CocoaMQTT FrameAuth.swift
[35/72] Compiling CocoaMQTT FrameConnAck.swift
[36/72] Compiling CocoaMQTT FrameConnect.swift
[37/72] Compiling CocoaMQTT FrameDisconnect.swift
[38/72] Compiling CocoaMQTT MqttConnectProperties.swift
[39/72] Compiling CocoaMQTT MqttDecodeConnAck.swift
[42/72] Compiling CocoaMQTT FramePingReq.swift
[43/72] Compiling CocoaMQTT FramePingResp.swift
[44/72] Compiling CocoaMQTT FramePubAck.swift
[45/72] Compiling CocoaMQTT FramePubComp.swift
[46/72] Compiling CocoaMQTT MqttDecodePubRec.swift
[47/72] Compiling CocoaMQTT MqttDecodePubRel.swift
[48/72] Compiling CocoaMQTT MqttDecodePublish.swift
[49/72] Compiling CocoaMQTT MqttDecodeSubAck.swift
[50/72] Compiling CocoaMQTT FrameSubscribe.swift
[51/72] Compiling CocoaMQTT FrameUnsubAck.swift
[52/72] Compiling CocoaMQTT FrameUnsubscribe.swift
[53/72] Compiling CocoaMQTT MqttAuthProperties.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[73/74] Emitting module CocoaMQTTWebSocket
/Users/admin/builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:459:1: error: type 'CocoaMQTTWebSocket.StarscreamConnection' does not conform to protocol 'WebSocketDelegate'
457 | }
458 |
459 | extension CocoaMQTTWebSocket.StarscreamConnection: WebSocketDelegate {
| |- error: type 'CocoaMQTTWebSocket.StarscreamConnection' does not conform to protocol 'WebSocketDelegate'
| `- note: add stubs for conformance
460 | public func didReceive(event: Starscream.WebSocketEvent, client: Starscream.WebSocket) {
| `- note: candidate has non-matching type '(WebSocketEvent, WebSocket) -> ()'
461 | switch event {
462 | case .connected(_):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Starscream/Sources/Starscream/WebSocket.swift:92:10: note: protocol requires function 'didReceive(event:client:)' with type '(WebSocketEvent, any WebSocketClient) -> ()'
90 |
91 | public protocol WebSocketDelegate: AnyObject {
92 | func didReceive(event: WebSocketEvent, client: WebSocketClient)
| `- note: protocol requires function 'didReceive(event:client:)' with type '(WebSocketEvent, any WebSocketClient) -> ()'
93 | }
94 |
[74/74] Compiling CocoaMQTTWebSocket CocoaMQTTWebSocket.swift
/Users/admin/builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:459:1: error: type 'CocoaMQTTWebSocket.StarscreamConnection' does not conform to protocol 'WebSocketDelegate'
457 | }
458 |
459 | extension CocoaMQTTWebSocket.StarscreamConnection: WebSocketDelegate {
| |- error: type 'CocoaMQTTWebSocket.StarscreamConnection' does not conform to protocol 'WebSocketDelegate'
| `- note: add stubs for conformance
460 | public func didReceive(event: Starscream.WebSocketEvent, client: Starscream.WebSocket) {
| `- note: candidate has non-matching type '(WebSocketEvent, WebSocket) -> ()'
461 | switch event {
462 | case .connected(_):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Starscream/Sources/Starscream/WebSocket.swift:92:10: note: protocol requires function 'didReceive(event:client:)' with type '(WebSocketEvent, any WebSocketClient) -> ()'
90 |
91 | public protocol WebSocketDelegate: AnyObject {
92 | func didReceive(event: WebSocketEvent, client: WebSocketClient)
| `- note: protocol requires function 'didReceive(event:client:)' with type '(WebSocketEvent, any WebSocketClient) -> ()'
93 | }
94 |
Fetching https://github.com/leeway1208/MqttCocoaAsyncSocket
Fetching https://github.com/daltoniam/Starscream.git
[1/3847] Fetching mqttcocoaasyncsocket
[540/8880] Fetching mqttcocoaasyncsocket, starscream
Fetched https://github.com/daltoniam/Starscream.git from cache (1.14s)
Fetched https://github.com/leeway1208/MqttCocoaAsyncSocket from cache (1.14s)
Computing version for https://github.com/leeway1208/MqttCocoaAsyncSocket
Computed https://github.com/leeway1208/MqttCocoaAsyncSocket at 1.0.8 (1.67s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.51s)
Creating working copy for https://github.com/daltoniam/Starscream.git
Working copy of https://github.com/daltoniam/Starscream.git resolved at 4.0.8
Creating working copy for https://github.com/leeway1208/MqttCocoaAsyncSocket
Working copy of https://github.com/leeway1208/MqttCocoaAsyncSocket resolved at 1.0.8
warning: 'starscream': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Starscream/Sources/Info.plist
BUILD FAILURE 6.2 macosSpm