Build Information
Failed to build CocoaMQTT, reference master (f183e8
), with Swift 5.10 for macOS (SPM) on 12 May 2025 13:26:06 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.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.10
Building package at path: $PWD
https://github.com/emqx/CocoaMQTT.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/7] Write sources
[3/7] Copying PrivacyInfo.xcprivacy
[4/7] Write swift-version-33747A42983211AE.txt
[5/27] Compiling MqttCocoaAsyncSocket MGCDAsyncUdpSocket.m
[6/27] Compiling MqttCocoaAsyncSocket MGCDAsyncSocket.m
[8/27] Emitting module Starscream
[9/68] Compiling CocoaMQTT MqttDecodePubRec.swift
[10/68] Compiling CocoaMQTT MqttDecodePubRel.swift
[11/68] Compiling CocoaMQTT MqttDecodePublish.swift
[12/68] Compiling CocoaMQTT MqttDecodeSubAck.swift
[13/72] Compiling CocoaMQTT FramePingResp.swift
[14/72] Compiling CocoaMQTT FramePubAck.swift
[15/72] Compiling CocoaMQTT FrameSubscribe.swift
[16/72] Compiling CocoaMQTT FrameUnsubAck.swift
[17/72] Compiling CocoaMQTT FrameUnsubscribe.swift
[18/72] Compiling CocoaMQTT MqttAuthProperties.swift
[19/72] Compiling CocoaMQTT MqttConnectProperties.swift
[20/72] Compiling CocoaMQTT MqttDecodeConnAck.swift
[21/72] Compiling CocoaMQTT MqttDecodePubAck.swift
[22/72] Compiling CocoaMQTT MqttDecodePubComp.swift
[23/72] Compiling CocoaMQTT FrameAuth.swift
[24/72] Compiling CocoaMQTT FrameConnAck.swift
[25/72] Compiling CocoaMQTT FrameConnect.swift
[26/72] Compiling CocoaMQTT FrameDisconnect.swift
[27/72] Compiling CocoaMQTT CocoaMQTT.swift
[28/72] Compiling CocoaMQTT CocoaMQTT5.swift
[29/72] Compiling CocoaMQTT FramePingReq.swift
[32/72] Compiling CocoaMQTT FramePubComp.swift
[33/72] Compiling CocoaMQTT FramePubRec.swift
[34/72] Compiling CocoaMQTT FramePubRel.swift
[35/72] Compiling CocoaMQTT FramePublish.swift
[36/72] Compiling CocoaMQTT FrameSubAck.swift
[37/72] Compiling CocoaMQTT CocoaMQTT5Message.swift
[38/72] Compiling CocoaMQTT CocoaMQTTDeliver.swift
[39/72] Compiling CocoaMQTT CocoaMQTTLogger.swift
[40/72] Compiling CocoaMQTT CocoaMQTTMessage.swift
[44/72] Compiling CocoaMQTT CocoaMQTTTypes.swift
[45/72] Compiling CocoaMQTT Frame.swift
[48/72] Compiling CocoaMQTT CocoaMQTTStorage.swift
[49/72] Compiling CocoaMQTT CocoaMQTTTimer.swift
[50/72] Compiling CocoaMQTT CocoaMQTTReasonCode.swift
[51/72] Compiling CocoaMQTT CocoaMQTTSocket.swift
[52/72] Compiling CocoaMQTT CocoaMQTTProperty.swift
[53/72] Compiling CocoaMQTT CocoaMQTTReader.swift
[63/72] Compiling CocoaMQTT MqttDecodeUnsubAck.swift
[64/72] Compiling CocoaMQTT MqttPublishProperties.swift
[65/72] Compiling CocoaMQTT MqttSubscription.swift
[66/72] Compiling CocoaMQTT ThreadSafeDictionary.swift
[67/72] Emitting module CocoaMQTT
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'
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)
^
[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'
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
[579/8880] Fetching mqttcocoaasyncsocket, starscream
Fetched https://github.com/leeway1208/MqttCocoaAsyncSocket from cache (1.66s)
Fetched https://github.com/daltoniam/Starscream.git from cache (1.66s)
Computing version for https://github.com/leeway1208/MqttCocoaAsyncSocket
Computed https://github.com/leeway1208/MqttCocoaAsyncSocket at 1.0.8 (0.49s)
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/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
BUILD FAILURE 5.10 macosSpm