The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BlockchainSwift, reference 0.2.0 (a7216e), with Swift 6.2 for macOS (SPM) on 17 Jun 2025 17:39:58 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nevstad/blockchain-swift.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nevstad/blockchain-swift
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at a7216ed Merge pull request #1 from nevstad/feature/network
Cloned https://github.com/nevstad/blockchain-swift.git
Revision (git rev-parse @):
a7216eda4b2f598f190b49bbb325bfefa34b244c
SUCCESS checkout https://github.com/nevstad/blockchain-swift.git at 0.2.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/nevstad/blockchain-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/18] Compiling BlockchainSwift TransactionInput.swift
[4/18] Compiling BlockchainSwift TransactionOutPoint.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/19] Compiling BlockchainSwift Block.swift
[6/19] Compiling BlockchainSwift Blockchain.swift
[7/19] Emitting module BlockchainSwift
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:15:33: error: 'NWConnection' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
15 |     public init(stateHandler: ((NWConnection.State) -> Void)? = nil) {
   |            |                    `- error: 'NWConnection' is only available in macOS 10.14 or newer
   |            `- note: add @available attribute to enclosing initializer
16 |         self.queue = DispatchQueue(label: "Node Client Queue")
17 |     }
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:19:53: error: 'NWConnection' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
   :
17 |     }
18 |
19 |     private func openConnection(to: NodeAddress) -> NWConnection {
   |                  |                                  `- error: 'NWConnection' is only available in macOS 10.14 or newer
   |                  `- note: add @available attribute to enclosing instance method
20 |         let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(to.host), port: NWEndpoint.Port(rawValue: UInt16(to.port))!)
21 |         let connection = NWConnection(to: endpoint, using: .udp)
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:20:26: error: 'NWListener' is only available in macOS 10.14 or newer
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
   |              `- note: add @available attribute to enclosing class
20 |     public let listener: NWListener
   |                          `- error: 'NWListener' is only available in macOS 10.14 or newer
21 |     public let queue: DispatchQueue
22 |     public var connections = [NWConnection]()
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:22:31: error: 'NWConnection' is only available in macOS 10.14 or newer
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
   |              `- note: add @available attribute to enclosing class
20 |     public let listener: NWListener
21 |     public let queue: DispatchQueue
22 |     public var connections = [NWConnection]()
   |                               `- error: 'NWConnection' is only available in macOS 10.14 or newer
23 |
24 |     var delegate: NodeServerDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:26:40: error: 'NWListener' is only available in macOS 10.14 or newer
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
   |              `- note: add @available attribute to enclosing class
20 |     public let listener: NWListener
21 |     public let queue: DispatchQueue
   :
24 |     var delegate: NodeServerDelegate?
25 |
26 |     init(port: UInt16, stateHandler: ((NWListener.State) -> Void)? = nil) {
   |     |                                  `- error: 'NWListener' is only available in macOS 10.14 or newer
   |     `- note: add @available attribute to enclosing initializer
27 |         self.queue = DispatchQueue(label: "Node Server Queue")
28 |         self.listener = try! NWListener(using: .udp, on: NWEndpoint.Port(rawValue: port)!)
[8/19] Compiling BlockchainSwift NodeServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:20:26: error: 'NWListener' is only available in macOS 10.14 or newer
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
   |              `- note: add @available attribute to enclosing class
20 |     public let listener: NWListener
   |                          `- error: 'NWListener' is only available in macOS 10.14 or newer
21 |     public let queue: DispatchQueue
22 |     public var connections = [NWConnection]()
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:22:31: error: 'NWConnection' is only available in macOS 10.14 or newer
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
   |              `- note: add @available attribute to enclosing class
20 |     public let listener: NWListener
21 |     public let queue: DispatchQueue
22 |     public var connections = [NWConnection]()
   |                               `- error: 'NWConnection' is only available in macOS 10.14 or newer
23 |
24 |     var delegate: NodeServerDelegate?
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:26:40: error: 'NWListener' is only available in macOS 10.14 or newer
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
   |              `- note: add @available attribute to enclosing class
