The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build CocoaMQTT, reference master (f183e8), with Swift 6.0 for macOS (SPM) on 12 May 2025 13:26:13 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.61.4
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.0
Building package at path:  $PWD
https://github.com/emqx/CocoaMQTT.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[1/7] Copying PrivacyInfo.xcprivacy
[2/7] Write sources
[4/7] Write swift-version-5BDAB9E9C0126B9D.txt
[5/27] Compiling MqttCocoaAsyncSocket MGCDAsyncSocket.m
[6/27] Compiling MqttCocoaAsyncSocket MGCDAsyncUdpSocket.m
[8/66] Emitting module CocoaMQTT
[9/70] Compiling CocoaMQTT MqttDecodeUnsubAck.swift
[10/70] Compiling CocoaMQTT MqttPublishProperties.swift
[11/70] Compiling CocoaMQTT MqttSubscription.swift
[12/70] Compiling CocoaMQTT ThreadSafeDictionary.swift
[13/70] Compiling CocoaMQTT FrameDisconnect.swift
[14/70] Compiling CocoaMQTT FramePingReq.swift
[16/72] Compiling CocoaMQTT FramePingResp.swift
[17/72] Compiling CocoaMQTT FramePubAck.swift
[18/72] Compiling CocoaMQTT FramePubComp.swift
[19/72] Compiling CocoaMQTT FrameAuth.swift
[20/72] Compiling CocoaMQTT FrameConnAck.swift
[21/72] Compiling CocoaMQTT FrameConnect.swift
[23/72] Compiling CocoaMQTT CocoaMQTTLogger.swift
[29/72] Compiling CocoaMQTT CocoaMQTTStorage.swift
[30/72] Compiling CocoaMQTT CocoaMQTTTimer.swift
[31/72] Compiling CocoaMQTT CocoaMQTTTypes.swift
[32/72] Compiling CocoaMQTT Frame.swift
[33/72] Compiling CocoaMQTT FrameSubscribe.swift
[34/72] Compiling CocoaMQTT FrameUnsubAck.swift
[35/72] Compiling CocoaMQTT FrameUnsubscribe.swift
[36/72] Compiling CocoaMQTT MqttAuthProperties.swift
[37/72] Compiling CocoaMQTT FramePubRec.swift
[38/72] Compiling CocoaMQTT FramePubRel.swift
[39/72] Compiling CocoaMQTT FramePublish.swift
[40/72] Compiling CocoaMQTT FrameSubAck.swift
[41/72] Compiling CocoaMQTT MqttConnectProperties.swift
[42/72] Compiling CocoaMQTT MqttDecodeConnAck.swift
[43/72] Compiling CocoaMQTT MqttDecodePubAck.swift
[44/72] Compiling CocoaMQTT MqttDecodePubComp.swift
[45/72] Compiling CocoaMQTT MqttDecodePubRec.swift
[46/72] Compiling Starscream Transport.swift
[47/72] Compiling Starscream resource_bundle_accessor.swift
[48/72] Compiling CocoaMQTT MqttDecodeSubAck.swift
[49/72] Compiling CocoaMQTT CocoaMQTT.swift
[50/72] Compiling CocoaMQTT CocoaMQTT5.swift
[51/72] Compiling CocoaMQTT CocoaMQTT5Message.swift
[52/72] Compiling CocoaMQTT CocoaMQTTDeliver.swift
[54/72] Compiling CocoaMQTT CocoaMQTTMessage.swift
[55/72] Compiling CocoaMQTT CocoaMQTTProperty.swift
[56/72] Compiling CocoaMQTT CocoaMQTTReader.swift
[57/72] Compiling CocoaMQTT CocoaMQTTReasonCode.swift
[58/72] Compiling CocoaMQTT CocoaMQTTSocket.swift
[61/72] Emitting module Starscream
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'
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'
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/daltoniam/Starscream.git
Fetching https://github.com/leeway1208/MqttCocoaAsyncSocket
[1/3847] Fetching mqttcocoaasyncsocket
[78/8880] Fetching mqttcocoaasyncsocket, starscream
Fetched https://github.com/daltoniam/Starscream.git from cache (1.11s)
[2501/3847] Fetching mqttcocoaasyncsocket
Fetched https://github.com/leeway1208/MqttCocoaAsyncSocket from cache (1.22s)
Computing version for https://github.com/leeway1208/MqttCocoaAsyncSocket
Computed https://github.com/leeway1208/MqttCocoaAsyncSocket at 1.0.8 (0.58s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.58s)
Creating working copy for https://github.com/leeway1208/MqttCocoaAsyncSocket
Working copy of https://github.com/leeway1208/MqttCocoaAsyncSocket resolved at 1.0.8
Creating working copy for https://github.com/daltoniam/Starscream.git
Working copy of https://github.com/daltoniam/Starscream.git resolved at 4.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.0 macosSpm