The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Mqtt, reference master (2af558), with Swift 6.3 for macOS (SPM) on 10 Apr 2026 18:35:12 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hjianbo/mqtt.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/hjianbo/mqtt
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2af5589 Merge branch 'dev'
Cloned https://github.com/hjianbo/mqtt.git
Revision (git rev-parse @):
2af55898db7cccfc12accfd0a15fe4ecbf9fa579
SUCCESS checkout https://github.com/hjianbo/mqtt.git at master
Fetching https://github.com/vapor/bits.git
Fetching https://github.com/vapor/core.git
Fetching https://github.com/vapor/debugging.git
Fetching https://github.com/vapor/sockets
[1/3312] Fetching sockets
[366/23455] Fetching sockets, core
[367/23813] Fetching sockets, core, bits
[507/24073] Fetching sockets, core, bits, debugging
Fetched https://github.com/vapor/bits.git from cache (1.86s)
Fetched https://github.com/vapor/debugging.git from cache (1.86s)
Fetched https://github.com/vapor/core.git from cache (1.86s)
Fetched https://github.com/vapor/sockets from cache (1.87s)
Computing version for https://github.com/vapor/sockets
Computed https://github.com/vapor/sockets at 2.2.2 (2.47s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.0 (0.54s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.53s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.0 (0.53s)
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.2.0
Creating working copy for https://github.com/vapor/bits.git
Working copy of https://github.com/vapor/bits.git resolved at 1.1.0
Creating working copy for https://github.com/vapor/debugging.git
Working copy of https://github.com/vapor/debugging.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/sockets
Working copy of https://github.com/vapor/sockets resolved at 2.2.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
Fetching https://github.com/hjianbo/mqtt.git
[1/1085] Fetching mqtt
Fetched https://github.com/hjianbo/mqtt.git from cache (0.86s)
Fetching https://github.com/vapor/sockets from cache
Fetched https://github.com/vapor/sockets from cache (0.50s)
Computing version for https://github.com/vapor/sockets
Computed https://github.com/vapor/sockets at 2.2.4 (1.11s)
Fetching https://github.com/vapor/async.git
Fetching https://github.com/vapor/core.git from cache
Fetched https://github.com/vapor/core.git from cache (0.55s)
[1/2323] Fetching async
Fetched https://github.com/vapor/async.git from cache (0.86s)
Computing version for https://github.com/vapor/async.git
Computed https://github.com/vapor/async.git at 1.0.0-rc.1.1 (1.45s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 3.10.1 (0.55s)
Fetching https://github.com/apple/swift-nio.git
[1/83101] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (5.35s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (6.11s)
Fetching https://github.com/apple/swift-nio-zlib-support.git
[1/15] Fetching swift-nio-zlib-support
Fetched https://github.com/apple/swift-nio-zlib-support.git from cache (0.58s)
Computing version for https://github.com/apple/swift-nio-zlib-support.git
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (1.12s)
Creating working copy for https://github.com/vapor/sockets
Working copy of https://github.com/vapor/sockets resolved at 2.2.4
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
Creating working copy for https://github.com/hjianbo/mqtt.git
Working copy of https://github.com/hjianbo/mqtt.git resolved at master (2af5589)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 3.10.1
Creating working copy for https://github.com/vapor/async.git
Working copy of https://github.com/vapor/async.git resolved at 1.0.0-rc.1.1
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
error: multiple packages ('async' (from 'https://github.com/vapor/async.git'), 'core' (from 'https://github.com/vapor/core.git')) declare products with a conflicting name: 'Async’; product names need to be unique across the package graph
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/hjianbo/mqtt.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version--6988338F2F200930.txt
[9/31] Emitting module Debugging
[10/31] Compiling Debugging Debuggable.swift
[11/31] Compiling libc libc.swift
[12/31] Emitting module libc
[13/31] Compiling Bits Aliases.swift
[14/31] Compiling Bits Base64Encoder.swift
[15/32] Compiling Bits HexEncoder.swift
[16/32] Compiling Bits Operators.swift
[17/32] Compiling Bits String+BytesConvertible.swift
[18/32] Compiling Bits UnsignedInteger+BytesConvertible.swift
[19/32] Compiling Bits UnsignedInteger+Shifting.swift
[20/32] Compiling Bits Byte+Convenience.swift
[21/32] Compiling Bits Byte+PatternMatching.swift
[22/32] Compiling Bits BytesConvertible.swift
[23/32] Compiling Bits Data+BytesConvertible.swift
[24/32] Compiling Bits ByteSequence+Conversions.swift
[25/32] Compiling Bits Bytes+Base64.swift
[26/32] Compiling Bits Byte+Alphabet.swift
[27/32] Compiling Bits Byte+ControlCharacters.swift
[28/32] Compiling Bits Byte+Random.swift
[29/32] Compiling Bits Byte+UTF8Numbers.swift
[30/32] Compiling Bits Bytes+Hex.swift
[31/32] Compiling Bits Bytes+Percent.swift
[32/32] Emitting module Bits
[33/54] Emitting module Core
[34/56] Compiling Core Result.swift
[35/56] Compiling Core Semaphore.swift
[36/56] Compiling Core String+CaseInsensitiveCompare.swift
[37/56] Compiling Core String+Polymorphic.swift
[38/56] Compiling Core Sequence.swift
[39/56] Compiling Core StaticDataBuffer.swift
[40/56] Compiling Core Extendable.swift
[41/56] Compiling Core FileProtocol.swift
[42/56] Compiling Core Portal.swift
[43/56] Compiling Core RFC1123.swift
[44/56] Compiling Core DispatchTime+Utilities.swift
[45/56] Compiling Core EmptyInitializable.swift
[46/56] Compiling Core Exports.swift
[47/56] Compiling Core Int+Hex.swift
[48/56] Compiling Core Lock.swift
[49/56] Compiling Core Array.swift
[50/56] Compiling Core Bits.swift
[51/56] Compiling Core Cache.swift
[52/56] Compiling Core Collection+Safe.swift
[53/56] Compiling Core DataFile.swift
[54/56] Compiling Core Dispatch.swift
[55/56] Compiling Core String.swift
[56/56] Compiling Core WorkingDirectory.swift
[57/66] Compiling Transport StreamError.swift
[58/66] Compiling Transport Stream.swift
[59/67] Compiling Transport ReadableStream.swift
[60/67] Compiling Transport ServerStream.swift
[61/67] Compiling Transport Port.swift
[62/67] Compiling Transport InternetStream.swift
[63/67] Compiling Transport Exports.swift
[64/67] Emitting module Transport
[65/67] Compiling Transport ClientStream.swift
[66/67] Compiling Transport FoundationStream.swift
[67/67] Compiling Transport WriteableStream.swift
[68/88] Emitting module Sockets
[69/90] Compiling Sockets TCPReadableSocket.swift
[70/90] Compiling Sockets TCPSocket.swift
[71/90] Compiling Sockets RawSocket.swift
[72/90] Compiling Sockets Select.swift
[73/90] Compiling Sockets Config.swift
[74/90] Compiling Sockets Descriptor.swift
[75/90] Compiling Sockets InternetSocket.swift
[76/90] Compiling Sockets Pipe.swift
[77/90] Compiling Sockets Socket.swift
[78/90] Compiling Sockets SocketOptions.swift
[79/90] Compiling Sockets TCPEstablishedSocket.swift
[80/90] Compiling Sockets TCPInternetSocket.swift
[81/90] Compiling Sockets TCPWriteableSocket.swift
[82/90] Compiling Sockets UDPSocket.swift
[83/90] Compiling Sockets Conversions.swift
[84/90] Compiling Sockets Error.swift
[85/90] Compiling Sockets FDSet.swift
[86/90] Compiling Sockets Address+C.swift
[87/90] Compiling Sockets Address.swift
[88/90] Compiling Sockets Buffer.swift
[89/90] Compiling Sockets Types.swift
[90/90] Compiling Sockets Exports.swift
[91/109] Compiling Mqtt PubRecPacket.swift
[92/109] Compiling Mqtt PubRelPacket.swift
[93/109] Compiling Mqtt SubscribePacket.swift
[94/109] Compiling Mqtt UnsubAckPacket.swift
[95/109] Compiling Mqtt PublishPacket.swift
[96/109] Compiling Mqtt SubAckPacket.swift
[97/109] Compiling Mqtt PubAckPacket.swift
[98/109] Compiling Mqtt PubCompPacket.swift
[99/109] Compiling Mqtt PingReqPacket.swift
[100/109] Compiling Mqtt PingRespPacket.swift
[101/111] Compiling Mqtt DisconnectPacket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
171 |
172 |     var packToData: Data {
173 |         return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
    |                            |                    |- note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                            |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                            `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
174 |     }
175 |
/Users/admin/builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
203 |
204 |     var packToData: Data {
205 |         return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
    |                            |                    |- note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                            |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                            `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
206 |     }
207 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[102/111] Compiling Mqtt Packet.swift
/Users/admin/builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
171 |
172 |     var packToData: Data {
173 |         return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
    |                            |                    |- note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                            |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                            `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
174 |     }
175 |
/Users/admin/builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
203 |
204 |     var packToData: Data {
205 |         return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
    |                            |                    |- note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                            |                    `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                            `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
206 |     }
207 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[103/111] Compiling Mqtt ConnAckPacket.swift
[104/111] Compiling Mqtt ConnectPacket.swift
[105/111] Compiling Mqtt DDLog.swift
[106/111] Compiling Mqtt Extension.swift
[107/111] Compiling Mqtt LocalStorage.swift
[108/111] Compiling Mqtt MqttClient.swift
[109/111] Emitting module Mqtt
[110/111] Compiling Mqtt UnsubscribePacket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Mqtt/Session/Session.swift:515:13: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
513 |         let readLength = 1
514 |
515 |         var buffer = try socket.read(max: readLength)
    |             `- warning: variable 'buffer' was never mutated; consider changing to 'let' constant
516 |         guard readLength == buffer.count else {
517 |             throw SessionError.closeByServer
[111/111] Compiling Mqtt Session.swift
/Users/admin/builder/spi-builder-workspace/Sources/Mqtt/Session/Session.swift:515:13: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
513 |         let readLength = 1
514 |
515 |         var buffer = try socket.read(max: readLength)
    |             `- warning: variable 'buffer' was never mutated; consider changing to 'let' constant
516 |         guard readLength == buffer.count else {
517 |             throw SessionError.closeByServer
Build complete! (8.42s)
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Mqtt/Examples': File not found.
Build complete.
{
  "dependencies" : [
    {
      "identity" : "sockets",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.2.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/sockets"
    }
  ],
  "manifest_display_name" : "Mqtt",
  "name" : "Mqtt",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Mqtt",
      "targets" : [
        "Mqtt"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MqttTests",
      "module_type" : "SwiftTarget",
      "name" : "MqttTests",
      "path" : "Tests/MqttTests",
      "sources" : [
        "MqttClientTests.swift",
        "MqttPacketTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Mqtt"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Mqtt",
      "module_type" : "SwiftTarget",
      "name" : "Mqtt",
      "path" : "Sources/Mqtt",
      "product_dependencies" : [
        "Sockets"
      ],
      "product_memberships" : [
        "Mqtt"
      ],
      "sources" : [
        "DDLog.swift",
        "Extension.swift",
        "LocalStorage.swift",
        "MqttClient.swift",
        "Packet/ConnAckPacket.swift",
        "Packet/ConnectPacket.swift",
        "Packet/DisconnectPacket.swift",
        "Packet/Packet.swift",
        "Packet/PingReqPacket.swift",
        "Packet/PingRespPacket.swift",
        "Packet/PubAckPacket.swift",
        "Packet/PubCompPacket.swift",
        "Packet/PubRecPacket.swift",
        "Packet/PubRelPacket.swift",
        "Packet/PublishPacket.swift",
        "Packet/SubAckPacket.swift",
        "Packet/SubscribePacket.swift",
        "Packet/UnsubAckPacket.swift",
        "Packet/UnsubscribePacket.swift",
        "Session/Session.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Sources/Mqtt/Examples': File not found.
Done.