The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Mqtt 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/hjianbo/mqtt.git
Reference: master
Initialized empty Git repository in /Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $workDir
https://github.com/hjianbo/mqtt.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version--423B1241ED78D482.txt
[9/30] Emitting module Debugging
[10/30] Compiling Debugging Debuggable.swift
[11/30] Compiling libc libc.swift
[12/30] Emitting module libc
[13/30] Compiling Bits Bytes+Percent.swift
[14/30] Compiling Bits BytesConvertible.swift
[15/30] Compiling Bits Bytes+Base64.swift
[16/30] Compiling Bits Bytes+Hex.swift
[17/30] Compiling Bits Operators.swift
[18/30] Compiling Bits String+BytesConvertible.swift
[19/30] Compiling Bits Byte+ControlCharacters.swift
[20/30] Compiling Bits Byte+Convenience.swift
[21/30] Compiling Bits Byte+PatternMatching.swift
[22/30] Compiling Bits Byte+Random.swift
[23/30] Compiling Bits Byte+UTF8Numbers.swift
[24/30] Compiling Bits ByteSequence+Conversions.swift
[25/30] Emitting module Bits
[26/30] Compiling Bits Data+BytesConvertible.swift
[27/30] Compiling Bits HexEncoder.swift
[28/30] Compiling Bits Aliases.swift
[29/30] Compiling Bits Base64Encoder.swift
[30/30] Compiling Bits Byte+Alphabet.swift
[31/32] Compiling Bits UnsignedInteger+BytesConvertible.swift
[32/32] Compiling Bits UnsignedInteger+Shifting.swift
[33/54] Compiling Core Extendable.swift
[34/54] Compiling Core FileProtocol.swift
[35/54] Compiling Core Int+Hex.swift
[36/54] Compiling Core Lock.swift
[37/54] Compiling Core Portal.swift
[38/54] Compiling Core RFC1123.swift
[39/54] Compiling Core StaticDataBuffer.swift
[40/54] Compiling Core String+CaseInsensitiveCompare.swift
[41/54] Compiling Core String+Polymorphic.swift
[42/56] Compiling Core DispatchTime+Utilities.swift
[43/56] Compiling Core EmptyInitializable.swift
[44/56] Compiling Core Exports.swift
[45/56] Emitting module Core
[46/56] Compiling Core Collection+Safe.swift
[47/56] Compiling Core DataFile.swift
[48/56] Compiling Core Dispatch.swift
[49/56] Compiling Core Result.swift
[50/56] Compiling Core Semaphore.swift
[51/56] Compiling Core Sequence.swift
[52/56] Compiling Core Array.swift
[53/56] Compiling Core Bits.swift
[54/56] Compiling Core Cache.swift
[55/56] Compiling Core String.swift
[56/56] Compiling Core WorkingDirectory.swift
[57/66] Compiling Transport Stream.swift
[58/67] Compiling Transport WriteableStream.swift
[59/67] Compiling Transport ReadableStream.swift
[60/67] Compiling Transport StreamError.swift
[61/67] Compiling Transport InternetStream.swift
[62/67] Compiling Transport Port.swift
[63/67] Compiling Transport ServerStream.swift
[64/67] Compiling Transport Exports.swift
[65/67] Compiling Transport ClientStream.swift
[66/67] Emitting module Transport
[67/67] Compiling Transport FoundationStream.swift
[68/88] Compiling Sockets SocketOptions.swift
[69/88] Compiling Sockets TCPEstablishedSocket.swift
[70/88] Compiling Sockets TCPInternetSocket.swift
[71/90] Compiling Sockets TCPReadableSocket.swift
[72/90] Compiling Sockets TCPSocket.swift
[73/90] Compiling Sockets Descriptor.swift
[74/90] Compiling Sockets InternetSocket.swift
[75/90] Compiling Sockets Pipe.swift
[76/90] Compiling Sockets Address+C.swift
[77/90] Compiling Sockets Address.swift
[78/90] Compiling Sockets Buffer.swift
[79/90] Emitting module Sockets
[80/90] Compiling Sockets Types.swift
[81/90] Compiling Sockets Exports.swift
[82/90] Compiling Sockets Config.swift
[83/90] Compiling Sockets RawSocket.swift
[84/90] Compiling Sockets Select.swift
[85/90] Compiling Sockets Socket.swift
[86/90] Compiling Sockets Conversions.swift
[87/90] Compiling Sockets Error.swift
[88/90] Compiling Sockets FDSet.swift
[89/90] Compiling Sockets TCPWriteableSocket.swift
[90/90] Compiling Sockets UDPSocket.swift
[91/109] Compiling Mqtt PingRespPacket.swift
[92/109] Compiling Mqtt PubAckPacket.swift
[93/109] Compiling Mqtt PubCompPacket.swift
[94/109] Compiling Mqtt DisconnectPacket.swift
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
[95/109] Compiling Mqtt Packet.swift
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
[96/109] Compiling Mqtt PingReqPacket.swift
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:173:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:28: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: implicit argument conversion from 'Array<UInt8>' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^~~~~~~~~~~
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Packet/Packet.swift:205:49: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        return Data(bytes: UnsafePointer<UInt8>(packToBytes), count: packToBytes.count)
                                                ^
