Build Information
Successful build of Multiaddr with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/lukereichold/swift-multiaddr.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/lukereichold/swift-multiaddr
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 4a41d7f Update README.md
Cloned https://github.com/lukereichold/swift-multiaddr.git
Revision (git rev-parse @):
4a41d7f3a7c752cd7ac8e1f464da96518cf03cbb
SUCCESS checkout https://github.com/lukereichold/swift-multiaddr.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/lukereichold/swift-multiaddr.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/16] 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 |
[4/16] 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 |
[5/16] 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 {
[6/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 | }
[7/16] Compiling Multiaddr Protocol.swift
[8/16] Compiling Multiaddr Onion.swift
[9/16] Compiling Multiaddr DNS.swift
[10/16] Compiling Multiaddr IPFS.swift
[11/16] Compiling Multiaddr Address.swift
[12/16] Compiling Multiaddr Data+Multiaddr.swift
[13/16] 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 {
[14/16] Compiling Multiaddr Error+Multiaddr.swift
[15/16] Compiling Multiaddr Multiaddr.swift
[16/16] Emitting module Multiaddr
[17/17] Compiling Multiaddr Varint.swift
Build complete! (21.73s)
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.