Build Information
Failed to build BlockchainSwift, reference 0.2.0 (a7216e
), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 03:07:57 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.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
========================================
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",
"dependencies": [
{
"identity": "blockchain-swift",
"name": "BlockchainSwift",
"url": "https://github.com/nevstad/blockchain-swift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/blockchain-swift",
"dependencies": [
]
}
]
}
Fetching https://github.com/nevstad/blockchain-swift.git
[13/642] Fetching blockchain-swift
Fetched https://github.com/nevstad/blockchain-swift.git from cache (0.89s)
Creating working copy for https://github.com/nevstad/blockchain-swift.git
Working copy of https://github.com/nevstad/blockchain-swift.git resolved at 0.2.0 (a7216ed)
warning: '.resolve-product-dependencies': dependency 'blockchain-swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/nevstad/blockchain-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/18] Compiling BlockchainSwift NodeMessages.swift
[4/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
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
26 | return lhs + data
27 | }
[5/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
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
26 | return lhs + data
27 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/19] Compiling BlockchainSwift Block.swift
[7/19] Compiling BlockchainSwift Blockchain.swift
[8/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)!)
[9/19] Compiling BlockchainSwift TransactionInput.swift
[10/19] Compiling BlockchainSwift TransactionOutPoint.swift
[11/19] Compiling BlockchainSwift TransationOutput.swift
[12/19] Compiling BlockchainSwift ECDSA.swift
[13/19] Compiling BlockchainSwift ProofOfWork.swift
[14/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
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:33:31: warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | print(error)
32 | } else {
33 | print("Sent \(message)")
| `- warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | }
35 | }))
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeMessages.swift:11:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
9 |
10 | /// All messages get wrapped
11 | public struct Message: Serializable, Deserializable, Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
12 | public enum Commands: String {
13 | case version
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:45:31: warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | print(error)
44 | } else {
45 | print("Sent \(message)")
| `- warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 | }
47 | }))
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeMessages.swift:11:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
9 |
10 | /// All messages get wrapped
11 | public struct Message: Serializable, Deserializable, Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
12 | public enum Commands: String {
13 | case version
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:57:31: warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | print(error)
56 | } else {
57 | print("Sent \(message)")
| `- warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | }
59 | }))
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeMessages.swift:11:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
9 |
10 | /// All messages get wrapped
11 | public struct Message: Serializable, Deserializable, Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
12 | public enum Commands: String {
13 | case version
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:69:31: warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | print(error)
68 | } else {
69 | print("Sent \(message)")
| `- warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | }
71 | }))
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeMessages.swift:11:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
9 |
10 | /// All messages get wrapped
11 | public struct Message: Serializable, Deserializable, Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
12 | public enum Commands: String {
13 | case version
[15/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
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:33:31: warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | print(error)
32 | } else {
33 | print("Sent \(message)")
| `- warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
34 | }
35 | }))
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeMessages.swift:11:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
9 |
10 | /// All messages get wrapped
11 | public struct Message: Serializable, Deserializable, Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
12 | public enum Commands: String {
13 | case version
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:45:31: warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | print(error)
44 | } else {
45 | print("Sent \(message)")
| `- warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 | }
47 | }))
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeMessages.swift:11:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
9 |
10 | /// All messages get wrapped
11 | public struct Message: Serializable, Deserializable, Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
12 | public enum Commands: String {
13 | case version
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:57:31: warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | print(error)
56 | } else {
57 | print("Sent \(message)")
| `- warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | }
59 | }))
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeMessages.swift:11:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
9 |
10 | /// All messages get wrapped
11 | public struct Message: Serializable, Deserializable, Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
12 | public enum Commands: String {
13 | case version
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeClient.swift:69:31: warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | print(error)
68 | } else {
69 | print("Sent \(message)")
| `- warning: capture of 'message' with non-sendable type 'Message' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | }
71 | }))
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeMessages.swift:11:15: note: consider making struct 'Message' conform to the 'Sendable' protocol
9 |
10 | /// All messages get wrapped
11 | public struct Message: Serializable, Deserializable, Codable {
| `- note: consider making struct 'Message' conform to the 'Sendable' protocol
12 | public enum Commands: String {
13 | case version
[16/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?
[17/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?
[18/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
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:29:37: warning: assigning non-sendable parameter 'stateHandler' to a @Sendable closure
24 | var delegate: NodeServerDelegate?
25 |
26 | init(port: UInt16, stateHandler: ((NWListener.State) -> Void)? = nil) {
| `- note: parameter 'stateHandler' is implicitly non-sendable
27 | self.queue = DispatchQueue(label: "Node Server Queue")
28 | self.listener = try! NWListener(using: .udp, on: NWEndpoint.Port(rawValue: port)!)
29 | listener.stateUpdateHandler = stateHandler
| `- warning: assigning non-sendable parameter 'stateHandler' to a @Sendable closure
30 | listener.newConnectionHandler = { [weak self] newConnection in
31 | if let strongSelf = self {
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:31:33: warning: capture of 'self' with non-sendable type 'NodeServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
| `- note: class 'NodeServer' does not conform to the 'Sendable' protocol
20 | public let listener: NWListener
21 | public let queue: DispatchQueue
:
29 | listener.stateUpdateHandler = stateHandler
30 | listener.newConnectionHandler = { [weak self] newConnection in
31 | if let strongSelf = self {
| `- warning: capture of 'self' with non-sendable type 'NodeServer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | newConnection.receiveMessage { (data, context, isComplete, error) in
33 | if let data = data, let message = try? Message.deserialize(data) {
/Users/admin/builder/spi-builder-workspace/Sources/BlockchainSwift/Network/NodeServer.swift:36:33: warning: capture of 'strongSelf' with non-sendable type 'NodeServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |
18 | /// The NodeServer handles all incoming connections to a Node
19 | public class NodeServer {
| `- note: class 'NodeServer' does not conform to the 'Sendable' protocol
20 | public let listener: NWListener
21 | public let queue: DispatchQueue
:
34 | if message.command == Message.Commands.version.rawValue {
35 | if let versionMessage = try? VersionMessage.deserialize(message.payload) {
36 | strongSelf.delegate?.didReceiveVersionMessage(versionMessage)
| `- warning: capture of 'strongSelf' with non-sendable type 'NodeServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | } else {
38 | print("Error: Received malformed \(message.command) message")
[19/19] Compiling BlockchainSwift Wallet.swift
BUILD FAILURE 6.0 macosSpm