Build Information
Failed to build SwiftBncsLib, reference master (39ff13), with Swift 6.3 for macOS (SPM) on 11 Apr 2026 07:38:30 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build 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 /Users/admin/builder/spi-builder-workspace/.git/
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
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-zlib-support.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/15] Fetching swift-nio-zlib-support
[16/13356] Fetching swift-nio-zlib-support, cryptoswift
[3752/96457] Fetching swift-nio-zlib-support, cryptoswift, swift-nio
Fetched https://github.com/apple/swift-nio-zlib-support.git from cache (7.17s)
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (7.17s)
Fetched https://github.com/apple/swift-nio.git from cache (7.17s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 0.8.3 (7.92s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.0.0 (0.69s)
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.70s)
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 0.8.3
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.0.0
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
========================================
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",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swiftbncslib",
"name": "SwiftBncsLib",
"url": "https://github.com/wjlafrance/swiftbncslib.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftbncslib",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio.git",
"version": "1.14.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swift-nio-zlib-support",
"name": "swift-nio-zlib-support",
"url": "https://github.com/apple/swift-nio-zlib-support.git",
"version": "1.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio-zlib-support",
"traits": [
"default"
],
"dependencies": [
]
}
]
},
{
"identity": "cryptoswift",
"name": "CryptoSwift",
"url": "https://github.com/krzyzanowskim/CryptoSwift.git",
"version": "0.8.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CryptoSwift",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/wjlafrance/swiftbncslib.git
[1/568] Fetching swiftbncslib
Fetched https://github.com/wjlafrance/swiftbncslib.git from cache (1.53s)
Fetching https://github.com/krzyzanowskim/CryptoSwift.git from cache
Fetching https://github.com/apple/swift-nio.git from cache
Fetched https://github.com/apple/swift-nio.git from cache (0.72s)
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (0.72s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 0.8.3 (0.79s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.76s)
Fetching https://github.com/apple/swift-nio-zlib-support.git from cache
Fetched https://github.com/apple/swift-nio-zlib-support.git from cache (0.40s)
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.46s)
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
Creating working copy for https://github.com/wjlafrance/swiftbncslib.git
Working copy of https://github.com/wjlafrance/swiftbncslib.git resolved at master (39ff139)
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
Found 2 product dependencies
- swift-nio
- CryptoSwift
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/wjlafrance/swiftbncslib.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/25] Write sources
[3/25] Write SwiftBnls-entitlement.plist
[3/25] Write sources
[5/25] Write SwiftBncsClient-entitlement.plist
[5/25] Write sources
[6/25] Write SwiftBnftp-entitlement.plist
[7/25] Write sources
[12/25] Compiling CNIOLinux shim.c
[13/25] Write swift-version--6988338F2F200930.txt
[14/87] Compiling CNIODarwin shim.c
[16/87] Emitting module NIOPriorityQueue
[17/87] Compiling NIOPriorityQueue PriorityQueue.swift
[18/87] Compiling NIOPriorityQueue Heap.swift
[19/87] Compiling CryptoSwift NoPadding.swift
[20/87] Compiling CryptoSwift Operators.swift
[21/87] Compiling CryptoSwift PBKDF1.swift
[22/87] Compiling CryptoSwift PBKDF2.swift
[23/87] Compiling CryptoSwift PKCS5.swift
[24/87] Compiling CryptoSwift PKCS7.swift
[25/93] Emitting module CryptoSwift
[26/93] Compiling CryptoSwift BlockCipher.swift
[27/93] Compiling CryptoSwift BlockMode.swift
[28/93] Compiling CryptoSwift BlockModeOptions.swift
[29/93] Compiling CryptoSwift BlockModeWorker.swift
[30/93] Compiling CryptoSwift CBC.swift
[31/93] Compiling CryptoSwift CFB.swift
[32/93] Compiling CryptoSwift CTR.swift
[33/93] Compiling CryptoSwift PKCS7Padding.swift
[34/93] Compiling CryptoSwift Padding.swift
[35/93] Compiling CryptoSwift Poly1305.swift
[36/93] Compiling CryptoSwift Rabbit.swift
[37/93] Compiling CryptoSwift RandomAccessCryptor.swift
[38/93] Compiling CryptoSwift RandomBytesSequence.swift
[39/93] Compiling CryptoSwift UInt32+Extension.swift
[40/93] Compiling CryptoSwift UInt64+Extension.swift
[41/93] Compiling CryptoSwift UInt8+Extension.swift
[42/93] Compiling CryptoSwift Updatable.swift
[43/93] Compiling CryptoSwift Utils.swift
[44/93] Compiling CryptoSwift ZeroPadding.swift
[45/93] Compiling CryptoSwift Cipher.swift
[46/93] Compiling CryptoSwift Collection+Extension.swift
[47/93] Compiling CryptoSwift Cryptors.swift
[48/93] Compiling CryptoSwift Digest.swift
[49/93] Compiling CryptoSwift DigestType.swift
[50/93] Compiling CryptoSwift AES+Foundation.swift
[51/93] Compiling CryptoSwift Array+Foundation.swift
[52/93] Compiling CryptoSwift ECB.swift
[53/93] Compiling CryptoSwift OFB.swift
[54/93] Compiling CryptoSwift PCBC.swift
[55/93] Compiling CryptoSwift RandomAccessBlockModeWorker.swift
[56/93] Compiling CryptoSwift Blowfish.swift
[57/93] Compiling CryptoSwift ChaCha20.swift
[58/93] Compiling CryptoSwift Checksum.swift
[59/93] Compiling CryptoSwift SHA1.swift
[60/93] Compiling CryptoSwift SHA2.swift
[61/93] Compiling CryptoSwift SHA3.swift
[62/93] Compiling CryptoSwift SecureBytes.swift
[63/93] Compiling CryptoSwift String+Extension.swift
[64/93] Compiling CryptoSwift UInt16+Extension.swift
[65/93] Compiling CryptoSwift Blowfish+Foundation.swift
[66/93] Compiling CryptoSwift ChaCha20+Foundation.swift
[67/93] Compiling CryptoSwift Data+Extension.swift
[68/93] Compiling CryptoSwift HMAC+Foundation.swift
[69/93] Compiling CryptoSwift Rabbit+Foundation.swift
[70/93] Compiling CryptoSwift String+FoundationExtension.swift
[71/93] Compiling CryptoSwift Utils+Foundation.swift
[72/93] Compiling CryptoSwift Generics.swift
[73/93] Compiling CryptoSwift HKDF.swift
[74/93] Compiling CryptoSwift HMAC.swift
[75/93] Compiling CryptoSwift Int+Extension.swift
[76/93] Compiling CryptoSwift MD5.swift
[77/93] Compiling CryptoSwift AES.Cryptors.swift
[78/93] Compiling CryptoSwift AES.swift
[79/93] Compiling CryptoSwift Array+Extension.swift
[80/93] Compiling CryptoSwift Array+Extensions.swift
[81/93] Compiling CryptoSwift Authenticator.swift
[82/93] Compiling CryptoSwift BatchedCollection.swift
[83/93] Compiling CryptoSwift Bit.swift
[84/117] Compiling SwiftBncsLib BnlsMessageConsumer.swift
[85/117] Compiling SwiftBncsLib Message.swift
[86/119] Compiling SwiftBncsLib MessageComposer.swift
/Users/admin/builder/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
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
[87/119] Compiling SwiftBncsLib MessageConsumer.swift
/Users/admin/builder/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
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
[88/119] Compiling SwiftBncsLib BncsMessageComposer.swift
[89/119] Compiling SwiftBncsLib BncsMessageConsumer.swift
[90/119] Compiling SwiftBncsLib BnlsMessage.swift
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
[91/119] Compiling SwiftBncsLib BnlsMessageComposer.swift
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
[92/119] Compiling SwiftBncsLib FourCC.swift
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
[93/119] Compiling SwiftBncsLib IntUtil.swift
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
[94/119] Compiling SwiftBncsLib BncsMessage.swift
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
/Users/admin/builder/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 | }
Foundation.Data.withUnsafeBytes:3:15: note: found this candidate in module 'Foundation'
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 'Foundation'
4 |
Foundation.Data.withUnsafeBytes:2:24: note: found this candidate in module 'Foundation'
1 | struct Data {
2 | @inlinable public func withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultType}
| `- note: found this candidate in module 'Foundation'
3 |
[95/119] Emitting module SwiftBncsLib
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
[96/119] Compiling SwiftBncsLib FoundationDataXSha1.swift
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
[97/119] Compiling SwiftBncsLib FoundationInputStreamExtension.swift
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
[98/119] Compiling SwiftBncsLib FoundationOutputStreamExtension.swift
/Users/admin/builder/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 |
/Users/admin/builder/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)
/Users/admin/builder/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)
/Users/admin/builder/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
[98/119] Compiling c-atomics.c
[100/122] Compiling SwiftBncsLib ChatChannel.swift
/Users/admin/builder/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 " " }
/Users/admin/builder/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>
[101/122] Compiling SwiftBncsLib CheckRevision.swift
/Users/admin/builder/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 " " }
/Users/admin/builder/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>
[102/122] Compiling SwiftBncsLib FoundationDataExtension.swift
/Users/admin/builder/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 " " }
/Users/admin/builder/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>
[103/122] Compiling SwiftBncsLib BncsEnumerations.swift
[104/122] Compiling SwiftBncsLib BncsStructures.swift
[105/122] Compiling SwiftBncsLib BnftpRequestComposer.swift
[106/122] Compiling SwiftBncsLib BnftpResponseConsumer.swift
[107/122] Compiling SwiftBncsLib BnlsEnumerations.swift
[108/122] Compiling SwiftBncsLib CdKeyDecode.swift
[109/122] Compiling NIOConcurrencyHelpers lock.swift
[110/122] Emitting module NIOConcurrencyHelpers
[111/122] Compiling NIOConcurrencyHelpers atomics.swift
[112/165] Compiling NIO FileHandle.swift
/Users/admin/builder/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/165] Compiling NIO FileRegion.swift
/Users/admin/builder/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)])")
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: couldn't find pc file for zlib
warning: couldn't find pc file for zlib
BUILD FAILURE 6.3 macosSpm