Build Information
Failed to build SwiftBncsLib, reference master (39ff13), with Swift 6.2 for macOS (SPM) on 18 Jun 2025 07:05:53 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/wjlafrance/swiftbncslib.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/27] Write sources
[2/27] Write SwiftBncsClient-entitlement.plist
[3/27] Write sources
[8/27] Write SwiftBnls-entitlement.plist
[9/27] Write SwiftBnftp-entitlement.plist
[10/27] Write sources
[12/27] Write swift-version-1EA4D86E10B52AF.txt
[13/27] Compiling CNIOLinux shim.c
[14/27] Compiling CNIOLinux ifaddrs-android.c
[15/89] Compiling CNIODarwin shim.c
[16/89] Compiling CNIOSHA1 c_nio_sha1.c
[18/89] Compiling NIOPriorityQueue Heap.swift
[19/89] Compiling NIOPriorityQueue PriorityQueue.swift
[20/89] Emitting module NIOPriorityQueue
[20/89] Compiling c-atomics.c
[22/92] Compiling NIOConcurrencyHelpers atomics.swift
[23/92] Compiling NIOConcurrencyHelpers lock.swift
[24/92] Emitting module NIOConcurrencyHelpers
[25/104] Compiling NIO AddressedEnvelope.swift
[26/104] Compiling NIO BaseSocket.swift
[27/104] Compiling NIO BaseSocketChannel.swift
[28/104] Compiling NIO BlockingIOThreadPool.swift
[29/104] Compiling NIO Bootstrap.swift
[30/104] Compiling NIO ByteBuffer-aux.swift
[31/104] Compiling NIO PendingWritesManager.swift
[32/149] Emitting module CryptoSwift
[33/149] Compiling NIO IOData.swift
[34/149] Compiling NIO IntegerTypes.swift
[35/149] Compiling NIO Interfaces.swift
[36/149] Compiling NIO Linux.swift
[37/149] Compiling NIO LinuxCPUSet.swift
[38/154] Compiling NIO Thread.swift
[39/154] Compiling NIO TypeAssistedChannelHandler.swift
[40/154] Compiling NIO Utilities.swift
[41/154] Compiling CryptoSwift SecureBytes.swift
[42/154] Compiling CryptoSwift String+Extension.swift
[43/154] Compiling CryptoSwift UInt16+Extension.swift
[44/154] Compiling CryptoSwift UInt32+Extension.swift
[45/154] Compiling CryptoSwift UInt64+Extension.swift
[46/154] Compiling CryptoSwift UInt8+Extension.swift
[47/154] Compiling CryptoSwift Updatable.swift
[48/154] Compiling CryptoSwift Utils.swift
[49/154] Compiling CryptoSwift ZeroPadding.swift
[50/154] Compiling NIO FileHandle.swift
[51/154] Compiling NIO FileRegion.swift
[52/154] Compiling NIO GetaddrinfoResolver.swift
[53/154] Compiling NIO HappyEyeballs.swift
[54/154] Compiling NIO Heap.swift
[55/154] Compiling NIO IO.swift
[56/154] Compiling NIO ChannelInvoker.swift
[57/154] Compiling NIO ChannelOption.swift
[58/154] Compiling NIO ChannelPipeline.swift
[59/154] Compiling NIO CircularBuffer.swift
[60/154] Compiling NIO Codec.swift
[61/154] Compiling NIO CompositeError.swift
[62/154] Compiling NIO MarkedCircularBuffer.swift
[63/154] Compiling NIO MulticastChannel.swift
[64/154] Compiling NIO NIOAny.swift
[65/154] Compiling NIO NonBlockingFileIO.swift
[66/154] Compiling NIO PendingDatagramWritesManager.swift
[67/154] Emitting module NIO
[68/154] Compiling NIO FileDescriptor.swift
[74/154] Compiling NIO ChannelHandler.swift
[75/154] Compiling NIO ChannelHandlers.swift
[76/154] Compiling NIO ContiguousCollection.swift
[77/154] Compiling NIO DeadChannel.swift
[78/154] Compiling NIO Embedded.swift
[79/154] Compiling NIO EventLoop.swift
[80/154] Compiling NIO EventLoopFuture.swift
[92/154] Compiling NIO SocketOptionProvider.swift
[93/154] Compiling NIO System.swift
[106/154] Compiling NIO PriorityQueue.swift
[107/154] Compiling NIO RecvByteBufferAllocator.swift
[108/154] Compiling NIO Resolver.swift
[109/154] Compiling NIO Selectable.swift
[110/154] Compiling NIO Selector.swift
[111/154] Compiling NIO ServerSocket.swift
[112/154] Compiling NIO ByteBuffer-core.swift
[113/154] Compiling NIO ByteBuffer-int.swift
[114/154] Compiling NIO ByteBuffer-views.swift
[115/154] Compiling NIO Channel.swift
[123/154] Compiling NIO Socket.swift
[124/154] Compiling NIO SocketAddresses.swift
[125/154] Compiling NIO SocketChannel.swift
[130/178] Compiling SwiftBncsLib BncsMessageConsumer.swift
[131/178] Compiling SwiftBncsLib FourCC.swift
[132/178] Compiling SwiftBncsLib IntUtil.swift
[133/178] Compiling SwiftBncsLib BncsMessage.swift
[134/178] Compiling SwiftBncsLib ChatChannel.swift
[135/178] Compiling SwiftBncsLib BncsEnumerations.swift
[136/178] Compiling SwiftBncsLib BncsStructures.swift
[137/178] Compiling SwiftBncsLib BnftpRequestComposer.swift
[138/178] Compiling SwiftBncsLib BnlsMessage.swift
[139/178] Compiling SwiftBncsLib BnlsMessageComposer.swift
[140/178] Compiling SwiftBncsLib BncsMessageComposer.swift
[141/178] Compiling SwiftBncsLib CheckRevision.swift
[142/178] Compiling SwiftBncsLib FoundationDataExtension.swift
[143/178] Compiling SwiftBncsLib BnlsMessageConsumer.swift
[144/178] Compiling SwiftBncsLib Message.swift
[145/178] Compiling SwiftBncsLib FoundationDataXSha1.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 |
/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 |
/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 |
/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 |
/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 |
[156/180] 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
/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>
/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>
/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>
/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
[161/180] 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
[162/180] 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
[165/180] Compiling SwiftBncsLib BnftpResponseConsumer.swift
[166/180] Compiling SwiftBncsLib BnlsEnumerations.swift
[167/180] Compiling SwiftBncsLib CdKeyDecode.swift
[168/180] 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 |
[169/180] 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 |
[170/180] Compiling SwiftBncsLib MpqReader.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)])")
[171/180] Compiling SwiftBncsLib PortableExecutableUtil.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)])")
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/12941] Fetching cryptoswift
[1813/89268] Fetching cryptoswift, swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (3.44s)
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (3.44s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 0.8.3 (3.99s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (0.52s)
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.56s)
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 (1.10s)
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-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/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
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.2 macosSpm