Build Information
Failed to build CocoaMQTT, reference 2.1.9 (22b98a
), with Swift 5.10 for macOS (SPM) on 4 Apr 2025 04:56:52 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.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.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/66] Compiling CocoaMQTT FramePingReq.swift
[9/66] Compiling CocoaMQTT FramePingResp.swift
[10/66] Compiling CocoaMQTT FramePubAck.swift
[11/66] Compiling CocoaMQTT FramePubComp.swift
[12/70] Compiling CocoaMQTT MqttConnectProperties.swift
[13/70] Compiling CocoaMQTT MqttDecodeConnAck.swift
[14/70] Compiling CocoaMQTT MqttDecodePubAck.swift
[15/70] Compiling CocoaMQTT MqttDecodePubComp.swift
[16/70] Emitting module CocoaMQTT
[17/70] Compiling CocoaMQTT MqttDecodePubRec.swift
[18/70] Compiling CocoaMQTT MqttDecodePubRel.swift
[19/70] Compiling CocoaMQTT MqttDecodePublish.swift
[20/70] Compiling CocoaMQTT MqttDecodeSubAck.swift
[21/70] Compiling CocoaMQTT FrameSubscribe.swift
[22/70] Compiling CocoaMQTT FrameUnsubAck.swift
[23/70] Compiling CocoaMQTT FrameUnsubscribe.swift
[24/70] Compiling CocoaMQTT MqttAuthProperties.swift
[25/70] Compiling CocoaMQTT FramePubRec.swift
[26/70] Compiling CocoaMQTT FramePubRel.swift
[27/70] Compiling CocoaMQTT FramePublish.swift
[28/70] Compiling CocoaMQTT FrameSubAck.swift
[29/70] Compiling CocoaMQTT CocoaMQTTMessage.swift
[30/70] Compiling CocoaMQTT CocoaMQTTProperty.swift
[31/70] Compiling CocoaMQTT CocoaMQTTReader.swift
[32/70] Compiling CocoaMQTT CocoaMQTTReasonCode.swift
[33/70] Compiling CocoaMQTT CocoaMQTTSocket.swift
[34/70] Compiling CocoaMQTT FrameAuth.swift
[35/70] Compiling CocoaMQTT FrameConnAck.swift
[36/70] Compiling CocoaMQTT FrameConnect.swift
[37/70] Compiling CocoaMQTT FrameDisconnect.swift
[44/70] Compiling CocoaMQTT CocoaMQTTTypes.swift
[45/70] Compiling CocoaMQTT Frame.swift
[48/70] Compiling CocoaMQTT CocoaMQTT.swift
[49/70] Compiling CocoaMQTT CocoaMQTT5.swift
[50/70] Emitting module Starscream
[51/70] Compiling CocoaMQTT CocoaMQTTStorage.swift
[52/70] Compiling CocoaMQTT CocoaMQTTTimer.swift
[55/70] Compiling CocoaMQTT CocoaMQTT5Message.swift
[56/70] Compiling CocoaMQTT CocoaMQTTDeliver.swift
[57/70] Compiling CocoaMQTT CocoaMQTTLogger.swift
[67/72] Compiling Starscream Transport.swift
[68/72] Compiling Starscream resource_bundle_accessor.swift
[69/72] Compiling CocoaMQTT MqttDecodeUnsubAck.swift
[70/72] Compiling CocoaMQTT MqttPublishProperties.swift
[71/72] Compiling CocoaMQTT MqttSubscription.swift
[72/72] Compiling CocoaMQTT ThreadSafeDictionary.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'
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
[348/8874] Fetching mqttcocoaasyncsocket, starscream
Fetched https://github.com/leeway1208/MqttCocoaAsyncSocket from cache (1.65s)
Fetched https://github.com/daltoniam/Starscream.git from cache (1.65s)
Computing version for https://github.com/leeway1208/MqttCocoaAsyncSocket
Computed https://github.com/leeway1208/MqttCocoaAsyncSocket at 1.0.8 (0.50s)
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