The Swift Package Index logo.Swift Package Index

Build Information

Successful build of CocoaMQTT, reference 2.4.2 (236ff0), with Swift 6.4 for macOS (SPM) on 31 Oct 2026 18:44:33 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/emqx/CocoaMQTT.git
Reference: 2.4.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/emqx/CocoaMQTT
 * tag               2.4.2      -> FETCH_HEAD
HEAD is now at 236ff06 Merge pull request #745 from emqx/codex/fix-744-socket-delegate-race
Cloned https://github.com/emqx/CocoaMQTT.git
Revision (git rev-parse @):
236ff0621ad93504ad2419222636a3340d6b6c7a
SUCCESS checkout https://github.com/emqx/CocoaMQTT.git at 2.4.2
Fetching https://github.com/daltoniam/Starscream.git
Fetching https://github.com/leeway1208/MqttCocoaAsyncSocket
[1/3847] Fetching mqttcocoaasyncsocket
[40/9082] Fetching mqttcocoaasyncsocket, starscream
Fetched https://github.com/daltoniam/Starscream.git (2.60s)
Fetched https://github.com/leeway1208/MqttCocoaAsyncSocket (2.60s)
Computing version for https://github.com/leeway1208/MqttCocoaAsyncSocket
Computed https://github.com/leeway1208/MqttCocoaAsyncSocket at 1.0.8 (3.28s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.70s)
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "cocoamqtt",
      "name": "CocoaMQTT",
      "url": "https://github.com/emqx/CocoaMQTT.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CocoaMQTT",
      "traits": [
        "default"
      ],
      "dependencies": [
        {
          "identity": "starscream",
          "name": "Starscream",
          "url": "https://github.com/daltoniam/Starscream.git",
          "version": "4.0.8",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Starscream",
          "traits": [
            "default"
          ],
          "dependencies": [
          ]
        },
        {
          "identity": "mqttcocoaasyncsocket",
          "name": "MqttCocoaAsyncSocket",
          "url": "https://github.com/leeway1208/MqttCocoaAsyncSocket",
          "version": "1.0.8",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MqttCocoaAsyncSocket",
          "traits": [
            "default"
          ],
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/emqx/CocoaMQTT.git
[1/6012] Fetching cocoamqtt
Fetched https://github.com/emqx/CocoaMQTT.git (2.31s)
Fetching https://github.com/leeway1208/MqttCocoaAsyncSocket from cache
Fetching https://github.com/daltoniam/Starscream.git from cache
Fetched https://github.com/daltoniam/Starscream.git from cache (0.97s)
Fetched https://github.com/leeway1208/MqttCocoaAsyncSocket from cache (0.99s)
Computing version for https://github.com/leeway1208/MqttCocoaAsyncSocket
Computed https://github.com/leeway1208/MqttCocoaAsyncSocket at 1.0.8 (1.08s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.04s)
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/emqx/CocoaMQTT.git
Working copy of https://github.com/emqx/CocoaMQTT.git resolved at 2.4.2 (236ff06)
Creating working copy for https://github.com/leeway1208/MqttCocoaAsyncSocket
Working copy of https://github.com/leeway1208/MqttCocoaAsyncSocket resolved at 1.0.8
warning: '.resolve-product-dependencies': dependency 'cocoamqtt' is not used by any target
Found 2 product dependencies
  - Starscream
  - MqttCocoaAsyncSocket
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/emqx/CocoaMQTT.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun swift build --arch arm64
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 272]
[Planning deferred tasks]
[65 / 105] CocoaMQTT_CocoaMQTT
[74 / 105]
[78 / 107] MqttCocoaAsyncSocket
[88 / 190] CocoaMQTT
[98 / 201]
[103 / 201]
[111 / 201]
[115 / 201]
[120 / 201]
[127 / 201]
[132 / 201]
[136 / 201]
[140 / 201]
[145 / 201]
[147 / 201]
[149 / 201] MqttCocoaAsyncSocket
[151 / 201]
[164 / 201] Starscream
[165 / 201] CocoaMQTT
[178 / 201] Starscream
[187 / 201] Starscream-product
[188 / 202]
[188 / 202] Starscream
[192 / 204] CocoaMQTTWebSocket
[198 / 204] CocoaMQTTWebSocket
[199 / 204] CocoaMQTT
Build complete! (9.60 sec)
/Users/admin/builder/spi-builder-workspace/Source/WebSocket/CocoaMQTTWebSocket.swift:579:9: warning: 'SecTrustEvaluate' was deprecated in macOS 10.15: renamed to 'SecTrustEvaluateWithError(_:_:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
577 |     public func evaluateTrust(trust: SecTrust, domain: String?, completion: ((PinningState) -> Void)) {
578 |         var result: SecTrustResultType = .unspecified
579 |         SecTrustEvaluate(trust, &result)
    |         |- warning: 'SecTrustEvaluate' was deprecated in macOS 10.15: renamed to 'SecTrustEvaluateWithError(_:_:)' [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
    |         `- note: use 'SecTrustEvaluateWithError(_:_:)' instead
580 |         let e = CFErrorCreate(kCFAllocatorDefault, "FoundationSecurityError" as NSString?, Int(result.rawValue), nil)
581 |         guard let delegate = self.delegate else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Build complete.
{
  "dependencies" : [
    {
      "identity" : "starscream",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.8",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/daltoniam/Starscream.git"
    },
    {
      "identity" : "mqttcocoaasyncsocket",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.8",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/leeway1208/MqttCocoaAsyncSocket"
    }
  ],
  "manifest_display_name" : "CocoaMQTT",
  "name" : "CocoaMQTT",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "CocoaMQTT",
      "targets" : [
        "CocoaMQTT"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CocoaMQTTWebSocket",
      "targets" : [
        "CocoaMQTTWebSocket"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CocoaMQTTWebSocket",
      "module_type" : "SwiftTarget",
      "name" : "CocoaMQTTWebSocket",
      "path" : "Source/WebSocket",
      "product_dependencies" : [
        "Starscream"
      ],
      "product_memberships" : [
        "CocoaMQTTWebSocket"
      ],
      "sources" : [
        "CocoaMQTTWebSocket.swift"
      ],
      "target_dependencies" : [
        "CocoaMQTT"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CocoaMQTTTests",
      "module_type" : "SwiftTarget",
      "name" : "CocoaMQTTTests",
      "path" : "CocoaMQTTTests",
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/CocoaMQTTTests/client-keycert.p12",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "AutoReconnectStateTests.swift",
        "ClientEventLoopTests.swift",
        "ClientIdentityTests.swift",
        "CocoaMQTT5DisconnectReasonStateTests.swift",
        "CocoaMQTT5PublishValidationTests.swift",
        "CocoaMQTT5ReasonCodeFallbackTests.swift",
        "CocoaMQTT5ReceiveMessageContentTypeTests.swift",
        "CocoaMQTTDeliverTests.swift",
        "CocoaMQTTReaderProtocolErrorTests.swift",
        "CocoaMQTTStorageTests.swift",
        "CocoaMQTTTests.swift",
        "CocoaMQTTWebSocketAuthenticationTests.swift",
        "ConcurrentAtomicTests.swift",
        "FrameTests.swift",
        "GracefulDisconnectTests.swift",
        "KeepAliveTests.swift",
        "MQTTAutoReconnectControllerTests.swift",
        "PrivacyManifestTests.swift",
        "PublicLoggerAPITests.swift",
        "SendingMessageLifecycleTests.swift",
        "TLSChallengeResolutionTests.swift",
        "TLSLoopbackIntegrationTests.swift",
        "TLSLoopbackTestSupport.swift",
        "ThreadSafetyRegressionTests.swift",
        "WebSocketMTLSIntegrationTests.swift"
      ],
      "target_dependencies" : [
        "CocoaMQTT",
        "CocoaMQTTWebSocket"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CocoaMQTT",
      "module_type" : "SwiftTarget",
      "name" : "CocoaMQTT",
      "path" : "Source",
      "product_dependencies" : [
        "MqttCocoaAsyncSocket"
      ],
      "product_memberships" : [
        "CocoaMQTT",
        "CocoaMQTTWebSocket"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Source/PrivacyInfo.xcprivacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "CocoaMQTT.swift",
        "CocoaMQTT5.swift",
        "CocoaMQTT5Message.swift",
        "CocoaMQTTClientIdentity.swift",
        "CocoaMQTTDeliver.swift",
        "CocoaMQTTLogger.swift",
        "CocoaMQTTMessage.swift",
        "CocoaMQTTProperty.swift",
        "CocoaMQTTReader.swift",
        "CocoaMQTTReasonCode.swift",
        "CocoaMQTTSocket.swift",
        "CocoaMQTTStorage.swift",
        "CocoaMQTTTimer.swift",
        "CocoaMQTTTypes.swift",
        "Frame.swift",
        "FrameAuth.swift",
        "FrameConnAck.swift",
        "FrameConnect.swift",
        "FrameDisconnect.swift",
        "FramePingReq.swift",
        "FramePingResp.swift",
        "FramePubAck.swift",
        "FramePubComp.swift",
        "FramePubRec.swift",
        "FramePubRel.swift",
        "FramePublish.swift",
        "FrameSubAck.swift",
        "FrameSubscribe.swift",
        "FrameUnsubAck.swift",
        "FrameUnsubscribe.swift",
        "MQTT5SessionState.swift",
        "MQTTAutoReconnectController.swift",
        "MQTTKeepAliveController.swift",
        "MQTTPacketIdentifierAllocator.swift",
        "MqttAuthProperties.swift",
        "MqttConnectProperties.swift",
        "MqttDecodeConnAck.swift",
        "MqttDecodePubAck.swift",
        "MqttDecodePubComp.swift",
        "MqttDecodePubRec.swift",
        "MqttDecodePubRel.swift",
        "MqttDecodePublish.swift",
        "MqttDecodeSubAck.swift",
        "MqttDecodeUnsubAck.swift",
        "MqttPublishProperties.swift",
        "MqttSubscription.swift",
        "ThreadSafeDictionary.swift",
        "utilities/ConcurrentAtomic.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.