Build Information
Failed to build SwiftBncsLib, reference master (39ff13), with Swift 6.3 for Linux on 11 Apr 2026 07:53:22 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wjlafrance/swiftbncslib.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/wjlafrance/swiftbncslib
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 39ff139 bnftp2 support, pass --version 2 --cdkey <war3 key>
Cloned https://github.com/wjlafrance/swiftbncslib.git
Revision (git rev-parse @):
39ff13914efb24c431be0d3ff31696932cdd055f
SUCCESS checkout https://github.com/wjlafrance/swiftbncslib.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.3
Building package at path: $PWD
https://github.com/wjlafrance/swiftbncslib.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/13341] Fetching cryptoswift
[3470/96442] Fetching cryptoswift, swift-nio
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (6.29s)
Fetched https://github.com/apple/swift-nio.git from cache (6.39s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 0.8.3 (6.85s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.47s)
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.22s)
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 (0.61s)
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/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/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 0.8.3
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
Building for debugging...
[0/30] Compiling CNIOLinux ifaddrs-android.c
[1/30] Compiling CNIOSHA1 c_nio_sha1.c
[2/30] Compiling CNIODarwin shim.c
[3/30] Write sources
[3/30] Write swift-version-24593BA9C3E375BF.txt
[3/30] Write sources
[13/33] Compiling CNIOLinux shim.c
[14/90] Compiling c-atomics.c
[16/93] Emitting module CryptoSwift
[17/101] Compiling NIOPriorityQueue PriorityQueue.swift
[18/101] Compiling CryptoSwift BlockMode.swift
[19/101] Compiling CryptoSwift BlockModeOptions.swift
[20/101] Compiling CryptoSwift BlockModeWorker.swift
[21/101] Compiling CryptoSwift CBC.swift
[22/101] Compiling CryptoSwift CFB.swift
[23/101] Compiling CryptoSwift CTR.swift
[24/101] Compiling CryptoSwift ECB.swift
[25/101] Compiling CryptoSwift OFB.swift
[26/101] Emitting module NIOConcurrencyHelpers
[27/101] Compiling NIOConcurrencyHelpers atomics.swift
[28/101] Compiling NIOConcurrencyHelpers lock.swift
[29/102] Compiling CryptoSwift NoPadding.swift
[30/102] Compiling CryptoSwift Operators.swift
[31/102] Compiling CryptoSwift PBKDF1.swift
[32/102] Compiling CryptoSwift PBKDF2.swift
[33/102] Compiling CryptoSwift PKCS5.swift
[34/102] Compiling CryptoSwift PKCS7.swift
[35/102] Compiling CryptoSwift PKCS7Padding.swift
[36/102] Compiling CryptoSwift Padding.swift
[37/102] Compiling CryptoSwift String+Extension.swift
[38/102] Compiling CryptoSwift UInt16+Extension.swift
[39/102] Compiling CryptoSwift UInt32+Extension.swift
[40/102] Compiling CryptoSwift UInt64+Extension.swift
[41/102] Compiling CryptoSwift UInt8+Extension.swift
[42/102] Compiling CryptoSwift Updatable.swift
[43/102] Compiling CryptoSwift Utils.swift
[44/102] Compiling CryptoSwift ZeroPadding.swift
[46/102] Emitting module NIOPriorityQueue
[47/102] Compiling NIOPriorityQueue Heap.swift
[48/102] Compiling CryptoSwift PCBC.swift
[49/102] Compiling CryptoSwift RandomAccessBlockModeWorker.swift
[50/102] Compiling CryptoSwift Blowfish.swift
[51/102] Compiling CryptoSwift ChaCha20.swift
[52/102] Compiling CryptoSwift Checksum.swift
[53/102] Compiling CryptoSwift Cipher.swift
[54/102] Compiling CryptoSwift Collection+Extension.swift
[55/102] Compiling CryptoSwift Cryptors.swift
[57/103] Compiling CryptoSwift Rabbit+Foundation.swift
[58/103] Compiling CryptoSwift String+FoundationExtension.swift
[59/103] Compiling CryptoSwift Utils+Foundation.swift
[60/103] Compiling CryptoSwift Generics.swift
[61/103] Compiling CryptoSwift HKDF.swift
[62/103] Compiling CryptoSwift HMAC.swift
[63/103] Compiling CryptoSwift Int+Extension.swift
[64/103] Compiling CryptoSwift MD5.swift
[64/103] Wrapping AST for NIOPriorityQueue for debugging
[65/103] Wrapping AST for NIOConcurrencyHelpers for debugging
[67/103] Compiling CryptoSwift Digest.swift
[68/103] Compiling CryptoSwift DigestType.swift
[69/103] Compiling CryptoSwift AES+Foundation.swift
[70/103] Compiling CryptoSwift Array+Foundation.swift
[71/103] Compiling CryptoSwift Blowfish+Foundation.swift
[72/103] Compiling CryptoSwift ChaCha20+Foundation.swift
[73/103] Compiling CryptoSwift Data+Extension.swift
[74/103] Compiling CryptoSwift HMAC+Foundation.swift
[75/153] Compiling NIO NonBlockingFileIO.swift
[76/153] Compiling NIO PendingDatagramWritesManager.swift
[77/153] Compiling NIO PendingWritesManager.swift
[78/153] Compiling NIO PriorityQueue.swift
[79/153] Compiling NIO ChannelPipeline.swift
[80/153] Compiling NIO CircularBuffer.swift
[81/153] Compiling NIO Codec.swift
[82/153] Compiling NIO CompositeError.swift
[83/153] Compiling NIO ContiguousCollection.swift
[84/153] Compiling NIO DeadChannel.swift
[85/153] Compiling NIO Embedded.swift
[86/153] Compiling NIO Heap.swift
[87/153] Compiling NIO IO.swift
[88/153] Compiling NIO IOData.swift
[89/153] Compiling NIO IntegerTypes.swift
[90/153] Compiling NIO Interfaces.swift
[91/154] Wrapping AST for CryptoSwift for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[93/162] Emitting module SwiftBncsLib
/host/spi-builder-workspace/Sources/SwiftBncsLib/BnftpRequestComposer.swift:84:23: error: cannot find 'arc4random' in scope
82 |
83 | let serverToken: UInt32
84 | let clientToken = arc4random()
| `- error: cannot find 'arc4random' in scope
85 | let filename: String
86 | let cdkey: String
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationInputStreamExtension.swift:5:5: warning: 'public' modifier is redundant for instance method declared in a public extension
3 | public extension InputStream {
4 |
5 | public func readData(maxLength: Int) -> Foundation.Data? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
6 | var bytes = [UInt8](repeating: 0, count: maxLength)
7 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:5:5: warning: 'public' modifier is redundant for instance method declared in a public extension
3 | public extension OutputStream {
4 |
5 | public func write(byte: UInt8) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
6 | var copy = byte
7 | write(©, maxLength: 1)
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:10:5: warning: 'public' modifier is redundant for instance method declared in a public extension
8 | }
9 |
10 | public func write(bytes: [UInt8]) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
11 | var copy = bytes
12 | write(©, maxLength: bytes.count)
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:15:5: warning: 'public' modifier is redundant for instance method declared in a public extension
13 | }
14 |
15 | public func write(data: Foundation.Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
16 | var dataCopy = data
17 | let _ = dataCopy.withUnsafeMutableBytes { contents in
[94/180] Compiling SwiftBncsLib BncsMessageConsumer.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BnlsMessage.swift:19:34: error: ambiguous use of 'withUnsafeBytes'
17 |
18 | // Check length matches
19 | guard data.count == data.withUnsafeBytes({ IntUtil.from8to16([$0[0], $0[1]]) }) else {
| `- error: ambiguous use of 'withUnsafeBytes'
20 | throw BnlsMessageError.IncorrectMessageLength
21 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BnlsMessage.swift:30:41: error: ambiguous use of 'withUnsafeBytes'
28 | precondition(data.count > 3)
29 |
30 | let rawIdentifier: UInt8 = data.withUnsafeBytes { return $0[2] }
| `- error: ambiguous use of 'withUnsafeBytes'
31 | return BnlsMessageIdentifier(rawValue: rawIdentifier) ?? .None
32 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
[95/180] Compiling SwiftBncsLib BnlsMessage.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BnlsMessage.swift:19:34: error: ambiguous use of 'withUnsafeBytes'
17 |
18 | // Check length matches
19 | guard data.count == data.withUnsafeBytes({ IntUtil.from8to16([$0[0], $0[1]]) }) else {
| `- error: ambiguous use of 'withUnsafeBytes'
20 | throw BnlsMessageError.IncorrectMessageLength
21 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BnlsMessage.swift:30:41: error: ambiguous use of 'withUnsafeBytes'
28 | precondition(data.count > 3)
29 |
30 | let rawIdentifier: UInt8 = data.withUnsafeBytes { return $0[2] }
| `- error: ambiguous use of 'withUnsafeBytes'
31 | return BnlsMessageIdentifier(rawValue: rawIdentifier) ?? .None
32 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
[96/180] Compiling SwiftBncsLib BnlsMessageComposer.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BnlsMessage.swift:19:34: error: ambiguous use of 'withUnsafeBytes'
17 |
18 | // Check length matches
19 | guard data.count == data.withUnsafeBytes({ IntUtil.from8to16([$0[0], $0[1]]) }) else {
| `- error: ambiguous use of 'withUnsafeBytes'
20 | throw BnlsMessageError.IncorrectMessageLength
21 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BnlsMessage.swift:30:41: error: ambiguous use of 'withUnsafeBytes'
28 | precondition(data.count > 3)
29 |
30 | let rawIdentifier: UInt8 = data.withUnsafeBytes { return $0[2] }
| `- error: ambiguous use of 'withUnsafeBytes'
31 | return BnlsMessageIdentifier(rawValue: rawIdentifier) ?? .None
32 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
[97/180] Compiling SwiftBncsLib BncsEnumerations.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/BnftpRequestComposer.swift:84:23: error: cannot find 'arc4random' in scope
82 |
83 | let serverToken: UInt32
84 | let clientToken = arc4random()
| `- error: cannot find 'arc4random' in scope
85 | let filename: String
86 | let cdkey: String
[98/180] Compiling SwiftBncsLib BncsStructures.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/BnftpRequestComposer.swift:84:23: error: cannot find 'arc4random' in scope
82 |
83 | let serverToken: UInt32
84 | let clientToken = arc4random()
| `- error: cannot find 'arc4random' in scope
85 | let filename: String
86 | let cdkey: String
[99/180] Compiling SwiftBncsLib BnftpRequestComposer.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/BnftpRequestComposer.swift:84:23: error: cannot find 'arc4random' in scope
82 |
83 | let serverToken: UInt32
84 | let clientToken = arc4random()
| `- error: cannot find 'arc4random' in scope
85 | let filename: String
86 | let cdkey: String
[100/180] Compiling SwiftBncsLib BnftpResponseConsumer.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/BnftpRequestComposer.swift:84:23: error: cannot find 'arc4random' in scope
82 |
83 | let serverToken: UInt32
84 | let clientToken = arc4random()
| `- error: cannot find 'arc4random' in scope
85 | let filename: String
86 | let cdkey: String
[101/180] Emitting module NIO
[102/180] Compiling SwiftBncsLib BnlsMessageConsumer.swift
[103/180] Compiling SwiftBncsLib Message.swift
[104/180] Compiling SwiftBncsLib MessageComposer.swift
[105/180] Compiling SwiftBncsLib IntUtil.swift
[106/180] Compiling SwiftBncsLib BncsMessage.swift
[107/180] Compiling SwiftBncsLib BncsMessageComposer.swift
[108/180] Compiling SwiftBncsLib BnlsEnumerations.swift
[109/186] Compiling SwiftBncsLib FoundationInputStreamExtension.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationInputStreamExtension.swift:5:5: warning: 'public' modifier is redundant for instance method declared in a public extension
3 | public extension InputStream {
4 |
5 | public func readData(maxLength: Int) -> Foundation.Data? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
6 | var bytes = [UInt8](repeating: 0, count: maxLength)
7 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:5:5: warning: 'public' modifier is redundant for instance method declared in a public extension
3 | public extension OutputStream {
4 |
5 | public func write(byte: UInt8) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
6 | var copy = byte
7 | write(©, maxLength: 1)
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:10:5: warning: 'public' modifier is redundant for instance method declared in a public extension
8 | }
9 |
10 | public func write(bytes: [UInt8]) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
11 | var copy = bytes
12 | write(©, maxLength: bytes.count)
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:15:5: warning: 'public' modifier is redundant for instance method declared in a public extension
13 | }
14 |
15 | public func write(data: Foundation.Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
16 | var dataCopy = data
17 | let _ = dataCopy.withUnsafeMutableBytes { contents in
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:7:9: warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
5 | public func write(byte: UInt8) {
6 | var copy = byte
7 | write(©, maxLength: 1)
| `- warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
8 | }
9 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:12:9: warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
10 | public func write(bytes: [UInt8]) {
11 | var copy = bytes
12 | write(©, maxLength: bytes.count)
| `- warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
13 | }
14 |
[110/186] Compiling SwiftBncsLib FoundationOutputStreamExtension.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationInputStreamExtension.swift:5:5: warning: 'public' modifier is redundant for instance method declared in a public extension
3 | public extension InputStream {
4 |
5 | public func readData(maxLength: Int) -> Foundation.Data? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
6 | var bytes = [UInt8](repeating: 0, count: maxLength)
7 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:5:5: warning: 'public' modifier is redundant for instance method declared in a public extension
3 | public extension OutputStream {
4 |
5 | public func write(byte: UInt8) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
6 | var copy = byte
7 | write(©, maxLength: 1)
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:10:5: warning: 'public' modifier is redundant for instance method declared in a public extension
8 | }
9 |
10 | public func write(bytes: [UInt8]) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
11 | var copy = bytes
12 | write(©, maxLength: bytes.count)
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:15:5: warning: 'public' modifier is redundant for instance method declared in a public extension
13 | }
14 |
15 | public func write(data: Foundation.Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
16 | var dataCopy = data
17 | let _ = dataCopy.withUnsafeMutableBytes { contents in
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:7:9: warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
5 | public func write(byte: UInt8) {
6 | var copy = byte
7 | write(©, maxLength: 1)
| `- warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
8 | }
9 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:12:9: warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
10 | public func write(bytes: [UInt8]) {
11 | var copy = bytes
12 | write(©, maxLength: bytes.count)
| `- warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
13 | }
14 |
[111/186] Compiling SwiftBncsLib FourCC.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationInputStreamExtension.swift:5:5: warning: 'public' modifier is redundant for instance method declared in a public extension
3 | public extension InputStream {
4 |
5 | public func readData(maxLength: Int) -> Foundation.Data? {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
6 | var bytes = [UInt8](repeating: 0, count: maxLength)
7 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:5:5: warning: 'public' modifier is redundant for instance method declared in a public extension
3 | public extension OutputStream {
4 |
5 | public func write(byte: UInt8) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
6 | var copy = byte
7 | write(©, maxLength: 1)
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:10:5: warning: 'public' modifier is redundant for instance method declared in a public extension
8 | }
9 |
10 | public func write(bytes: [UInt8]) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
11 | var copy = bytes
12 | write(©, maxLength: bytes.count)
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:15:5: warning: 'public' modifier is redundant for instance method declared in a public extension
13 | }
14 |
15 | public func write(data: Foundation.Data) {
| `- warning: 'public' modifier is redundant for instance method declared in a public extension
16 | var dataCopy = data
17 | let _ = dataCopy.withUnsafeMutableBytes { contents in
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:7:9: warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
5 | public func write(byte: UInt8) {
6 | var copy = byte
7 | write(©, maxLength: 1)
| `- warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
8 | }
9 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationOutputStreamExtension.swift:12:9: warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
10 | public func write(bytes: [UInt8]) {
11 | var copy = bytes
12 | write(©, maxLength: bytes.count)
| `- warning: result of call to 'write(_:maxLength:)' is unused [#no-usage]
13 | }
14 |
[112/186] Compiling SwiftBncsLib MessageConsumer.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/MessageConsumer.swift:30:37: error: ambiguous use of 'withUnsafeBytes'
28 |
29 | public mutating func readUInt8() -> UInt8 {
30 | let x: UInt8 = message.data.withUnsafeBytes({ return $0[readIndex] })
| `- error: ambiguous use of 'withUnsafeBytes'
31 | readIndex += 1
32 | return x
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/MpqReader.swift:234:13: warning: initialization of immutable value 'rawData' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
232 | let block = blockTable[Int(entry.blockIndex)]
233 |
234 | let rawData = consumer.message.subdataFromIndex(Data.Index(block.filePosition), length: Data.Index(block.compressedSize))
| `- warning: initialization of immutable value 'rawData' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
235 |
236 | // print("entry ): \(blockTable[Int(entry.blockIndex)])")
[113/186] Compiling SwiftBncsLib MpqReader.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/MessageConsumer.swift:30:37: error: ambiguous use of 'withUnsafeBytes'
28 |
29 | public mutating func readUInt8() -> UInt8 {
30 | let x: UInt8 = message.data.withUnsafeBytes({ return $0[readIndex] })
| `- error: ambiguous use of 'withUnsafeBytes'
31 | readIndex += 1
32 | return x
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/MpqReader.swift:234:13: warning: initialization of immutable value 'rawData' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
232 | let block = blockTable[Int(entry.blockIndex)]
233 |
234 | let rawData = consumer.message.subdataFromIndex(Data.Index(block.filePosition), length: Data.Index(block.compressedSize))
| `- warning: initialization of immutable value 'rawData' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
235 |
236 | // print("entry ): \(blockTable[Int(entry.blockIndex)])")
[114/186] Compiling SwiftBncsLib PortableExecutableUtil.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/MessageConsumer.swift:30:37: error: ambiguous use of 'withUnsafeBytes'
28 |
29 | public mutating func readUInt8() -> UInt8 {
30 | let x: UInt8 = message.data.withUnsafeBytes({ return $0[readIndex] })
| `- error: ambiguous use of 'withUnsafeBytes'
31 | readIndex += 1
32 | return x
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/MpqReader.swift:234:13: warning: initialization of immutable value 'rawData' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
232 | let block = blockTable[Int(entry.blockIndex)]
233 |
234 | let rawData = consumer.message.subdataFromIndex(Data.Index(block.filePosition), length: Data.Index(block.compressedSize))
| `- warning: initialization of immutable value 'rawData' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
235 |
236 | // print("entry ): \(blockTable[Int(entry.blockIndex)])")
[130/186] Compiling NIO Linux.swift
[131/186] Compiling NIO LinuxCPUSet.swift
[132/186] Compiling NIO RecvByteBufferAllocator.swift
[133/186] Compiling NIO Resolver.swift
[134/186] Compiling NIO Selectable.swift
[135/186] Compiling NIO Selector.swift
[136/186] Compiling NIO ServerSocket.swift
[137/186] Compiling NIO Socket.swift
[138/186] Compiling NIO SocketAddresses.swift
[139/186] Compiling SwiftBncsLib CdKeyDecode.swift
[140/186] Compiling SwiftBncsLib ChatChannel.swift
[146/186] Compiling SwiftBncsLib CheckRevision.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationDataExtension.swift:26:49: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
24 | let lineLength = 16
25 | return ((0...(contents.count / lineLength)).map { lineIndex in
26 | let hexPrintout = ((0..<lineLength).flatMap { columnIndex in
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
| `- note: use 'compactMap(_:)' instead
27 | let arrayIndex = lineIndex * 16 + columnIndex
28 | if arrayIndex >= contents.count { return " " }
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationDataExtension.swift:31:50: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
29 | return String(format: "%02X ", contents[arrayIndex])
30 | }).joined(separator: "")
31 | let charPrintout = ((0..<lineLength).flatMap { columnIndex in
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
| `- note: use 'compactMap(_:)' instead
32 | let arrayIndex = lineIndex * 16 + columnIndex
33 | if arrayIndex >= contents.count { return " " }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[147/186] Compiling SwiftBncsLib FoundationDataExtension.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationDataExtension.swift:26:49: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
24 | let lineLength = 16
25 | return ((0...(contents.count / lineLength)).map { lineIndex in
26 | let hexPrintout = ((0..<lineLength).flatMap { columnIndex in
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
| `- note: use 'compactMap(_:)' instead
27 | let arrayIndex = lineIndex * 16 + columnIndex
28 | if arrayIndex >= contents.count { return " " }
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationDataExtension.swift:31:50: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
29 | return String(format: "%02X ", contents[arrayIndex])
30 | }).joined(separator: "")
31 | let charPrintout = ((0..<lineLength).flatMap { columnIndex in
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
| `- note: use 'compactMap(_:)' instead
32 | let arrayIndex = lineIndex * 16 + columnIndex
33 | if arrayIndex >= contents.count { return " " }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[148/186] Compiling SwiftBncsLib FoundationDataXSha1.swift
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationDataExtension.swift:26:49: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
24 | let lineLength = 16
25 | return ((0...(contents.count / lineLength)).map { lineIndex in
26 | let hexPrintout = ((0..<lineLength).flatMap { columnIndex in
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
| `- note: use 'compactMap(_:)' instead
27 | let arrayIndex = lineIndex * 16 + columnIndex
28 | if arrayIndex >= contents.count { return " " }
/host/spi-builder-workspace/Sources/SwiftBncsLib/FoundationDataExtension.swift:31:50: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
29 | return String(format: "%02X ", contents[arrayIndex])
30 | }).joined(separator: "")
31 | let charPrintout = ((0..<lineLength).flatMap { columnIndex in
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value [#DeprecatedDeclaration]
| `- note: use 'compactMap(_:)' instead
32 | let arrayIndex = lineIndex * 16 + columnIndex
33 | if arrayIndex >= contents.count { return " " }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BncsMessage.swift:20:37: error: ambiguous use of 'withUnsafeBytes'
18 |
19 | // Check sanity bit
20 | guard 0xFF as UInt8 == data.withUnsafeBytes({ return $0[0] }) else {
| `- error: ambiguous use of 'withUnsafeBytes'
21 | throw BncsMessageError.IllegalSanityByte
22 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BncsMessage.swift:25:34: error: ambiguous use of 'withUnsafeBytes'
23 |
24 | // Check length matches
25 | guard data.count == data.withUnsafeBytes({ IntUtil.from8to16([$0[2], $0[3]]) }) else {
| `- error: ambiguous use of 'withUnsafeBytes'
26 | throw BncsMessageError.IncorrectMessageLength
27 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BncsMessage.swift:36:41: error: ambiguous use of 'withUnsafeBytes'
34 | precondition(data.count > 2)
35 |
36 | let rawIdentifier: UInt8 = data.withUnsafeBytes { return $0[1] }
| `- error: ambiguous use of 'withUnsafeBytes'
37 | return BncsMessageIdentifier(rawValue: rawIdentifier) ?? .None
38 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BncsMessage.swift:20:37: error: ambiguous use of 'withUnsafeBytes'
18 |
19 | // Check sanity bit
20 | guard 0xFF as UInt8 == data.withUnsafeBytes({ return $0[0] }) else {
| `- error: ambiguous use of 'withUnsafeBytes'
21 | throw BncsMessageError.IllegalSanityByte
22 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BncsMessage.swift:25:34: error: ambiguous use of 'withUnsafeBytes'
23 |
24 | // Check length matches
25 | guard data.count == data.withUnsafeBytes({ IntUtil.from8to16([$0[2], $0[3]]) }) else {
| `- error: ambiguous use of 'withUnsafeBytes'
26 | throw BncsMessageError.IncorrectMessageLength
27 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BncsMessage.swift:36:41: error: ambiguous use of 'withUnsafeBytes'
34 | precondition(data.count > 2)
35 |
36 | let rawIdentifier: UInt8 = data.withUnsafeBytes { return $0[1] }
| `- error: ambiguous use of 'withUnsafeBytes'
37 | return BncsMessageIdentifier(rawValue: rawIdentifier) ?? .None
38 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BncsMessage.swift:20:37: error: ambiguous use of 'withUnsafeBytes'
18 |
19 | // Check sanity bit
20 | guard 0xFF as UInt8 == data.withUnsafeBytes({ return $0[0] }) else {
| `- error: ambiguous use of 'withUnsafeBytes'
21 | throw BncsMessageError.IllegalSanityByte
22 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BncsMessage.swift:25:34: error: ambiguous use of 'withUnsafeBytes'
23 |
24 | // Check length matches
25 | guard data.count == data.withUnsafeBytes({ IntUtil.from8to16([$0[2], $0[3]]) }) else {
| `- error: ambiguous use of 'withUnsafeBytes'
26 | throw BncsMessageError.IncorrectMessageLength
27 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
/host/spi-builder-workspace/Sources/SwiftBncsLib/Messaging/BncsMessage.swift:36:41: error: ambiguous use of 'withUnsafeBytes'
34 | precondition(data.count > 2)
35 |
36 | let rawIdentifier: UInt8 = data.withUnsafeBytes { return $0[1] }
| `- error: ambiguous use of 'withUnsafeBytes'
37 | return BncsMessageIdentifier(rawValue: rawIdentifier) ?? .None
38 | }
FoundationEssentials.Data.withUnsafeBytes:3:15: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @available(swift, deprecated: 5, message: "use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead")
3 | public func withUnsafeBytes<ResultType, ContentType>(_ body: (UnsafePointer<ContentType>) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
4 |
FoundationEssentials.Data.withUnsafeBytes:2:24: note: found this candidate in module 'FoundationEssentials'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'FoundationEssentials'
3 |
BUILD FAILURE 6.3 linux