The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of Multiaddr, reference 1.0.2 (ab93a2), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 02:45:24 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lukereichold/swift-multiaddr.git
Reference: 1.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/lukereichold/swift-multiaddr
 * tag               1.0.2      -> FETCH_HEAD
HEAD is now at ab93a27 Remove PackageDescription scheme
Cloned https://github.com/lukereichold/swift-multiaddr.git
Revision (git rev-parse @):
ab93a273c5531f9552dc3397abd963c6c0b9a57d
SUCCESS checkout https://github.com/lukereichold/swift-multiaddr.git at 1.0.2
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/lukereichold/swift-multiaddr.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/16] Compiling Multiaddr BinaryEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Varint/BinaryEncoder.swift:41:17: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
 39 |     private mutating func append(contentsOf bufferPointer: UnsafeBufferPointer<UInt8>) {
 40 |         let count = bufferPointer.count
 41 |         pointer.assign(from: bufferPointer.baseAddress!, count: count)
    |                 |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)' [#DeprecatedDeclaration]
    |                 `- note: use 'update(from:count:)' instead
 42 |         pointer = pointer.advanced(by: count)
 43 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[4/17] Compiling Multiaddr Base32.swift
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base32.swift:35:17: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
 33 |
 34 | public func base32Encode(_ data: Data) -> String {
 35 |     return data.withUnsafeBytes {
    |                 `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
 36 |         base32encode(UnsafeRawPointer($0), data.count, alphabetEncodeTable)
 37 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base32.swift:41:17: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
 39 |
 40 | public func base32HexEncode(_ data: Data) -> String {
 41 |     return data.withUnsafeBytes {
    |                 `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
 42 |         base32encode(UnsafeRawPointer($0), data.count, extendedHexAlphabetEncodeTable)
 43 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base32.swift:48:21: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 46 | public func base32DecodeToData(_ string: String) -> Data? {
 47 |     return base32decode(string, alphabetDecodeTable).flatMap {
 48 |         Data(bytes: UnsafePointer<UInt8>($0), count: $0.count)
    |                     |                    |- note: implicit argument conversion from '[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]
 49 |     }
 50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base32.swift:54:21: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 52 | public func base32HexDecodeToData(_ string: String) -> Data? {
 53 |     return base32decode(string, extendedHexAlphabetDecodeTable).flatMap {
 54 |         Data(bytes: UnsafePointer<UInt8>($0), count: $0.count)
    |                     |                    |- note: implicit argument conversion from '[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]
 55 |     }
 56 | }
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base32.swift:342:23: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
340 |
341 |         let result = Array<UInt8>(repeating: 0, count: dataSize)
342 |         var decoded = UnsafeMutablePointer<UInt8>(mutating: result)
    |                       |                                     |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                       |                                     `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                       `- warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
343 |
344 |         // decode regular blocks
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base58.swift:63:50: warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior. [#DeprecatedDeclaration]
 61 |
 62 |         for b in base58 {
 63 |             str = "\(str)\(base58Alphabet[String.Index(encodedOffset: Int(b))])"
    |                                                  `- warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior. [#DeprecatedDeclaration]
 64 |         }
 65 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[5/17] Compiling Multiaddr Base58.swift
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base32.swift:35:17: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
 33 |
 34 | public func base32Encode(_ data: Data) -> String {
 35 |     return data.withUnsafeBytes {
    |                 `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
 36 |         base32encode(UnsafeRawPointer($0), data.count, alphabetEncodeTable)
 37 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base32.swift:41:17: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
 39 |
 40 | public func base32HexEncode(_ data: Data) -> String {
 41 |     return data.withUnsafeBytes {
    |                 `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
 42 |         base32encode(UnsafeRawPointer($0), data.count, extendedHexAlphabetEncodeTable)
 43 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base32.swift:48:21: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 46 | public func base32DecodeToData(_ string: String) -> Data? {
 47 |     return base32decode(string, alphabetDecodeTable).flatMap {
 48 |         Data(bytes: UnsafePointer<UInt8>($0), count: $0.count)
    |                     |                    |- note: implicit argument conversion from '[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]
 49 |     }
 50 | }
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base32.swift:54:21: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
 52 | public func base32HexDecodeToData(_ string: String) -> Data? {
 53 |     return base32decode(string, extendedHexAlphabetDecodeTable).flatMap {
 54 |         Data(bytes: UnsafePointer<UInt8>($0), count: $0.count)
    |                     |                    |- note: implicit argument conversion from '[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]
 55 |     }
 56 | }
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base32.swift:342:23: warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
340 |
341 |         let result = Array<UInt8>(repeating: 0, count: dataSize)
342 |         var decoded = UnsafeMutablePointer<UInt8>(mutating: result)
    |                       |                                     |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                       |                                     `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                       `- warning: initialization of 'UnsafeMutablePointer<UInt8>' results in a dangling pointer [#TemporaryPointers]
343 |
344 |         // decode regular blocks
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/Base58.swift:63:50: warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior. [#DeprecatedDeclaration]
 61 |
 62 |         for b in base58 {
 63 |             str = "\(str)\(base58Alphabet[String.Index(encodedOffset: Int(b))])"
    |                                                  `- warning: 'init(encodedOffset:)' is deprecated: encodedOffset has been deprecated as most common usage is incorrect. Use String.Index(utf16Offset:in:) to achieve the same behavior. [#DeprecatedDeclaration]
 64 |         }
 65 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[6/17] Compiling Multiaddr DNS.swift
[7/17] Compiling Multiaddr IPFS.swift
[8/17] Compiling Multiaddr Address.swift
[9/17] Compiling Multiaddr Data+Multiaddr.swift
[10/17] Compiling Multiaddr Onion.swift
[11/17] Compiling Multiaddr IPv4.swift
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/IPv4.swift:17:46: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
15 |         var address = in_addr(s_addr: data.uint32)
16 |
17 |         guard let presentationBytes = output.withUnsafeMutableBytes({
   |                                              `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
18 |             inet_ntop(AF_INET, &address, $0, socklen_t(INET_ADDRSTRLEN))
19 |         }) else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[12/17] Compiling Multiaddr IPv6.swift
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/IPv6.swift:14:28: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
12 |             throw MultiaddrError.parseIPv4AddressFail
13 |         }
14 |         var address = data.withUnsafeBytes { (bytesPointer: UnsafePointer<UInt8>) -> in6_addr in
   |                            `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
15 |             bytesPointer.withMemoryRebound(to: in6_addr.self, capacity: 1) { $0.pointee }
16 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Multiaddr/Protocol Helpers/IPv6.swift:19:46: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
17 |
18 |         var output = Data(count: Int(INET6_ADDRSTRLEN))
19 |         guard let presentationBytes = output.withUnsafeMutableBytes({
   |                                              `- warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead [#DeprecatedDeclaration]
20 |             inet_ntop(AF_INET6, &address, $0, socklen_t(INET6_ADDRSTRLEN))
21 |         }) else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[13/17] Compiling Multiaddr Protocol.swift
[14/17] Compiling Multiaddr Error+Multiaddr.swift
[15/17] Compiling Multiaddr Multiaddr.swift
[16/17] Emitting module Multiaddr
[17/17] Compiling Multiaddr Varint.swift
Build complete! (5.04s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Multiaddr",
  "name" : "Multiaddr",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "macos",
      "version" : "10.14"
    }
  ],
  "products" : [
    {
      "name" : "Multiaddr",
      "targets" : [
        "Multiaddr"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MultiaddrTests",
      "module_type" : "SwiftTarget",
      "name" : "MultiaddrTests",
      "path" : "Tests/MultiaddrTests",
      "sources" : [
        "MultiaddrTests.swift",
        "ProtocolTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Multiaddr"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Multiaddr",
      "module_type" : "SwiftTarget",
      "name" : "Multiaddr",
      "path" : "Sources/Multiaddr",
      "product_memberships" : [
        "Multiaddr"
      ],
      "sources" : [
        "Address.swift",
        "Extensions/Data+Multiaddr.swift",
        "Extensions/Error+Multiaddr.swift",
        "Multiaddr.swift",
        "Protocol Helpers/Base32.swift",
        "Protocol Helpers/Base58.swift",
        "Protocol Helpers/DNS.swift",
        "Protocol Helpers/IPFS.swift",
        "Protocol Helpers/IPv4.swift",
        "Protocol Helpers/IPv6.swift",
        "Protocol Helpers/Onion.swift",
        "Protocol.swift",
        "Varint/BinaryEncoder.swift",
        "Varint/Varint.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.