Build Information
Failed to build WWSystemStatus, reference 1.1.0 (9a2a3f), with Swift 6.2 for macOS (SPM) on 13 Aug 2026 04:49:53 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/William-Weng/WWSystemStatus.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWSystemStatus
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at 9a2a3f8 - 改成使用WWNetworkClient - 改用async / await 語法
Cloned https://github.com/William-Weng/WWSystemStatus.git
Revision (git rev-parse @):
9a2a3f8b8044c1d2d10fefe82f133f921aedf9fd
SUCCESS checkout https://github.com/William-Weng/WWSystemStatus.git at 1.1.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/William-Weng/WWSystemStatus.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/4] Write sources
[2/4] Copying Privacy
[3/4] Write swift-version--3CB7CFEC50E0D141.txt
[5/9] Compiling WWNetworkClient Extension.swift
[6/9] Compiling WWNetworkClient Model.swift
[7/9] Compiling WWNetworkClient WWNetworkClient.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWNetworkClient/Sources/WWNetworkClient/WWNetworkClient.swift:42:33: error: 'appending(queryItems:)' is only available in macOS 13.0 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWNetworkClient {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 發送網路請求(核心方法:使用標準 URL 物件發送)
:
34 | /// - Throws: `CustomError.invalidResponse` 代表伺服器回傳的回應無法識別為標準的 `HTTPURLResponse`
35 | /// - Returns: 包含 `HTTPURLResponse` 與原始 `Data` 的網路回傳結果
36 | func request(_ httpMethod: HTTPMethod = .get, url: URL, contentType: ContentType = .json, parameters: [String : String] = [:], headers: [HTTPHeaderField: String] = [:], httpBody: HTTPBobyType? = nil) async throws -> ResponseResult {
| `- note: add '@available' attribute to enclosing instance method
37 |
38 | var finalURL = url
:
40 | if !parameters.isEmpty {
41 | let queryItems = parameters.map { URLQueryItem(name: $0.key, value: $0.value) }
42 | finalURL = finalURL.appending(queryItems: queryItems)
| |- error: 'appending(queryItems:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
43 | }
44 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/WWNetworkClient/Sources/WWNetworkClient/WWNetworkClient.swift:55:50: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
21 |
22 | // MARK: - 公開API
23 | public extension WWNetworkClient {
| `- note: add '@available' attribute to enclosing extension
24 |
25 | /// 發送網路請求(核心方法:使用標準 URL 物件發送)
:
34 | /// - Throws: `CustomError.invalidResponse` 代表伺服器回傳的回應無法識別為標準的 `HTTPURLResponse`
35 | /// - Returns: 包含 `HTTPURLResponse` 與原始 `Data` 的網路回傳結果
36 | func request(_ httpMethod: HTTPMethod = .get, url: URL, contentType: ContentType = .json, parameters: [String : String] = [:], headers: [HTTPHeaderField: String] = [:], httpBody: HTTPBobyType? = nil) async throws -> ResponseResult {
| `- note: add '@available' attribute to enclosing instance method
37 |
38 | var finalURL = url
:
53 | if request.contentType == nil { request.contentType = contentType }
54 |
55 | let (data, response) = try await session.data(for: request)
| |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
56 |
57 | guard let httpResponse = response as? HTTPURLResponse else {
[8/9] Compiling WWNetworkClient Constant.swift
[9/9] Emitting module WWNetworkClient
Fetching https://github.com/William-Weng/WWNetworkClient.git
[1/109] Fetching wwnetworkclient
Fetched https://github.com/William-Weng/WWNetworkClient.git from cache (1.09s)
Computing version for https://github.com/William-Weng/WWNetworkClient.git
Computed https://github.com/William-Weng/WWNetworkClient.git at 1.1.2 (1.63s)
Creating working copy for https://github.com/William-Weng/WWNetworkClient.git
Working copy of https://github.com/William-Weng/WWNetworkClient.git resolved at 1.1.2
BUILD FAILURE 6.2 macosSpm