The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWTranslationManager, reference main (f7df3d), with Swift 6.4 for macOS (Xcode) using Xcode 27.0 on 27 Sep 2026 00:45:59 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme WWTranslationManager -destination platform=macOS,arch=arm64

Build Log

SwiftCompile normal arm64 Compiling\ WWTranslationBatchCoordinatorManager.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile 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: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)
SwiftCompile normal arm64 Compiling\ WWTranslationManager.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile 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: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)
SwiftCompile normal arm64 Compiling\ TranslationBridgeView.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile 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: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: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 | }
SwiftCompile normal arm64 Compiling\ TranslationBatchBridgeView.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
/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: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: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 |
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile TranslationBatchBridgeView.swift
SwiftCompile normal arm64 Compiling\ Error.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Error.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Error.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Error.swift
SwiftCompile normal arm64 Compiling\ TranslationBatchCoordinatorView.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
/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: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: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 |
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile TranslationBatchCoordinatorView.swift
SwiftCompile normal arm64 Compiling\ Model.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Model.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Model.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Model.swift
SwiftCompile normal arm64 Compiling\ Bridge.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift (in target 'WWTranslationManager' from project '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 |
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Bridge.swift
SwiftCompile normal arm64 Compiling\ WWTranslationBatchManager.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
/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: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: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)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWTranslationBatchManager.swift
SwiftCompile normal arm64 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-26 20:45:46.689 xcodebuild[623:3831] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:c3846813eb769e26aebb80520e7c55459c92aeca, name:My Mac }
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:c3846813eb769e26aebb80520e7c55459c92aeca, name:My Mac }
{ platform:macOS, arch:arm64, variant:DriverKit, id:c3846813eb769e26aebb80520e7c55459c92aeca, name:My Mac }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:c3846813eb769e26aebb80520e7c55459c92aeca, name:My Mac }
** BUILD FAILED **
The following build commands failed:
	SwiftCompile normal arm64 (in target 'WWTranslationManager' from project 'WWTranslationManager')
	SwiftEmitModule normal arm64 Emitting\ module\ for\ WWTranslationManager (in target 'WWTranslationManager' from project 'WWTranslationManager')
	Building workspace WWTranslationManager with scheme WWTranslationManager
(3 failures)
Command line invocation:
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
  WWTranslationManager: /Users/admin/builder/spi-builder-workspace
