The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWNetWorkMonitor, reference 1.0.2 (852ba4), with Swift 6.3 for macOS (SPM) on 15 Apr 2026 10:10:40 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWNetWorkMonitor.git
Reference: 1.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWNetWorkMonitor
 * tag               1.0.2      -> FETCH_HEAD
HEAD is now at 852ba49 - 整理Code
Cloned https://github.com/William-Weng/WWNetWorkMonitor.git
Revision (git rev-parse @):
852ba498dfd8eb6f5063daa3dab85f12383033e3
SUCCESS checkout https://github.com/William-Weng/WWNetWorkMonitor.git at 1.0.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "wwnetworkmonitor",
      "name": "WWNetWorkMonitor",
      "url": "https://github.com/William-Weng/WWNetWorkMonitor.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WWNetWorkMonitor",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/William-Weng/WWNetWorkMonitor.git
[1/82] Fetching wwnetworkmonitor
Fetched https://github.com/William-Weng/WWNetWorkMonitor.git from cache (0.83s)
Creating working copy for https://github.com/William-Weng/WWNetWorkMonitor.git
Working copy of https://github.com/William-Weng/WWNetWorkMonitor.git resolved at 1.0.2 (852ba49)
warning: '.resolve-product-dependencies': dependency 'wwnetworkmonitor' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/William-Weng/WWNetWorkMonitor.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Copying Privacy
[2/3] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/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)
[5/6] Compiling WWNetWorkMonitor resource_bundle_accessor.swift
[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.3 macosSpm