Build Information
Successful build of Multiaddr, reference 1.0.2 (ab93a2
), with Swift 6.0 for macOS (SPM) on 27 Nov 2024 02:31:07 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.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
========================================
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",
"dependencies": [
{
"identity": "swift-multiaddr",
"name": "Multiaddr",
"url": "https://github.com/lukereichold/swift-multiaddr.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-multiaddr",
"dependencies": [
]
}
]
}
Fetching https://github.com/lukereichold/swift-multiaddr.git
[1/341] Fetching swift-multiaddr
Fetched https://github.com/lukereichold/swift-multiaddr.git from cache (0.74s)
Creating working copy for https://github.com/lukereichold/swift-multiaddr.git
Working copy of https://github.com/lukereichold/swift-multiaddr.git resolved at 1.0.2 (ab93a27)
warning: '.resolve-product-dependencies': dependency 'swift-multiaddr' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/lukereichold/swift-multiaddr.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.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:)'
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:)'
| `- note: use 'update(from:count:)' instead
42 | pointer = pointer.advanced(by: count)
43 | }
[4/16] Compiling Multiaddr Protocol.swift
[5/16] Compiling Multiaddr Onion.swift
[6/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
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
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
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
20 | inet_ntop(AF_INET6, &address, $0, socklen_t(INET6_ADDRSTRLEN))
21 | }) else {
[7/17] Compiling Multiaddr DNS.swift
[8/17] Compiling Multiaddr IPFS.swift
[9/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
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
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
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
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
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
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
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
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
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
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.
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.
64 | }
65 |
[10/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
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
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
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
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
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
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
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
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
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
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.
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.
64 | }
65 |
[11/17] Compiling Multiaddr Address.swift
[12/17] Compiling Multiaddr Data+Multiaddr.swift
[13/17] Compiling Multiaddr Error+Multiaddr.swift
[14/17] Compiling Multiaddr Multiaddr.swift
[15/17] Emitting module Multiaddr
[16/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
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
18 | inet_ntop(AF_INET, &address, $0, socklen_t(INET_ADDRSTRLEN))
19 | }) else {
[17/17] Compiling Multiaddr Varint.swift
Build complete! (16.51s)
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.