The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Storybook, reference 3.3.0 (edf96f), with Swift 6.4 for watchOS using Xcode 27.0 on 13 Oct 2026 05:05:37 UTC.

Build Command

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

Build Log

SwiftDriver StorybookKit normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'StorybookKit' from project 'Storybook')
    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 StorybookKit -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64_32/StorybookKit.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -Xcc -fmodule-map-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-watchos/StorybookC.modulemap -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 -profile-coverage-mapping -profile-generate -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 6 -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/PackageFrameworks -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/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64_32/StorybookKit-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/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64_32/StorybookKit.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64_32/StorybookKit-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/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64_32/StorybookKit_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/Sources/StorybookC/include -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/Storybook.build/Debug-watchos/StorybookKit-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-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/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64_32/StorybookKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftCompile normal arm64 Compiling\ AppKitHosts.swift,\ _ViewControllerHost.swift,\ _ViewHost.swift,\ PreviewRegistryWrapper.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/AppKitHosts.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift (in target 'StorybookKit' from project 'Storybook')
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:10:71: error: cannot find type 'Context' in scope
 8 |   private let instantiate: @MainActor () -> ContentViewController
 9 |   private let _update:
10 |     @MainActor (_ uiViewController: ContentViewController, _ context: Context) -> Void
   |                                                                       `- error: cannot find type 'Context' in scope
11 |
12 |   init(
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:14:89: error: cannot find type 'Context' in scope
12 |   init(
13 |     instantiate: @escaping @MainActor () -> ContentViewController,
14 |     update: @escaping @MainActor (_ uiViewController: ContentViewController, _ context: Context) ->
   |                                                                                         `- error: cannot find type 'Context' in scope