[97/109] Compiling Mqtt SubscribePacket.swift
[98/109] Compiling Mqtt UnsubAckPacket.swift
[99/109] Emitting module Mqtt
[100/109] Compiling Mqtt MqttClient.swift
[101/109] Compiling Mqtt ConnAckPacket.swift
[102/109] Compiling Mqtt ConnectPacket.swift
[103/109] Compiling Mqtt PublishPacket.swift
[104/109] Compiling Mqtt SubAckPacket.swift
[105/109] Compiling Mqtt PubRecPacket.swift
[106/109] Compiling Mqtt PubRelPacket.swift
[107/109] Compiling Mqtt DDLog.swift
[108/109] Compiling Mqtt Extension.swift
[109/109] Compiling Mqtt LocalStorage.swift
[110/111] Compiling Mqtt UnsubscribePacket.swift
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Session/Session.swift:515:13: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
        var buffer = try socket.read(max: readLength)
        ~~~ ^
        let
[111/111] Compiling Mqtt Session.swift
/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Session/Session.swift:515:13: warning: variable 'buffer' was never mutated; consider changing to 'let' constant
        var buffer = try socket.read(max: readLength)
        ~~~ ^
        let
Build complete! (9.75s)
Fetching https://github.com/vapor/sockets from cache
Fetching https://github.com/vapor/bits.git from cache
Fetching https://github.com/vapor/debugging.git from cache
Fetching https://github.com/vapor/core.git from cache
Fetched https://github.com/vapor/bits.git from cache (0.21s)
Fetched https://github.com/vapor/sockets from cache (0.21s)
Computing version for https://github.com/vapor/sockets
Fetched https://github.com/vapor/core.git from cache (0.21s)
Fetched https://github.com/vapor/debugging.git from cache (0.21s)
Computed https://github.com/vapor/sockets at 2.2.2 (0.53s)
Computing version for https://github.com/vapor/core.git
Computed https://github.com/vapor/core.git at 2.2.0 (0.53s)
Computing version for https://github.com/vapor/debugging.git
Computed https://github.com/vapor/debugging.git at 1.1.1 (0.44s)
Computing version for https://github.com/vapor/bits.git
Computed https://github.com/vapor/bits.git at 1.1.0 (0.39s)
Creating working copy for https://github.com/vapor/core.git
Working copy of https://github.com/vapor/core.git resolved at 2.2.0
warning: /Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/repositories/sockets-208a54fa is not valid git repository for 'https://github.com/vapor/sockets', will fetch again.
Fetching https://github.com/vapor/sockets from cache
Fetched https://github.com/vapor/sockets from cache (0.01s)
warning: /Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/.build/repositories/sockets-208a54fa is not valid git repository for 'https://github.com/vapor/sockets', will fetch again.
Fetching https://github.com/vapor/sockets from cache
Fetched https://github.com/vapor/sockets from cache (0.01s)
Creating working copy for https://github.com/vapor/sockets
Working copy of https://github.com/vapor/sockets resolved at 2.2.2
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/bits.git
Working copy of https://github.com/vapor/bits.git resolved at 1.1.0
warning: 'spi-builder-workspace': Invalid Exclude '/Users/builder/builds/TDmZkXJm/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/Mqtt/Examples': File not found.
Build complete.
Done.