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 5.9 for macOS (SPM) on 12 May 2025 13:26:58 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.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:             5.9
Building package at path:  $PWD
https://github.com/emqx/CocoaMQTT.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Copying PrivacyInfo.xcprivacy
[1/23] Compiling MqttCocoaAsyncSocket MGCDAsyncUdpSocket.m
[2/23] Compiling MqttCocoaAsyncSocket MGCDAsyncSocket.m
[4/62] Emitting module Starscream
[5/64] Emitting module CocoaMQTT
[6/68] Compiling CocoaMQTT CocoaMQTTStorage.swift
[7/68] Compiling CocoaMQTT CocoaMQTTTimer.swift
[8/68] Compiling CocoaMQTT CocoaMQTTTypes.swift
[9/68] Compiling CocoaMQTT Frame.swift
[10/68] Compiling Starscream Transport.swift
[11/68] Compiling Starscream resource_bundle_accessor.swift
[12/68] Compiling CocoaMQTT FramePubRec.swift
[13/68] Compiling CocoaMQTT FramePubRel.swift
[16/68] Compiling CocoaMQTT MqttConnectProperties.swift
[17/68] Compiling CocoaMQTT MqttDecodeConnAck.swift
[18/68] Compiling CocoaMQTT MqttDecodePubAck.swift
[19/68] Compiling CocoaMQTT MqttDecodePubComp.swift
[20/68] Compiling CocoaMQTT FrameAuth.swift
[21/68] Compiling CocoaMQTT FrameConnAck.swift
[22/68] Compiling CocoaMQTT FrameConnect.swift
[23/68] Compiling CocoaMQTT FrameDisconnect.swift
[24/68] Compiling CocoaMQTT MqttDecodeUnsubAck.swift
[25/68] Compiling CocoaMQTT MqttPublishProperties.swift
[26/68] Compiling CocoaMQTT MqttSubscription.swift
[27/68] Compiling CocoaMQTT ThreadSafeDictionary.swift
[28/68] Compiling CocoaMQTT FrameSubscribe.swift
[29/68] Compiling CocoaMQTT FrameUnsubAck.swift
[30/68] Compiling CocoaMQTT FrameUnsubscribe.swift
[31/68] Compiling CocoaMQTT MqttAuthProperties.swift
[32/68] Compiling CocoaMQTT FramePingReq.swift
[33/68] Compiling CocoaMQTT FramePingResp.swift
[34/68] Compiling CocoaMQTT FramePubAck.swift
[35/68] Compiling CocoaMQTT FramePubComp.swift
[36/68] Compiling CocoaMQTT MqttDecodePubRec.swift
[37/68] Compiling CocoaMQTT MqttDecodePubRel.swift
[38/68] Compiling CocoaMQTT MqttDecodePublish.swift
[39/68] Compiling CocoaMQTT MqttDecodeSubAck.swift
[40/68] Compiling CocoaMQTT CocoaMQTTMessage.swift
[41/68] Compiling CocoaMQTT CocoaMQTTProperty.swift
[42/68] Compiling CocoaMQTT CocoaMQTTReader.swift
[43/68] Compiling CocoaMQTT CocoaMQTTReasonCode.swift
[44/68] Compiling CocoaMQTT CocoaMQTTSocket.swift
[51/68] Compiling CocoaMQTT CocoaMQTTDeliver.swift
[52/68] Compiling CocoaMQTT CocoaMQTTLogger.swift
[57/68] Compiling CocoaMQTT CocoaMQTT.swift
[58/68] Compiling CocoaMQTT CocoaMQTT5.swift
[59/68] Compiling CocoaMQTT CocoaMQTT5Message.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[69/70] Emitting module CocoaMQTTWebSocket
/Users/admin/builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:459:1: error: type 'CocoaMQTTWebSocket.StarscreamConnection' does not conform to protocol 'WebSocketDelegate'
extension CocoaMQTTWebSocket.StarscreamConnection: WebSocketDelegate {
^
/Users/admin/builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:460:17: note: candidate has non-matching type '(WebSocketEvent, WebSocket) -> ()'
    public func didReceive(event: Starscream.WebSocketEvent, client: Starscream.WebSocket) {
                ^
/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) -> ()'
    func didReceive(event: WebSocketEvent, client: WebSocketClient)
         ^
[70/70] 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'
extension CocoaMQTTWebSocket.StarscreamConnection: WebSocketDelegate {
^
/Users/admin/builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:460:17: note: candidate has non-matching type '(WebSocketEvent, WebSocket) -> ()'
    public func didReceive(event: Starscream.WebSocketEvent, client: Starscream.WebSocket) {
                ^
/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) -> ()'
    func didReceive(event: WebSocketEvent, client: WebSocketClient)
         ^
error: fatalError
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 (1.72s)
Fetched https://github.com/leeway1208/MqttCocoaAsyncSocket (1.72s)
Computing version for https://github.com/leeway1208/MqttCocoaAsyncSocket
Computed https://github.com/leeway1208/MqttCocoaAsyncSocket at 1.0.8 (0.47s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.46s)
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
BUILD FAILURE 5.9 macosSpm