15 |       Void = { _, _ in }
16 |   ) {
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:21:38: error: cannot find type 'Context' in scope
19 |   }
20 |
21 |   func makeUIViewController(context: Context) -> ContentViewController {
   |                                      `- error: cannot find type 'Context' in scope
22 |     let instantiated = instantiate()
23 |     return instantiated
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:26:83: error: cannot find type 'Context' in scope
24 |   }
25 |
26 |   func updateUIViewController(_ uiViewController: ContentViewController, context: Context) {
   |                                                                                   `- error: cannot find type 'Context' in scope
27 |     _update(uiViewController, context)
28 |   }
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:5:3: error: cannot find type 'UIViewControllerRepresentable' in scope
 3 |
 4 | struct _ViewControllerHost<ContentViewController: UIViewController>:
 5 |   UIViewControllerRepresentable
   |   `- error: cannot find type 'UIViewControllerRepresentable' in scope
 6 | {
 7 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:4:51: error: 'UIViewController' is unavailable in watchOS
 2 | import SwiftUI
 3 |
 4 | struct _ViewControllerHost<ContentViewController: UIViewController>:
   |                                                   `- error: 'UIViewController' is unavailable in watchOS
 5 |   UIViewControllerRepresentable
 6 | {
/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/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:22:24: error: call to main actor-isolated function in a synchronous nonisolated context [#ActorIsolatedCall]
19 |   }
20 |
21 |   func makeUIViewController(context: Context) -> ContentViewController {
   |        `- note: add '@MainActor' to make instance method 'makeUIViewController(context:)' part of global actor 'MainActor'
22 |     let instantiated = instantiate()
   |                        `- error: call to main actor-isolated function in a synchronous nonisolated context [#ActorIsolatedCall]
23 |     return instantiated
24 |   }
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:9:70: error: cannot find type 'Context' in scope
 7 |
 8 |   private let instantiate: @MainActor () -> ContentView
 9 |   private let _update: @MainActor (_ uiView: ContentView, _ context: Context) -> Void
   |                                                                      `- error: cannot find type 'Context' in scope
10 |   private let maxWidth: Double
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:15:79: error: cannot find type 'Context' in scope
13 |     maxWidth: Double,
14 |     instantiate: @escaping @MainActor () -> ContentView,
15 |     update: @escaping @MainActor (_ uiViewController: ContentView, _ context: Context) ->
   |                                                                               `- error: cannot find type 'Context' in scope
16 |       Void = { _, _ in }
17 |   ) {
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:23:28: error: cannot find type 'Context' in scope
21 |   }
22 |
23 |   func makeUIView(context: Context) -> _Label<ContentView> {
   |                            `- error: cannot find type 'Context' in scope
24 |     let instantiated = instantiate()
25 |     return .init(maxWidth: maxWidth, contentView: instantiated)
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:28:61: error: cannot find type 'Context' in scope
26 |   }
27 |
28 |   func updateUIView(_ uiView: _Label<ContentView>, context: Context) {
   |                                                             `- error: cannot find type 'Context' in scope
29 |     _update(uiView.contentView, context)
30 |   }
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:5:3: error: cannot find type 'UIViewRepresentable' in scope
 3 |
 4 | struct _ViewHost<ContentView: UIView>:
 5 |   UIViewRepresentable
   |   `- error: cannot find type 'UIViewRepresentable' in scope
 6 | {
 7 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:4:31: error: 'UIView' is unavailable in watchOS
 2 | import SwiftUI
 3 |
 4 | struct _ViewHost<ContentView: UIView>:
   |                               `- error: 'UIView' is unavailable in watchOS
 5 |   UIViewRepresentable
 6 | {
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Hosting/_ViewHost.swift:34:33: error: 'UIView' is unavailable in watchOS
32 | }
33 |
34 | final class _Label<ContentView: UIView>: UILabel {
   |                                 `- error: 'UIView' is unavailable in watchOS
35 |
36 |   let contentView: ContentView
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Hosting/_ViewHost.swift:34:42: error: 'UILabel' is unavailable in watchOS
32 | }
33 |
34 | final class _Label<ContentView: UIView>: UILabel {
   |                                          `- error: 'UILabel' is unavailable in watchOS
35 |
36 |   let contentView: ContentView
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
 31 |
 32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
    |            `- note: 'UILabel' has been explicitly marked unavailable here
 34 |
 35 | @property(nullable, nonatomic,copy)   NSString           *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:24:24: error: call to main actor-isolated function in a synchronous nonisolated context [#ActorIsolatedCall]
21 |   }
22 |
23 |   func makeUIView(context: Context) -> _Label<ContentView> {
   |        `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
24 |     let instantiated = instantiate()
   |                        `- error: call to main actor-isolated function in a synchronous nonisolated context [#ActorIsolatedCall]
25 |     return .init(maxWidth: maxWidth, contentView: instantiated)
26 |   }
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:25:13: warning: call to main actor-isolated initializer 'init(maxWidth:contentView:)' in a synchronous nonisolated context [#ActorIsolatedCall]
21 |   }
22 |
23 |   func makeUIView(context: Context) -> _Label<ContentView> {
   |        `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
24 |     let instantiated = instantiate()
25 |     return .init(maxWidth: maxWidth, contentView: instantiated)
   |             `- warning: call to main actor-isolated initializer 'init(maxWidth:contentView:)' in a synchronous nonisolated context [#ActorIsolatedCall]
26 |   }
27 |
   :
37 |   let maxWidth: Double
38 |
39 |   init(
   |   |- note: calls to initializer 'init(maxWidth:contentView:)' from outside of its actor context are implicitly asynchronous
   |   `- note: main actor isolation inferred from inheritance from class 'UILabel'
40 |     maxWidth: Double,
41 |     contentView: ContentView
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:62:26: error: 'UIView' is unavailable in watchOS
60 |
61 |     if targetSize.width == CGFloat(Float.greatestFiniteMagnitude) {
62 |       targetSize.width = UIView.layoutFittingCompressedSize.width
   |                          `- error: 'UIView' is unavailable in watchOS
63 |     }
64 |
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Hosting/_ViewHost.swift:62:33: error: 'layoutFittingCompressedSize' is unavailable in watchOS
60 |
61 |     if targetSize.width == CGFloat(Float.greatestFiniteMagnitude) {
62 |       targetSize.width = UIView.layoutFittingCompressedSize.width
   |                                 `- error: 'layoutFittingCompressedSize' is unavailable in watchOS
63 |     }
64 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:560:27: note: 'layoutFittingCompressedSize' has been explicitly marked unavailable here
558 | // Size To Fit
559 |
560 | UIKIT_EXTERN const CGSize UILayoutFittingCompressedSize API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(watchos);
    |                           `- note: 'layoutFittingCompressedSize' has been explicitly marked unavailable here
561 | UIKIT_EXTERN const CGSize UILayoutFittingExpandedSize API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(watchos);
562 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:66:27: error: 'UIView' is unavailable in watchOS
64 |
65 |     if targetSize.height == CGFloat(Float.greatestFiniteMagnitude) {
66 |       targetSize.height = UIView.layoutFittingCompressedSize.height
   |                           `- error: 'UIView' is unavailable in watchOS
67 |     }
68 |
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Hosting/_ViewHost.swift:66:34: error: 'layoutFittingCompressedSize' is unavailable in watchOS
64 |
65 |     if targetSize.height == CGFloat(Float.greatestFiniteMagnitude) {
66 |       targetSize.height = UIView.layoutFittingCompressedSize.height
   |                                  `- error: 'layoutFittingCompressedSize' is unavailable in watchOS
67 |     }
68 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:560:27: note: 'layoutFittingCompressedSize' has been explicitly marked unavailable here
558 | // Size To Fit
559 |
560 | UIKIT_EXTERN const CGSize UILayoutFittingCompressedSize API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(watchos);
    |                           `- note: 'layoutFittingCompressedSize' has been explicitly marked unavailable here
561 | UIKIT_EXTERN const CGSize UILayoutFittingExpandedSize API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(watchos);
562 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:75:41: error: 'required' is unavailable in watchOS
73 |       size = contentView.systemLayoutSizeFitting(
74 |         targetSize,
75 |         withHorizontalFittingPriority: .required,
   |                                         `- error: 'required' is unavailable in watchOS
76 |         verticalFittingPriority: .fittingSizeLevel
77 |       )
UIKit.UILayoutPriority.required:3:21: note: 'required' has been explicitly marked unavailable here
1 | struct UILayoutPriority {
2 | @available(watchOS, unavailable)
3 |   public static var required: UILayoutPriority { get }}
  |                     `- note: 'required' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:76:35: error: 'fittingSizeLevel' is unavailable in watchOS
74 |         targetSize,
75 |         withHorizontalFittingPriority: .required,
76 |         verticalFittingPriority: .fittingSizeLevel
   |                                   `- error: 'fittingSizeLevel' is unavailable in watchOS
77 |       )
78 |     }
UIKit.UILayoutPriority.fittingSizeLevel:3:21: note: 'fittingSizeLevel' has been explicitly marked unavailable here
1 | struct UILayoutPriority {
2 | @available(watchOS, unavailable)
3 |   public static var fittingSizeLevel: UILayoutPriority { get }}
  |                     `- note: 'fittingSizeLevel' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:59:19: error: 'Menu' is unavailable in watchOS
 57 |               .toolbar {
 58 |                 ToolbarItem(placement: sourceLocationPlacement) {
 59 |                   Menu {
    |                   `- error: 'Menu' is unavailable in watchOS
 60 |                     Button {
 61 |                       copySourceLocation()
SwiftUI.Menu:3:27: note: 'Menu' has been explicitly marked unavailable here
1 | @available(iOS 14.0, macOS 11.0, tvOS 17.0, *)
2 | @available(watchOS, unavailable)
3 | nonisolated public struct Menu<Label, Content> : View, ~Sendable where Label : View, Content : View {
  |                           `- note: 'Menu' has been explicitly marked unavailable here
4 |     nonisolated public var body: some View { get }
5 |     @available(macOS 11.0, iOS 14.0, tvOS 17.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:59:19: error: 'init(content:label:)' is unavailable in watchOS
 57 |               .toolbar {
 58 |                 ToolbarItem(placement: sourceLocationPlacement) {
 59 |                   Menu {
    |                   `- error: 'init(content:label:)' is unavailable in watchOS
 60 |                     Button {
 61 |                       copySourceLocation()
SwiftUI.Menu.init:2:20: note: 'init(content:label:)' has been explicitly marked unavailable here
1 | generic struct Menu {
2 | nonisolated public init(@ContentBuilder content: () -> Content, @ContentBuilder label: () -> Label)}
  |                    `- note: 'init(content:label:)' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:79:51: error: 'UIView' is unavailable in watchOS
 77 |         switch source["preview"]!.typeName {
 78 |         case "DeveloperToolsSupport.DefaultPreviewSource<__C.UIView>":
 79 |           let makeBody: MakeFunctionWrapper<UIKit.UIView> = .init(source["preview", "structure", "singlePreview", "makeBody"])
    |                                                   `- error: 'UIView' is unavailable in watchOS
 80 |           return {
 81 |             BookPreview(
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:92:51: error: 'UIViewController' is unavailable in watchOS
 90 |
 91 |         case "DeveloperToolsSupport.DefaultPreviewSource<__C.UIViewController>":
 92 |           let makeBody: MakeFunctionWrapper<UIKit.UIViewController> = .init(source["preview", "structure", "singlePreview", "makeBody"])
    |                                                   `- error: 'UIViewController' is unavailable in watchOS
 93 |           return {
 94 |             BookPresent(
/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/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:190:17: error: 'Menu' is unavailable in watchOS
188 |             .toolbar {
189 |               ToolbarItem(placement: sourceLocationPlacement) {
190 |                 Menu {
    |                 `- error: 'Menu' is unavailable in watchOS
191 |                   Button {
192 |                     copySourceLocation()
SwiftUI.Menu:3:27: note: 'Menu' has been explicitly marked unavailable here
1 | @available(iOS 14.0, macOS 11.0, tvOS 17.0, *)
2 | @available(watchOS, unavailable)
3 | nonisolated public struct Menu<Label, Content> : View, ~Sendable where Label : View, Content : View {
  |                           `- note: 'Menu' has been explicitly marked unavailable here
4 |     nonisolated public var body: some View { get }
5 |     @available(macOS 11.0, iOS 14.0, tvOS 17.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:190:17: error: 'init(content:label:)' is unavailable in watchOS
188 |             .toolbar {
189 |               ToolbarItem(placement: sourceLocationPlacement) {
190 |                 Menu {
    |                 `- error: 'init(content:label:)' is unavailable in watchOS
191 |                   Button {
192 |                     copySourceLocation()
SwiftUI.Menu.init:2:20: note: 'init(content:label:)' has been explicitly marked unavailable here
1 | generic struct Menu {
2 | nonisolated public init(@ContentBuilder content: () -> Content, @ContentBuilder label: () -> Label)}
  |                    `- note: 'init(content:label:)' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:208:41: error: 'UIView' is unavailable in watchOS
206 |     #if canImport(UIKit)
207 |     case "DeveloperToolsSupport.DefaultPreviewSource<__C.UIView>": // iOS 18
208 |       let makeBody: MakeFunctionWrapper<UIView> = .init(source["structure", "singlePreview", "makeBody"])
    |                                         `- error: 'UIView' is unavailable in watchOS
209 |       return {
210 |         BookPreview(
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:221:41: error: 'UIViewController' is unavailable in watchOS
219 |
220 |     case "DeveloperToolsSupport.DefaultPreviewSource<__C.UIViewController>": // iOS 18
221 |       let makeBody: MakeFunctionWrapper<UIViewController> = .init(source["structure", "singlePreview", "makeBody"])
    |                                         `- error: 'UIViewController' is unavailable in watchOS
222 |       return {
223 |         BookPresent(
/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/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:275:41: error: 'UIView' is unavailable in watchOS
273 |     #if canImport(UIKit)
274 |     case "UIKit.UIViewPreviewSource": // iOS 17
275 |       let makeView: MakeFunctionWrapper<UIView> = .init(nonSendable: source["makeView"])
    |                                         `- error: 'UIView' is unavailable in watchOS
276 |       return {
277 |         BookPreview(
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:288:51: error: 'UIViewController' is unavailable in watchOS
286 |
287 |     case "UIKit.UIViewControllerPreviewSource": // iOS 17
288 |       let makeViewController: MakeFunctionWrapper<UIViewController> = .init(nonSendable: source["makeViewController"])
    |                                                   `- error: 'UIViewController' is unavailable in watchOS
289 |       return {
290 |         BookPresent(
/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/StorybookKit/Internals/Hosting/AppKitHosts.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile AppKitHosts.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile _ViewControllerHost.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile _ViewHost.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile PreviewRegistryWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:367:45: error: 'UIView' is unavailable in watchOS
365 |         switch source["preview"]!.typeName {
366 |         case "DeveloperToolsSupport.DefaultPreviewSource<__C.UIView>":
367 |           let makeBody: MakeFunctionWrapper<UIView> = .init(source["preview", "structure", "singlePreview", "makeBody"])
    |                                             `- error: 'UIView' is unavailable in watchOS
368 |           return .uiView(makeBody.callAsFunction)
369 |
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:371:45: error: 'UIViewController' is unavailable in watchOS
369 |
370 |         case "DeveloperToolsSupport.DefaultPreviewSource<__C.UIViewController>":
371 |           let makeBody: MakeFunctionWrapper<UIViewController> = .init(source["preview", "structure", "singlePreview", "makeBody"])
    |                                             `- error: 'UIViewController' is unavailable in watchOS
372 |           return .presentedViewController(makeBody.callAsFunction)
373 |
/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/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:405:41: error: 'UIView' is unavailable in watchOS
403 |     #if canImport(UIKit)
404 |     case "DeveloperToolsSupport.DefaultPreviewSource<__C.UIView>": // iOS 18
405 |       let makeBody: MakeFunctionWrapper<UIView> = .init(source["structure", "singlePreview", "makeBody"])
    |                                         `- error: 'UIView' is unavailable in watchOS
406 |       return .uiView(makeBody.callAsFunction)
407 |
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:409:41: error: 'UIViewController' is unavailable in watchOS
407 |
408 |     case "DeveloperToolsSupport.DefaultPreviewSource<__C.UIViewController>": // iOS 18
409 |       let makeBody: MakeFunctionWrapper<UIViewController> = .init(source["structure", "singlePreview", "makeBody"])
    |                                         `- error: 'UIViewController' is unavailable in watchOS
410 |       return .presentedViewController(makeBody.callAsFunction)
411 |
/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/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:429:41: error: 'UIView' is unavailable in watchOS
427 |     #if canImport(UIKit)
428 |     case "UIKit.UIViewPreviewSource": // iOS 17
429 |       let makeView: MakeFunctionWrapper<UIView> = .init(
    |                                         `- error: 'UIView' is unavailable in watchOS
430 |         nonSendable: source["makeView"]
431 |       )
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:435:51: error: 'UIViewController' is unavailable in watchOS
433 |
434 |     case "UIKit.UIViewControllerPreviewSource": // iOS 17
435 |       let makeViewController: MakeFunctionWrapper<UIViewController> = .init(
    |                                                   `- error: 'UIViewController' is unavailable in watchOS
436 |         nonSendable: source["makeViewController"]
437 |       )
/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/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift:514:5: error: 'UIPasteboard' is unavailable in watchOS
512 |     let location = "\(fileID):\(line)"
513 |     #if canImport(UIKit)
514 |     UIPasteboard.general.string = location
    |     `- error: 'UIPasteboard' is unavailable in watchOS
515 |     #elseif canImport(AppKit)
516 |     NSPasteboard.general.clearContents()
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteboard.h:50:12: note: 'UIPasteboard' has been explicitly marked unavailable here
 48 |
 49 | UIKIT_EXTERN API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(watchos) NS_SWIFT_SENDABLE
 50 | @interface UIPasteboard : NSObject
    |            `- note: 'UIPasteboard' has been explicitly marked unavailable here
 51 |
 52 | @property(class, nonatomic, readonly) UIPasteboard *generalPasteboard;
SwiftCompile normal arm64 Compiling\ TargetViewControllerKey.swift,\ fuzzyMatch.swift,\ machOLoader.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/TargetViewControllerKey.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/fuzzyMatch.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/machOLoader.swift (in target 'StorybookKit' from project 'Storybook')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/TargetViewControllerKey.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile TargetViewControllerKey.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/fuzzyMatch.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile fuzzyMatch.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/machOLoader.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile machOLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/TargetViewControllerKey.swift:5:53: error: 'UIViewController' is unavailable in watchOS
 3 | #if canImport(UIKit)
 4 | extension EnvironmentValues {
 5 |   @Entry public var storybook_targetViewController: UIViewController?
   |                                                     `- error: 'UIViewController' is unavailable in watchOS
 6 | }
 7 | #elseif os(macOS)
/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 | /*
SwiftEmitModule normal arm64 Emitting\ module\ for\ StorybookKit (in target 'StorybookKit' from project 'Storybook')
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:10:71: error: cannot find type 'Context' in scope
 8 |   private let instantiate: @MainActor () -> ContentViewController
 9 |   private let _update:
10 |     @MainActor (_ uiViewController: ContentViewController, _ context: Context) -> Void
   |                                                                       `- error: cannot find type 'Context' in scope
11 |
12 |   init(
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:14:89: error: cannot find type 'Context' in scope
12 |   init(
13 |     instantiate: @escaping @MainActor () -> ContentViewController,
14 |     update: @escaping @MainActor (_ uiViewController: ContentViewController, _ context: Context) ->
   |                                                                                         `- error: cannot find type 'Context' in scope
15 |       Void = { _, _ in }
16 |   ) {
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:21:38: error: cannot find type 'Context' in scope
19 |   }
20 |
21 |   func makeUIViewController(context: Context) -> ContentViewController {
   |                                      `- error: cannot find type 'Context' in scope
22 |     let instantiated = instantiate()
23 |     return instantiated
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:26:83: error: cannot find type 'Context' in scope
24 |   }
25 |
26 |   func updateUIViewController(_ uiViewController: ContentViewController, context: Context) {
   |                                                                                   `- error: cannot find type 'Context' in scope
27 |     _update(uiViewController, context)
28 |   }
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:5:3: error: cannot find type 'UIViewControllerRepresentable' in scope
 3 |
 4 | struct _ViewControllerHost<ContentViewController: UIViewController>:
 5 |   UIViewControllerRepresentable
   |   `- error: cannot find type 'UIViewControllerRepresentable' in scope
 6 | {
 7 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:4:51: error: 'UIViewController' is unavailable in watchOS
 2 | import SwiftUI
 3 |
 4 | struct _ViewControllerHost<ContentViewController: UIViewController>:
   |                                                   `- error: 'UIViewController' is unavailable in watchOS
 5 |   UIViewControllerRepresentable
 6 | {
/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/StorybookKit/Internals/Hosting/_ViewHost.swift:9:70: error: cannot find type 'Context' in scope
 7 |
 8 |   private let instantiate: @MainActor () -> ContentView
 9 |   private let _update: @MainActor (_ uiView: ContentView, _ context: Context) -> Void
   |                                                                      `- error: cannot find type 'Context' in scope
10 |   private let maxWidth: Double
11 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:15:79: error: cannot find type 'Context' in scope
13 |     maxWidth: Double,
14 |     instantiate: @escaping @MainActor () -> ContentView,
15 |     update: @escaping @MainActor (_ uiViewController: ContentView, _ context: Context) ->
   |                                                                               `- error: cannot find type 'Context' in scope
16 |       Void = { _, _ in }
17 |   ) {
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:23:28: error: cannot find type 'Context' in scope
21 |   }
22 |
23 |   func makeUIView(context: Context) -> _Label<ContentView> {
   |                            `- error: cannot find type 'Context' in scope
24 |     let instantiated = instantiate()
25 |     return .init(maxWidth: maxWidth, contentView: instantiated)
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:28:61: error: cannot find type 'Context' in scope
26 |   }
27 |
28 |   func updateUIView(_ uiView: _Label<ContentView>, context: Context) {
   |                                                             `- error: cannot find type 'Context' in scope
29 |     _update(uiView.contentView, context)
30 |   }
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:5:3: error: cannot find type 'UIViewRepresentable' in scope
 3 |
 4 | struct _ViewHost<ContentView: UIView>:
 5 |   UIViewRepresentable
   |   `- error: cannot find type 'UIViewRepresentable' in scope
 6 | {
 7 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift:4:31: error: 'UIView' is unavailable in watchOS
 2 | import SwiftUI
 3 |
 4 | struct _ViewHost<ContentView: UIView>:
   |                               `- error: 'UIView' is unavailable in watchOS
 5 |   UIViewRepresentable
 6 | {
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Hosting/_ViewHost.swift:34:33: error: 'UIView' is unavailable in watchOS
32 | }
33 |
34 | final class _Label<ContentView: UIView>: UILabel {
   |                                 `- error: 'UIView' is unavailable in watchOS
35 |
36 |   let contentView: ContentView
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Internals/Hosting/_ViewHost.swift:34:42: error: 'UILabel' is unavailable in watchOS
32 | }
33 |
34 | final class _Label<ContentView: UIView>: UILabel {
   |                                          `- error: 'UILabel' is unavailable in watchOS
35 |
36 |   let contentView: ContentView
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
 31 |
 32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
    |            `- note: 'UILabel' has been explicitly marked unavailable here
 34 |
 35 | @property(nullable, nonatomic,copy)   NSString           *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/TargetViewControllerKey.swift:5:53: error: 'UIViewController' is unavailable in watchOS
 3 | #if canImport(UIKit)
 4 | extension EnvironmentValues {
 5 |   @Entry public var storybook_targetViewController: UIViewController?
   |                                                     `- error: 'UIViewController' is unavailable in watchOS
 6 | }
 7 | #elseif os(macOS)
/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 | /*
macro expansion @Entry:3:30: error: 'UIViewController' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/TargetViewControllerKey.swift:5:70: note: expanded code originates here
 3 | #if canImport(UIKit)
 4 | extension EnvironmentValues {
 5 |   @Entry public var storybook_targetViewController: UIViewController?
   |   `- note: in expansion of macro 'Entry' on property 'storybook_targetViewController' here
   +--- macro expansion @Entry -----------------------------------------
   |1 | private struct __Key_storybook_targetViewController: SwiftUICore.EnvironmentKey {
   |2 |     @SwiftUICore.__EntryDefaultValue
   |3 |     static var defaultValue: UIViewController? = nil
   |  |                              `- error: 'UIViewController' is unavailable in watchOS
   |4 | }
   +--------------------------------------------------------------------
 6 | }
 7 | #elseif os(macOS)
/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/StorybookKit/Primitives/BookAction.swift:31:34: error: 'UIViewController' is unavailable in watchOS
29 |   public let declarationIdentifier: DeclarationIdentifier
30 |
31 |   public let action: @MainActor (UIViewController) -> Void
   |                                  `- error: 'UIViewController' is unavailable in watchOS
32 |
33 |   public let title: String
/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/StorybookKit/Primitives/BookAction.swift:37:35: error: 'UIViewController' is unavailable in watchOS
35 |   public init(
36 |     title: String,
37 |     action: @escaping @MainActor (UIViewController) -> Void
   |                                   `- error: 'UIViewController' is unavailable in watchOS
38 |   ) {
39 |     self.title = title
/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/StorybookKit/Primitives/BookPage.swift:135:32: error: 'UIView' is unavailable in watchOS
133 |   case viewport(@MainActor () -> AnyView)
134 |   #if canImport(UIKit)
135 |   case uiView(@MainActor () -> UIView)
    |                                `- error: 'UIView' is unavailable in watchOS
136 |   case presentedViewController(@MainActor () -> UIViewController)
137 |   #elseif os(macOS)
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Primitives/BookPage.swift:136:49: error: 'UIViewController' is unavailable in watchOS
134 |   #if canImport(UIKit)
135 |   case uiView(@MainActor () -> UIView)
136 |   case presentedViewController(@MainActor () -> UIViewController)
    |                                                 `- error: 'UIViewController' is unavailable in watchOS
137 |   #elseif os(macOS)
138 |   case nsView(@MainActor () -> NSView)
/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/StorybookKit/Primitives/BookPresent.swift:31:61: error: 'UIViewController' is unavailable in watchOS
29 |
30 |   public let declarationIdentifier: DeclarationIdentifier
31 |   public let presentedViewControllerBlock: @MainActor () -> UIViewController
   |                                                             `- error: 'UIViewController' is unavailable in watchOS
32 |
33 |   public let title: String
/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/StorybookKit/Primitives/BookPresent.swift:37:63: error: 'UIViewController' is unavailable in watchOS
35 |   public init(
36 |     title: String,
37 |     presentingViewControllerBlock: @escaping @MainActor () -> UIViewController
   |                                                               `- error: 'UIViewController' is unavailable in watchOS
38 |   ) {
39 |     self.title = title
/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/StorybookKit/Primitives/BookPreview.swift:46:55: error: 'UIView' is unavailable in watchOS
 44 |   }
 45 |
 46 |   public let viewBlock: @MainActor (inout Context) -> UIView
    |                                                       `- error: 'UIView' is unavailable in watchOS
 47 |
 48 |   public let declarationIdentifier: DeclarationIdentifier
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Primitives/BookPreview.swift:59:56: error: 'UIView' is unavailable in watchOS
 57 |     _ line: any FixedWidthInteger = #line,
 58 |     title: String? = nil,
 59 |     viewBlock: @escaping @MainActor (inout Context) -> UIView
    |                                                        `- error: 'UIView' is unavailable in watchOS
 60 |   ) {
 61 |
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Primitives/BookPreview.swift:156:14: error: 'UIView' is unavailable in watchOS
154 |
155 |   convenience init(
156 |     element: UIView,
    |              `- error: 'UIView' is unavailable in watchOS
157 |     frameConstraint: FrameConstraint
158 |   ) {
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Primitives/BookPreview.swift:139:28: error: 'UIView' is unavailable in watchOS
137 | }
138 |
139 | private final class _View: UIView {
    |                            `- error: 'UIView' is unavailable in watchOS
140 |
141 |   override class var requiresConstraintBasedLayout: Bool { true }
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Primitives/BookPush.swift:30:59: error: 'UIViewController' is unavailable in watchOS
28 |   @Environment(\.storybook_targetViewController) var targetViewController
29 |
30 |   public let pushingViewControllerBlock: @MainActor () -> UIViewController
   |                                                           `- error: 'UIViewController' is unavailable in watchOS
31 |   public let declarationIdentifier: DeclarationIdentifier
32 |
/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/StorybookKit/Primitives/BookPush.swift:37:60: error: 'UIViewController' is unavailable in watchOS
35 |   public init(
36 |     title: String,
37 |     pushingViewControllerBlock: @escaping @MainActor () -> UIViewController
   |                                                            `- error: 'UIViewController' is unavailable in watchOS
38 |   ) {
39 |     self.title = title
/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/StorybookKit/Primitives/BookText.swift:30:15: error: 'label' is unavailable in watchOS
28 |   public var foregroundColor: UIColor = {
29 |     if #available(iOS 13.0, *) {
30 |       return .label
   |               `- error: 'label' is unavailable in watchOS
31 |     } else {
32 |       return .darkText
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:171:49: note: 'label' has been explicitly marked unavailable here
169 | /* Foreground colors for static text and related elements.
170 |  */
171 | @property (class, nonatomic, readonly) UIColor *labelColor              API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
    |                                                 `- note: 'label' has been explicitly marked unavailable here
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor     API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor      API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookText.swift:32:15: error: 'darkText' is unavailable in watchOS
30 |       return .label
31 |     } else {
32 |       return .darkText
   |               `- error: 'darkText' is unavailable in watchOS
33 |     }
34 |   }()
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:252:48: note: 'darkText' has been explicitly marked unavailable here
250 |  */
251 | @property(class, nonatomic, readonly) UIColor *lightTextColor API_UNAVAILABLE(tvos, watchos);    // for a dark background
252 | @property(class, nonatomic, readonly) UIColor *darkTextColor API_UNAVAILABLE(tvos, watchos);     // for a light background
    |                                                `- note: 'darkText' has been explicitly marked unavailable here
253 |
254 | /* groupTableViewBackgroundColor is now the same as systemGroupedBackgroundColor.
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:553:45: error: 'UIViewController' is unavailable in watchOS
551 |
552 | #if canImport(UIKit)
553 | final class _ViewController<Content: View>: UIViewController {
    |                                             `- error: 'UIViewController' is unavailable in watchOS
554 |
555 |   private let content: Content
/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/StorybookKit/StorybookViewport.swift:91:41: error: 'UIView' is unavailable in watchOS
 89 |
 90 |   public let descriptor: BookPageDescriptor
 91 |   private let factory: @MainActor () -> UIView
    |                                         `- error: 'UIView' is unavailable in watchOS
 92 |
 93 |   fileprivate init(
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:95:42: error: 'UIView' is unavailable in watchOS
 93 |   fileprivate init(
 94 |     descriptor: BookPageDescriptor,
 95 |     makeView: @escaping @MainActor () -> UIView
    |                                          `- error: 'UIView' is unavailable in watchOS
 96 |   ) {
 97 |     self.descriptor = descriptor
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:102:29: error: 'UIView' is unavailable in watchOS
100 |
101 |   @MainActor
102 |   public func makeView() -> UIView {
    |                             `- error: 'UIView' is unavailable in watchOS
103 |     factory()
104 |   }
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:112:41: error: 'UIViewController' is unavailable in watchOS
110 |
111 |   public let descriptor: BookPageDescriptor
112 |   private let factory: @MainActor () -> UIViewController
    |                                         `- error: 'UIViewController' is unavailable in watchOS
113 |
114 |   fileprivate init(
/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/StorybookKit/StorybookViewport.swift:116:52: error: 'UIViewController' is unavailable in watchOS
114 |   fileprivate init(
115 |     descriptor: BookPageDescriptor,
116 |     makeViewController: @escaping @MainActor () -> UIViewController
    |                                                    `- error: 'UIViewController' is unavailable in watchOS
117 |   ) {
118 |     self.descriptor = descriptor
/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/StorybookKit/StorybookViewport.swift:123:39: error: 'UIViewController' is unavailable in watchOS
121 |
122 |   @MainActor
123 |   public func makeViewController() -> UIViewController {
    |                                       `- error: 'UIViewController' is unavailable in watchOS
124 |     factory()
125 |   }
/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/StorybookKit/StorybookViewport.swift:167:34: error: 'UIUserInterfaceStyle' is unavailable in watchOS
165 |   }
166 |
167 |   public var userInterfaceStyle: UIUserInterfaceStyle {
    |                                  `- error: 'UIUserInterfaceStyle' is unavailable in watchOS
168 |     switch self {
169 |     case .light:
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:32:28: note: 'UIUserInterfaceStyle' has been explicitly marked unavailable here
 30 | } API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos);
 31 |
 32 | typedef NS_ENUM(NSInteger, UIUserInterfaceStyle) {
    |                            `- note: 'UIUserInterfaceStyle' has been explicitly marked unavailable here
 33 |     UIUserInterfaceStyleUnspecified,
 34 |     UIUserInterfaceStyleLight,
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:204:37: error: cannot find type 'UIHostingController' in scope
202 |   public let descriptor: BookPageDescriptor
203 |
204 |   private let hostedViewController: UIHostingController<AnyView>
    |                                     `- error: cannot find type 'UIHostingController' in scope
205 |
206 |   public init(
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:241:22: error: 'UIScreen' is unavailable in watchOS
239 |   public func render(
240 |     width: CGFloat,
241 |     scale: CGFloat = UIScreen.main.scale
    |                      `- error: 'UIScreen' is unavailable in watchOS
242 |   ) throws -> StorybookExportImage {
243 |     guard width.isFinite, width > 0 else {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
 52 |
 53 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_UI_ACTOR
 54 | @interface UIScreen : NSObject <UITraitEnvironment>
    |            `- note: 'UIScreen' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:241:31: error: 'main' is unavailable in watchOS
239 |   public func render(
240 |     width: CGFloat,
241 |     scale: CGFloat = UIScreen.main.scale
    |                               `- error: 'main' is unavailable in watchOS
242 |   ) throws -> StorybookExportImage {
243 |     guard width.isFinite, width > 0 else {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: 'main' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
 57 | @property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context.", ios(2.0, 26.0), tvos(9.0, 26.0), visionos(1.0, 26.0)) API_UNAVAILABLE(watchos);
    |                                                 `- note: 'main' has been explicitly marked unavailable here
 58 |
 59 | @property(nonatomic,readonly) CGRect  bounds;                // Bounds of entire screen in points
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:200:43: error: 'UIViewController' is unavailable in watchOS
198 | @available(iOS 17.0, *)
199 | @MainActor
200 | public final class StorybookViewportHost: UIViewController {
    |                                           `- error: 'UIViewController' is unavailable in watchOS
201 |
202 |   public let descriptor: BookPageDescriptor
/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/StorybookKit/StorybookViewport.swift:305:22: error: 'UIScreen' is unavailable in watchOS
303 |     _ viewport: StorybookViewport,
304 |     width: CGFloat,
305 |     scale: CGFloat = UIScreen.main.scale,
    |                      `- error: 'UIScreen' is unavailable in watchOS
306 |     appearance: StorybookViewportAppearance? = nil,
307 |     safeAreaInsets: UIEdgeInsets = .zero
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
 52 |
 53 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_UI_ACTOR
 54 | @interface UIScreen : NSObject <UITraitEnvironment>
    |            `- note: 'UIScreen' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:305:31: error: 'main' is unavailable in watchOS
303 |     _ viewport: StorybookViewport,
304 |     width: CGFloat,
305 |     scale: CGFloat = UIScreen.main.scale,
    |                               `- error: 'main' is unavailable in watchOS
306 |     appearance: StorybookViewportAppearance? = nil,
307 |     safeAreaInsets: UIEdgeInsets = .zero
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: 'main' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
 57 | @property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context.", ios(2.0, 26.0), tvos(9.0, 26.0), visionos(1.0, 26.0)) API_UNAVAILABLE(watchos);
    |                                                 `- note: 'main' has been explicitly marked unavailable here
 58 |
 59 | @property(nonatomic,readonly) CGRect  bounds;                // Bounds of entire screen in points
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:412:14: error: 'UIView' is unavailable in watchOS
410 |     appearance: StorybookViewportAppearance? = nil,
411 |     safeAreaInsets: UIEdgeInsets = .zero,
412 |     in host: UIView
    |              `- error: 'UIView' is unavailable in watchOS
413 |   ) throws -> StorybookExportImage {
414 |     guard width.isFinite, width > 0 else {
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:409:22: error: 'UIScreen' is unavailable in watchOS
407 |     _ preview: StorybookUIView,
408 |     width: CGFloat,
409 |     scale: CGFloat = UIScreen.main.scale,
    |                      `- error: 'UIScreen' is unavailable in watchOS
410 |     appearance: StorybookViewportAppearance? = nil,
411 |     safeAreaInsets: UIEdgeInsets = .zero,
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
 52 |
 53 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_UI_ACTOR
 54 | @interface UIScreen : NSObject <UITraitEnvironment>
    |            `- note: 'UIScreen' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:409:31: error: 'main' is unavailable in watchOS
407 |     _ preview: StorybookUIView,
408 |     width: CGFloat,
409 |     scale: CGFloat = UIScreen.main.scale,
    |                               `- error: 'main' is unavailable in watchOS
410 |     appearance: StorybookViewportAppearance? = nil,
411 |     safeAreaInsets: UIEdgeInsets = .zero,
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: 'main' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
 57 | @property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context.", ios(2.0, 26.0), tvos(9.0, 26.0), visionos(1.0, 26.0)) API_UNAVAILABLE(watchos);
    |                                                 `- note: 'main' has been explicitly marked unavailable here
 58 |
 59 | @property(nonatomic,readonly) CGRect  bounds;                // Bounds of entire screen in points
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:489:14: error: 'UIView' is unavailable in watchOS
487 |
488 |   private static func fittedSize(
489 |     of view: UIView,
    |              `- error: 'UIView' is unavailable in watchOS
490 |     in content: UIView,
491 |     width: CGFloat
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:490:17: error: 'UIView' is unavailable in watchOS
488 |   private static func fittedSize(
489 |     of view: UIView,
490 |     in content: UIView,
    |                 `- error: 'UIView' is unavailable in watchOS
491 |     width: CGFloat
492 |   ) throws -> CGSize {
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:555:44: error: 'UIView' is unavailable in watchOS
553 |   }
554 |
555 |   private static func scrollViews(in view: UIView) -> [UIScrollView] {
    |                                            `- error: 'UIView' is unavailable in watchOS
556 |     var result: [UIScrollView] = []
557 |     func collect(from view: UIView) {
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:555:56: error: 'UIScrollView' is unavailable in watchOS
553 |   }
554 |
555 |   private static func scrollViews(in view: UIView) -> [UIScrollView] {
    |                                                        `- error: 'UIScrollView' is unavailable in watchOS
556 |     var result: [UIScrollView] = []
557 |     func collect(from view: UIView) {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:568:20: error: 'UIScrollView' is unavailable in watchOS
566 |
567 |   private static func expandAncestors(
568 |     of scrollView: UIScrollView,
    |                    `- error: 'UIScrollView' is unavailable in watchOS
569 |     through rootView: UIView
570 |   ) {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:569:23: error: 'UIView' is unavailable in watchOS
567 |   private static func expandAncestors(
568 |     of scrollView: UIScrollView,
569 |     through rootView: UIView
    |                       `- error: 'UIView' is unavailable in watchOS
570 |   ) {
571 |     var view: UIView = scrollView
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:610:30: error: 'UIViewController' is unavailable in watchOS
608 |   public static func render(
609 |     _ preview: StorybookPresentedViewController,
610 |     presentedViewController: UIViewController,
    |                              `- error: 'UIViewController' is unavailable in watchOS
611 |     in window: UIWindow,
612 |     scale: CGFloat = UIScreen.main.scale
/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/StorybookKit/StorybookViewport.swift:611:16: error: 'UIWindow' is unavailable in watchOS
609 |     _ preview: StorybookPresentedViewController,
610 |     presentedViewController: UIViewController,
611 |     in window: UIWindow,
    |                `- error: 'UIWindow' is unavailable in watchOS
612 |     scale: CGFloat = UIScreen.main.scale
613 |   ) throws -> StorybookExportImage {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
 20 |
 21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 22 | @interface UIWindow : UIView
    |            `- note: 'UIWindow' has been explicitly marked unavailable here
 23 |
 24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:612:22: error: 'UIScreen' is unavailable in watchOS
610 |     presentedViewController: UIViewController,
611 |     in window: UIWindow,
612 |     scale: CGFloat = UIScreen.main.scale
    |                      `- error: 'UIScreen' is unavailable in watchOS
613 |   ) throws -> StorybookExportImage {
614 |     guard scale.isFinite, scale > 0 else {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
 52 |
 53 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_UI_ACTOR
 54 | @interface UIScreen : NSObject <UITraitEnvironment>
    |            `- note: 'UIScreen' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:612:31: error: 'main' is unavailable in watchOS
610 |     presentedViewController: UIViewController,
611 |     in window: UIWindow,
612 |     scale: CGFloat = UIScreen.main.scale
    |                               `- error: 'main' is unavailable in watchOS
613 |   ) throws -> StorybookExportImage {
614 |     guard scale.isFinite, scale > 0 else {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: 'main' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
 57 | @property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context.", ios(2.0, 26.0), tvos(9.0, 26.0), visionos(1.0, 26.0)) API_UNAVAILABLE(watchos);
    |                                                 `- note: 'main' has been explicitly marked unavailable here
 58 |
 59 | @property(nonatomic,readonly) CGRect  bounds;                // Bounds of entire screen in points
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/Sources/StorybookKit/BookGenerator.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/BookLorem.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Compositions/BookPadding.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Compositions/BookSection.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/AppKitHosts.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewControllerHost.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Hosting/_ViewHost.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/Preview/PreviewRegistryWrapper.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/TargetViewControllerKey.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/fuzzyMatch.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/machOLoader.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/Book.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookAction.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookActions+AppKit.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPage.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPageSelector.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPresent.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview+AppKit.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookProvider.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPush.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookStore.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookText.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookView.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/SearchBar.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/SettingsView.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Storybook.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.Sidebar.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookLaunchRequest.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport+AppKit.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift -target arm64-apple-watchos10.0 -module-can-import-version UIKit 9127.0.84.1 9127.0.84 -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/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -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/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64/StorybookKit-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/PackageFrameworks -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 -profile-generate -profile-coverage-mapping -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -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 -fmodule-map-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-watchos/StorybookC.modulemap -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/Sources/StorybookC/include -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/Storybook.build/Debug-watchos/StorybookKit-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name StorybookKit -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64/StorybookKit_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/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64/StorybookKit.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64/StorybookKit.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64/StorybookKit-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64/StorybookKit-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64/StorybookKit-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64/StorybookKit.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Storybook.build/Debug-watchos/StorybookKit-t.build/Objects-normal/arm64/StorybookKit.abi.json
SwiftCompile normal arm64 (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

SwiftCompile normal arm64 Compiling\ Book.swift,\ BookAction.swift,\ BookActions+AppKit.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/Book.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookAction.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookActions+AppKit.swift (in target 'StorybookKit' from project 'Storybook')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/Book.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Book.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookAction.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookAction.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookActions+AppKit.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookActions+AppKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/Book.swift:302:9: error: 'DisclosureGroup' is unavailable in watchOS
300 |     Group {
301 |       if node[keyPath: childKeyPath] != nil {
302 |         DisclosureGroup(
    |         `- error: 'DisclosureGroup' is unavailable in watchOS
303 |           isExpanded: $isExpanded,
304 |           content: {
SwiftUI.DisclosureGroup:4:27: note: 'DisclosureGroup' has been explicitly marked unavailable here
 2 | @available(tvOS, unavailable)
 3 | @available(watchOS, unavailable)
 4 | nonisolated public struct DisclosureGroup<Label, Content> : View, ~Sendable where Label : View, Content : View {
   |                           `- note: 'DisclosureGroup' has been explicitly marked unavailable here
 5 |     nonisolated public init(@ContentBuilder content: @escaping () -> Content, @ContentBuilder label: () -> Label)
 6 |     nonisolated public init(isExpanded: Binding<Bool>, @ContentBuilder content: @escaping () -> Content, @ContentBuilder label: () -> Label)
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/Book.swift:323:6: warning: 'onChange(of:perform:)' was deprecated in watchOS 10.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
321 |       }
322 |     }
323 |     .onChange(of: expandsAll) { value in
    |      `- warning: 'onChange(of:perform:)' was deprecated in watchOS 10.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
324 |       withAnimation(.default) {
325 |         isExpanded = value
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookAction.swift:31:34: error: 'UIViewController' is unavailable in watchOS
29 |   public let declarationIdentifier: DeclarationIdentifier
30 |
31 |   public let action: @MainActor (UIViewController) -> Void
   |                                  `- error: 'UIViewController' is unavailable in watchOS
32 |
33 |   public let title: String
/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 Compiling\ BookPush.swift,\ BookStore.swift,\ BookText.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPush.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookStore.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookText.swift (in target 'StorybookKit' from project 'Storybook')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPush.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookPush.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookStore.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookStore.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookText.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookText.swift
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPush.swift:30:59: error: 'UIViewController' is unavailable in watchOS
28 |   @Environment(\.storybook_targetViewController) var targetViewController
29 |
30 |   public let pushingViewControllerBlock: @MainActor () -> UIViewController
   |                                                           `- error: 'UIViewController' is unavailable in watchOS
31 |   public let declarationIdentifier: DeclarationIdentifier
32 |
/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/StorybookKit/Primitives/BookPush.swift:37:60: error: 'UIViewController' is unavailable in watchOS
35 |   public init(
36 |     title: String,
37 |     pushingViewControllerBlock: @escaping @MainActor () -> UIViewController
   |                                                            `- error: 'UIViewController' is unavailable in watchOS
38 |   ) {
39 |     self.title = title
/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/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:14:89: error: cannot find type 'Context' in scope
12 |   init(
13 |     instantiate: @escaping @MainActor () -> ContentViewController,
14 |     update: @escaping @MainActor (_ uiViewController: ContentViewController, _ context: Context) ->
   |                                                                                         `- error: cannot find type 'Context' in scope
15 |       Void = { _, _ in }
16 |   ) {
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPush.swift:48:22: error: cannot infer key path type from context; consider explicitly specifying a root type
46 |     NavigationLink(title, destination: {
47 |       _ViewControllerHost(instantiate: pushingViewControllerBlock)
48 |         .environment(\.storybook_targetViewController, targetViewController)
   |                      `- error: cannot infer key path type from context; consider explicitly specifying a root type
49 |     })
50 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookText.swift:30:15: error: 'label' is unavailable in watchOS
28 |   public var foregroundColor: UIColor = {
29 |     if #available(iOS 13.0, *) {
30 |       return .label
   |               `- error: 'label' is unavailable in watchOS
31 |     } else {
32 |       return .darkText
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:171:49: note: 'label' has been explicitly marked unavailable here
169 | /* Foreground colors for static text and related elements.
170 |  */
171 | @property (class, nonatomic, readonly) UIColor *labelColor              API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
    |                                                 `- note: 'label' has been explicitly marked unavailable here
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor     API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor      API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
SwiftExplicitDependencyGeneratePcm arm64_32 /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules/SwiftUI-1RR011ILX8M637U24HKCUKH2G.pcm
SwiftCompile normal arm64 Compiling\ Storybook.swift,\ StorybookDisplayRootView.Sidebar.swift,\ StorybookDisplayRootView.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Storybook.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.Sidebar.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift (in target 'StorybookKit' from project 'Storybook')
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:553:45: error: 'UIViewController' is unavailable in watchOS
551 |
552 | #if canImport(UIKit)
553 | final class _ViewController<Content: View>: UIViewController {
    |                                             `- error: 'UIViewController' is unavailable in watchOS
554 |
555 |   private let content: Content
/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/StorybookKit/Internals/Hosting/_ViewControllerHost.swift:14:89: error: cannot find type 'Context' in scope
12 |   init(
13 |     instantiate: @escaping @MainActor () -> ContentViewController,
14 |     update: @escaping @MainActor (_ uiViewController: ContentViewController, _ context: Context) ->
   |                                                                                         `- error: cannot find type 'Context' in scope
15 |       Void = { _, _ in }
16 |   ) {
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:423:18: error: 'UIUserInterfaceStyle' is unavailable in watchOS
421 |     )
422 |     .onChange(of: overrideColorScheme, initial: true) { _, newValue in
423 |       let style: UIUserInterfaceStyle = switch newValue {
    |                  `- error: 'UIUserInterfaceStyle' is unavailable in watchOS
424 |       case .light?: .light
425 |       case .dark?: .dark
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:32:28: note: 'UIUserInterfaceStyle' has been explicitly marked unavailable here
 30 | } API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos);
 31 |
 32 | typedef NS_ENUM(NSInteger, UIUserInterfaceStyle) {
    |                            `- note: 'UIUserInterfaceStyle' has been explicitly marked unavailable here
 33 |     UIUserInterfaceStyleUnspecified,
 34 |     UIUserInterfaceStyleLight,
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:300:19: error: 'DisclosureGroup' is unavailable in watchOS
298 |                 switch node {
299 |                 case .folder(let folder):
300 |                   DisclosureGroup {
    |                   `- error: 'DisclosureGroup' is unavailable in watchOS
301 |                     ForEach(folder.contents) { childNode in
302 |                       SearchResultNodeView(node: childNode)
SwiftUI.DisclosureGroup:4:27: note: 'DisclosureGroup' has been explicitly marked unavailable here
 2 | @available(tvOS, unavailable)
 3 | @available(watchOS, unavailable)
 4 | nonisolated public struct DisclosureGroup<Label, Content> : View, ~Sendable where Label : View, Content : View {
   |                           `- note: 'DisclosureGroup' has been explicitly marked unavailable here
 5 |     nonisolated public init(@ContentBuilder content: @escaping () -> Content, @ContentBuilder label: () -> Label)
 6 |     nonisolated public init(isExpanded: Binding<Bool>, @ContentBuilder content: @escaping () -> Content, @ContentBuilder label: () -> Label)
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:334:33: error: 'navigation' is unavailable in watchOS
332 |       .searchable(text: $query, prompt: "Search")
333 |       .toolbar {
334 |         ToolbarItem(placement: .navigation) {
    |                                 `- error: 'navigation' is unavailable in watchOS
335 |           Button {
336 |             showSettings = true
SwiftUI.ToolbarItemPlacement.navigation:3:21: note: 'navigation' has been explicitly marked unavailable here
1 | struct ToolbarItemPlacement {
2 | @available(watchOS, unavailable)
3 |   public static let navigation: ToolbarItemPlacement}
  |                     `- note: 'navigation' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:385:31: error: 'glassProminent' is only available in watchOS 26.0 or newer
224 | #else
225 | /// Owns catalog navigation, search, settings, and page history presentation.
226 | private struct BookCatalogView: View {
    |                `- note: add '@available' attribute to enclosing struct
227 |
228 |   private static let userDefaults =
    :
289 |   }
290 |
291 |   var body: some View {
    |       `- note: add '@available' attribute to enclosing property
292 |     NavigationStack(path: $path) {
293 |       List {
    :
383 |             if #available(iOS 26, *) {
384 |               button
385 |                 .buttonStyle(.glassProminent)
    |                               |- error: 'glassProminent' is only available in watchOS 26.0 or newer
    |                               `- note: add 'if #available' version check
386 |             } else {
387 |               button
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:429:51: error: 'overrideUserInterfaceStyle' is unavailable in watchOS
427 |       @unknown default: .unspecified
428 |       }
429 |       targetViewController?.children.forEach { $0.overrideUserInterfaceStyle = style }
    |                                                   `- error: 'overrideUserInterfaceStyle' is unavailable in watchOS
430 |     }
431 |     .onAppear {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:358:44: note: 'overrideUserInterfaceStyle' has been explicitly marked unavailable here
356 |  * specific `UIUserInterfaceStyle`. This does not affect the application or any parent view controllers.
357 |  */
358 | @property (nonatomic) UIUserInterfaceStyle overrideUserInterfaceStyle API_AVAILABLE(tvos(13.0), ios(13.0)) API_UNAVAILABLE(watchos); // Defaults to UIUserInterfaceStyleUnspecified
    |                                            `- note: 'overrideUserInterfaceStyle' has been explicitly marked unavailable here
359 |
360 | /// Registers a new scene accessory configuration associated with this view controller.
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:446:6: warning: 'onChange(of:perform:)' was deprecated in watchOS 10.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
444 |       }
445 |     }
446 |     .onChange(
    |      `- warning: 'onChange(of:perform:)' was deprecated in watchOS 10.0: Use `onChange` with a two or zero parameter action closure instead. [#DeprecatedDeclaration]
447 |       of: query,
448 |       perform: { value in
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:505:18: error: 'textSelection' is unavailable in watchOS
503 |               Text(argument)
504 |                 .font(.caption.monospaced())
505 |                 .textSelection(.enabled)
    |                  `- error: 'textSelection' is unavailable in watchOS
506 |             }
507 |           }
SwiftUI.View.textSelection:2:25: note: 'textSelection' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func textSelection<S>(_ selectability: S) -> some View where S : TextSelectability
  |                         `- note: 'textSelection' has been explicitly marked unavailable here
3 |   }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:505:33: error: 'enabled' is unavailable in watchOS
503 |               Text(argument)
504 |                 .font(.caption.monospaced())
505 |                 .textSelection(.enabled)
    |                                 `- error: 'enabled' is unavailable in watchOS
506 |             }
507 |           }
SwiftUI.TextSelectability.enabled:2:43: note: 'enabled' has been explicitly marked unavailable here
1 | protocol TextSelectability {
2 | @export(implementation) public static var enabled: EnabledTextSelectability { get }}
  |                                           `- note: 'enabled' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:517:20: error: 'textSelection' is unavailable in watchOS
515 |                   .font(.caption.monospacedDigit())
516 |                   .foregroundStyle(.secondary)
517 |                   .textSelection(.enabled)
    |                    `- error: 'textSelection' is unavailable in watchOS
518 |               }
519 |             }
SwiftUI.View.textSelection:2:25: note: 'textSelection' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func textSelection<S>(_ selectability: S) -> some View where S : TextSelectability
  |                         `- note: 'textSelection' has been explicitly marked unavailable here
3 |   }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:517:35: error: 'enabled' is unavailable in watchOS
515 |                   .font(.caption.monospacedDigit())
516 |                   .foregroundStyle(.secondary)
517 |                   .textSelection(.enabled)
    |                                   `- error: 'enabled' is unavailable in watchOS
518 |               }
519 |             }
SwiftUI.TextSelectability.enabled:2:43: note: 'enabled' has been explicitly marked unavailable here
1 | protocol TextSelectability {
2 | @export(implementation) public static var enabled: EnabledTextSelectability { get }}
  |                                           `- note: 'enabled' has been explicitly marked unavailable here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift:535:7: error: 'DisclosureGroup' is unavailable in watchOS
533 |     switch node {
534 |     case .folder(let folder):
535 |       DisclosureGroup {
    |       `- error: 'DisclosureGroup' is unavailable in watchOS
536 |         ForEach(folder.contents) { childNode in
537 |           SearchResultNodeView(node: childNode)
SwiftUI.DisclosureGroup:4:27: note: 'DisclosureGroup' has been explicitly marked unavailable here
 2 | @available(tvOS, unavailable)
 3 | @available(watchOS, unavailable)
 4 | nonisolated public struct DisclosureGroup<Label, Content> : View, ~Sendable where Label : View, Content : View {
   |                           `- note: 'DisclosureGroup' has been explicitly marked unavailable here
 5 |     nonisolated public init(@ContentBuilder content: @escaping () -> Content, @ContentBuilder label: () -> Label)
 6 |     nonisolated public init(isExpanded: Binding<Bool>, @ContentBuilder content: @escaping () -> Content, @ContentBuilder label: () -> Label)
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Storybook.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile Storybook.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.Sidebar.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile StorybookDisplayRootView.Sidebar.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookDisplayRootView.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile StorybookDisplayRootView.swift
SwiftCompile normal arm64 Compiling\ BookGenerator.swift,\ BookLorem.swift,\ BookPadding.swift,\ BookSection.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/BookGenerator.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/BookLorem.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Compositions/BookPadding.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Compositions/BookSection.swift (in target 'StorybookKit' from project 'Storybook')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/BookGenerator.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookGenerator.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/BookLorem.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookLorem.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Compositions/BookPadding.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookPadding.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Compositions/BookSection.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookSection.swift
SwiftCompile normal arm64 Compiling\ BookPage.swift,\ BookPageSelector.swift,\ BookPresent.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPage.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPageSelector.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPresent.swift (in target 'StorybookKit' from project 'Storybook')
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPage.swift:135:32: error: 'UIView' is unavailable in watchOS
133 |   case viewport(@MainActor () -> AnyView)
134 |   #if canImport(UIKit)
135 |   case uiView(@MainActor () -> UIView)
    |                                `- error: 'UIView' is unavailable in watchOS
136 |   case presentedViewController(@MainActor () -> UIViewController)
137 |   #elseif os(macOS)
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/Primitives/BookPage.swift:136:49: error: 'UIViewController' is unavailable in watchOS
134 |   #if canImport(UIKit)
135 |   case uiView(@MainActor () -> UIView)
136 |   case presentedViewController(@MainActor () -> UIViewController)
    |                                                 `- error: 'UIViewController' is unavailable in watchOS
137 |   #elseif os(macOS)
138 |   case nsView(@MainActor () -> NSView)
/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/StorybookKit/Primitives/BookPage.swift:173:33: error: 'systemBackground' is unavailable in watchOS
171 |     .frame(maxWidth: .infinity, maxHeight: .infinity)
172 |     #if canImport(UIKit)
173 |     .background(Color(uiColor: .systemBackground))
    |                                 `- error: 'systemBackground' is unavailable in watchOS
174 |     #else
175 |     .background(Color(nsColor: .windowBackgroundColor))
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:208:49: note: 'systemBackground' has been explicitly marked unavailable here
206 |  *    primary background in light mode.
207 |  */
208 | @property (class, nonatomic, readonly) UIColor *systemBackgroundColor                   API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(tvos, watchos);
    |                                                 `- note: 'systemBackground' has been explicitly marked unavailable here
209 | @property (class, nonatomic, readonly) UIColor *secondarySystemBackgroundColor          API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(tvos, watchos);
210 | @property (class, nonatomic, readonly) UIColor *tertiarySystemBackgroundColor           API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(tvos, watchos);
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPage.swift:226:29: error: 'glassProminent' is only available in watchOS 26.0 or newer
143 |
144 | /// Renders one page consistently for catalog links and programmable navigation.
145 | struct BookPageDestination: View {
    |        `- note: add '@available' attribute to enclosing struct
146 |
147 |   @Environment(\.bookContext) private var context
    :
159 |   let page: BookPage
160 |
161 |   var body: some View {
    |       `- note: add '@available' attribute to enclosing property
162 |     Group {
163 |       if page.usesScrollView {
    :
224 |           if #available(iOS 26, macOS 26, *) {
225 |             button
226 |               .buttonStyle(.glassProminent)
    |                             |- error: 'glassProminent' is only available in watchOS 26.0 or newer
    |                             `- note: add 'if #available' version check
227 |           } else {
228 |             button
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPresent.swift:31:61: error: 'UIViewController' is unavailable in watchOS
29 |
30 |   public let declarationIdentifier: DeclarationIdentifier
31 |   public let presentedViewControllerBlock: @MainActor () -> UIViewController
   |                                                             `- error: 'UIViewController' is unavailable in watchOS
32 |
33 |   public let title: String
/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/StorybookKit/Primitives/BookPage.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookPage.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPageSelector.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookPageSelector.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPresent.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookPresent.swift
SwiftCompile normal arm64 Compiling\ StorybookLaunchRequest.swift,\ StorybookViewport+AppKit.swift,\ StorybookViewport.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookLaunchRequest.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport+AppKit.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift (in target 'StorybookKit' from project 'Storybook')
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:91:41: error: 'UIView' is unavailable in watchOS
 89 |
 90 |   public let descriptor: BookPageDescriptor
 91 |   private let factory: @MainActor () -> UIView
    |                                         `- error: 'UIView' is unavailable in watchOS
 92 |
 93 |   fileprivate init(
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:95:42: error: 'UIView' is unavailable in watchOS
 93 |   fileprivate init(
 94 |     descriptor: BookPageDescriptor,
 95 |     makeView: @escaping @MainActor () -> UIView
    |                                          `- error: 'UIView' is unavailable in watchOS
 96 |   ) {
 97 |     self.descriptor = descriptor
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:102:29: error: 'UIView' is unavailable in watchOS
100 |
101 |   @MainActor
102 |   public func makeView() -> UIView {
    |                             `- error: 'UIView' is unavailable in watchOS
103 |     factory()
104 |   }
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:112:41: error: 'UIViewController' is unavailable in watchOS
110 |
111 |   public let descriptor: BookPageDescriptor
112 |   private let factory: @MainActor () -> UIViewController
    |                                         `- error: 'UIViewController' is unavailable in watchOS
113 |
114 |   fileprivate init(
/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/StorybookKit/StorybookViewport.swift:116:52: error: 'UIViewController' is unavailable in watchOS
114 |   fileprivate init(
115 |     descriptor: BookPageDescriptor,
116 |     makeViewController: @escaping @MainActor () -> UIViewController
    |                                                    `- error: 'UIViewController' is unavailable in watchOS
117 |   ) {
118 |     self.descriptor = descriptor
/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/StorybookKit/StorybookViewport.swift:123:39: error: 'UIViewController' is unavailable in watchOS
121 |
122 |   @MainActor
123 |   public func makeViewController() -> UIViewController {
    |                                       `- error: 'UIViewController' is unavailable in watchOS
124 |     factory()
125 |   }
/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/StorybookKit/StorybookViewport.swift:167:34: error: 'UIUserInterfaceStyle' is unavailable in watchOS
165 |   }
166 |
167 |   public var userInterfaceStyle: UIUserInterfaceStyle {
    |                                  `- error: 'UIUserInterfaceStyle' is unavailable in watchOS
168 |     switch self {
169 |     case .light:
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:32:28: note: 'UIUserInterfaceStyle' has been explicitly marked unavailable here
 30 | } API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos);
 31 |
 32 | typedef NS_ENUM(NSInteger, UIUserInterfaceStyle) {
    |                            `- note: 'UIUserInterfaceStyle' has been explicitly marked unavailable here
 33 |     UIUserInterfaceStyleUnspecified,
 34 |     UIUserInterfaceStyleLight,
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:204:37: error: cannot find type 'UIHostingController' in scope
202 |   public let descriptor: BookPageDescriptor
203 |
204 |   private let hostedViewController: UIHostingController<AnyView>
    |                                     `- error: cannot find type 'UIHostingController' in scope
205 |
206 |   public init(
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:241:22: error: 'UIScreen' is unavailable in watchOS
239 |   public func render(
240 |     width: CGFloat,
241 |     scale: CGFloat = UIScreen.main.scale
    |                      `- error: 'UIScreen' is unavailable in watchOS
242 |   ) throws -> StorybookExportImage {
243 |     guard width.isFinite, width > 0 else {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
 52 |
 53 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_UI_ACTOR
 54 | @interface UIScreen : NSObject <UITraitEnvironment>
    |            `- note: 'UIScreen' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:241:31: error: 'main' is unavailable in watchOS
239 |   public func render(
240 |     width: CGFloat,
241 |     scale: CGFloat = UIScreen.main.scale
    |                               `- error: 'main' is unavailable in watchOS
242 |   ) throws -> StorybookExportImage {
243 |     guard width.isFinite, width > 0 else {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: 'main' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
 57 | @property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context.", ios(2.0, 26.0), tvos(9.0, 26.0), visionos(1.0, 26.0)) API_UNAVAILABLE(watchos);
    |                                                 `- note: 'main' has been explicitly marked unavailable here
 58 |
 59 | @property(nonatomic,readonly) CGRect  bounds;                // Bounds of entire screen in points
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:200:43: error: 'UIViewController' is unavailable in watchOS
198 | @available(iOS 17.0, *)
199 | @MainActor
200 | public final class StorybookViewportHost: UIViewController {
    |                                           `- error: 'UIViewController' is unavailable in watchOS
201 |
202 |   public let descriptor: BookPageDescriptor
/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/StorybookKit/StorybookViewport.swift:305:22: error: 'UIScreen' is unavailable in watchOS
303 |     _ viewport: StorybookViewport,
304 |     width: CGFloat,
305 |     scale: CGFloat = UIScreen.main.scale,
    |                      `- error: 'UIScreen' is unavailable in watchOS
306 |     appearance: StorybookViewportAppearance? = nil,
307 |     safeAreaInsets: UIEdgeInsets = .zero
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
 52 |
 53 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_UI_ACTOR
 54 | @interface UIScreen : NSObject <UITraitEnvironment>
    |            `- note: 'UIScreen' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:305:31: error: 'main' is unavailable in watchOS
303 |     _ viewport: StorybookViewport,
304 |     width: CGFloat,
305 |     scale: CGFloat = UIScreen.main.scale,
    |                               `- error: 'main' is unavailable in watchOS
306 |     appearance: StorybookViewportAppearance? = nil,
307 |     safeAreaInsets: UIEdgeInsets = .zero
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: 'main' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
 57 | @property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context.", ios(2.0, 26.0), tvos(9.0, 26.0), visionos(1.0, 26.0)) API_UNAVAILABLE(watchos);
    |                                                 `- note: 'main' has been explicitly marked unavailable here
 58 |
 59 | @property(nonatomic,readonly) CGRect  bounds;                // Bounds of entire screen in points
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:412:14: error: 'UIView' is unavailable in watchOS
410 |     appearance: StorybookViewportAppearance? = nil,
411 |     safeAreaInsets: UIEdgeInsets = .zero,
412 |     in host: UIView
    |              `- error: 'UIView' is unavailable in watchOS
413 |   ) throws -> StorybookExportImage {
414 |     guard width.isFinite, width > 0 else {
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:409:22: error: 'UIScreen' is unavailable in watchOS
407 |     _ preview: StorybookUIView,
408 |     width: CGFloat,
409 |     scale: CGFloat = UIScreen.main.scale,
    |                      `- error: 'UIScreen' is unavailable in watchOS
410 |     appearance: StorybookViewportAppearance? = nil,
411 |     safeAreaInsets: UIEdgeInsets = .zero,
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
 52 |
 53 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_UI_ACTOR
 54 | @interface UIScreen : NSObject <UITraitEnvironment>
    |            `- note: 'UIScreen' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:409:31: error: 'main' is unavailable in watchOS
407 |     _ preview: StorybookUIView,
408 |     width: CGFloat,
409 |     scale: CGFloat = UIScreen.main.scale,
    |                               `- error: 'main' is unavailable in watchOS
410 |     appearance: StorybookViewportAppearance? = nil,
411 |     safeAreaInsets: UIEdgeInsets = .zero,
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: 'main' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
 57 | @property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context.", ios(2.0, 26.0), tvos(9.0, 26.0), visionos(1.0, 26.0)) API_UNAVAILABLE(watchos);
    |                                                 `- note: 'main' has been explicitly marked unavailable here
 58 |
 59 | @property(nonatomic,readonly) CGRect  bounds;                // Bounds of entire screen in points
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:489:14: error: 'UIView' is unavailable in watchOS
487 |
488 |   private static func fittedSize(
489 |     of view: UIView,
    |              `- error: 'UIView' is unavailable in watchOS
490 |     in content: UIView,
491 |     width: CGFloat
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:490:17: error: 'UIView' is unavailable in watchOS
488 |   private static func fittedSize(
489 |     of view: UIView,
490 |     in content: UIView,
    |                 `- error: 'UIView' is unavailable in watchOS
491 |     width: CGFloat
492 |   ) throws -> CGSize {
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:555:44: error: 'UIView' is unavailable in watchOS
553 |   }
554 |
555 |   private static func scrollViews(in view: UIView) -> [UIScrollView] {
    |                                            `- error: 'UIView' is unavailable in watchOS
556 |     var result: [UIScrollView] = []
557 |     func collect(from view: UIView) {
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:555:56: error: 'UIScrollView' is unavailable in watchOS
553 |   }
554 |
555 |   private static func scrollViews(in view: UIView) -> [UIScrollView] {
    |                                                        `- error: 'UIScrollView' is unavailable in watchOS
556 |     var result: [UIScrollView] = []
557 |     func collect(from view: UIView) {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:568:20: error: 'UIScrollView' is unavailable in watchOS
566 |
567 |   private static func expandAncestors(
568 |     of scrollView: UIScrollView,
    |                    `- error: 'UIScrollView' is unavailable in watchOS
569 |     through rootView: UIView
570 |   ) {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:569:23: error: 'UIView' is unavailable in watchOS
567 |   private static func expandAncestors(
568 |     of scrollView: UIScrollView,
569 |     through rootView: UIView
    |                       `- error: 'UIView' is unavailable in watchOS
570 |   ) {
571 |     var view: UIView = scrollView
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:610:30: error: 'UIViewController' is unavailable in watchOS
608 |   public static func render(
609 |     _ preview: StorybookPresentedViewController,
610 |     presentedViewController: UIViewController,
    |                              `- error: 'UIViewController' is unavailable in watchOS
611 |     in window: UIWindow,
612 |     scale: CGFloat = UIScreen.main.scale
/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/StorybookKit/StorybookViewport.swift:611:16: error: 'UIWindow' is unavailable in watchOS
609 |     _ preview: StorybookPresentedViewController,
610 |     presentedViewController: UIViewController,
611 |     in window: UIWindow,
    |                `- error: 'UIWindow' is unavailable in watchOS
612 |     scale: CGFloat = UIScreen.main.scale
613 |   ) throws -> StorybookExportImage {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
 20 |
 21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 22 | @interface UIWindow : UIView
    |            `- note: 'UIWindow' has been explicitly marked unavailable here
 23 |
 24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:612:22: error: 'UIScreen' is unavailable in watchOS
610 |     presentedViewController: UIViewController,
611 |     in window: UIWindow,
612 |     scale: CGFloat = UIScreen.main.scale
    |                      `- error: 'UIScreen' is unavailable in watchOS
613 |   ) throws -> StorybookExportImage {
614 |     guard scale.isFinite, scale > 0 else {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:54:12: note: 'UIScreen' has been explicitly marked unavailable here
 52 |
 53 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(visionos, watchos) NS_SWIFT_UI_ACTOR
 54 | @interface UIScreen : NSObject <UITraitEnvironment>
    |            `- note: 'UIScreen' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:612:31: error: 'main' is unavailable in watchOS
610 |     presentedViewController: UIViewController,
611 |     in window: UIWindow,
612 |     scale: CGFloat = UIScreen.main.scale
    |                               `- error: 'main' is unavailable in watchOS
613 |   ) throws -> StorybookExportImage {
614 |     guard scale.isFinite, scale > 0 else {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScreen.h:57:49: note: 'main' has been explicitly marked unavailable here
 55 |
 56 | @property(class, nonatomic, readonly) NSArray<UIScreen *> *screens API_DEPRECATED("Use UIApplication.shared.openSessions to find open sessions with scenes from other screens", ios(3.2, 16.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos); // all screens currently attached to the device
 57 | @property(class, nonatomic, readonly) UIScreen *mainScreen API_DEPRECATED("Use a UIScreen instance found through context instead (i.e, view.window.windowScene.screen), or for properties like UIScreen.scale with trait equivalents, use a traitCollection found through context.", ios(2.0, 26.0), tvos(9.0, 26.0), visionos(1.0, 26.0)) API_UNAVAILABLE(watchos);
    |                                                 `- note: 'main' has been explicitly marked unavailable here
 58 |
 59 | @property(nonatomic,readonly) CGRect  bounds;                // Bounds of entire screen in points
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:212:28: error: cannot find 'UIHostingController' in scope
210 |   ) {
211 |     descriptor = viewport.descriptor
212 |     hostedViewController = UIHostingController(
    |                            `- error: cannot find 'UIHostingController' in scope
213 |       rootView: StorybookViewportRenderer.rootView(
214 |         viewport: viewport,
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:234:52: error: reference to member 'flexibleWidth' cannot be resolved without a contextual type
232 |     addChild(hostedViewController)
233 |     hostedViewController.view.frame = view.bounds
234 |     hostedViewController.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
    |                                                    `- error: reference to member 'flexibleWidth' cannot be resolved without a contextual type
235 |     view.addSubview(hostedViewController.view)
236 |     hostedViewController.didMove(toParent: self)
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:234:68: error: reference to member 'flexibleHeight' cannot be resolved without a contextual type
232 |     addChild(hostedViewController)
233 |     hostedViewController.view.frame = view.bounds
234 |     hostedViewController.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
    |                                                                    `- error: reference to member 'flexibleHeight' cannot be resolved without a contextual type
235 |     view.addSubview(hostedViewController.view)
236 |     hostedViewController.didMove(toParent: self)
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:235:10: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
233 |     hostedViewController.view.frame = view.bounds
234 |     hostedViewController.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
235 |     view.addSubview(hostedViewController.view)
    |          `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
236 |     hostedViewController.didMove(toParent: self)
237 |   }
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:271:40: error: cannot infer contextual base in reference to member 'init'
269 |     }
270 |
271 |     hostedViewController.view.frame = .init(origin: .zero, size: pointSize)
    |                                        `- error: cannot infer contextual base in reference to member 'init'
272 |     hostedViewController.view.setNeedsLayout()
273 |     hostedViewController.view.layoutIfNeeded()
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:275:18: error: 'UIGraphicsImageRendererFormat' is unavailable in watchOS
273 |     hostedViewController.view.layoutIfNeeded()
274 |
275 |     let format = UIGraphicsImageRendererFormat()
    |                  `- error: 'UIGraphicsImageRendererFormat' is unavailable in watchOS
276 |     format.scale = scale
277 |     format.opaque = false
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsImageRenderer.h:27:12: note: 'UIGraphicsImageRendererFormat' has been explicitly marked unavailable here
25 |
26 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos)
27 | @interface UIGraphicsImageRendererFormat : UIGraphicsRendererFormat
   |            `- note: 'UIGraphicsImageRendererFormat' has been explicitly marked unavailable here
28 |
29 | @property (nonatomic) CGFloat scale; // display scale of the context. The preferredFormat uses the scale most appropriate for the main screen's current configuration.
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:316:26: error: cannot find 'UIHostingController' in scope
314 |     }
315 |
316 |     let viewController = UIHostingController(
    |                          `- error: cannot find 'UIHostingController' in scope
317 |       rootView: rootView(
318 |         viewport: viewport,
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:342:35: error: cannot infer contextual base in reference to member 'init'
340 |     }
341 |
342 |     viewController.view.bounds = .init(origin: .zero, size: pointSize)
    |                                   `- error: cannot infer contextual base in reference to member 'init'
343 |     viewController.view.setNeedsLayout()
344 |     viewController.view.layoutIfNeeded()
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:346:18: error: 'UIGraphicsImageRendererFormat' is unavailable in watchOS
344 |     viewController.view.layoutIfNeeded()
345 |
346 |     let format = UIGraphicsImageRendererFormat()
    |                  `- error: 'UIGraphicsImageRendererFormat' is unavailable in watchOS
347 |     format.scale = scale
348 |     format.opaque = false
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsImageRenderer.h:27:12: note: 'UIGraphicsImageRendererFormat' has been explicitly marked unavailable here
25 |
26 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos)
27 | @interface UIGraphicsImageRendererFormat : UIGraphicsRendererFormat
   |            `- note: 'UIGraphicsImageRendererFormat' has been explicitly marked unavailable here
28 |
29 | @property (nonatomic) CGFloat scale; // display scale of the context. The preferredFormat uses the scale most appropriate for the main screen's current configuration.
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:431:19: error: 'UIView' is unavailable in watchOS
429 |     }
430 |
431 |     let content = UIView(frame: .init(x: 0, y: 0, width: width, height: host.bounds.height))
    |                   `- error: 'UIView' is unavailable in watchOS
432 |     content.backgroundColor = .systemBackground
433 |     content.overrideUserInterfaceStyle = appearance?.userInterfaceStyle ?? .unspecified
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:432:32: error: 'systemBackground' is unavailable in watchOS
430 |
431 |     let content = UIView(frame: .init(x: 0, y: 0, width: width, height: host.bounds.height))
432 |     content.backgroundColor = .systemBackground
    |                                `- error: 'systemBackground' is unavailable in watchOS
433 |     content.overrideUserInterfaceStyle = appearance?.userInterfaceStyle ?? .unspecified
434 |     host.addSubview(content)
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:208:49: note: 'systemBackground' has been explicitly marked unavailable here
206 |  *    primary background in light mode.
207 |  */
208 | @property (class, nonatomic, readonly) UIColor *systemBackgroundColor                   API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(tvos, watchos);
    |                                                 `- note: 'systemBackground' has been explicitly marked unavailable here
209 | @property (class, nonatomic, readonly) UIColor *secondarySystemBackgroundColor          API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(tvos, watchos);
210 | @property (class, nonatomic, readonly) UIColor *tertiarySystemBackgroundColor           API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(tvos, watchos);
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:433:13: error: 'overrideUserInterfaceStyle' is unavailable in watchOS
431 |     let content = UIView(frame: .init(x: 0, y: 0, width: width, height: host.bounds.height))
432 |     content.backgroundColor = .systemBackground
433 |     content.overrideUserInterfaceStyle = appearance?.userInterfaceStyle ?? .unspecified
    |             `- error: 'overrideUserInterfaceStyle' is unavailable in watchOS
434 |     host.addSubview(content)
435 |     defer {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:705:44: note: 'overrideUserInterfaceStyle' has been explicitly marked unavailable here
703 |  * - It also affects presentations that happen inside the window.
704 |  */
705 | @property (nonatomic) UIUserInterfaceStyle overrideUserInterfaceStyle API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
    |                                            `- note: 'overrideUserInterfaceStyle' has been explicitly marked unavailable here
706 |
707 | @end
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:440:10: error: 'overrideUserInterfaceStyle' is unavailable in watchOS
438 |
439 |     let view = preview.makeView()
440 |     view.overrideUserInterfaceStyle = appearance?.userInterfaceStyle ?? .unspecified
    |          `- error: 'overrideUserInterfaceStyle' is unavailable in watchOS
441 |     content.addSubview(view)
442 |
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:705:44: note: 'overrideUserInterfaceStyle' has been explicitly marked unavailable here
703 |  * - It also affects presentations that happen inside the window.
704 |  */
705 | @property (nonatomic) UIUserInterfaceStyle overrideUserInterfaceStyle API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
    |                                            `- note: 'overrideUserInterfaceStyle' has been explicitly marked unavailable here
706 |
707 | @end
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:468:18: error: 'UIGraphicsImageRendererFormat' is unavailable in watchOS
466 |     }
467 |
468 |     let format = UIGraphicsImageRendererFormat()
    |                  `- error: 'UIGraphicsImageRendererFormat' is unavailable in watchOS
469 |     format.scale = scale
470 |     format.opaque = false
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsImageRenderer.h:27:12: note: 'UIGraphicsImageRendererFormat' has been explicitly marked unavailable here
25 |
26 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos)
27 | @interface UIGraphicsImageRendererFormat : UIGraphicsRendererFormat
   |            `- note: 'UIGraphicsImageRendererFormat' has been explicitly marked unavailable here
28 |
29 | @property (nonatomic) CGFloat scale; // display scale of the context. The preferredFormat uses the scale most appropriate for the main screen's current configuration.
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:471:17: error: 'UIGraphicsImageRenderer' is unavailable in watchOS
469 |     format.scale = scale
470 |     format.opaque = false
471 |     let image = UIGraphicsImageRenderer(size: pointSize, format: format).image { context in
    |                 `- error: 'UIGraphicsImageRenderer' is unavailable in watchOS
472 |       if content.drawHierarchy(
473 |         in: .init(origin: .zero, size: pointSize),
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsImageRenderer.h:47:12: note: 'UIGraphicsImageRenderer' has been explicitly marked unavailable here
45 |
46 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos)
47 | @interface UIGraphicsImageRenderer : UIGraphicsRenderer
   |            `- note: 'UIGraphicsImageRenderer' has been explicitly marked unavailable here
48 | - (instancetype)initWithSize:(CGSize)size;
49 | - (instancetype)initWithSize:(CGSize)size format:(UIGraphicsImageRendererFormat *)format NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:556:18: error: 'UIScrollView' is unavailable in watchOS
554 |
555 |   private static func scrollViews(in view: UIView) -> [UIScrollView] {
556 |     var result: [UIScrollView] = []
    |                  `- error: 'UIScrollView' is unavailable in watchOS
557 |     func collect(from view: UIView) {
558 |       if let scrollView = view as? UIScrollView {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:557:29: error: 'UIView' is unavailable in watchOS
555 |   private static func scrollViews(in view: UIView) -> [UIScrollView] {
556 |     var result: [UIScrollView] = []
557 |     func collect(from view: UIView) {
    |                             `- error: 'UIView' is unavailable in watchOS
558 |       if let scrollView = view as? UIScrollView {
559 |         result.append(scrollView)
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:558:36: error: 'UIScrollView' is unavailable in watchOS
556 |     var result: [UIScrollView] = []
557 |     func collect(from view: UIView) {
558 |       if let scrollView = view as? UIScrollView {
    |                                    `- error: 'UIScrollView' is unavailable in watchOS
559 |         result.append(scrollView)
560 |       }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h:87:12: note: 'UIScrollView' has been explicitly marked unavailable here
 85 |
 86 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
 87 | @interface UIScrollView : UIView <NSCoding, UIFocusItemScrollableContainer>
    |            `- note: 'UIScrollView' has been explicitly marked unavailable here
 88 |
 89 | @property(nonatomic)         CGPoint                      contentOffset;                  // default CGPointZero
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:571:15: error: 'UIView' is unavailable in watchOS
569 |     through rootView: UIView
570 |   ) {
571 |     var view: UIView = scrollView
    |               `- error: 'UIView' is unavailable in watchOS
572 |     while let superview = view.superview {
573 |       superview.frame.size.height = max(
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:585:45: error: 'UIView' is unavailable in watchOS
583 |
584 |   private static func validDimension(_ value: CGFloat) -> Bool {
585 |     value.isFinite && value > 0 && value != UIView.noIntrinsicMetric
    |                                             `- error: 'UIView' is unavailable in watchOS
586 |   }
587 | }
/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' has been explicitly marked unavailable 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' has been explicitly marked unavailable 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/StorybookKit/StorybookViewport.swift:585:52: error: 'noIntrinsicMetric' is unavailable in watchOS
583 |
584 |   private static func validDimension(_ value: CGFloat) -> Bool {
585 |     value.isFinite && value > 0 && value != UIView.noIntrinsicMetric
    |                                                    `- error: 'noIntrinsicMetric' is unavailable in watchOS
586 |   }
587 | }
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:547:28: note: 'noIntrinsicMetric' has been explicitly marked unavailable here
545 |  Note that not all views have an intrinsicContentSize.  UIView's default implementation is to return (UIViewNoIntrinsicMetric, UIViewNoIntrinsicMetric).  The _intrinsic_ content size is concerned only with data that is in the view itself, not in other views. Remember that you can also set constant width or height constraints on any view, and you don't need to override intrinsicContentSize if these dimensions won't be changing with changing view content.
546 |  */
547 | UIKIT_EXTERN const CGFloat UIViewNoIntrinsicMetric API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(watchos); // -1
    |                            `- note: 'noIntrinsicMetric' has been explicitly marked unavailable here
548 | @property(nonatomic, readonly) CGSize intrinsicContentSize API_AVAILABLE(ios(6.0));
549 | - (void)invalidateIntrinsicContentSize API_AVAILABLE(ios(6.0)); // call this when something changes that affects the intrinsicContentSize.  Otherwise UIKit won't notice that it changed.
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift:642:18: error: 'UIGraphicsImageRendererFormat' is unavailable in watchOS
640 |     window.layoutIfNeeded()
641 |
642 |     let format = UIGraphicsImageRendererFormat()
    |                  `- error: 'UIGraphicsImageRendererFormat' is unavailable in watchOS
643 |     format.scale = scale
644 |     format.opaque = false
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGraphicsImageRenderer.h:27:12: note: 'UIGraphicsImageRendererFormat' has been explicitly marked unavailable here
25 |
26 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos)
27 | @interface UIGraphicsImageRendererFormat : UIGraphicsRendererFormat
   |            `- note: 'UIGraphicsImageRendererFormat' has been explicitly marked unavailable here
28 |
29 | @property (nonatomic) CGFloat scale; // display scale of the context. The preferredFormat uses the scale most appropriate for the main screen's current configuration.
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookLaunchRequest.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile StorybookLaunchRequest.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport+AppKit.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile StorybookViewport+AppKit.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/StorybookViewport.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile StorybookViewport.swift
SwiftCompile normal arm64 Compiling\ BookView.swift,\ SearchBar.swift,\ SettingsView.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookView.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/SearchBar.swift /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/SettingsView.swift (in target 'StorybookKit' from project 'Storybook')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookView.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile BookView.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/SearchBar.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SearchBar.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/SettingsView.swift (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
    builtin-SwiftPerFileCompile SettingsView.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ StorybookKit (in target 'StorybookKit' from project 'Storybook')
SwiftCompile normal arm64_32 (in target 'StorybookKit' from project 'Storybook')
    cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode

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-13 01:05:36.016 xcodebuild[822:4748] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
	SwiftEmitModule normal arm64 Emitting\ module\ for\ StorybookKit (in target 'StorybookKit' from project 'Storybook')
	SwiftCompile normal arm64 (in target 'StorybookKit' from project 'Storybook')
	Building workspace Storybook with scheme Storybook
(3 failures)
BUILD FAILURE 6.4 watchOS