The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WWInterfaceOrientationCoordinator, reference main (1b87b0), with Swift 6.4 for watchOS using Xcode 27.0 on 24 Oct 2026 17:37:42 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme WWInterfaceOrientationCoordinator -destination generic/platform=watchOS

Build Log

165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                           `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 79 |
 80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
    |           `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 82 |
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:167:163: error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                                                                                                                                                   `- error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:20:11: note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 18 |
 19 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 20 | @protocol UIViewControllerTransitionCoordinatorContext <NSObject>
    |           `- note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 21 |
 22 | // Most of the time isAnimated will be YES. For custom transitions that use the
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:33:38: error: 'windowScene' is unavailable in watchOS
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
    |                                      `- error: 'windowScene' is unavailable in watchOS
 34 |     }
 35 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:32:53: note: 'windowScene' has been explicitly marked unavailable here
 30 | // If nil, window will not appear on any screen.
 31 | // changing the UIWindowScene may be an expensive operation and should not be done in performance-sensitive code
 32 | @property(nullable, nonatomic, weak) UIWindowScene *windowScene API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos);
    |                                                     `- note: 'windowScene' has been explicitly marked unavailable here
 33 |
 34 | // Indicates whether content should drive the size of arbitrarily resizable windows (which are currently present only on macOS).
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:33:51: error: 'effectiveGeometry' is unavailable in watchOS
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
    |                                                   `- error: 'effectiveGeometry' is unavailable in watchOS
 34 |     }
 35 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:34:56: note: 'effectiveGeometry' has been explicitly marked unavailable here
 32 |
 33 | // Provides the current resolved values for the window scene's geometry in system space.
 34 | @property (nonatomic, readonly) UIWindowSceneGeometry *effectiveGeometry API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos);
    |                                                        `- note: 'effectiveGeometry' has been explicitly marked unavailable here
 35 |
 36 | /// Preferences the system should evaluate when resizing the scene. If non `nil`, returns a mutable instance that the client may customize.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:55:37: error: value of type 'UIView' has no member 'reservedRegions'
 53 |     /// - Purpose: 適合用來決定巨觀的網格(Grid)或分欄結構,避免使用者在開合螢幕時畫面發生大幅度跳動
 54 |     var divisionRegions: [UIView.ReservedRegion] {
 55 |         return viewController?.view.reservedRegions(kind: .division, options: [.includeInactive]) ?? []
    |                                     `- error: value of type 'UIView' has no member 'reservedRegions'
 56 |     }
 57 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:62:37: error: value of type 'UIView' has no member 'reservedRegions'
 60 |     /// - Purpose: 適合用來做 UI 的邊距避讓(Padding),確保按鈕或重要文字絕對不會被物理硬體遮住
 61 |     var occlusionRegions: [UIView.ReservedRegion] {
 62 |         return viewController?.view.reservedRegions(kind: .occlusion) ?? []
    |                                     `- error: value of type 'UIView' has no member 'reservedRegions'
 63 |     }
 64 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:119:21: error: cannot find 'UISplitArrangement' in scope
117 |
118 |         let clampedFraction = min(max(preferredFraction, 0.0), 1.0)
119 |         var range = UISplitArrangement.DimensionRange()
    |                     `- error: cannot find 'UISplitArrangement' in scope
120 |
121 |         range.minimum = minimum
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:122:28: error: cannot infer contextual base in reference to member 'fractional'
120 |
121 |         range.minimum = minimum
122 |         range.preferred = .fractional(clampedFraction)
    |                            `- error: cannot infer contextual base in reference to member 'fractional'
