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 2.1.9 (22b98a), with Swift 5.9 for macOS (SPM) on 4 Apr 2025 04:56:16 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/emqx/CocoaMQTT.git
Reference: 2.1.9
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/emqx/CocoaMQTT
 * tag               2.1.9      -> FETCH_HEAD
HEAD is now at 22b98ac Fixed Frame Publish crash
Cloned https://github.com/emqx/CocoaMQTT.git
Revision (git rev-parse @):
22b98acc75bdca77917a1093bd3e1b45ef6e9718
SUCCESS checkout https://github.com/emqx/CocoaMQTT.git at 2.1.9
========================================
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 MGCDAsyncSocket.m
[2/23] Compiling MqttCocoaAsyncSocket MGCDAsyncUdpSocket.m
[4/62] Emitting module Starscream
[5/64] Emitting module CocoaMQTT
[6/68] Compiling CocoaMQTT FrameSubscribe.swift
[7/68] Compiling CocoaMQTT FrameUnsubAck.swift
[8/68] Compiling CocoaMQTT FrameUnsubscribe.swift
[9/68] Compiling CocoaMQTT MqttAuthProperties.swift
[10/68] Compiling CocoaMQTT FrameAuth.swift
[11/68] Compiling CocoaMQTT FrameConnAck.swift
[12/68] Compiling CocoaMQTT FrameConnect.swift
[13/68] Compiling CocoaMQTT FrameDisconnect.swift
[14/68] Compiling CocoaMQTT CocoaMQTTMessage.swift
[15/68] Compiling CocoaMQTT CocoaMQTTProperty.swift
[16/68] Compiling CocoaMQTT CocoaMQTTReader.swift
[17/68] Compiling CocoaMQTT CocoaMQTTReasonCode.swift
[18/68] Compiling CocoaMQTT CocoaMQTTSocket.swift
[19/68] Compiling Starscream Transport.swift
[20/68] Compiling Starscream resource_bundle_accessor.swift
[21/68] Compiling CocoaMQTT CocoaMQTTLogger.swift
[23/68] Compiling CocoaMQTT FramePubRec.swift
[26/68] Compiling CocoaMQTT FrameSubAck.swift
[27/68] Compiling CocoaMQTT FramePingReq.swift
[28/68] Compiling CocoaMQTT FramePingResp.swift
[29/68] Compiling CocoaMQTT FramePubAck.swift
[30/68] Compiling CocoaMQTT FramePubComp.swift
[31/68] Compiling CocoaMQTT MqttDecodeUnsubAck.swift
[32/68] Compiling CocoaMQTT MqttPublishProperties.swift
[33/68] Compiling CocoaMQTT MqttSubscription.swift
[34/68] Compiling CocoaMQTT ThreadSafeDictionary.swift
[39/68] Compiling CocoaMQTT CocoaMQTT5Message.swift
[40/68] Compiling CocoaMQTT CocoaMQTTDeliver.swift
[41/68] Compiling CocoaMQTT MqttDecodePubRec.swift
[42/68] Compiling CocoaMQTT MqttDecodePubRel.swift
[43/68] Compiling CocoaMQTT MqttDecodePublish.swift
[44/68] Compiling CocoaMQTT MqttDecodeSubAck.swift
[45/68] Compiling CocoaMQTT MqttConnectProperties.swift
[46/68] Compiling CocoaMQTT MqttDecodeConnAck.swift
[47/68] Compiling CocoaMQTT MqttDecodePubAck.swift
[48/68] Compiling CocoaMQTT MqttDecodePubComp.swift
[53/68] Compiling CocoaMQTT CocoaMQTT.swift
[54/68] Compiling CocoaMQTT CocoaMQTT5.swift
[60/68] Compiling CocoaMQTT CocoaMQTTStorage.swift
[61/68] Compiling CocoaMQTT CocoaMQTTTimer.swift
[62/68] Compiling CocoaMQTT CocoaMQTTTypes.swift
[63/68] Compiling CocoaMQTT Frame.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/leeway1208/MqttCocoaAsyncSocket
Fetching https://github.com/daltoniam/Starscream.git
[1/3847] Fetching mqttcocoaasyncsocket
[655/8874] Fetching mqttcocoaasyncsocket, starscream
Fetched https://github.com/daltoniam/Starscream.git (1.69s)
Fetched https://github.com/leeway1208/MqttCocoaAsyncSocket (1.69s)
Computing version for https://github.com/leeway1208/MqttCocoaAsyncSocket
Computed https://github.com/leeway1208/MqttCocoaAsyncSocket at 1.0.8 (0.53s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.49s)
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