resolved source packages: WWTranslationManager
2026-09-26 20:45:55.859 xcodebuild[744:4393] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WWTranslationManager",
  "name" : "WWTranslationManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "18.0"
    }
  ],
  "products" : [
    {
      "name" : "WWTranslationManager",
      "targets" : [
        "WWTranslationManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "WWTranslationManager",
      "module_type" : "SwiftTarget",
      "name" : "WWTranslationManager",
      "path" : "Sources/WWTranslationManager",
      "product_memberships" : [
        "WWTranslationManager"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Privacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Utility/Bridge.swift",
        "Utility/Error.swift",
        "Utility/Model.swift",
        "View/TranslationBatchBridgeView.swift",
        "View/TranslationBatchCoordinatorView.swift",
        "View/TranslationBridgeView.swift",
        "WWTranslationBatchCoordinatorManager.swift",
        "WWTranslationBatchManager.swift",
        "WWTranslationManager.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
{
  "workspace" : {
    "name" : "WWTranslationManager",
    "schemes" : [
      "WWTranslationManager"
    ]
  }
}
2026-09-26 20:45:57.071 xcodebuild[758:4510] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme WWTranslationManager -destination platform=macOS,arch=arm64
Command line invocation:
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme WWTranslationManager -destination platform=macOS,arch=arm64
Resolve Package Graph
Resolved source packages:
  WWTranslationManager: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
    Target 'WWTranslationManager-product' in project 'WWTranslationManager'
        ➜ Explicit dependency on target 'WWTranslationManager' in project 'WWTranslationManager'
        ➜ Explicit dependency on target 'WWTranslationManager_WWTranslationManager' in project 'WWTranslationManager'
    Target 'WWTranslationManager' in project 'WWTranslationManager'
        ➜ Explicit dependency on target 'WWTranslationManager_WWTranslationManager' in project 'WWTranslationManager'
    Target 'WWTranslationManager_WWTranslationManager' in project 'WWTranslationManager' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/macosx27.0-26A425-e829b21a6f8c9b70876ba0858053c0446a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/macosx27.0-26A425-e829b21a6f8c9b70876ba0858053c0446a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache
SwiftDriver WWTranslationManager normal arm64 com.apple.xcode.tools.swift.compiler (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name WWTranslationManager -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -target arm64-apple-macos12.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/macosx27.0-26A425-e829b21a6f8c9b70876ba0858053c0446a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager-OutputFileMap.json -save-temps -no-color-diagnostics -explicit-module-build -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -sdk-module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -package-name spi_builder_workspace -emit-const-values -const-gather-protocols-list /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ Bridge.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift (in target 'WWTranslationManager' from project '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 |
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Bridge.swift
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 |
SwiftCompile normal arm64 Compiling\ Model.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Model.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Model.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Model.swift
SwiftCompile normal arm64 Compiling\ TranslationBridgeView.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift (in target 'WWTranslationManager' from project '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 |
/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: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 | }
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile TranslationBridgeView.swift
SwiftCompile normal arm64 Compiling\ Error.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Error.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Error.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Error.swift
SwiftCompile normal arm64 Compiling\ TranslationBatchBridgeView.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
/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: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: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 |
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile TranslationBatchBridgeView.swift
SwiftCompile normal arm64 Compiling\ TranslationBatchCoordinatorView.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
/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: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: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 |
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile TranslationBatchCoordinatorView.swift
SwiftCompile normal arm64 Compiling\ WWTranslationBatchCoordinatorManager.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
/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: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)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWTranslationBatchCoordinatorManager.swift
SwiftCompile normal arm64 Compiling\ WWTranslationBatchManager.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
/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: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: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)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWTranslationBatchManager.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ WWTranslationManager (in target 'WWTranslationManager' from project '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: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: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: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: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)
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/DerivedSources/resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Bridge.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Error.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/Utility/Model.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchBridgeView.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBatchCoordinatorView.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/View/TranslationBridgeView.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchCoordinatorManager.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationBatchManager.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift -target arm64-apple-macos12.0 -disable-cross-import-overlay-search -swift-module-cross-import Translation /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Translation.framework/Modules/Translation.swiftcrossimport/SwiftUI.swiftoverlay -swift-module-cross-import Translation /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk/System/Library/Frameworks/Translation.framework/Modules/Translation.swiftcrossimport/SwiftUI.swiftoverlay -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server\#SwiftUIMacros -disable-implicit-swift-modules -Xcc -fno-implicit-modules -Xcc -fno-implicit-module-maps -explicit-swift-module-map-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/macosx27.0-26A425-e829b21a6f8c9b70876ba0858053c0446a22442a12e9d48fe1a705f55a1adfc4.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name WWTranslationManager -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-macos27.0 -target-sdk-version 27.0 -target-sdk-name macosx27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/Objects-normal/arm64/WWTranslationManager.abi.json
SwiftCompile normal arm64 (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64 Compiling\ WWTranslationManager.swift /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
/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: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)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWTranslationManager/WWTranslationManager.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWTranslationManager.swift
SwiftCompile normal arm64 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWTranslationManager.build/Debug/WWTranslationManager-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWTranslationManager' from project 'WWTranslationManager')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
2026-09-26 20:45:58.020 xcodebuild[759:4534] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:c3846813eb769e26aebb80520e7c55459c92aeca, name:My Mac }
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:c3846813eb769e26aebb80520e7c55459c92aeca, name:My Mac }
{ platform:macOS, arch:arm64, variant:DriverKit, id:c3846813eb769e26aebb80520e7c55459c92aeca, name:My Mac }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:c3846813eb769e26aebb80520e7c55459c92aeca, name:My Mac }
** BUILD FAILED **
The following build commands failed:
	SwiftEmitModule normal arm64 Emitting\ module\ for\ WWTranslationManager (in target 'WWTranslationManager' from project 'WWTranslationManager')
	SwiftCompile normal arm64 (in target 'WWTranslationManager' from project 'WWTranslationManager')
	Building workspace WWTranslationManager with scheme WWTranslationManager
(3 failures)
BUILD FAILURE 6.4 macosXcodebuild