123 |         range.maximum = maximum ?? .fractional(1.0)
124 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:150:24: error: 'registerForTraitChanges(_:handler:)' is unavailable in watchOS
148 |         initial(.init(previousTrait: previousTrait, currentTrait: currentTrait, orientation: orientation))
149 |
150 |         viewController.registerForTraitChanges([UITraitHorizontalSizeClass.self]) { [weak self] (viewController: UIViewController, previousTraitCollection: UITraitCollection) in
    |                        `- error: 'registerForTraitChanges(_:handler:)' is unavailable in watchOS
151 |
152 |             guard let self else { return }
UIKit.UIViewController.registerForTraitChanges:3:26: note: 'registerForTraitChanges(_:handler:)' has been explicitly marked unavailable here
1 | class UIViewController {
2 | @discardableResult
3 |   @MainActor public func registerForTraitChanges<Self>(_ traits: [UITrait], handler: @escaping UIViewController.TraitChangeHandler<Self>) -> any UITraitChangeRegistration where Self : UITraitEnvironment}
  |                          `- note: 'registerForTraitChanges(_:handler:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:150:49: error: 'UITraitHorizontalSizeClass' is unavailable in watchOS
148 |         initial(.init(previousTrait: previousTrait, currentTrait: currentTrait, orientation: orientation))
149 |
150 |         viewController.registerForTraitChanges([UITraitHorizontalSizeClass.self]) { [weak self] (viewController: UIViewController, previousTraitCollection: UITraitCollection) in
    |                                                 `- error: 'UITraitHorizontalSizeClass' is unavailable in watchOS
151 |
152 |             guard let self else { return }
UIKit.UITraitHorizontalSizeClass:3:15: note: 'UITraitHorizontalSizeClass' has been explicitly marked unavailable here
 1 | @available(iOS 17.0, tvOS 17.0, *)
 2 | @available(watchOS, unavailable)
 3 | public struct UITraitHorizontalSizeClass : UITraitDefinition {
   |               `- note: 'UITraitHorizontalSizeClass' has been explicitly marked unavailable here
 4 |     public static let defaultValue: UIUserInterfaceSizeClass
 5 |     public static let name: String
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:150:114: error: 'UIViewController' is unavailable in watchOS
148 |         initial(.init(previousTrait: previousTrait, currentTrait: currentTrait, orientation: orientation))
149 |
150 |         viewController.registerForTraitChanges([UITraitHorizontalSizeClass.self]) { [weak self] (viewController: UIViewController, previousTraitCollection: UITraitCollection) in
    |                                                                                                                  `- error: 'UIViewController' is unavailable in watchOS
151 |
152 |             guard let self else { return }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWInterfaceOrientationCoordinator.swift
SwiftCompile normal arm64 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
SwiftCompile normal arm64_32 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
SwiftCompile normal arm64_32 Compiling\ Model.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:15:29: error: 'UIInterfaceOrientation' is unavailable in watchOS
 13 |     public let previousTrait: WWTraitSizeClass?
 14 |     public let currentTrait: WWTraitSizeClass?
 15 |     public let orientation: UIInterfaceOrientation?
    |                             `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 16 |
 17 |     /// 建立方向與 Size Class 資訊
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:22:97: error: 'UIInterfaceOrientation' is unavailable in watchOS
 20 |     ///   - currentTrait: 目前的 Size Class;無法取得時傳 `nil`
 21 |     ///   - orientation: 目前的介面方向;無法取得時傳 `nil`
 22 |     public init(previousTrait: WWTraitSizeClass?, currentTrait: WWTraitSizeClass?, orientation: UIInterfaceOrientation?) {
    |                                                                                                 `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 23 |         self.previousTrait = previousTrait
 24 |         self.currentTrait = currentTrait
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:85:33: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 83 | public struct WWTraitSizeClass {
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
    |                                 `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
 87 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:86:35: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
    |                                   `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 87 |
 88 |     /// 建立 Size Class 狀態
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:34: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                  `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:80: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                                                                `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:43:22: error: 'isLandscape' is unavailable in watchOS
 41 |     /// 是否為橫向 UI
 42 |     var isLandscape: Bool {
 43 |         orientation?.isLandscape ?? false
    |                      `- error: 'isLandscape' is unavailable in watchOS
 44 |     }
 45 |
UIKit.UIInterfaceOrientation.isLandscape:3:14: note: 'isLandscape' has been explicitly marked unavailable here
1 | enum UIInterfaceOrientation {
2 | @available(watchOS, unavailable)
3 |   public var isLandscape: Bool { get }}
  |              `- note: 'isLandscape' has been explicitly marked unavailable here
4 |
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Model.swift
SwiftCompile normal arm64_32 Compiling\ Enum.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Enum.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Enum.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Enum.swift
SwiftCompile normal arm64_32 Compiling\ WWInterfaceOrientationCoordinator.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:18:38: error: 'UIViewController' is unavailable in watchOS
 16 | public class WWInterfaceOrientationCoordinator {
 17 |
 18 |     private weak var viewController: UIViewController?  // 觀察目標的 view controller
    |                                      `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 建立 orientation coordinator
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:23:33: error: 'UIViewController' is unavailable in watchOS
 21 |     ///
 22 |     /// - Parameter viewController: 要觀察與協調的 view controller;Coordinator 不會強持有它
 23 |     public init(viewController: UIViewController) {
    |                                 `- error: 'UIViewController' is unavailable in watchOS
 24 |         self.viewController = viewController
 25 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:32:22: error: 'UIInterfaceOrientation' is unavailable in watchOS
 30 |
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
    |                      `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
 34 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:37:26: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 35 |
 36 |     /// 目前的 horizontal size class
 37 |     var horizontalClass: UIUserInterfaceSizeClass? {
    |                          `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 38 |         viewController?.traitCollection.horizontalSizeClass
 39 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:42:28: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 40 |
 41 |     /// 目前的 vertical size class
 42 |     var verticalSizeClass: UIUserInterfaceSizeClass? {
    |                            `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 43 |         viewController?.traitCollection.verticalSizeClass
 44 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:54:34: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 52 |     /// - Note: 包含「不活躍狀態」(例如:當摺疊手機完全攤平時,折痕在物理上存在但此時寬度為 0 )
 53 |     /// - Purpose: 適合用來決定巨觀的網格(Grid)或分欄結構,避免使用者在開合螢幕時畫面發生大幅度跳動
 54 |     var divisionRegions: [UIView.ReservedRegion] {
    |                                  `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 55 |         return viewController?.view.reservedRegions(kind: .division, options: [.includeInactive]) ?? []
 56 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:61:35: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 59 |     /// - Note: 預設只包含「活躍狀態」(例如:動態島、瀏海、挖孔鏡頭,或當前顯示的系統控制列)
 60 |     /// - Purpose: 適合用來做 UI 的邊距避讓(Padding),確保按鈕或重要文字絕對不會被物理硬體遮住
 61 |     var occlusionRegions: [UIView.ReservedRegion] {
    |                                   `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 62 |         return viewController?.view.reservedRegions(kind: .occlusion) ?? []
 63 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:68:38: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 66 |     /// - Logic: 直接從已獲取的 `divisionRegions` 中,高效篩選出第一個狀態為 `isActive` 的區域
 67 |     /// - Purpose: 適合用來啟動微觀的 UI 調整,例如:當此屬性不為 nil 時,代表手機正處於半折疊的「懸停模式(Flex Mode)」,可將特定內容移開摺疊軸
 68 |     var activeDivisionRegion: UIView.ReservedRegion? {
    |                                      `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 69 |         return divisionRegions.first { $0.isActive }
 70 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:193: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                                                                                                                                 `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:92: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                            `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:146: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                                                                                  `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:167:43: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                           `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 79 |
 80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
    |           `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 82 |
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:167:163: error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                                                                                                                                                   `- error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:20:11: note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 18 |
 19 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 20 | @protocol UIViewControllerTransitionCoordinatorContext <NSObject>
    |           `- note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 21 |
 22 | // Most of the time isAnimated will be YES. For custom transitions that use the
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:33:38: error: 'windowScene' is unavailable in watchOS
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
    |                                      `- error: 'windowScene' is unavailable in watchOS
 34 |     }
 35 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:32:53: note: 'windowScene' has been explicitly marked unavailable here
 30 | // If nil, window will not appear on any screen.
 31 | // changing the UIWindowScene may be an expensive operation and should not be done in performance-sensitive code
 32 | @property(nullable, nonatomic, weak) UIWindowScene *windowScene API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos);
    |                                                     `- note: 'windowScene' has been explicitly marked unavailable here
 33 |
 34 | // Indicates whether content should drive the size of arbitrarily resizable windows (which are currently present only on macOS).
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:33:51: error: 'effectiveGeometry' is unavailable in watchOS
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
    |                                                   `- error: 'effectiveGeometry' is unavailable in watchOS
 34 |     }
 35 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:34:56: note: 'effectiveGeometry' has been explicitly marked unavailable here
 32 |
 33 | // Provides the current resolved values for the window scene's geometry in system space.
 34 | @property (nonatomic, readonly) UIWindowSceneGeometry *effectiveGeometry API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos);
    |                                                        `- note: 'effectiveGeometry' has been explicitly marked unavailable here
 35 |
 36 | /// Preferences the system should evaluate when resizing the scene. If non `nil`, returns a mutable instance that the client may customize.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:55:37: error: value of type 'UIView' has no member 'reservedRegions'
 53 |     /// - Purpose: 適合用來決定巨觀的網格(Grid)或分欄結構,避免使用者在開合螢幕時畫面發生大幅度跳動
 54 |     var divisionRegions: [UIView.ReservedRegion] {
 55 |         return viewController?.view.reservedRegions(kind: .division, options: [.includeInactive]) ?? []
    |                                     `- error: value of type 'UIView' has no member 'reservedRegions'
 56 |     }
 57 |
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWInterfaceOrientationCoordinator.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ WWInterfaceOrientationCoordinator (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:15:29: error: 'UIInterfaceOrientation' is unavailable in watchOS
 13 |     public let previousTrait: WWTraitSizeClass?
 14 |     public let currentTrait: WWTraitSizeClass?
 15 |     public let orientation: UIInterfaceOrientation?
    |                             `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 16 |
 17 |     /// 建立方向與 Size Class 資訊
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:22:97: error: 'UIInterfaceOrientation' is unavailable in watchOS
 20 |     ///   - currentTrait: 目前的 Size Class;無法取得時傳 `nil`
 21 |     ///   - orientation: 目前的介面方向;無法取得時傳 `nil`
 22 |     public init(previousTrait: WWTraitSizeClass?, currentTrait: WWTraitSizeClass?, orientation: UIInterfaceOrientation?) {
    |                                                                                                 `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 23 |         self.previousTrait = previousTrait
 24 |         self.currentTrait = currentTrait
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:85:33: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 83 | public struct WWTraitSizeClass {
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
    |                                 `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
 87 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:86:35: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
    |                                   `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 87 |
 88 |     /// 建立 Size Class 狀態
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:34: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                  `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:80: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                                                                `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:18:38: error: 'UIViewController' is unavailable in watchOS
 16 | public class WWInterfaceOrientationCoordinator {
 17 |
 18 |     private weak var viewController: UIViewController?  // 觀察目標的 view controller
    |                                      `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 建立 orientation coordinator
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:23:33: error: 'UIViewController' is unavailable in watchOS
 21 |     ///
 22 |     /// - Parameter viewController: 要觀察與協調的 view controller;Coordinator 不會強持有它
 23 |     public init(viewController: UIViewController) {
    |                                 `- error: 'UIViewController' is unavailable in watchOS
 24 |         self.viewController = viewController
 25 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:32:22: error: 'UIInterfaceOrientation' is unavailable in watchOS
 30 |
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
    |                      `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
 34 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:37:26: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 35 |
 36 |     /// 目前的 horizontal size class
 37 |     var horizontalClass: UIUserInterfaceSizeClass? {
    |                          `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 38 |         viewController?.traitCollection.horizontalSizeClass
 39 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:42:28: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 40 |
 41 |     /// 目前的 vertical size class
 42 |     var verticalSizeClass: UIUserInterfaceSizeClass? {
    |                            `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 43 |         viewController?.traitCollection.verticalSizeClass
 44 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
SwiftCompile normal arm64_32 (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

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-10-24 13:37:32.411 xcodebuild[662:3944] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
	SwiftCompile normal arm64 (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
	SwiftEmitModule normal arm64 Emitting\ module\ for\ WWInterfaceOrientationCoordinator (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
	Building workspace WWInterfaceOrientationCoordinator with scheme WWInterfaceOrientationCoordinator
(3 failures)
Command line invocation:
    /Applications/Xcode-27.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
  WWInterfaceOrientationCoordinator: /Users/admin/builder/spi-builder-workspace
resolved source packages: WWInterfaceOrientationCoordinator
2026-10-24 13:37:38.662 xcodebuild[822:4644] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WWInterfaceOrientationCoordinator",
  "name" : "WWInterfaceOrientationCoordinator",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "WWInterfaceOrientationCoordinator",
      "targets" : [
        "WWInterfaceOrientationCoordinator"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "WWInterfaceOrientationCoordinator",
      "module_type" : "SwiftTarget",
      "name" : "WWInterfaceOrientationCoordinator",
      "path" : "Sources/WWInterfaceOrientationCoordinator",
      "product_memberships" : [
        "WWInterfaceOrientationCoordinator"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Privacy",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "Utility/Enum.swift",
        "Utility/Model.swift",
        "WWInterfaceOrientationCoordinator.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
{
  "workspace" : {
    "name" : "WWInterfaceOrientationCoordinator",
    "schemes" : [
      "WWInterfaceOrientationCoordinator"
    ]
  }
}
2026-10-24 13:37:39.877 xcodebuild[830:4716] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme WWInterfaceOrientationCoordinator -destination generic/platform=watchOS
Command line invocation:
    /Applications/Xcode-27.0.0.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 WWInterfaceOrientationCoordinator -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
  WWInterfaceOrientationCoordinator: /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 'WWInterfaceOrientationCoordinator-product' in project 'WWInterfaceOrientationCoordinator'
        ➜ Explicit dependency on target 'WWInterfaceOrientationCoordinator' in project 'WWInterfaceOrientationCoordinator'
        ➜ Explicit dependency on target 'WWInterfaceOrientationCoordinator_WWInterfaceOrientationCoordinator' in project 'WWInterfaceOrientationCoordinator'
    Target 'WWInterfaceOrientationCoordinator' in project 'WWInterfaceOrientationCoordinator'
        ➜ Explicit dependency on target 'WWInterfaceOrientationCoordinator_WWInterfaceOrientationCoordinator' in project 'WWInterfaceOrientationCoordinator'
    Target 'WWInterfaceOrientationCoordinator_WWInterfaceOrientationCoordinator' in project 'WWInterfaceOrientationCoordinator' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache
SwiftDriver WWInterfaceOrientationCoordinator normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftDriver -- /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name WWInterfaceOrientationCoordinator -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64_32-apple-watchos10.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-watchos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator-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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator-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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver WWInterfaceOrientationCoordinator normal arm64 com.apple.xcode.tools.swift.compiler (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftDriver -- /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name WWInterfaceOrientationCoordinator -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64-apple-watchos10.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-watchos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator-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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator-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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ WWInterfaceOrientationCoordinator (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:15:29: error: 'UIInterfaceOrientation' is unavailable in watchOS
 13 |     public let previousTrait: WWTraitSizeClass?
 14 |     public let currentTrait: WWTraitSizeClass?
 15 |     public let orientation: UIInterfaceOrientation?
    |                             `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 16 |
 17 |     /// 建立方向與 Size Class 資訊
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:22:97: error: 'UIInterfaceOrientation' is unavailable in watchOS
 20 |     ///   - currentTrait: 目前的 Size Class;無法取得時傳 `nil`
 21 |     ///   - orientation: 目前的介面方向;無法取得時傳 `nil`
 22 |     public init(previousTrait: WWTraitSizeClass?, currentTrait: WWTraitSizeClass?, orientation: UIInterfaceOrientation?) {
    |                                                                                                 `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 23 |         self.previousTrait = previousTrait
 24 |         self.currentTrait = currentTrait
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:85:33: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 83 | public struct WWTraitSizeClass {
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
    |                                 `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
 87 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:86:35: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
    |                                   `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 87 |
 88 |     /// 建立 Size Class 狀態
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:34: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                  `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:80: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                                                                `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:18:38: error: 'UIViewController' is unavailable in watchOS
 16 | public class WWInterfaceOrientationCoordinator {
 17 |
 18 |     private weak var viewController: UIViewController?  // 觀察目標的 view controller
    |                                      `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 建立 orientation coordinator
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:23:33: error: 'UIViewController' is unavailable in watchOS
 21 |     ///
 22 |     /// - Parameter viewController: 要觀察與協調的 view controller;Coordinator 不會強持有它
 23 |     public init(viewController: UIViewController) {
    |                                 `- error: 'UIViewController' is unavailable in watchOS
 24 |         self.viewController = viewController
 25 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:32:22: error: 'UIInterfaceOrientation' is unavailable in watchOS
 30 |
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
    |                      `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
 34 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:37:26: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 35 |
 36 |     /// 目前的 horizontal size class
 37 |     var horizontalClass: UIUserInterfaceSizeClass? {
    |                          `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 38 |         viewController?.traitCollection.horizontalSizeClass
 39 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:42:28: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 40 |
 41 |     /// 目前的 vertical size class
 42 |     var verticalSizeClass: UIUserInterfaceSizeClass? {
    |                            `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 43 |         viewController?.traitCollection.verticalSizeClass
 44 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:54:34: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 52 |     /// - Note: 包含「不活躍狀態」(例如:當摺疊手機完全攤平時,折痕在物理上存在但此時寬度為 0 )
 53 |     /// - Purpose: 適合用來決定巨觀的網格(Grid)或分欄結構,避免使用者在開合螢幕時畫面發生大幅度跳動
 54 |     var divisionRegions: [UIView.ReservedRegion] {
    |                                  `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 55 |         return viewController?.view.reservedRegions(kind: .division, options: [.includeInactive]) ?? []
 56 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:61:35: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 59 |     /// - Note: 預設只包含「活躍狀態」(例如:動態島、瀏海、挖孔鏡頭,或當前顯示的系統控制列)
 60 |     /// - Purpose: 適合用來做 UI 的邊距避讓(Padding),確保按鈕或重要文字絕對不會被物理硬體遮住
 61 |     var occlusionRegions: [UIView.ReservedRegion] {
    |                                   `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 62 |         return viewController?.view.reservedRegions(kind: .occlusion) ?? []
 63 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:68:38: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 66 |     /// - Logic: 直接從已獲取的 `divisionRegions` 中,高效篩選出第一個狀態為 `isActive` 的區域
 67 |     /// - Purpose: 適合用來啟動微觀的 UI 調整,例如:當此屬性不為 nil 時,代表手機正處於半折疊的「懸停模式(Flex Mode)」,可將特定內容移開摺疊軸
 68 |     var activeDivisionRegion: UIView.ReservedRegion? {
    |                                      `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 69 |         return divisionRegions.first { $0.isActive }
 70 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:193: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                                                                                                                                 `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:92: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                            `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:146: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                                                                                  `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:167:43: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                           `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 79 |
 80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
    |           `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 82 |
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:167:163: error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                                                                                                                                                   `- error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:20:11: note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 18 |
 19 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 20 | @protocol UIViewControllerTransitionCoordinatorContext <NSObject>
    |           `- note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 21 |
 22 | // Most of the time isAnimated will be YES. For custom transitions that use the
Failed frontend command:
SwiftCompile normal arm64_32 (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

/Applications/Xcode-27.0.0.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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Enum.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift -target arm64_32-apple-watchos10.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator-dependencies-1.json -enable-objc-interop -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/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/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name WWInterfaceOrientationCoordinator -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0.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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64_32/WWInterfaceOrientationCoordinator.abi.json
SwiftCompile normal arm64_32 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
SwiftCompile normal arm64_32 Compiling\ Enum.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Enum.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Enum.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Enum.swift
SwiftCompile normal arm64_32 Compiling\ Model.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:15:29: error: 'UIInterfaceOrientation' is unavailable in watchOS
 13 |     public let previousTrait: WWTraitSizeClass?
 14 |     public let currentTrait: WWTraitSizeClass?
 15 |     public let orientation: UIInterfaceOrientation?
    |                             `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 16 |
 17 |     /// 建立方向與 Size Class 資訊
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:22:97: error: 'UIInterfaceOrientation' is unavailable in watchOS
 20 |     ///   - currentTrait: 目前的 Size Class;無法取得時傳 `nil`
 21 |     ///   - orientation: 目前的介面方向;無法取得時傳 `nil`
 22 |     public init(previousTrait: WWTraitSizeClass?, currentTrait: WWTraitSizeClass?, orientation: UIInterfaceOrientation?) {
    |                                                                                                 `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 23 |         self.previousTrait = previousTrait
 24 |         self.currentTrait = currentTrait
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:85:33: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 83 | public struct WWTraitSizeClass {
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
    |                                 `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
 87 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:86:35: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
    |                                   `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 87 |
 88 |     /// 建立 Size Class 狀態
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:34: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                  `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:80: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                                                                `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:43:22: error: 'isLandscape' is unavailable in watchOS
 41 |     /// 是否為橫向 UI
 42 |     var isLandscape: Bool {
 43 |         orientation?.isLandscape ?? false
    |                      `- error: 'isLandscape' is unavailable in watchOS
 44 |     }
 45 |
UIKit.UIInterfaceOrientation.isLandscape:3:14: note: 'isLandscape' has been explicitly marked unavailable here
1 | enum UIInterfaceOrientation {
2 | @available(watchOS, unavailable)
3 |   public var isLandscape: Bool { get }}
  |              `- note: 'isLandscape' has been explicitly marked unavailable here
4 |
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Model.swift
SwiftCompile normal arm64_32 Compiling\ WWInterfaceOrientationCoordinator.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:18:38: error: 'UIViewController' is unavailable in watchOS
 16 | public class WWInterfaceOrientationCoordinator {
 17 |
 18 |     private weak var viewController: UIViewController?  // 觀察目標的 view controller
    |                                      `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 建立 orientation coordinator
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:23:33: error: 'UIViewController' is unavailable in watchOS
 21 |     ///
 22 |     /// - Parameter viewController: 要觀察與協調的 view controller;Coordinator 不會強持有它
 23 |     public init(viewController: UIViewController) {
    |                                 `- error: 'UIViewController' is unavailable in watchOS
 24 |         self.viewController = viewController
 25 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:32:22: error: 'UIInterfaceOrientation' is unavailable in watchOS
 30 |
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
    |                      `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
 34 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:37:26: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 35 |
 36 |     /// 目前的 horizontal size class
 37 |     var horizontalClass: UIUserInterfaceSizeClass? {
    |                          `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 38 |         viewController?.traitCollection.horizontalSizeClass
 39 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:42:28: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 40 |
 41 |     /// 目前的 vertical size class
 42 |     var verticalSizeClass: UIUserInterfaceSizeClass? {
    |                            `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 43 |         viewController?.traitCollection.verticalSizeClass
 44 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:54:34: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 52 |     /// - Note: 包含「不活躍狀態」(例如:當摺疊手機完全攤平時,折痕在物理上存在但此時寬度為 0 )
 53 |     /// - Purpose: 適合用來決定巨觀的網格(Grid)或分欄結構,避免使用者在開合螢幕時畫面發生大幅度跳動
 54 |     var divisionRegions: [UIView.ReservedRegion] {
    |                                  `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 55 |         return viewController?.view.reservedRegions(kind: .division, options: [.includeInactive]) ?? []
 56 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:61:35: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 59 |     /// - Note: 預設只包含「活躍狀態」(例如:動態島、瀏海、挖孔鏡頭,或當前顯示的系統控制列)
 60 |     /// - Purpose: 適合用來做 UI 的邊距避讓(Padding),確保按鈕或重要文字絕對不會被物理硬體遮住
 61 |     var occlusionRegions: [UIView.ReservedRegion] {
    |                                   `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 62 |         return viewController?.view.reservedRegions(kind: .occlusion) ?? []
 63 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:68:38: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 66 |     /// - Logic: 直接從已獲取的 `divisionRegions` 中,高效篩選出第一個狀態為 `isActive` 的區域
 67 |     /// - Purpose: 適合用來啟動微觀的 UI 調整,例如:當此屬性不為 nil 時,代表手機正處於半折疊的「懸停模式(Flex Mode)」,可將特定內容移開摺疊軸
 68 |     var activeDivisionRegion: UIView.ReservedRegion? {
    |                                      `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 69 |         return divisionRegions.first { $0.isActive }
 70 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:193: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                                                                                                                                 `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:92: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                            `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:146: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                                                                                  `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:167:43: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                           `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 79 |
 80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
    |           `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 82 |
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:167:163: error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                                                                                                                                                   `- error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:20:11: note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 18 |
 19 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 20 | @protocol UIViewControllerTransitionCoordinatorContext <NSObject>
    |           `- note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 21 |
 22 | // Most of the time isAnimated will be YES. For custom transitions that use the
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:33:38: error: 'windowScene' is unavailable in watchOS
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
    |                                      `- error: 'windowScene' is unavailable in watchOS
 34 |     }
 35 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:32:53: note: 'windowScene' has been explicitly marked unavailable here
 30 | // If nil, window will not appear on any screen.
 31 | // changing the UIWindowScene may be an expensive operation and should not be done in performance-sensitive code
 32 | @property(nullable, nonatomic, weak) UIWindowScene *windowScene API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos);
    |                                                     `- note: 'windowScene' has been explicitly marked unavailable here
 33 |
 34 | // Indicates whether content should drive the size of arbitrarily resizable windows (which are currently present only on macOS).
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:33:51: error: 'effectiveGeometry' is unavailable in watchOS
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
    |                                                   `- error: 'effectiveGeometry' is unavailable in watchOS
 34 |     }
 35 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:34:56: note: 'effectiveGeometry' has been explicitly marked unavailable here
 32 |
 33 | // Provides the current resolved values for the window scene's geometry in system space.
 34 | @property (nonatomic, readonly) UIWindowSceneGeometry *effectiveGeometry API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos);
    |                                                        `- note: 'effectiveGeometry' has been explicitly marked unavailable here
 35 |
 36 | /// Preferences the system should evaluate when resizing the scene. If non `nil`, returns a mutable instance that the client may customize.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:55:37: error: value of type 'UIView' has no member 'reservedRegions'
 53 |     /// - Purpose: 適合用來決定巨觀的網格(Grid)或分欄結構,避免使用者在開合螢幕時畫面發生大幅度跳動
 54 |     var divisionRegions: [UIView.ReservedRegion] {
 55 |         return viewController?.view.reservedRegions(kind: .division, options: [.includeInactive]) ?? []
    |                                     `- error: value of type 'UIView' has no member 'reservedRegions'
 56 |     }
 57 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:62:37: error: value of type 'UIView' has no member 'reservedRegions'
 60 |     /// - Purpose: 適合用來做 UI 的邊距避讓(Padding),確保按鈕或重要文字絕對不會被物理硬體遮住
 61 |     var occlusionRegions: [UIView.ReservedRegion] {
 62 |         return viewController?.view.reservedRegions(kind: .occlusion) ?? []
    |                                     `- error: value of type 'UIView' has no member 'reservedRegions'
 63 |     }
 64 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:119:21: error: cannot find 'UISplitArrangement' in scope
117 |
118 |         let clampedFraction = min(max(preferredFraction, 0.0), 1.0)
119 |         var range = UISplitArrangement.DimensionRange()
    |                     `- error: cannot find 'UISplitArrangement' in scope
120 |
121 |         range.minimum = minimum
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:122:28: error: cannot infer contextual base in reference to member 'fractional'
120 |
121 |         range.minimum = minimum
122 |         range.preferred = .fractional(clampedFraction)
    |                            `- error: cannot infer contextual base in reference to member 'fractional'
123 |         range.maximum = maximum ?? .fractional(1.0)
124 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:150:24: error: 'registerForTraitChanges(_:handler:)' is unavailable in watchOS
148 |         initial(.init(previousTrait: previousTrait, currentTrait: currentTrait, orientation: orientation))
149 |
150 |         viewController.registerForTraitChanges([UITraitHorizontalSizeClass.self]) { [weak self] (viewController: UIViewController, previousTraitCollection: UITraitCollection) in
    |                        `- error: 'registerForTraitChanges(_:handler:)' is unavailable in watchOS
151 |
152 |             guard let self else { return }
UIKit.UIViewController.registerForTraitChanges:3:26: note: 'registerForTraitChanges(_:handler:)' has been explicitly marked unavailable here
1 | class UIViewController {
2 | @discardableResult
3 |   @MainActor public func registerForTraitChanges<Self>(_ traits: [UITrait], handler: @escaping UIViewController.TraitChangeHandler<Self>) -> any UITraitChangeRegistration where Self : UITraitEnvironment}
  |                          `- note: 'registerForTraitChanges(_:handler:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:150:49: error: 'UITraitHorizontalSizeClass' is unavailable in watchOS
148 |         initial(.init(previousTrait: previousTrait, currentTrait: currentTrait, orientation: orientation))
149 |
150 |         viewController.registerForTraitChanges([UITraitHorizontalSizeClass.self]) { [weak self] (viewController: UIViewController, previousTraitCollection: UITraitCollection) in
    |                                                 `- error: 'UITraitHorizontalSizeClass' is unavailable in watchOS
151 |
152 |             guard let self else { return }
UIKit.UITraitHorizontalSizeClass:3:15: note: 'UITraitHorizontalSizeClass' has been explicitly marked unavailable here
 1 | @available(iOS 17.0, tvOS 17.0, *)
 2 | @available(watchOS, unavailable)
 3 | public struct UITraitHorizontalSizeClass : UITraitDefinition {
   |               `- note: 'UITraitHorizontalSizeClass' has been explicitly marked unavailable here
 4 |     public static let defaultValue: UIUserInterfaceSizeClass
 5 |     public static let name: String
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:150:114: error: 'UIViewController' is unavailable in watchOS
148 |         initial(.init(previousTrait: previousTrait, currentTrait: currentTrait, orientation: orientation))
149 |
150 |         viewController.registerForTraitChanges([UITraitHorizontalSizeClass.self]) { [weak self] (viewController: UIViewController, previousTraitCollection: UITraitCollection) in
    |                                                                                                                  `- error: 'UIViewController' is unavailable in watchOS
151 |
152 |             guard let self else { return }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWInterfaceOrientationCoordinator.swift
SwiftCompile normal arm64 Compiling\ resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/resource_bundle_accessor.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile resource_bundle_accessor.swift
SwiftEmitModule normal arm64 Emitting\ module\ for\ WWInterfaceOrientationCoordinator (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:15:29: error: 'UIInterfaceOrientation' is unavailable in watchOS
 13 |     public let previousTrait: WWTraitSizeClass?
 14 |     public let currentTrait: WWTraitSizeClass?
 15 |     public let orientation: UIInterfaceOrientation?
    |                             `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 16 |
 17 |     /// 建立方向與 Size Class 資訊
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:22:97: error: 'UIInterfaceOrientation' is unavailable in watchOS
 20 |     ///   - currentTrait: 目前的 Size Class;無法取得時傳 `nil`
 21 |     ///   - orientation: 目前的介面方向;無法取得時傳 `nil`
 22 |     public init(previousTrait: WWTraitSizeClass?, currentTrait: WWTraitSizeClass?, orientation: UIInterfaceOrientation?) {
    |                                                                                                 `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 23 |         self.previousTrait = previousTrait
 24 |         self.currentTrait = currentTrait
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:85:33: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 83 | public struct WWTraitSizeClass {
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
    |                                 `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
 87 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:86:35: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
    |                                   `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 87 |
 88 |     /// 建立 Size Class 狀態
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:34: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                  `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:80: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                                                                `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:18:38: error: 'UIViewController' is unavailable in watchOS
 16 | public class WWInterfaceOrientationCoordinator {
 17 |
 18 |     private weak var viewController: UIViewController?  // 觀察目標的 view controller
    |                                      `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 建立 orientation coordinator
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:23:33: error: 'UIViewController' is unavailable in watchOS
 21 |     ///
 22 |     /// - Parameter viewController: 要觀察與協調的 view controller;Coordinator 不會強持有它
 23 |     public init(viewController: UIViewController) {
    |                                 `- error: 'UIViewController' is unavailable in watchOS
 24 |         self.viewController = viewController
 25 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:32:22: error: 'UIInterfaceOrientation' is unavailable in watchOS
 30 |
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
    |                      `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
 34 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:37:26: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 35 |
 36 |     /// 目前的 horizontal size class
 37 |     var horizontalClass: UIUserInterfaceSizeClass? {
    |                          `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 38 |         viewController?.traitCollection.horizontalSizeClass
 39 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:42:28: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 40 |
 41 |     /// 目前的 vertical size class
 42 |     var verticalSizeClass: UIUserInterfaceSizeClass? {
    |                            `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 43 |         viewController?.traitCollection.verticalSizeClass
 44 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:54:34: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 52 |     /// - Note: 包含「不活躍狀態」(例如:當摺疊手機完全攤平時,折痕在物理上存在但此時寬度為 0 )
 53 |     /// - Purpose: 適合用來決定巨觀的網格(Grid)或分欄結構,避免使用者在開合螢幕時畫面發生大幅度跳動
 54 |     var divisionRegions: [UIView.ReservedRegion] {
    |                                  `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 55 |         return viewController?.view.reservedRegions(kind: .division, options: [.includeInactive]) ?? []
 56 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:61:35: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 59 |     /// - Note: 預設只包含「活躍狀態」(例如:動態島、瀏海、挖孔鏡頭,或當前顯示的系統控制列)
 60 |     /// - Purpose: 適合用來做 UI 的邊距避讓(Padding),確保按鈕或重要文字絕對不會被物理硬體遮住
 61 |     var occlusionRegions: [UIView.ReservedRegion] {
    |                                   `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 62 |         return viewController?.view.reservedRegions(kind: .occlusion) ?? []
 63 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:68:38: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 66 |     /// - Logic: 直接從已獲取的 `divisionRegions` 中,高效篩選出第一個狀態為 `isActive` 的區域
 67 |     /// - Purpose: 適合用來啟動微觀的 UI 調整,例如:當此屬性不為 nil 時,代表手機正處於半折疊的「懸停模式(Flex Mode)」,可將特定內容移開摺疊軸
 68 |     var activeDivisionRegion: UIView.ReservedRegion? {
    |                                      `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 69 |         return divisionRegions.first { $0.isActive }
 70 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:193: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                                                                                                                                 `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:92: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                            `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:146: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                                                                                  `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:167:43: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                           `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 79 |
 80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
    |           `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 82 |
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:167:163: error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                                                                                                                                                   `- error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:20:11: note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 18 |
 19 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 20 | @protocol UIViewControllerTransitionCoordinatorContext <NSObject>
    |           `- note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 21 |
 22 | // Most of the time isAnimated will be YES. For custom transitions that use the
Failed frontend command:
/Applications/Xcode-27.0.0.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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/resource_bundle_accessor.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Enum.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift -target arm64-apple-watchos10.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator-dependencies-2.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/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/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name WWInterfaceOrientationCoordinator -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator_const_extract_protocols.json -disable-clang-spi -clang-target arm64-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0.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/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/WWInterfaceOrientationCoordinator.build/Debug-watchos/WWInterfaceOrientationCoordinator-t.build/Objects-normal/arm64/WWInterfaceOrientationCoordinator.abi.json
SwiftCompile normal arm64 (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64 Compiling\ WWInterfaceOrientationCoordinator.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:18:38: error: 'UIViewController' is unavailable in watchOS
 16 | public class WWInterfaceOrientationCoordinator {
 17 |
 18 |     private weak var viewController: UIViewController?  // 觀察目標的 view controller
    |                                      `- error: 'UIViewController' is unavailable in watchOS
 19 |
 20 |     /// 建立 orientation coordinator
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:23:33: error: 'UIViewController' is unavailable in watchOS
 21 |     ///
 22 |     /// - Parameter viewController: 要觀察與協調的 view controller;Coordinator 不會強持有它
 23 |     public init(viewController: UIViewController) {
    |                                 `- error: 'UIViewController' is unavailable in watchOS
 24 |         self.viewController = viewController
 25 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:32:22: error: 'UIInterfaceOrientation' is unavailable in watchOS
 30 |
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
    |                      `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
 34 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:37:26: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 35 |
 36 |     /// 目前的 horizontal size class
 37 |     var horizontalClass: UIUserInterfaceSizeClass? {
    |                          `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 38 |         viewController?.traitCollection.horizontalSizeClass
 39 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:42:28: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 40 |
 41 |     /// 目前的 vertical size class
 42 |     var verticalSizeClass: UIUserInterfaceSizeClass? {
    |                            `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 43 |         viewController?.traitCollection.verticalSizeClass
 44 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:54:34: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 52 |     /// - Note: 包含「不活躍狀態」(例如:當摺疊手機完全攤平時,折痕在物理上存在但此時寬度為 0 )
 53 |     /// - Purpose: 適合用來決定巨觀的網格(Grid)或分欄結構,避免使用者在開合螢幕時畫面發生大幅度跳動
 54 |     var divisionRegions: [UIView.ReservedRegion] {
    |                                  `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 55 |         return viewController?.view.reservedRegions(kind: .division, options: [.includeInactive]) ?? []
 56 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:61:35: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 59 |     /// - Note: 預設只包含「活躍狀態」(例如:動態島、瀏海、挖孔鏡頭,或當前顯示的系統控制列)
 60 |     /// - Purpose: 適合用來做 UI 的邊距避讓(Padding),確保按鈕或重要文字絕對不會被物理硬體遮住
 61 |     var occlusionRegions: [UIView.ReservedRegion] {
    |                                   `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 62 |         return viewController?.view.reservedRegions(kind: .occlusion) ?? []
 63 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:68:38: error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 66 |     /// - Logic: 直接從已獲取的 `divisionRegions` 中,高效篩選出第一個狀態為 `isActive` 的區域
 67 |     /// - Purpose: 適合用來啟動微觀的 UI 調整,例如:當此屬性不為 nil 時,代表手機正處於半折疊的「懸停模式(Flex Mode)」,可將特定內容移開摺疊軸
 68 |     var activeDivisionRegion: UIView.ReservedRegion? {
    |                                      `- error: 'ReservedRegion' is not a member type of class 'UIKit.UIView'
 69 |         return divisionRegions.first { $0.isActive }
 70 |     }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:152:12: note: 'UIView' declared here
150 |
151 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
152 | @interface UIView : UIResponder <NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate>
    |            `- note: 'UIView' declared here
153 |
154 | @property(class, nonatomic, readonly) Class layerClass;                        // default is [CALayer class]. Used when creating the underlying layer for the view.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:193: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                                                                                                                                 `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:92: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                            `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:88:146: error: cannot find type 'UISplitArrangement' in scope
 86 |     ///   - `.success(DimensionRange)`:計算成功時回傳可套用到 arrangement 的尺寸範圍
 87 |     ///   - `.failure(DimensionRangeError)`:尺寸或比例無效時回傳對應錯誤
 88 |     static func crossAxisDimensionRange(with size: CGSize, ratio: CrossAxisRatio, minimum: UISplitArrangement.Dimension = .absolute(0), maximum: UISplitArrangement.Dimension? = nil) -> Result<UISplitArrangement.DimensionRange, DimensionRangeError> {
    |                                                                                                                                                  `- error: cannot find type 'UISplitArrangement' in scope
 89 |
 90 |         guard size.width.isFinite, size.height.isFinite,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:167:43: error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                           `- error: 'UIViewControllerTransitionCoordinator' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:81:11: note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 79 |
 80 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 81 | @protocol UIViewControllerTransitionCoordinator <UIViewControllerTransitionCoordinatorContext>
    |           `- note: 'UIViewControllerTransitionCoordinator' has been explicitly marked unavailable here
 82 |
 83 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:167:163: error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
165 |     ///   - animation: 與轉場同時執行的動畫回呼
166 |     ///   - completion: 轉場動畫結束後呼叫的回呼,可取得轉場 context
167 |     func willTransition(with coordinator: UIViewControllerTransitionCoordinator, animation: @escaping (WWLayoutEnvironmentInformation) -> Void, completion: ((any UIViewControllerTransitionCoordinatorContext) -> Void)? = nil) {
    |                                                                                                                                                                   `- error: 'UIViewControllerTransitionCoordinatorContext' is unavailable in watchOS
168 |
169 |         coordinator.animate(alongsideTransition: { [weak self] _ in
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewControllerTransitionCoordinator.h:20:11: note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 18 |
 19 | API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 20 | @protocol UIViewControllerTransitionCoordinatorContext <NSObject>
    |           `- note: 'UIViewControllerTransitionCoordinatorContext' has been explicitly marked unavailable here
 21 |
 22 | // Most of the time isAnimated will be YES. For custom transitions that use the
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:33:38: error: 'windowScene' is unavailable in watchOS
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
    |                                      `- error: 'windowScene' is unavailable in watchOS
 34 |     }
 35 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:32:53: note: 'windowScene' has been explicitly marked unavailable here
 30 | // If nil, window will not appear on any screen.
 31 | // changing the UIWindowScene may be an expensive operation and should not be done in performance-sensitive code
 32 | @property(nullable, nonatomic, weak) UIWindowScene *windowScene API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos);
    |                                                     `- note: 'windowScene' has been explicitly marked unavailable here
 33 |
 34 | // Indicates whether content should drive the size of arbitrarily resizable windows (which are currently present only on macOS).
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:33:51: error: 'effectiveGeometry' is unavailable in watchOS
 31 |     /// 目前的 interface orientation
 32 |     var orientation: UIInterfaceOrientation? {
 33 |         viewController?.view.window?.windowScene?.effectiveGeometry.interfaceOrientation
    |                                                   `- error: 'effectiveGeometry' is unavailable in watchOS
 34 |     }
 35 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:34:56: note: 'effectiveGeometry' has been explicitly marked unavailable here
 32 |
 33 | // Provides the current resolved values for the window scene's geometry in system space.
 34 | @property (nonatomic, readonly) UIWindowSceneGeometry *effectiveGeometry API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos);
    |                                                        `- note: 'effectiveGeometry' has been explicitly marked unavailable here
 35 |
 36 | /// Preferences the system should evaluate when resizing the scene. If non `nil`, returns a mutable instance that the client may customize.
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:55:37: error: value of type 'UIView' has no member 'reservedRegions'
 53 |     /// - Purpose: 適合用來決定巨觀的網格(Grid)或分欄結構,避免使用者在開合螢幕時畫面發生大幅度跳動
 54 |     var divisionRegions: [UIView.ReservedRegion] {
 55 |         return viewController?.view.reservedRegions(kind: .division, options: [.includeInactive]) ?? []
    |                                     `- error: value of type 'UIView' has no member 'reservedRegions'
 56 |     }
 57 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:62:37: error: value of type 'UIView' has no member 'reservedRegions'
 60 |     /// - Purpose: 適合用來做 UI 的邊距避讓(Padding),確保按鈕或重要文字絕對不會被物理硬體遮住
 61 |     var occlusionRegions: [UIView.ReservedRegion] {
 62 |         return viewController?.view.reservedRegions(kind: .occlusion) ?? []
    |                                     `- error: value of type 'UIView' has no member 'reservedRegions'
 63 |     }
 64 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:119:21: error: cannot find 'UISplitArrangement' in scope
117 |
118 |         let clampedFraction = min(max(preferredFraction, 0.0), 1.0)
119 |         var range = UISplitArrangement.DimensionRange()
    |                     `- error: cannot find 'UISplitArrangement' in scope
120 |
121 |         range.minimum = minimum
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:122:28: error: cannot infer contextual base in reference to member 'fractional'
120 |
121 |         range.minimum = minimum
122 |         range.preferred = .fractional(clampedFraction)
    |                            `- error: cannot infer contextual base in reference to member 'fractional'
123 |         range.maximum = maximum ?? .fractional(1.0)
124 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:150:24: error: 'registerForTraitChanges(_:handler:)' is unavailable in watchOS
148 |         initial(.init(previousTrait: previousTrait, currentTrait: currentTrait, orientation: orientation))
149 |
150 |         viewController.registerForTraitChanges([UITraitHorizontalSizeClass.self]) { [weak self] (viewController: UIViewController, previousTraitCollection: UITraitCollection) in
    |                        `- error: 'registerForTraitChanges(_:handler:)' is unavailable in watchOS
151 |
152 |             guard let self else { return }
UIKit.UIViewController.registerForTraitChanges:3:26: note: 'registerForTraitChanges(_:handler:)' has been explicitly marked unavailable here
1 | class UIViewController {
2 | @discardableResult
3 |   @MainActor public func registerForTraitChanges<Self>(_ traits: [UITrait], handler: @escaping UIViewController.TraitChangeHandler<Self>) -> any UITraitChangeRegistration where Self : UITraitEnvironment}
  |                          `- note: 'registerForTraitChanges(_:handler:)' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:150:49: error: 'UITraitHorizontalSizeClass' is unavailable in watchOS
148 |         initial(.init(previousTrait: previousTrait, currentTrait: currentTrait, orientation: orientation))
149 |
150 |         viewController.registerForTraitChanges([UITraitHorizontalSizeClass.self]) { [weak self] (viewController: UIViewController, previousTraitCollection: UITraitCollection) in
    |                                                 `- error: 'UITraitHorizontalSizeClass' is unavailable in watchOS
151 |
152 |             guard let self else { return }
UIKit.UITraitHorizontalSizeClass:3:15: note: 'UITraitHorizontalSizeClass' has been explicitly marked unavailable here
 1 | @available(iOS 17.0, tvOS 17.0, *)
 2 | @available(watchOS, unavailable)
 3 | public struct UITraitHorizontalSizeClass : UITraitDefinition {
   |               `- note: 'UITraitHorizontalSizeClass' has been explicitly marked unavailable here
 4 |     public static let defaultValue: UIUserInterfaceSizeClass
 5 |     public static let name: String
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift:150:114: error: 'UIViewController' is unavailable in watchOS
148 |         initial(.init(previousTrait: previousTrait, currentTrait: currentTrait, orientation: orientation))
149 |
150 |         viewController.registerForTraitChanges([UITraitHorizontalSizeClass.self]) { [weak self] (viewController: UIViewController, previousTraitCollection: UITraitCollection) in
    |                                                                                                                  `- error: 'UIViewController' is unavailable in watchOS
151 |
152 |             guard let self else { return }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:104:12: note: 'UIViewController' has been explicitly marked unavailable here
102 |
103 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
104 | @interface UIViewController : UIResponder <NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment>
    |            `- note: 'UIViewController' has been explicitly marked unavailable here
105 |
106 | /*
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/WWInterfaceOrientationCoordinator.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile WWInterfaceOrientationCoordinator.swift
SwiftCompile normal arm64 Compiling\ Model.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:15:29: error: 'UIInterfaceOrientation' is unavailable in watchOS
 13 |     public let previousTrait: WWTraitSizeClass?
 14 |     public let currentTrait: WWTraitSizeClass?
 15 |     public let orientation: UIInterfaceOrientation?
    |                             `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 16 |
 17 |     /// 建立方向與 Size Class 資訊
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:22:97: error: 'UIInterfaceOrientation' is unavailable in watchOS
 20 |     ///   - currentTrait: 目前的 Size Class;無法取得時傳 `nil`
 21 |     ///   - orientation: 目前的介面方向;無法取得時傳 `nil`
 22 |     public init(previousTrait: WWTraitSizeClass?, currentTrait: WWTraitSizeClass?, orientation: UIInterfaceOrientation?) {
    |                                                                                                 `- error: 'UIInterfaceOrientation' is unavailable in watchOS
 23 |         self.previousTrait = previousTrait
 24 |         self.currentTrait = currentTrait
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h:41:28: note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
39 | // Note that UIInterfaceOrientationLandscapeLeft is equal to UIDeviceOrientationLandscapeRight (and vice versa).
40 | // This is because rotating the device to the left requires rotating the content to the right.
41 | typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {
   |                            `- note: 'UIInterfaceOrientation' has been explicitly marked unavailable here
42 |     UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,
43 |     UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:85:33: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 83 | public struct WWTraitSizeClass {
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
    |                                 `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
 87 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:86:35: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 84 |
 85 |     public let horizontalClass: UIUserInterfaceSizeClass?
 86 |     public let verticalSizeClass: UIUserInterfaceSizeClass?
    |                                   `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 87 |
 88 |     /// 建立 Size Class 狀態
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:34: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                  `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:92:80: error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 90 |     ///   - horizontalClass: horizontal size class;無法取得時傳 `nil`
 91 |     ///   - verticalSizeClass: vertical size class;無法取得時傳 `nil`
 92 |     public init(horizontalClass: UIUserInterfaceSizeClass?, verticalSizeClass: UIUserInterfaceSizeClass?) {
    |                                                                                `- error: 'UIUserInterfaceSizeClass' is unavailable in watchOS
 93 |         self.horizontalClass = horizontalClass
 94 |         self.verticalSizeClass = verticalSizeClass
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:26:28: note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 24 | } API_UNAVAILABLE(tvos, watchos);
 25 |
 26 | typedef NS_ENUM(NSInteger, UIUserInterfaceSizeClass) {
    |                            `- note: 'UIUserInterfaceSizeClass' has been explicitly marked unavailable here
 27 |     UIUserInterfaceSizeClassUnspecified = 0,
 28 |     UIUserInterfaceSizeClassCompact     = 1,
/Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift:43:22: error: 'isLandscape' is unavailable in watchOS
 41 |     /// 是否為橫向 UI
 42 |     var isLandscape: Bool {
 43 |         orientation?.isLandscape ?? false
    |                      `- error: 'isLandscape' is unavailable in watchOS
 44 |     }
 45 |
UIKit.UIInterfaceOrientation.isLandscape:3:14: note: 'isLandscape' has been explicitly marked unavailable here
1 | enum UIInterfaceOrientation {
2 | @available(watchOS, unavailable)
3 |   public var isLandscape: Bool { get }}
  |              `- note: 'isLandscape' has been explicitly marked unavailable here
4 |
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Model.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Model.swift
SwiftCompile normal arm64 Compiling\ Enum.swift /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Enum.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/WWInterfaceOrientationCoordinator/Utility/Enum.swift (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Enum.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-10-24 13:37:40.856 xcodebuild[831:4743] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
	SwiftCompile normal arm64_32 (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
	SwiftEmitModule normal arm64_32 Emitting\ module\ for\ WWInterfaceOrientationCoordinator (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
	SwiftEmitModule normal arm64 Emitting\ module\ for\ WWInterfaceOrientationCoordinator (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
	SwiftCompile normal arm64 (in target 'WWInterfaceOrientationCoordinator' from project 'WWInterfaceOrientationCoordinator')
	Building workspace WWInterfaceOrientationCoordinator with scheme WWInterfaceOrientationCoordinator
(5 failures)
BUILD FAILURE 6.4 watchOS