The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CocoaMQTT with Swift 5.10 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/emqx/CocoaMQTT.git
Reference: 2.1.8
Initialized empty Git repository in /Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/.git/
From https://github.com/emqx/CocoaMQTT
 * tag               2.1.8      -> FETCH_HEAD
HEAD is now at aff4342 fix: connectionClosed with error code
Cloned https://github.com/emqx/CocoaMQTT.git
Revision (git rev-parse @):
aff43422925cc30b9af319f4c4dce4f52859baf4
SUCCESS checkout https://github.com/emqx/CocoaMQTT.git at 2.1.8
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $workDir
https://github.com/emqx/CocoaMQTT.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Building for debugging...
[0/6] Write sources
[3/6] Write swift-version--423B1241ED78D482.txt
[4/25] Compiling MqttCocoaAsyncSocket MGCDAsyncSocket.m
[5/25] Compiling MqttCocoaAsyncSocket MGCDAsyncUdpSocket.m
[7/63] Compiling CocoaMQTT CocoaMQTT5Message.swift
[8/63] Compiling CocoaMQTT CocoaMQTTDeliver.swift
[9/63] Compiling CocoaMQTT CocoaMQTTLogger.swift
[10/65] Compiling CocoaMQTT FramePublish.swift
[11/65] Compiling CocoaMQTT FrameSubAck.swift
[12/65] Compiling CocoaMQTT FrameSubscribe.swift
[13/65] Compiling CocoaMQTT FrameUnsubAck.swift
[14/65] Compiling CocoaMQTT CocoaMQTTMessage.swift
[15/65] Compiling CocoaMQTT CocoaMQTTProperty.swift
[16/65] Compiling CocoaMQTT CocoaMQTTReader.swift
[17/65] Compiling CocoaMQTT CocoaMQTTReasonCode.swift
[18/65] Compiling CocoaMQTT CocoaMQTTSocket.swift
[19/65] Compiling CocoaMQTT CocoaMQTTStorage.swift
[20/65] Compiling CocoaMQTT FrameDisconnect.swift
[21/65] Compiling CocoaMQTT FramePingReq.swift
[22/65] Compiling CocoaMQTT FramePingResp.swift
[23/65] Compiling CocoaMQTT FramePubAck.swift
[24/65] Compiling CocoaMQTT FramePubComp.swift
[25/70] Compiling CocoaMQTT FramePubRec.swift
[26/70] Compiling CocoaMQTT FramePubRel.swift
[31/70] Compiling Starscream TCPTransport.swift
[32/70] Compiling Starscream Transport.swift
[33/70] Compiling CocoaMQTT MqttConnectProperties.swift
[34/70] Compiling CocoaMQTT MqttDecodeConnAck.swift
[35/70] Compiling CocoaMQTT CocoaMQTTTimer.swift
[38/70] Compiling CocoaMQTT CocoaMQTT.swift
[39/70] Compiling CocoaMQTT CocoaMQTT5.swift
[40/70] Emitting module Starscream
[41/70] Emitting module CocoaMQTT
[42/70] Compiling CocoaMQTT MqttDecodePubAck.swift
[43/70] Compiling CocoaMQTT MqttDecodePubComp.swift
[44/70] Compiling CocoaMQTT MqttDecodePubRec.swift
[45/70] Compiling CocoaMQTT MqttDecodePubRel.swift
[46/70] Compiling CocoaMQTT MqttDecodePublish.swift
[47/70] Compiling CocoaMQTT CocoaMQTTTypes.swift
[48/70] Compiling CocoaMQTT Frame.swift
[49/70] Compiling CocoaMQTT FrameAuth.swift
[50/70] Compiling CocoaMQTT FrameConnAck.swift
[51/70] Compiling CocoaMQTT FrameConnect.swift
[66/70] Compiling CocoaMQTT MqttDecodeSubAck.swift
[67/70] Compiling CocoaMQTT MqttDecodeUnsubAck.swift
[68/70] Compiling CocoaMQTT MqttPublishProperties.swift
[69/70] Compiling CocoaMQTT MqttSubscription.swift
[70/70] Compiling CocoaMQTT ThreadSafeDictionary.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[71/72] Emitting module CocoaMQTTWebSocket
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:459:1: error: type 'CocoaMQTTWebSocket.StarscreamConnection' does not conform to protocol 'WebSocketDelegate'
extension CocoaMQTTWebSocket.StarscreamConnection: WebSocketDelegate {
^
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-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/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-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)
         ^
[72/72] Compiling CocoaMQTTWebSocket CocoaMQTTWebSocket.swift
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:459:1: error: type 'CocoaMQTTWebSocket.StarscreamConnection' does not conform to protocol 'WebSocketDelegate'
extension CocoaMQTTWebSocket.StarscreamConnection: WebSocketDelegate {
^
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-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/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-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)
         ^
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:461:9: error: switch must be exhaustive
        switch event {
        ^
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:461:9: note: add missing case: '.peerClosed'
        switch event {
        ^
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:462:29: warning: immutable value 'headers' was never used; consider replacing with '_' or removing it
        case .connected(let headers):
                        ~~~~^~~~~~~
                        _
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:465:32: warning: immutable value 'reason' was never used; consider replacing with '_' or removing it
        case .disconnected(let reason, let code):
                           ~~~~^~~~~~
                           _
error: fatalError
Fetching https://github.com/daltoniam/Starscream.git from cache
Fetching https://github.com/leeway1208/MqttCocoaAsyncSocket from cache
Fetched https://github.com/leeway1208/MqttCocoaAsyncSocket from cache (0.16s)
Fetched https://github.com/daltoniam/Starscream.git from cache (0.16s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.6 (0.02s)
Computing version for https://github.com/leeway1208/MqttCocoaAsyncSocket
Computed https://github.com/leeway1208/MqttCocoaAsyncSocket at 1.0.8 (0.02s)
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.6
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version--423B1241ED78D482.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module CocoaMQTTWebSocket
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:459:1: error: type 'CocoaMQTTWebSocket.StarscreamConnection' does not conform to protocol 'WebSocketDelegate'
extension CocoaMQTTWebSocket.StarscreamConnection: WebSocketDelegate {
^
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-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/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-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)
         ^
[3/3] Compiling CocoaMQTTWebSocket CocoaMQTTWebSocket.swift
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:459:1: error: type 'CocoaMQTTWebSocket.StarscreamConnection' does not conform to protocol 'WebSocketDelegate'
extension CocoaMQTTWebSocket.StarscreamConnection: WebSocketDelegate {
^
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-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/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-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)
         ^
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:461:9: error: switch must be exhaustive
        switch event {
        ^
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:461:9: note: add missing case: '.peerClosed'
        switch event {
        ^
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:462:29: warning: immutable value 'headers' was never used; consider replacing with '_' or removing it
        case .connected(let headers):
                        ~~~~^~~~~~~
                        _
/Users/builder/builds/UKfvDsi8u/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Source/CocoaMQTTWebSocket.swift:465:32: warning: immutable value 'reason' was never used; consider replacing with '_' or removing it
        case .disconnected(let reason, let code):
                           ~~~~^~~~~~
                           _
error: fatalError
BUILD FAILURE 5.10 macosSpm

Build Machine: Mac 7