The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWTranslationManager, reference 1.1.0 (8c2a95), with Swift 6.3 for macOS (SPM) on 14 Aug 2026 22:49:47 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.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/WWTranslationManager.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/William-Weng/WWTranslationManager
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at 8c2a95e - 增加同時翻譯多句的功能 (同一語言)
Cloned https://github.com/William-Weng/WWTranslationManager.git
Revision (git rev-parse @):
8c2a95eb750a920931c51ef9cba0de1002d8a332
SUCCESS checkout https://github.com/William-Weng/WWTranslationManager.git at 1.1.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",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "wwtranslationmanager",
      "name": "WWTranslationManager",
      "url": "https://github.com/William-Weng/WWTranslationManager.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WWTranslationManager",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/William-Weng/WWTranslationManager.git
[1/90] Fetching wwtranslationmanager
Fetched https://github.com/William-Weng/WWTranslationManager.git from cache (1.05s)
Creating working copy for https://github.com/William-Weng/WWTranslationManager.git
Working copy of https://github.com/William-Weng/WWTranslationManager.git resolved at 1.1.0 (8c2a95e)
warning: '.resolve-product-dependencies': dependency 'wwtranslationmanager' 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/WWTranslationManager.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
[4/13] Compiling WWTranslationManager WWTranslationManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:17:31: error: 'TranslationSession' is only available in macOS 15.0 or newer
 12 | /// 透過封裝隱藏的 SwiftUI `UIHostingController`,在不破壞原本 UIKit 架構的前提下,完美支援端側(On-device)翻譯以及系統原生的「語言包下載授權對話框」
 13 | @MainActor
 14 | public class WWTranslationManager {
    |              `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// 翻譯配置設定。預設為 `.init()`(自動偵測並翻譯成系統語系)
 17 |     public var configuration: TranslationSession.Configuration = .init()
    |                               `- error: 'TranslationSession' is only available in macOS 15.0 or newer
 18 |
 19 |     /// 內部用來與 SwiftUI 進行狀態與資料同步的橋樑物件。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:13:2: error: 'Observable()' is only available in macOS 14.0 or newer
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
14 | class TranslationBridge {
15 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:18:5: note: expanded code originates here
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
17 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
18 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
19 |
20 |     /// 準備要被翻譯的原始文字
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:21:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
19 |
20 |     /// 準備要被翻譯的原始文字
21 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
22 |     var textToTranslate: String = ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:25:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
23 |
24 |     /// 翻譯成功時的回呼閉包(Callback Closure)
25 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
26 |     var onTranslationCompleted: ((String) -> Void)?
27 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:29:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
27 |
28 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
29 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
30 |     var onTranslationFailed: ((Error) -> Void)?
31 | }
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:31:1: note: expanded code originates here
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBridge' here
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
29 |     @ObservationIgnored
30 |     var onTranslationFailed: ((Error) -> Void)?
31 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |  `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager17TranslationBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
32 |
33 | @Observable
macro expansion @ObservationTracked:4:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:18:57: note: expanded code originates here
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
17 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
18 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |2 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
   |3 |
   |4 |     @ObservationIgnored
   |  |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   |5 | private  var _configuration: TranslationSession.Configuration?
   +--------------------------------------------------------------------
19 |
20 |     /// 準備要被翻譯的原始文字
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:23:36: error: cannot find type 'UIHostingController' in scope
 21 |
 22 |     /// 承載隱藏 SwiftUI 視圖的宿主控制器(Hosting Controller)。
 23 |     private var hostingController: UIHostingController<TranslationBridgeView>?
    |                                    `- error: cannot find type 'UIHostingController' in scope
 24 |
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:27:45: error: cannot find type 'UIViewController' in scope
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
 26 |     /// - Parameter viewController: 呼叫端(UIKit)的 ViewController,系統對話框將會在此畫面上彈出。
 27 |     public init(attachingTo viewController: UIViewController) {
    |                                             `- error: cannot find type 'UIViewController' in scope
 28 |         initHostingController(viewController)
 29 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:87:50: error: cannot find type 'UIViewController' in scope
 85 |     /// 初始化並掛載 `UIHostingController` 到 UIKit 的視圖階層中
 86 |     /// - Parameter viewController: 要將隱藏視圖掛載上去的目標 UIViewController
 87 |     func initHostingController(_ viewController: UIViewController) {
    |                                                  `- error: cannot find type 'UIViewController' in scope
 88 |
 89 |         let bridgeView = TranslationBridgeView(bridge: bridge)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:37:44: error: 'nil' requires a contextual type
 35 |         Task {
 36 |             await MainActor.run {
 37 |                 hosting.willMove(toParent: nil)
    |                                            `- error: 'nil' requires a contextual type
 38 |                 hosting.view.removeFromSuperview()
 39 |                 hosting.removeFromParent()
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:71:19: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 44 |
 45 | // MARK: - 公開 API 擴充 (Public Extension)
 46 | public extension WWTranslationManager {
    |        `- note: add '@available' attribute to enclosing extension
 47 |
 48 |     /// 執行文字翻譯
    :
 67 |     /// - Parameters:
 68 |     ///   - text: 回傳翻譯後的目標文字(String)
 69 |     func translate(_ text: String) async throws -> String {
    |          `- note: add '@available' attribute to enclosing instance method
 70 |
 71 |         try await withCheckedThrowingContinuation { continuation in
    |                   |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |                   `- note: add 'if #available' version check
 72 |
 73 |             translate(text) { translatedText in
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:71:52: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:71:51: note: expanded code originates here
 44 |
 45 | // MARK: - 公開 API 擴充 (Public Extension)
 46 | public extension WWTranslationManager {
    |        `- note: add '@available' attribute to enclosing extension
 47 |
 48 |     /// 執行文字翻譯
    :
 67 |     /// - Parameters:
 68 |     ///   - text: 回傳翻譯後的目標文字(String)
 69 |     func translate(_ text: String) async throws -> String {
    |          `- note: add '@available' attribute to enclosing instance method
 70 |
 71 |         try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift
    |69 |
    |70 |
    |71 |                                                   #isolation
    |   |                                                    `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-------------------------------------------------------------------------------------------------------
 72 |
 73 |             translate(text) { translatedText in
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:90:23: error: cannot find 'UIHostingController' in scope
 88 |
 89 |         let bridgeView = TranslationBridgeView(bridge: bridge)
 90 |         let hosting = UIHostingController(rootView: bridgeView)
    |                       `- error: cannot find 'UIHostingController' in scope
 91 |
 92 |         viewController.addChild(hosting)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:94:31: error: cannot infer contextual base in reference to member 'zero'
 92 |         viewController.addChild(hosting)
 93 |
 94 |         hosting.view.frame = .zero
    |                               `- error: cannot infer contextual base in reference to member 'zero'
 95 |         hosting.view.isHidden = true
 96 |
[5/13] Compiling WWTranslationManager TranslationBridgeView.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:13:2: error: 'Observable()' is only available in macOS 14.0 or newer
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
14 | class TranslationBridge {
15 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
15 |     @State var bridge: TranslationBridge
   |      `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:18:20: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
20 |             .translationTask(bridge.configuration) { session in
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:34:41: error: 'TranslationSession' is only available in macOS 15.0 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBridge) async {
   |          |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:18:5: note: expanded code originates here
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
17 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
18 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
19 |
20 |     /// 準備要被翻譯的原始文字
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:19:9: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
   |         |- error: 'Color' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
20 |             .translationTask(bridge.configuration) { session in
21 |                 await translationTaskAction(session: session, bridge: bridge)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:19:15: error: 'clear' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
   |               |- error: 'clear' is only available in macOS 10.15 or newer
   |               `- note: add 'if #available' version check
20 |             .translationTask(bridge.configuration) { session in
21 |                 await translationTaskAction(session: session, bridge: bridge)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:20:14: error: 'translationTask(_:action:)' is only available in macOS 15.0 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
20 |             .translationTask(bridge.configuration) { session in
   |              |- error: 'translationTask(_:action:)' is only available in macOS 15.0 or newer
   |              `- note: add 'if #available' version check
21 |                 await translationTaskAction(session: session, bridge: bridge)
22 |             }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:25:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
23 |
24 |     /// 翻譯成功時的回呼閉包(Callback Closure)
25 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
26 |     var onTranslationCompleted: ((String) -> Void)?
27 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:29:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
27 |
28 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
29 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
30 |     var onTranslationFailed: ((Error) -> Void)?
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:21:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
19 |
20 |     /// 準備要被翻譯的原始文字
21 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
22 |     var textToTranslate: String = ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:48:19: error: 'MainActor' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
46 |             let response = try await session.translate(sourceText)
47 |             let resultText = response.targetText
48 |             await MainActor.run { completion?(resultText) }
   |                   |- error: 'MainActor' is only available in macOS 10.15 or newer
   |                   `- note: add 'if #available' version check
49 |         } catch {
50 |             await MainActor.run { failure?(error) }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:48:29: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
46 |             let response = try await session.translate(sourceText)
47 |             let resultText = response.targetText
48 |             await MainActor.run { completion?(resultText) }
   |                             |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
   |                             `- note: add 'if #available' version check
49 |         } catch {
50 |             await MainActor.run { failure?(error) }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:50:19: error: 'MainActor' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
48 |             await MainActor.run { completion?(resultText) }
49 |         } catch {
50 |             await MainActor.run { failure?(error) }
   |                   |- error: 'MainActor' is only available in macOS 10.15 or newer
   |                   `- note: add 'if #available' version check
51 |         }
52 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:50:29: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
48 |             await MainActor.run { completion?(resultText) }
49 |         } catch {
50 |             await MainActor.run { failure?(error) }
   |                             |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
   |                             `- note: add 'if #available' version check
51 |         }
52 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/13] Compiling WWTranslationManager WWTranslationBatchManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:17:31: error: 'TranslationSession' is only available in macOS 15.0 or newer
 12 | /// 透過封裝隱藏的 SwiftUI `UIHostingController`,在不破壞原本 UIKit 架構的前提下,完美支援端側(On-device)翻譯以及系統原生的「語言包下載授權對話框」
 13 | @MainActor
 14 | public class WWTranslationBatchManager {
    |              `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// 翻譯配置設定。預設為 `.init()`(自動偵測並翻譯成系統語系)
 17 |     public var configuration: TranslationSession.Configuration = .init()
    |                               `- error: 'TranslationSession' is only available in macOS 15.0 or newer
 18 |
 19 |     /// 內部用來與 SwiftUI 進行狀態與資料同步的橋樑物件。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:33:2: error: 'Observable()' is only available in macOS 14.0 or newer
31 | }
32 |
33 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
34 | class TranslationBatchBridge {
35 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:38:5: note: expanded code originates here
31 | }
32 |
33 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
37 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
38 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
39 |
40 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:41:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
39 |
40 |     /// 要翻譯的字串陣列
41 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
42 |     var textsToTranslate: [String] = []
43 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:45:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
43 |
44 |     /// 翻譯成功時的回呼閉包(Callback Closure)
45 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
46 |     var onTranslationCompleted: ((WWTranslationBatchResult) -> Void)?
47 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:49:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
47 |
48 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
49 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
50 |     var onTranslationFailed: ((Error) -> Void)?
51 | }
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:51:1: note: expanded code originates here
31 | }
32 |
33 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBatchBridge' here
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
49 |     @ObservationIgnored
50 |     var onTranslationFailed: ((Error) -> Void)?
51 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |  `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager22TranslationBatchBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
52 |
53 |
macro expansion @ObservationTracked:4:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:38:57: note: expanded code originates here
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
37 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
38 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |2 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
   |3 |
   |4 |     @ObservationIgnored
   |  |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   |5 | private  var _configuration: TranslationSession.Configuration?
   +--------------------------------------------------------------------
39 |
40 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:23:36: error: cannot find type 'UIHostingController' in scope
 21 |
 22 |     /// 承載隱藏 SwiftUI 視圖的宿主控制器(Hosting Controller)。
 23 |     private var hostingController: UIHostingController<TranslationBatchBridgeView>?
    |                                    `- error: cannot find type 'UIHostingController' in scope
 24 |
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:27:45: error: cannot find type 'UIViewController' in scope
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
 26 |     /// - Parameter viewController: 呼叫端(UIKit)的 ViewController,系統對話框將會在此畫面上彈出。
 27 |     public init(attachingTo viewController: UIViewController) {
    |                                             `- error: cannot find type 'UIViewController' in scope
 28 |         initHostingController(viewController)
 29 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:72:46: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 44 |
 45 | // MARK: - 公開 API 擴充 (Public Extension)
 46 | public extension WWTranslationBatchManager {
    |        `- note: add '@available' attribute to enclosing extension
 47 |
 48 |     /// 批次翻譯多個字串(使用串流模式)
    :
 70 |     /// - Returns: 非同步序列,每次迭代回傳 (原始索引, 翻譯結果)
 71 |     /// - Throws: 若翻譯過程出錯,會拋出 Error
 72 |     func translate(batch texts: [String]) -> AsyncThrowingStream<WWTranslationBatchResult, Error> {
    |          |                                   `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
 73 |
 74 |         if texts.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:99:50: error: cannot find type 'UIViewController' in scope
 97 |     /// 初始化並掛載 `UIHostingController` 到 UIKit 的視圖階層中
 98 |     /// - Parameter viewController: 要將隱藏視圖掛載上去的目標 UIViewController
 99 |     func initHostingController(_ viewController: UIViewController) {
    |                                                  `- error: cannot find type 'UIViewController' in scope
100 |
101 |         let bridgeView = TranslationBatchBridgeView(bridge: bridge)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:37:44: error: 'nil' requires a contextual type
 35 |         Task {
 36 |             await MainActor.run {
 37 |                 hosting.willMove(toParent: nil)
    |                                            `- error: 'nil' requires a contextual type
 38 |                 hosting.view.removeFromSuperview()
 39 |                 hosting.removeFromParent()
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:78:16: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 44 |
 45 | // MARK: - 公開 API 擴充 (Public Extension)
 46 | public extension WWTranslationBatchManager {
    |        `- note: add '@available' attribute to enclosing extension
 47 |
 48 |     /// 批次翻譯多個字串(使用串流模式)
    :
 70 |     /// - Returns: 非同步序列,每次迭代回傳 (原始索引, 翻譯結果)
 71 |     /// - Throws: 若翻譯過程出錯,會拋出 Error
 72 |     func translate(batch texts: [String]) -> AsyncThrowingStream<WWTranslationBatchResult, Error> {
    |          `- note: add '@available' attribute to enclosing instance method
 73 |
 74 |         if texts.isEmpty {
    :
 76 |         }
 77 |
 78 |         return AsyncThrowingStream { continuation in
    |                |- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
 79 |
 80 |             let total = texts.count
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:102:23: error: cannot find 'UIHostingController' in scope
100 |
101 |         let bridgeView = TranslationBatchBridgeView(bridge: bridge)
102 |         let hosting = UIHostingController(rootView: bridgeView)
    |                       `- error: cannot find 'UIHostingController' in scope
103 |
104 |         viewController.addChild(hosting)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:106:31: error: cannot infer contextual base in reference to member 'zero'
104 |         viewController.addChild(hosting)
105 |
106 |         hosting.view.frame = .zero
    |                               `- error: cannot infer contextual base in reference to member 'zero'
107 |         hosting.view.isHidden = true
108 |
[7/13] Compiling WWTranslationManager WWTranslationBatchCoordinatorManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:17:31: error: 'TranslationSession' is only available in macOS 15.0 or newer
 12 | /// 透過封裝隱藏的 SwiftUI `UIHostingController`,在不破壞原本 UIKit 架構的前提下,完美支援端側(On-device)翻譯以及系統原生的「語言包下載授權對話框」
 13 | @MainActor
 14 | public class WWTranslationBatchCoordinatorManager {
    |              `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// 翻譯配置設定。預設為 `.init()`(自動偵測並翻譯成系統語系)
 17 |     public var configuration: TranslationSession.Configuration = .init()
    |                               `- error: 'TranslationSession' is only available in macOS 15.0 or newer
 18 |
 19 |     /// 內部用來與 SwiftUI 進行狀態與資料同步的橋樑物件。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:54:2: error: 'Observable()' is only available in macOS 14.0 or newer
52 |
53 |
54 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
55 | class TranslationBatchCoordinatorBridge {
56 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:59:5: note: expanded code originates here
52 |
53 |
54 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
58 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
59 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
60 |
61 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:62:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
60 |
61 |     /// 要翻譯的字串陣列
62 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
63 |     var textsToTranslate: [String] = []
64 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:66:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
64 |
65 |     /// 翻譯成功時的回呼閉包(Callback Closure)
66 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
67 |     var onTranslationCompleted: (([WWTranslationBatchResult]) -> Void)?
68 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:70:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
68 |
69 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
70 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
71 |     var onTranslationFailed: ((Error) -> Void)?
72 | }
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:72:1: note: expanded code originates here
52 |
53 |
54 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBatchCoordinatorBridge' here
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
70 |     @ObservationIgnored
71 |     var onTranslationFailed: ((Error) -> Void)?
72 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |  `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager33TranslationBatchCoordinatorBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
73 |
macro expansion @ObservationTracked:4:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:59:57: note: expanded code originates here
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
58 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
59 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |2 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
   |3 |
   |4 |     @ObservationIgnored
   |  |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   |5 | private  var _configuration: TranslationSession.Configuration?
   +--------------------------------------------------------------------
60 |
61 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:23:36: error: cannot find type 'UIHostingController' in scope
 21 |
 22 |     /// 承載隱藏 SwiftUI 視圖的宿主控制器(Hosting Controller)。
 23 |     private var hostingController: UIHostingController<TranslationBatchCoordinatorView>?
    |                                    `- error: cannot find type 'UIHostingController' in scope
 24 |
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:27:45: error: cannot find type 'UIViewController' in scope
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
 26 |     /// - Parameter viewController: 呼叫端(UIKit)的 ViewController,系統對話框將會在此畫面上彈出。
 27 |     public init(attachingTo viewController: UIViewController) {
    |                                             `- error: cannot find type 'UIViewController' in scope
 28 |         initHostingController(viewController)
 29 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:92:50: error: cannot find type 'UIViewController' in scope
 90 |     /// 初始化並掛載 `UIHostingController` 到 UIKit 的視圖階層中
 91 |     /// - Parameter viewController: 要將隱藏視圖掛載上去的目標 UIViewController
 92 |     func initHostingController(_ viewController: UIViewController) {
    |                                                  `- error: cannot find type 'UIViewController' in scope
 93 |
 94 |         let bridgeView = TranslationBatchCoordinatorView(bridge: bridge)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:37:44: error: 'nil' requires a contextual type
 35 |         Task {
 36 |             await MainActor.run {
 37 |                 hosting.willMove(toParent: nil)
    |                                            `- error: 'nil' requires a contextual type
 38 |                 hosting.view.removeFromSuperview()
 39 |                 hosting.removeFromParent()
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:76:26: error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
 44 |
 45 | // MARK: - 公開 API 擴充 (Public Extension)
 46 | public extension WWTranslationBatchCoordinatorManager {
    |        `- note: add '@available' attribute to enclosing extension
 47 |
 48 |     /// 批次翻譯多個字串(回呼版本,使用 translations(from:) 一次回傳)
    :
 70 |     /// - Returns: 翻譯結果陣列(保持原始順序)
 71 |     /// - Throws: 若翻譯過程出錯,會拋出 Error
 72 |     func translate(from texts: [String]) async throws -> [WWTranslationBatchResult] {
    |          `- note: add '@available' attribute to enclosing instance method
 73 |
 74 |         if texts.isEmpty { throw WWTranslationError.textsIsEmpty }
 75 |
 76 |         return try await withCheckedThrowingContinuation { continuation in
    |                          |- error: 'withCheckedThrowingContinuation(isolation:function:_:)' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
 77 |
 78 |             translate(from: texts) { result in
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:76:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:76:58: note: expanded code originates here
 44 |
 45 | // MARK: - 公開 API 擴充 (Public Extension)
 46 | public extension WWTranslationBatchCoordinatorManager {
    |        `- note: add '@available' attribute to enclosing extension
 47 |
 48 |     /// 批次翻譯多個字串(回呼版本,使用 translations(from:) 一次回傳)
    :
 70 |     /// - Returns: 翻譯結果陣列(保持原始順序)
 71 |     /// - Throws: 若翻譯過程出錯,會拋出 Error
 72 |     func translate(from texts: [String]) async throws -> [WWTranslationBatchResult] {
    |          `- note: add '@available' attribute to enclosing instance method
 73 |
 74 |         if texts.isEmpty { throw WWTranslationError.textsIsEmpty }
 75 |
 76 |         return try await withCheckedThrowingContinuation { continuation in
    +--- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift
    |74 |
    |75 |
    |76 |                                                          #isolation
    |   |                                                           `- error: 'isolation()' is only available in macOS 10.15 or newer
    +-----------------------------------------------------------------------------------------------------------------------
 77 |
 78 |             translate(from: texts) { result in
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:95:23: error: cannot find 'UIHostingController' in scope
 93 |
 94 |         let bridgeView = TranslationBatchCoordinatorView(bridge: bridge)
 95 |         let hosting = UIHostingController(rootView: bridgeView)
    |                       `- error: cannot find 'UIHostingController' in scope
 96 |
 97 |         viewController.addChild(hosting)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:99:31: error: cannot infer contextual base in reference to member 'zero'
 97 |         viewController.addChild(hosting)
 98 |
 99 |         hosting.view.frame = .zero
    |                               `- error: cannot infer contextual base in reference to member 'zero'
100 |         hosting.view.isHidden = true
101 |
[8/13] Compiling WWTranslationManager Model.swift
[9/13] Compiling WWTranslationManager Error.swift
[10/13] Emitting module WWTranslationManager
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:13:2: error: 'Observable()' is only available in macOS 14.0 or newer
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
14 | class TranslationBridge {
15 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:18:5: note: expanded code originates here
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
17 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
18 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
19 |
20 |     /// 準備要被翻譯的原始文字
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:21:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
19 |
20 |     /// 準備要被翻譯的原始文字
21 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
22 |     var textToTranslate: String = ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:25:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
23 |
24 |     /// 翻譯成功時的回呼閉包(Callback Closure)
25 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
26 |     var onTranslationCompleted: ((String) -> Void)?
27 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:29:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
27 |
28 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
29 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
30 |     var onTranslationFailed: ((Error) -> Void)?
31 | }
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:31:1: note: expanded code originates here
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBridge' here
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
29 |     @ObservationIgnored
30 |     var onTranslationFailed: ((Error) -> Void)?
31 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |  `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager17TranslationBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
32 |
33 | @Observable
macro expansion @ObservationTracked:4:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:18:57: note: expanded code originates here
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
17 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
18 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |2 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
   |3 |
   |4 |     @ObservationIgnored
   |  |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   |5 | private  var _configuration: TranslationSession.Configuration?
   +--------------------------------------------------------------------
19 |
20 |     /// 準備要被翻譯的原始文字
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:18:24: error: 'TranslationSession' is only available in macOS 15.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
17 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
18 |     var configuration: TranslationSession.Configuration?
   |         |              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |         `- note: add '@available' attribute to enclosing property
19 |
20 |     /// 準備要被翻譯的原始文字
macro expansion @ObservationTracked:5:30: error: 'TranslationSession' is only available in macOS 15.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:18:57: note: expanded code originates here
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
17 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
18 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |3 |
   |4 |     @ObservationIgnored
   |5 | private  var _configuration: TranslationSession.Configuration?
   |  |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   +--------------------------------------------------------------------
19 |
20 |     /// 準備要被翻譯的原始文字
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:31:1: note: expanded code originates here
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBridge' here
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
29 |     @ObservationIgnored
30 |     var onTranslationFailed: ((Error) -> Void)?
31 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |                                                                      `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager17TranslationBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
32 |
33 | @Observable
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:13:2: error: 'Observable()' is only available in macOS 14.0 or newer
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:33:2: error: 'Observable()' is only available in macOS 14.0 or newer
31 | }
32 |
33 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
34 | class TranslationBatchBridge {
35 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:38:5: note: expanded code originates here
31 | }
32 |
33 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
37 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
38 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
39 |
40 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:41:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
39 |
40 |     /// 要翻譯的字串陣列
41 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
42 |     var textsToTranslate: [String] = []
43 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:45:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
43 |
44 |     /// 翻譯成功時的回呼閉包(Callback Closure)
45 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
46 |     var onTranslationCompleted: ((WWTranslationBatchResult) -> Void)?
47 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:49:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
47 |
48 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
49 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
50 |     var onTranslationFailed: ((Error) -> Void)?
51 | }
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:51:1: note: expanded code originates here
31 | }
32 |
33 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBatchBridge' here
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
49 |     @ObservationIgnored
50 |     var onTranslationFailed: ((Error) -> Void)?
51 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |  `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager22TranslationBatchBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
52 |
53 |
macro expansion @ObservationTracked:4:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:38:57: note: expanded code originates here
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
37 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
38 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |2 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
   |3 |
   |4 |     @ObservationIgnored
   |  |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   |5 | private  var _configuration: TranslationSession.Configuration?
   +--------------------------------------------------------------------
39 |
40 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:38:24: error: 'TranslationSession' is only available in macOS 15.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
37 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
38 |     var configuration: TranslationSession.Configuration?
   |         |              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |         `- note: add '@available' attribute to enclosing property
39 |
40 |     /// 要翻譯的字串陣列
macro expansion @ObservationTracked:5:30: error: 'TranslationSession' is only available in macOS 15.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:38:57: note: expanded code originates here
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
37 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
38 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |3 |
   |4 |     @ObservationIgnored
   |5 | private  var _configuration: TranslationSession.Configuration?
   |  |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   +--------------------------------------------------------------------
39 |
40 |     /// 要翻譯的字串陣列
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:51:1: note: expanded code originates here
31 | }
32 |
33 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBatchBridge' here
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
49 |     @ObservationIgnored
50 |     var onTranslationFailed: ((Error) -> Void)?
51 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |                                                                      `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager22TranslationBatchBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
52 |
53 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:33:2: error: 'Observable()' is only available in macOS 14.0 or newer
31 | }
32 |
33 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:54:2: error: 'Observable()' is only available in macOS 14.0 or newer
52 |
53 |
54 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
55 | class TranslationBatchCoordinatorBridge {
56 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:59:5: note: expanded code originates here
52 |
53 |
54 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
58 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
59 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
60 |
61 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:62:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
60 |
61 |     /// 要翻譯的字串陣列
62 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
63 |     var textsToTranslate: [String] = []
64 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:66:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
64 |
65 |     /// 翻譯成功時的回呼閉包(Callback Closure)
66 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
67 |     var onTranslationCompleted: (([WWTranslationBatchResult]) -> Void)?
68 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:70:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
68 |
69 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
70 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
71 |     var onTranslationFailed: ((Error) -> Void)?
72 | }
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:72:1: note: expanded code originates here
52 |
53 |
54 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBatchCoordinatorBridge' here
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
70 |     @ObservationIgnored
71 |     var onTranslationFailed: ((Error) -> Void)?
72 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |  `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager33TranslationBatchCoordinatorBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
73 |
macro expansion @ObservationTracked:4:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:59:57: note: expanded code originates here
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
58 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
59 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |2 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
   |3 |
   |4 |     @ObservationIgnored
   |  |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   |5 | private  var _configuration: TranslationSession.Configuration?
   +--------------------------------------------------------------------
60 |
61 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:59:24: error: 'TranslationSession' is only available in macOS 15.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
58 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
59 |     var configuration: TranslationSession.Configuration?
   |         |              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |         `- note: add '@available' attribute to enclosing property
60 |
61 |     /// 要翻譯的字串陣列
macro expansion @ObservationTracked:5:30: error: 'TranslationSession' is only available in macOS 15.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:59:57: note: expanded code originates here
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
58 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
59 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |3 |
   |4 |     @ObservationIgnored
   |5 | private  var _configuration: TranslationSession.Configuration?
   |  |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   +--------------------------------------------------------------------
60 |
61 |     /// 要翻譯的字串陣列
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:72:1: note: expanded code originates here
52 |
53 |
54 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBatchCoordinatorBridge' here
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
70 |     @ObservationIgnored
71 |     var onTranslationFailed: ((Error) -> Void)?
72 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |                                                                      `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager33TranslationBatchCoordinatorBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
73 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:54:2: error: 'Observable()' is only available in macOS 14.0 or newer
52 |
53 |
54 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
15 |     @State var bridge: TranslationBatchBridge
   |      `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:18:20: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
20 |             .translationTask(bridge.configuration) { session in
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:34:41: error: 'TranslationSession' is only available in macOS 15.0 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchBridge) async {
   |          |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchCoordinatorView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
15 |     @State var bridge: TranslationBatchCoordinatorBridge
   |      `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:18:20: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchCoordinatorView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
20 |             .translationTask(bridge.configuration) { session in
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:34:41: error: 'TranslationSession' is only available in macOS 15.0 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchCoordinatorView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchCoordinatorBridge) async {
   |          |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
15 |     @State var bridge: TranslationBridge
   |      `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:18:20: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
20 |             .translationTask(bridge.configuration) { session in
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift:34:41: error: 'TranslationSession' is only available in macOS 15.0 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBridge) async {
   |          |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:17:31: error: 'TranslationSession' is only available in macOS 15.0 or newer
 12 | /// 透過封裝隱藏的 SwiftUI `UIHostingController`,在不破壞原本 UIKit 架構的前提下,完美支援端側(On-device)翻譯以及系統原生的「語言包下載授權對話框」
 13 | @MainActor
 14 | public class WWTranslationBatchCoordinatorManager {
    |              `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// 翻譯配置設定。預設為 `.init()`(自動偵測並翻譯成系統語系)
 17 |     public var configuration: TranslationSession.Configuration = .init()
    |                               `- error: 'TranslationSession' is only available in macOS 15.0 or newer
 18 |
 19 |     /// 內部用來與 SwiftUI 進行狀態與資料同步的橋樑物件。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:23:36: error: cannot find type 'UIHostingController' in scope
 21 |
 22 |     /// 承載隱藏 SwiftUI 視圖的宿主控制器(Hosting Controller)。
 23 |     private var hostingController: UIHostingController<TranslationBatchCoordinatorView>?
    |                                    `- error: cannot find type 'UIHostingController' in scope
 24 |
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:27:45: error: cannot find type 'UIViewController' in scope
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
 26 |     /// - Parameter viewController: 呼叫端(UIKit)的 ViewController,系統對話框將會在此畫面上彈出。
 27 |     public init(attachingTo viewController: UIViewController) {
    |                                             `- error: cannot find type 'UIViewController' in scope
 28 |         initHostingController(viewController)
 29 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift:92:50: error: cannot find type 'UIViewController' in scope
 90 |     /// 初始化並掛載 `UIHostingController` 到 UIKit 的視圖階層中
 91 |     /// - Parameter viewController: 要將隱藏視圖掛載上去的目標 UIViewController
 92 |     func initHostingController(_ viewController: UIViewController) {
    |                                                  `- error: cannot find type 'UIViewController' in scope
 93 |
 94 |         let bridgeView = TranslationBatchCoordinatorView(bridge: bridge)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:17:31: error: 'TranslationSession' is only available in macOS 15.0 or newer
 12 | /// 透過封裝隱藏的 SwiftUI `UIHostingController`,在不破壞原本 UIKit 架構的前提下,完美支援端側(On-device)翻譯以及系統原生的「語言包下載授權對話框」
 13 | @MainActor
 14 | public class WWTranslationBatchManager {
    |              `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// 翻譯配置設定。預設為 `.init()`(自動偵測並翻譯成系統語系)
 17 |     public var configuration: TranslationSession.Configuration = .init()
    |                               `- error: 'TranslationSession' is only available in macOS 15.0 or newer
 18 |
 19 |     /// 內部用來與 SwiftUI 進行狀態與資料同步的橋樑物件。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:23:36: error: cannot find type 'UIHostingController' in scope
 21 |
 22 |     /// 承載隱藏 SwiftUI 視圖的宿主控制器(Hosting Controller)。
 23 |     private var hostingController: UIHostingController<TranslationBatchBridgeView>?
    |                                    `- error: cannot find type 'UIHostingController' in scope
 24 |
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:27:45: error: cannot find type 'UIViewController' in scope
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
 26 |     /// - Parameter viewController: 呼叫端(UIKit)的 ViewController,系統對話框將會在此畫面上彈出。
 27 |     public init(attachingTo viewController: UIViewController) {
    |                                             `- error: cannot find type 'UIViewController' in scope
 28 |         initHostingController(viewController)
 29 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:72:46: error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
 44 |
 45 | // MARK: - 公開 API 擴充 (Public Extension)
 46 | public extension WWTranslationBatchManager {
    |        `- note: add '@available' attribute to enclosing extension
 47 |
 48 |     /// 批次翻譯多個字串(使用串流模式)
    :
 70 |     /// - Returns: 非同步序列,每次迭代回傳 (原始索引, 翻譯結果)
 71 |     /// - Throws: 若翻譯過程出錯,會拋出 Error
 72 |     func translate(batch texts: [String]) -> AsyncThrowingStream<WWTranslationBatchResult, Error> {
    |          |                                   `- error: 'AsyncThrowingStream' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing instance method
 73 |
 74 |         if texts.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift:99:50: error: cannot find type 'UIViewController' in scope
 97 |     /// 初始化並掛載 `UIHostingController` 到 UIKit 的視圖階層中
 98 |     /// - Parameter viewController: 要將隱藏視圖掛載上去的目標 UIViewController
 99 |     func initHostingController(_ viewController: UIViewController) {
    |                                                  `- error: cannot find type 'UIViewController' in scope
100 |
101 |         let bridgeView = TranslationBatchBridgeView(bridge: bridge)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:17:31: error: 'TranslationSession' is only available in macOS 15.0 or newer
 12 | /// 透過封裝隱藏的 SwiftUI `UIHostingController`,在不破壞原本 UIKit 架構的前提下,完美支援端側(On-device)翻譯以及系統原生的「語言包下載授權對話框」
 13 | @MainActor
 14 | public class WWTranslationManager {
    |              `- note: add '@available' attribute to enclosing class
 15 |
 16 |     /// 翻譯配置設定。預設為 `.init()`(自動偵測並翻譯成系統語系)
 17 |     public var configuration: TranslationSession.Configuration = .init()
    |                               `- error: 'TranslationSession' is only available in macOS 15.0 or newer
 18 |
 19 |     /// 內部用來與 SwiftUI 進行狀態與資料同步的橋樑物件。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:23:36: error: cannot find type 'UIHostingController' in scope
 21 |
 22 |     /// 承載隱藏 SwiftUI 視圖的宿主控制器(Hosting Controller)。
 23 |     private var hostingController: UIHostingController<TranslationBridgeView>?
    |                                    `- error: cannot find type 'UIHostingController' in scope
 24 |
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:27:45: error: cannot find type 'UIViewController' in scope
 25 |     /// 初始化翻譯管理器,並將其生命週期與外觀依附在指定的 UIViewController 上。
 26 |     /// - Parameter viewController: 呼叫端(UIKit)的 ViewController,系統對話框將會在此畫面上彈出。
 27 |     public init(attachingTo viewController: UIViewController) {
    |                                             `- error: cannot find type 'UIViewController' in scope
 28 |         initHostingController(viewController)
 29 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift:87:50: error: cannot find type 'UIViewController' in scope
 85 |     /// 初始化並掛載 `UIHostingController` 到 UIKit 的視圖階層中
 86 |     /// - Parameter viewController: 要將隱藏視圖掛載上去的目標 UIViewController
 87 |     func initHostingController(_ viewController: UIViewController) {
    |                                                  `- error: cannot find type 'UIViewController' in scope
 88 |
 89 |         let bridgeView = TranslationBridgeView(bridge: bridge)
[11/13] Compiling WWTranslationManager TranslationBatchCoordinatorView.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:54:2: error: 'Observable()' is only available in macOS 14.0 or newer
52 |
53 |
54 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
55 | class TranslationBatchCoordinatorBridge {
56 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchCoordinatorView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
15 |     @State var bridge: TranslationBatchCoordinatorBridge
   |      `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:18:20: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchCoordinatorView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
20 |             .translationTask(bridge.configuration) { session in
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:34:41: error: 'TranslationSession' is only available in macOS 15.0 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchCoordinatorView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchCoordinatorBridge) async {
   |          |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:59:5: note: expanded code originates here
52 |
53 |
54 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
58 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
59 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
60 |
61 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:19:9: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchCoordinatorView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
   |         |- error: 'Color' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
20 |             .translationTask(bridge.configuration) { session in
21 |                 await translationTaskAction(session: session, bridge: bridge)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:19:15: error: 'clear' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchCoordinatorView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
   |               |- error: 'clear' is only available in macOS 10.15 or newer
   |               `- note: add 'if #available' version check
20 |             .translationTask(bridge.configuration) { session in
21 |                 await translationTaskAction(session: session, bridge: bridge)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:20:14: error: 'translationTask(_:action:)' is only available in macOS 15.0 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchCoordinatorView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
20 |             .translationTask(bridge.configuration) { session in
   |              |- error: 'translationTask(_:action:)' is only available in macOS 15.0 or newer
   |              `- note: add 'if #available' version check
21 |                 await translationTaskAction(session: session, bridge: bridge)
22 |             }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:66:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
64 |
65 |     /// 翻譯成功時的回呼閉包(Callback Closure)
66 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
67 |     var onTranslationCompleted: (([WWTranslationBatchResult]) -> Void)?
68 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:70:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
68 |
69 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
70 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
71 |     var onTranslationFailed: ((Error) -> Void)?
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:62:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
60 |
61 |     /// 要翻譯的字串陣列
62 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
63 |     var textsToTranslate: [String] = []
64 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:46:13: error: 'TranslationSession' is only available in macOS 15.0 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchCoordinatorView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchCoordinatorBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
44 |
45 |         let requests = sourceTexts.enumerated().map { index, text in
46 |             TranslationSession.Request(sourceText: text, clientIdentifier: "\(index)")
   |             |- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |             `- note: add 'if #available' version check
47 |         }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:53:29: error: 'TranslationSession' is only available in macOS 15.0 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchCoordinatorView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchCoordinatorBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
51 |         do {
52 |
53 |             let responses: [TranslationSession.Response] = try await session.translations(from: requests)
   |                             |- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |                             `- note: add 'if #available' version check
54 |
55 |             for response in responses {
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:66:19: error: 'MainActor' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchCoordinatorView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchCoordinatorBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
64 |             }
65 |
66 |             await MainActor.run { completion?(.init(results)) }
   |                   |- error: 'MainActor' is only available in macOS 10.15 or newer
   |                   `- note: add 'if #available' version check
67 |
68 |         } catch {
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:66:29: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchCoordinatorView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchCoordinatorBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
64 |             }
65 |
66 |             await MainActor.run { completion?(.init(results)) }
   |                             |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
   |                             `- note: add 'if #available' version check
67 |
68 |         } catch {
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:69:19: error: 'MainActor' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchCoordinatorView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchCoordinatorBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
67 |
68 |         } catch {
69 |             await MainActor.run { failure?(error) }
   |                   |- error: 'MainActor' is only available in macOS 10.15 or newer
   |                   `- note: add 'if #available' version check
70 |         }
71 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift:69:29: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchCoordinatorView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchCoordinatorBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
67 |
68 |         } catch {
69 |             await MainActor.run { failure?(error) }
   |                             |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
   |                             `- note: add 'if #available' version check
70 |         }
71 |     }
[12/13] Compiling WWTranslationManager Bridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:13:2: error: 'Observable()' is only available in macOS 14.0 or newer
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
14 | class TranslationBridge {
15 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:18:5: note: expanded code originates here
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
17 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
18 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
19 |
20 |     /// 準備要被翻譯的原始文字
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:21:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
19 |
20 |     /// 準備要被翻譯的原始文字
21 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
22 |     var textToTranslate: String = ""
23 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:25:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
23 |
24 |     /// 翻譯成功時的回呼閉包(Callback Closure)
25 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
26 |     var onTranslationCompleted: ((String) -> Void)?
27 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:29:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
27 |
28 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
29 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
30 |     var onTranslationFailed: ((Error) -> Void)?
31 | }
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:31:1: note: expanded code originates here
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBridge' here
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
29 |     @ObservationIgnored
30 |     var onTranslationFailed: ((Error) -> Void)?
31 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |  `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager17TranslationBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
32 |
33 | @Observable
macro expansion @ObservationTracked:4:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:18:57: note: expanded code originates here
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
17 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
18 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |2 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
   |3 |
   |4 |     @ObservationIgnored
   |  |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   |5 | private  var _configuration: TranslationSession.Configuration?
   +--------------------------------------------------------------------
19 |
20 |     /// 準備要被翻譯的原始文字
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:18:24: error: 'TranslationSession' is only available in macOS 15.0 or newer
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
17 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
18 |     var configuration: TranslationSession.Configuration?
   |         |              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |         `- note: add '@available' attribute to enclosing property
19 |
20 |     /// 準備要被翻譯的原始文字
macro expansion @ObservationTracked:5:30: error: 'TranslationSession' is only available in macOS 15.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:18:57: note: expanded code originates here
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
17 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
18 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |3 |
   |4 |     @ObservationIgnored
   |5 | private  var _configuration: TranslationSession.Configuration?
   |  |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   +--------------------------------------------------------------------
19 |
20 |     /// 準備要被翻譯的原始文字
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:31:1: note: expanded code originates here
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBridge' here
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
29 |     @ObservationIgnored
30 |     var onTranslationFailed: ((Error) -> Void)?
31 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |                                                                      `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager17TranslationBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
32 |
33 | @Observable
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:13:2: error: 'Observable()' is only available in macOS 14.0 or newer
11 | /// 負責在 UIKit 與 SwiftUI 之間傳遞狀態的橋樑類別。
12 | /// 使用了 iOS 17+ 全新的 Observation 框架,取代舊版的 ObservableObject。
13 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
14 | class TranslationBridge {
   |       `- note: add '@available' attribute to enclosing class
15 |
16 |     /// 翻譯任務的配置設定(例如來源/目標語言)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:33:2: error: 'Observable()' is only available in macOS 14.0 or newer
31 | }
32 |
33 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
34 | class TranslationBatchBridge {
35 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:38:5: note: expanded code originates here
31 | }
32 |
33 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
37 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
38 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
39 |
40 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:41:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
39 |
40 |     /// 要翻譯的字串陣列
41 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
42 |     var textsToTranslate: [String] = []
43 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:45:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
43 |
44 |     /// 翻譯成功時的回呼閉包(Callback Closure)
45 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
46 |     var onTranslationCompleted: ((WWTranslationBatchResult) -> Void)?
47 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:49:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
47 |
48 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
49 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
50 |     var onTranslationFailed: ((Error) -> Void)?
51 | }
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:51:1: note: expanded code originates here
31 | }
32 |
33 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBatchBridge' here
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
49 |     @ObservationIgnored
50 |     var onTranslationFailed: ((Error) -> Void)?
51 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |  `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager22TranslationBatchBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
52 |
53 |
macro expansion @ObservationTracked:4:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:38:57: note: expanded code originates here
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
37 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
38 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |2 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
   |3 |
   |4 |     @ObservationIgnored
   |  |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   |5 | private  var _configuration: TranslationSession.Configuration?
   +--------------------------------------------------------------------
39 |
40 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:38:24: error: 'TranslationSession' is only available in macOS 15.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
37 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
38 |     var configuration: TranslationSession.Configuration?
   |         |              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |         `- note: add '@available' attribute to enclosing property
39 |
40 |     /// 要翻譯的字串陣列
macro expansion @ObservationTracked:5:30: error: 'TranslationSession' is only available in macOS 15.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:38:57: note: expanded code originates here
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
37 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
38 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |3 |
   |4 |     @ObservationIgnored
   |5 | private  var _configuration: TranslationSession.Configuration?
   |  |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   +--------------------------------------------------------------------
39 |
40 |     /// 要翻譯的字串陣列
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:51:1: note: expanded code originates here
31 | }
32 |
33 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBatchBridge' here
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
49 |     @ObservationIgnored
50 |     var onTranslationFailed: ((Error) -> Void)?
51 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |                                                                      `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager22TranslationBatchBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
52 |
53 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:33:2: error: 'Observable()' is only available in macOS 14.0 or newer
31 | }
32 |
33 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:54:2: error: 'Observable()' is only available in macOS 14.0 or newer
52 |
53 |
54 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
55 | class TranslationBatchCoordinatorBridge {
56 |
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:59:5: note: expanded code originates here
52 |
53 |
54 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
58 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
59 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
60 |
61 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:62:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
60 |
61 |     /// 要翻譯的字串陣列
62 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
63 |     var textsToTranslate: [String] = []
64 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:66:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
64 |
65 |     /// 翻譯成功時的回呼閉包(Callback Closure)
66 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
67 |     var onTranslationCompleted: (([WWTranslationBatchResult]) -> Void)?
68 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:70:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
68 |
69 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
70 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
71 |     var onTranslationFailed: ((Error) -> Void)?
72 | }
macro expansion @Observable:1:2: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:72:1: note: expanded code originates here
52 |
53 |
54 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBatchCoordinatorBridge' here
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
70 |     @ObservationIgnored
71 |     var onTranslationFailed: ((Error) -> Void)?
72 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |  `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager33TranslationBatchCoordinatorBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
73 |
macro expansion @ObservationTracked:4:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:59:57: note: expanded code originates here
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
58 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
59 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |2 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
   |3 |
   |4 |     @ObservationIgnored
   |  |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
   |5 | private  var _configuration: TranslationSession.Configuration?
   +--------------------------------------------------------------------
60 |
61 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:59:24: error: 'TranslationSession' is only available in macOS 15.0 or newer
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
58 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
59 |     var configuration: TranslationSession.Configuration?
   |         |              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |         `- note: add '@available' attribute to enclosing property
60 |
61 |     /// 要翻譯的字串陣列
macro expansion @ObservationTracked:5:30: error: 'TranslationSession' is only available in macOS 15.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:59:57: note: expanded code originates here
53 |
54 | @Observable
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
58 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
59 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @ObservationTracked ----------------------------
   |3 |
   |4 |     @ObservationIgnored
   |5 | private  var _configuration: TranslationSession.Configuration?
   |  |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   +--------------------------------------------------------------------
60 |
61 |     /// 要翻譯的字串陣列
macro expansion @Observable:1:70: error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:72:1: note: expanded code originates here
52 |
53 |
54 | @Observable
   | `- note: in expansion of macro 'Observable' on class 'TranslationBatchCoordinatorBridge' here
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
70 |     @ObservationIgnored
71 |     var onTranslationFailed: ((Error) -> Void)?
72 | }
   +--- macro expansion @Observable ------------------------------------
   | 1 | @ObservationIgnored private let _$observationRegistrar = Observation.ObservationRegistrar()
   |   |                                                                      `- error: 'ObservationRegistrar' is only available in macOS 14.0 or newer
   | 2 |
   | 3 | internal nonisolated func access<$s20WWTranslationManager33TranslationBatchCoordinatorBridge10ObservablefMm_6MemberfMu_>(
   +--------------------------------------------------------------------
73 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:54:2: error: 'Observable()' is only available in macOS 14.0 or newer
52 |
53 |
54 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
55 | class TranslationBatchCoordinatorBridge {
   |       `- note: add '@available' attribute to enclosing class
56 |
57 |     /// 翻譯任務的配置設定(例如來源/目標語言)
[13/13] Compiling WWTranslationManager TranslationBatchBridgeView.swift
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:33:2: error: 'Observable()' is only available in macOS 14.0 or newer
31 | }
32 |
33 | @Observable
   |  `- error: 'Observable()' is only available in macOS 14.0 or newer
34 | class TranslationBatchBridge {
35 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:15:6: error: 'State' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
15 |     @State var bridge: TranslationBatchBridge
   |      `- error: 'State' is only available in macOS 10.15 or newer
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:18:20: error: 'View' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
20 |             .translationTask(bridge.configuration) { session in
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:34:41: error: 'TranslationSession' is only available in macOS 15.0 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchBridge) async {
   |          |                              `- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
macro expansion @Observable:1:2: error: 'ObservationTracked()' is only available in macOS 14.0 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:38:5: note: expanded code originates here
31 | }
32 |
33 | @Observable
   | `- note: in expansion of macro 'Observable' on property 'configuration' here
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
37 |     /// 當此變數被賦值(非 nil)時,SwiftUI 的 `.translationTask` 會被觸發並跳出翻譯畫面或下載提示
38 |     var configuration: TranslationSession.Configuration?
   +--- macro expansion @Observable ------------------------------------
   |1 | @ObservationTracked
   |  |  `- error: 'ObservationTracked()' is only available in macOS 14.0 or newer
   +--------------------------------------------------------------------
39 |
40 |     /// 要翻譯的字串陣列
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:19:9: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
   |         |- error: 'Color' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
20 |             .translationTask(bridge.configuration) { session in
21 |                 await translationTaskAction(session: session, bridge: bridge)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:19:15: error: 'clear' is only available in macOS 10.15 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
   |               |- error: 'clear' is only available in macOS 10.15 or newer
   |               `- note: add 'if #available' version check
20 |             .translationTask(bridge.configuration) { session in
21 |                 await translationTaskAction(session: session, bridge: bridge)
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:20:14: error: 'translationTask(_:action:)' is only available in macOS 15.0 or newer
10 |
11 | /// 專門用來承載 Apple 的 `translationTask` 生命週期,並作為 UIKit 與 SwiftUI 之間的翻譯媒介
12 | struct TranslationBatchBridgeView: View {
   |        `- note: add '@available' attribute to enclosing struct
13 |
14 |     /// 監聽與持有來自 UIKit 端的資料橋樑物件
   :
16 |
17 |     /// 使用完全透明的顏色作為容器,既不影響 UIKit 的畫面佈局
18 |     var body: some View {
   |         `- note: add '@available' attribute to enclosing property
19 |         Color.clear
20 |             .translationTask(bridge.configuration) { session in
   |              |- error: 'translationTask(_:action:)' is only available in macOS 15.0 or newer
   |              `- note: add 'if #available' version check
21 |                 await translationTaskAction(session: session, bridge: bridge)
22 |             }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:45:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
43 |
44 |     /// 翻譯成功時的回呼閉包(Callback Closure)
45 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
46 |     var onTranslationCompleted: ((WWTranslationBatchResult) -> Void)?
47 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:49:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
47 |
48 |     /// 翻譯失敗或使用者取消下載時的回呼閉包
49 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
50 |     var onTranslationFailed: ((Error) -> Void)?
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift:41:6: error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
32 |
33 | @Observable
34 | class TranslationBatchBridge {
   |       `- note: add '@available' attribute to enclosing class
35 |
36 |     /// 翻譯任務的配置設定(例如來源/目標語言)
   :
39 |
40 |     /// 要翻譯的字串陣列
41 |     @ObservationIgnored
   |      `- error: 'ObservationIgnored()' is only available in macOS 14.0 or newer
42 |     var textsToTranslate: [String] = []
43 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:46:13: error: 'TranslationSession' is only available in macOS 15.0 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
44 |
45 |         let requests = sourceTexts.enumerated().map { index, text in
46 |             TranslationSession.Request(sourceText: text, clientIdentifier: "\(index)")
   |             |- error: 'TranslationSession' is only available in macOS 15.0 or newer
   |             `- note: add 'if #available' version check
47 |         }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:58:23: error: 'MainActor' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
56 |                 }
57 |
58 |                 await MainActor.run { completion?(.init(index: index, translatedText: response.targetText)) }
   |                       |- error: 'MainActor' is only available in macOS 10.15 or newer
   |                       `- note: add 'if #available' version check
59 |             }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:58:33: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
56 |                 }
57 |
58 |                 await MainActor.run { completion?(.init(index: index, translatedText: response.targetText)) }
   |                                 |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
   |                                 `- note: add 'if #available' version check
59 |             }
60 |
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:62:19: error: 'MainActor' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
60 |
61 |         } catch {
62 |             await MainActor.run { failure?(error) }
   |                   |- error: 'MainActor' is only available in macOS 10.15 or newer
   |                   `- note: add 'if #available' version check
63 |         }
64 |     }
/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift:62:29: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
25 |
26 | // MARK: - 翻譯邏輯擴充 (Private Extension)
27 | private extension TranslationBatchBridgeView {
   |         `- note: add '@available' attribute to enclosing extension
28 |
29 |     /// 執行實際翻譯操作的異步非同步(Async)函式
   :
32 |     ///   - bridge: 傳入的橋樑物件,用來讀取參數與更新狀態
33 |     @MainActor
34 |     func translationTaskAction(session: TranslationSession, bridge: TranslationBatchBridge) async {
   |          `- note: add '@available' attribute to enclosing instance method
35 |
36 |         defer {
   :
60 |
61 |         } catch {
62 |             await MainActor.run { failure?(error) }
   |                             |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
   |                             `- note: add 'if #available' version check
63 |         }
64 |     }
[14/14] Compiling WWTranslationManager resource_bundle_accessor.swift
BUILD FAILURE 6.3 macosSpm