Build Information
Failed to build WWNetWorkMonitor, reference main (e96eea), with Swift 6.2 for macOS (SPM) on 22 Jun 2025 15:06:58 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/William-Weng/WWNetWorkMonitor.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWNetWorkMonitor
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e96eeaa - update package
Cloned https://github.com/William-Weng/WWNetWorkMonitor.git
Revision (git rev-parse @):
e96eeaab9bd99307d55d86f32ea20b3028816354
SUCCESS checkout https://github.com/William-Weng/WWNetWorkMonitor.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/William-Weng/WWNetWorkMonitor.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Copying Privacy
[2/3] Write swift-version-1EA4D86E10B52AF.txt
[4/6] Compiling WWNetWorkMonitor resource_bundle_accessor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/6] Emitting module WWNetWorkMonitor
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:15:31: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
9 |
10 | // MARK: - WWNetWorkMonitor
11 | open class WWNetWorkMonitor: NSObject {
| `- note: add @available attribute to enclosing class
12 |
13 | static public let shared = WWNetWorkMonitor()
14 |
15 | private lazy var monitor: NWPathMonitor = monitorMakerForAll(queue: .global())
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:23:34: error: 'NWPath' is only available in macOS 10.14 or newer
17 |
18 | // MARK: - 公開函式
19 | public extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
20 |
21 | /// 取得當前網路的相關訊息
22 | /// - Returns: NWPath
23 | func currnetNetworkPath() -> NWPath {
| | `- error: 'NWPath' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
24 | return monitor.currentPath
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:32:35: error: 'NWInterface' is only available in macOS 10.14 or newer
17 |
18 | // MARK: - 公開函式
19 | public extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
20 |
21 | /// 取得當前網路的相關訊息
:
30 | /// - queue: DispatchQueue
31 | /// - result: (NWPath) -> Void
32 | func start(for interfaceType: NWInterface.InterfaceType? = nil, queue: DispatchQueue = .global(), result: @escaping ((NWPath) -> Void)) {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
33 | monitor = monitorMaker(queue: queue, forInterfaceType: interfaceType)
34 | monitor.pathUpdateHandler = { (path) in result(path) }
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:32:123: error: 'NWPath' is only available in macOS 10.14 or newer
17 |
18 | // MARK: - 公開函式
19 | public extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
20 |
21 | /// 取得當前網路的相關訊息
:
30 | /// - queue: DispatchQueue
31 | /// - result: (NWPath) -> Void
32 | func start(for interfaceType: NWInterface.InterfaceType? = nil, queue: DispatchQueue = .global(), result: @escaping ((NWPath) -> Void)) {
| | `- error: 'NWPath' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
33 | monitor = monitorMaker(queue: queue, forInterfaceType: interfaceType)
34 | monitor.pathUpdateHandler = { (path) in result(path) }
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:51:77: error: 'NWInterface' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
49 | /// - interfaceType: NWInterface.InterfaceType?
50 | /// - Returns: NWPathMonitor
51 | func monitorMaker(queue: DispatchQueue, forInterfaceType interfaceType: NWInterface.InterfaceType?) -> NWPathMonitor {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
52 | if let interfaceType = interfaceType { return monitorMakerForType(interfaceType, queue: queue) }
53 | return monitorMakerForAll(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:51:108: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
49 | /// - interfaceType: NWInterface.InterfaceType?
50 | /// - Returns: NWPathMonitor
51 | func monitorMaker(queue: DispatchQueue, forInterfaceType interfaceType: NWInterface.InterfaceType?) -> NWPathMonitor {
| | `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
52 | if let interfaceType = interfaceType { return monitorMakerForType(interfaceType, queue: queue) }
53 | return monitorMakerForAll(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:59:54: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
57 | /// - Parameter queue: DispatchQueue
58 | /// - Returns: NWPathMonitor
59 | func monitorMakerForAll(queue: DispatchQueue) -> NWPathMonitor {
| | `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
60 |
61 | let monitor = NWPathMonitor()
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:72:47: error: 'NWInterface' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
70 | /// - queue: DispatchQueue
71 | /// - Returns: NWPathMonitor
72 | func monitorMakerForType(_ interfaceType: NWInterface.InterfaceType, queue: DispatchQueue) -> NWPathMonitor {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
73 |
74 | let monitor = NWPathMonitor(requiredInterfaceType: interfaceType)
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:72:99: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
70 | /// - queue: DispatchQueue
71 | /// - Returns: NWPathMonitor
72 | func monitorMakerForType(_ interfaceType: NWInterface.InterfaceType, queue: DispatchQueue) -> NWPathMonitor {
| | `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
73 |
74 | let monitor = NWPathMonitor(requiredInterfaceType: interfaceType)
[6/6] Compiling WWNetWorkMonitor WWNetWorkMonitor.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:15:31: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
9 |
10 | // MARK: - WWNetWorkMonitor
11 | open class WWNetWorkMonitor: NSObject {
| `- note: add @available attribute to enclosing class
12 |
13 | static public let shared = WWNetWorkMonitor()
14 |
15 | private lazy var monitor: NWPathMonitor = monitorMakerForAll(queue: .global())
| `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:23:34: error: 'NWPath' is only available in macOS 10.14 or newer
17 |
18 | // MARK: - 公開函式
19 | public extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
20 |
21 | /// 取得當前網路的相關訊息
22 | /// - Returns: NWPath
23 | func currnetNetworkPath() -> NWPath {
| | `- error: 'NWPath' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
24 | return monitor.currentPath
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:32:35: error: 'NWInterface' is only available in macOS 10.14 or newer
17 |
18 | // MARK: - 公開函式
19 | public extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
20 |
21 | /// 取得當前網路的相關訊息
:
30 | /// - queue: DispatchQueue
31 | /// - result: (NWPath) -> Void
32 | func start(for interfaceType: NWInterface.InterfaceType? = nil, queue: DispatchQueue = .global(), result: @escaping ((NWPath) -> Void)) {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
33 | monitor = monitorMaker(queue: queue, forInterfaceType: interfaceType)
34 | monitor.pathUpdateHandler = { (path) in result(path) }
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:32:123: error: 'NWPath' is only available in macOS 10.14 or newer
17 |
18 | // MARK: - 公開函式
19 | public extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
20 |
21 | /// 取得當前網路的相關訊息
:
30 | /// - queue: DispatchQueue
31 | /// - result: (NWPath) -> Void
32 | func start(for interfaceType: NWInterface.InterfaceType? = nil, queue: DispatchQueue = .global(), result: @escaping ((NWPath) -> Void)) {
| | `- error: 'NWPath' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
33 | monitor = monitorMaker(queue: queue, forInterfaceType: interfaceType)
34 | monitor.pathUpdateHandler = { (path) in result(path) }
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:51:77: error: 'NWInterface' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
49 | /// - interfaceType: NWInterface.InterfaceType?
50 | /// - Returns: NWPathMonitor
51 | func monitorMaker(queue: DispatchQueue, forInterfaceType interfaceType: NWInterface.InterfaceType?) -> NWPathMonitor {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
52 | if let interfaceType = interfaceType { return monitorMakerForType(interfaceType, queue: queue) }
53 | return monitorMakerForAll(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:51:108: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
49 | /// - interfaceType: NWInterface.InterfaceType?
50 | /// - Returns: NWPathMonitor
51 | func monitorMaker(queue: DispatchQueue, forInterfaceType interfaceType: NWInterface.InterfaceType?) -> NWPathMonitor {
| | `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
52 | if let interfaceType = interfaceType { return monitorMakerForType(interfaceType, queue: queue) }
53 | return monitorMakerForAll(queue: queue)
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:59:54: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
57 | /// - Parameter queue: DispatchQueue
58 | /// - Returns: NWPathMonitor
59 | func monitorMakerForAll(queue: DispatchQueue) -> NWPathMonitor {
| | `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
60 |
61 | let monitor = NWPathMonitor()
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:72:47: error: 'NWInterface' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
70 | /// - queue: DispatchQueue
71 | /// - Returns: NWPathMonitor
72 | func monitorMakerForType(_ interfaceType: NWInterface.InterfaceType, queue: DispatchQueue) -> NWPathMonitor {
| | `- error: 'NWInterface' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
73 |
74 | let monitor = NWPathMonitor(requiredInterfaceType: interfaceType)
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:72:99: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
70 | /// - queue: DispatchQueue
71 | /// - Returns: NWPathMonitor
72 | func monitorMakerForType(_ interfaceType: NWInterface.InterfaceType, queue: DispatchQueue) -> NWPathMonitor {
| | `- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
73 |
74 | let monitor = NWPathMonitor(requiredInterfaceType: interfaceType)
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:61:23: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
57 | /// - Parameter queue: DispatchQueue
58 | /// - Returns: NWPathMonitor
59 | func monitorMakerForAll(queue: DispatchQueue) -> NWPathMonitor {
| `- note: add @available attribute to enclosing instance method
60 |
61 | let monitor = NWPathMonitor()
| |- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
62 | monitor.start(queue: queue)
63 |
/Users/admin/builder/spi-builder-workspace/Sources/WWNetWorkMonitor/WWNetWorkMonitor.swift:74:23: error: 'NWPathMonitor' is only available in macOS 10.14 or newer
42 |
43 | // MARK: - 小工具
44 | private extension WWNetWorkMonitor {
| `- note: add @available attribute to enclosing extension
45 |
46 | /// 產生NWPathMonitor
:
70 | /// - queue: DispatchQueue
71 | /// - Returns: NWPathMonitor
72 | func monitorMakerForType(_ interfaceType: NWInterface.InterfaceType, queue: DispatchQueue) -> NWPathMonitor {
| `- note: add @available attribute to enclosing instance method
73 |
74 | let monitor = NWPathMonitor(requiredInterfaceType: interfaceType)
| |- error: 'NWPathMonitor' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
75 | monitor.start(queue: queue)
76 |
BUILD FAILURE 6.2 macosSpm