The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWSystemStatus, reference 1.1.0 (9a2a3f), with Swift 6.1 for macOS (SPM) on 13 Aug 2026 04:48:52 UTC.

Build Command

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

Build 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.1
Building package at path:  $PWD
https://github.com/William-Weng/WWSystemStatus.git
https://github.com/William-Weng/WWSystemStatus.git
{
  "dependencies" : [
    {
      "identity" : "wwnetworkclient",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/William-Weng/WWNetworkClient.git"
    }
  ],
  "manifest_display_name" : "WWSystemStatus",
  "name" : "WWSystemStatus",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "WWSystemStatus",
      "targets" : [
        "WWSystemStatus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "6"
  ],
  "targets" : [
    {
      "c99name" : "WWSystemStatus",
      "module_type" : "SwiftTarget",
      "name" : "WWSystemStatus",
      "path" : "Sources/WWSystemStatus",
      "product_dependencies" : [
        "WWNetworkClient"
      ],
      "product_memberships" : [
        "WWSystemStatus"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WWSystemStatus/Privacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Utility/Constant.swift",
        "Utility/Extension.swift",
        "Utility/Model.swift",
        "WWSystemStatus.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/4] Write sources
[2/4] Copying Privacy
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/9] Compiling WWNetworkClient Model.swift
[6/9] Compiling WWNetworkClient Extension.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.04s)
Computing version for https://github.com/William-Weng/WWNetworkClient.git
Computed https://github.com/William-Weng/WWNetworkClient.git at 1.1.2 (1.51s)
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
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/6] Compiling WWNetworkClient Model.swift
[3/6] Compiling WWNetworkClient Extension.swift
[4/6] 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 {
[5/6] Compiling WWNetworkClient Constant.swift
[6/6] Emitting module WWNetworkClient
BUILD FAILURE 6.1 macosSpm