20 |     public let listener: NWListener
21 |     public let queue: DispatchQueue
   :
24 |     var delegate: NodeServerDelegate?
25 |
26 |     init(port: UInt16, stateHandler: ((NWListener.State) -> Void)? = nil) {
   |     |                                  `- error: 'NWListener' is only available in macOS 10.14 or newer
   |     `- note: add @available attribute to enclosing initializer
27 |         self.queue = DispatchQueue(label: "Node Server Queue")
28 |         self.listener = try! NWListener(using: .udp, on: NWEndpoint.Port(rawValue: port)!)
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:28:30: error: 'NWListener' is only available in macOS 10.14 or newer
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
   |              `- note: add @available attribute to enclosing class
20 |     public let listener: NWListener
21 |     public let queue: DispatchQueue
   :
24 |     var delegate: NodeServerDelegate?
25 |
26 |     init(port: UInt16, stateHandler: ((NWListener.State) -> Void)? = nil) {
   |     `- note: add @available attribute to enclosing initializer
27 |         self.queue = DispatchQueue(label: "Node Server Queue")
28 |         self.listener = try! NWListener(using: .udp, on: NWEndpoint.Port(rawValue: port)!)
   |                              |- error: 'NWListener' is only available in macOS 10.14 or newer
   |                              `- note: add 'if #available' version check
29 |         listener.stateUpdateHandler = stateHandler
30 |         listener.newConnectionHandler = { [weak self] newConnection in
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:28:58: error: 'NWEndpoint' is only available in macOS 10.14 or newer
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
   |              `- note: add @available attribute to enclosing class
20 |     public let listener: NWListener
21 |     public let queue: DispatchQueue
   :
24 |     var delegate: NodeServerDelegate?
25 |
26 |     init(port: UInt16, stateHandler: ((NWListener.State) -> Void)? = nil) {
   |     `- note: add @available attribute to enclosing initializer
27 |         self.queue = DispatchQueue(label: "Node Server Queue")
28 |         self.listener = try! NWListener(using: .udp, on: NWEndpoint.Port(rawValue: port)!)
   |                                                          |- error: 'NWEndpoint' is only available in macOS 10.14 or newer
   |                                                          `- note: add 'if #available' version check
29 |         listener.stateUpdateHandler = stateHandler
30 |         listener.newConnectionHandler = { [weak self] newConnection in
[9/19] Compiling BlockchainSwift Serialization.swift
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Core/Serialization.swift:25:33: warning: initialization of 'UnsafeBufferPointer<Self>' results in a dangling buffer pointer [#TemporaryPointers]
23 |     static func +(lhs: Data, rhs: Self) -> Data {
24 |         var value = rhs
25 |         let data = Data(buffer: UnsafeBufferPointer(start: &value, count: 1))
   |                                 |                          |- note: implicit argument conversion from 'Self' to 'UnsafePointer<Self>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
   |                                 |                          `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
   |                                 `- warning: initialization of 'UnsafeBufferPointer<Self>' results in a dangling buffer pointer [#TemporaryPointers]
26 |         return lhs + data
27 |     }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[10/19] Compiling BlockchainSwift Transaction.swift
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Core/Serialization.swift:25:33: warning: initialization of 'UnsafeBufferPointer<Self>' results in a dangling buffer pointer [#TemporaryPointers]
23 |     static func +(lhs: Data, rhs: Self) -> Data {
24 |         var value = rhs
25 |         let data = Data(buffer: UnsafeBufferPointer(start: &value, count: 1))
   |                                 |                          |- note: implicit argument conversion from 'Self' to 'UnsafePointer<Self>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
   |                                 |                          `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
   |                                 `- warning: initialization of 'UnsafeBufferPointer<Self>' results in a dangling buffer pointer [#TemporaryPointers]
26 |         return lhs + data
27 |     }
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[11/19] Compiling BlockchainSwift SHA.swift
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:22:31: error: 'NWConnection' is only available in macOS 10.14 or newer
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
   |              `- note: add @available attribute to enclosing class
20 |     public let listener: NWListener
21 |     public let queue: DispatchQueue
22 |     public var connections = [NWConnection]()
   |                               `- error: 'NWConnection' is only available in macOS 10.14 or newer
23 |
24 |     var delegate: NodeServerDelegate?
[12/19] Compiling BlockchainSwift Node.swift
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:22:31: error: 'NWConnection' is only available in macOS 10.14 or newer
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
   |              `- note: add @available attribute to enclosing class
20 |     public let listener: NWListener
21 |     public let queue: DispatchQueue
22 |     public var connections = [NWConnection]()
   |                               `- error: 'NWConnection' is only available in macOS 10.14 or newer
23 |
24 |     var delegate: NodeServerDelegate?
[13/19] Compiling BlockchainSwift ProofOfWork.swift
[14/19] Compiling BlockchainSwift TransationOutput.swift
[15/19] Compiling BlockchainSwift ECDSA.swift
[16/19] Compiling BlockchainSwift NodeMessages.swift
[17/19] Compiling BlockchainSwift NodeAddress.swift
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:15:33: error: 'NWConnection' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
15 |     public init(stateHandler: ((NWConnection.State) -> Void)? = nil) {
   |            |                    `- error: 'NWConnection' is only available in macOS 10.14 or newer
   |            `- note: add @available attribute to enclosing initializer
16 |         self.queue = DispatchQueue(label: "Node Client Queue")
17 |     }
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:19:53: error: 'NWConnection' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
   :
17 |     }
18 |
19 |     private func openConnection(to: NodeAddress) -> NWConnection {
   |                  |                                  `- error: 'NWConnection' is only available in macOS 10.14 or newer
   |                  `- note: add @available attribute to enclosing instance method
20 |         let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(to.host), port: NWEndpoint.Port(rawValue: UInt16(to.port))!)
21 |         let connection = NWConnection(to: endpoint, using: .udp)
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:20:24: error: 'NWEndpoint' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
   :
17 |     }
18 |
19 |     private func openConnection(to: NodeAddress) -> NWConnection {
   |                  `- note: add @available attribute to enclosing instance method
20 |         let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(to.host), port: NWEndpoint.Port(rawValue: UInt16(to.port))!)
   |                        |- error: 'NWEndpoint' is only available in macOS 10.14 or newer
   |                        `- note: add 'if #available' version check
21 |         let connection = NWConnection(to: endpoint, using: .udp)
22 |         connection.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:20:50: error: 'NWEndpoint' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
   :
17 |     }
18 |
19 |     private func openConnection(to: NodeAddress) -> NWConnection {
   |                  `- note: add @available attribute to enclosing instance method
20 |         let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(to.host), port: NWEndpoint.Port(rawValue: UInt16(to.port))!)
   |                                                  |- error: 'NWEndpoint' is only available in macOS 10.14 or newer
   |                                                  `- note: add 'if #available' version check
21 |         let connection = NWConnection(to: endpoint, using: .udp)
22 |         connection.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:20:82: error: 'NWEndpoint' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
   :
17 |     }
18 |
19 |     private func openConnection(to: NodeAddress) -> NWConnection {
   |                  `- note: add @available attribute to enclosing instance method
20 |         let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(to.host), port: NWEndpoint.Port(rawValue: UInt16(to.port))!)
   |                                                                                  |- error: 'NWEndpoint' is only available in macOS 10.14 or newer
   |                                                                                  `- note: add 'if #available' version check
21 |         let connection = NWConnection(to: endpoint, using: .udp)
22 |         connection.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:21:26: error: 'NWConnection' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
   :
17 |     }
18 |
19 |     private func openConnection(to: NodeAddress) -> NWConnection {
   |                  `- note: add @available attribute to enclosing instance method
20 |         let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(to.host), port: NWEndpoint.Port(rawValue: UInt16(to.port))!)
21 |         let connection = NWConnection(to: endpoint, using: .udp)
   |                          |- error: 'NWConnection' is only available in macOS 10.14 or newer
   |                          `- note: add 'if #available' version check
22 |         connection.start(queue: queue)
23 |         return connection
[18/19] Compiling BlockchainSwift NodeClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:15:33: error: 'NWConnection' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
15 |     public init(stateHandler: ((NWConnection.State) -> Void)? = nil) {
   |            |                    `- error: 'NWConnection' is only available in macOS 10.14 or newer
   |            `- note: add @available attribute to enclosing initializer
16 |         self.queue = DispatchQueue(label: "Node Client Queue")
17 |     }
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:19:53: error: 'NWConnection' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
   :
17 |     }
18 |
19 |     private func openConnection(to: NodeAddress) -> NWConnection {
   |                  |                                  `- error: 'NWConnection' is only available in macOS 10.14 or newer
   |                  `- note: add @available attribute to enclosing instance method
20 |         let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(to.host), port: NWEndpoint.Port(rawValue: UInt16(to.port))!)
21 |         let connection = NWConnection(to: endpoint, using: .udp)
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:20:24: error: 'NWEndpoint' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
   :
17 |     }
18 |
19 |     private func openConnection(to: NodeAddress) -> NWConnection {
   |                  `- note: add @available attribute to enclosing instance method
20 |         let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(to.host), port: NWEndpoint.Port(rawValue: UInt16(to.port))!)
   |                        |- error: 'NWEndpoint' is only available in macOS 10.14 or newer
   |                        `- note: add 'if #available' version check
21 |         let connection = NWConnection(to: endpoint, using: .udp)
22 |         connection.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:20:50: error: 'NWEndpoint' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
   :
17 |     }
18 |
19 |     private func openConnection(to: NodeAddress) -> NWConnection {
   |                  `- note: add @available attribute to enclosing instance method
20 |         let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(to.host), port: NWEndpoint.Port(rawValue: UInt16(to.port))!)
   |                                                  |- error: 'NWEndpoint' is only available in macOS 10.14 or newer
   |                                                  `- note: add 'if #available' version check
21 |         let connection = NWConnection(to: endpoint, using: .udp)
22 |         connection.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:20:82: error: 'NWEndpoint' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
   :
17 |     }
18 |
19 |     private func openConnection(to: NodeAddress) -> NWConnection {
   |                  `- note: add @available attribute to enclosing instance method
20 |         let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(to.host), port: NWEndpoint.Port(rawValue: UInt16(to.port))!)
   |                                                                                  |- error: 'NWEndpoint' is only available in macOS 10.14 or newer
   |                                                                                  `- note: add 'if #available' version check
21 |         let connection = NWConnection(to: endpoint, using: .udp)
22 |         connection.start(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:21:26: error: 'NWConnection' is only available in macOS 10.14 or newer
10 |
11 | /// The NodeClient handles a an outgoing connection to another Node
12 | public class NodeClient {
   |              `- note: add @available attribute to enclosing class
13 |     public var queue: DispatchQueue
14 |
   :
17 |     }
18 |
19 |     private func openConnection(to: NodeAddress) -> NWConnection {
   |                  `- note: add @available attribute to enclosing instance method
20 |         let endpoint = NWEndpoint.hostPort(host: NWEndpoint.Host(to.host), port: NWEndpoint.Port(rawValue: UInt16(to.port))!)
21 |         let connection = NWConnection(to: endpoint, using: .udp)
   |                          |- error: 'NWConnection' is only available in macOS 10.14 or newer
   |                          `- note: add 'if #available' version check
22 |         connection.start(queue: queue)
23 |         return connection
[19/19] Compiling BlockchainSwift Wallet.swift
BUILD FAILURE 6.2 macosSpm