Build Information
Failed to build Storybook, reference main (edf96f), with Swift 6.4 for watchOS using Xcode 27.0 on 13 Oct 2026 05:06:33 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=watchOSBuild Log
/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 /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
SwiftCompile normal arm64 Compiling\ BookPreview+AppKit.swift,\ BookPreview.swift,\ BookProvider.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 (in target 'StorybookKit' from project 'Storybook')
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview+AppKit.swift (in target 'StorybookKit' from project 'Storybook')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile BookPreview+AppKit.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview.swift (in target 'StorybookKit' from project 'Storybook')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile BookPreview.swift
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookProvider.swift (in target 'StorybookKit' from project 'Storybook')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile BookProvider.swift
/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/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/Primitives/BookPreview.swift:163:40: error: 'defaultLow' is unavailable in watchOS
161 |
162 | element.translatesAutoresizingMaskIntoConstraints = false
163 | element.setContentHuggingPriority(.defaultLow, for: .horizontal)
| `- error: 'defaultLow' is unavailable in watchOS
164 | element.setContentHuggingPriority(.defaultLow, for: .vertical)
165 |
UIKit.UILayoutPriority.defaultLow:3:21: note: 'defaultLow' has been explicitly marked unavailable here
1 | struct UILayoutPriority {
2 | @available(watchOS, unavailable)
3 | public static var defaultLow: UILayoutPriority { get }}
| `- note: 'defaultLow' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview.swift:164:40: error: 'defaultLow' is unavailable in watchOS
162 | element.translatesAutoresizingMaskIntoConstraints = false
163 | element.setContentHuggingPriority(.defaultLow, for: .horizontal)
164 | element.setContentHuggingPriority(.defaultLow, for: .vertical)
| `- error: 'defaultLow' is unavailable in watchOS
165 |
166 | addSubview(element)
UIKit.UILayoutPriority.defaultLow:3:21: note: 'defaultLow' has been explicitly marked unavailable here
1 | struct UILayoutPriority {
2 | @available(watchOS, unavailable)
3 | public static var defaultLow: UILayoutPriority { get }}
| `- note: 'defaultLow' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview.swift:168:23: error: 'NSLayoutConstraint' is unavailable in watchOS
166 | addSubview(element)
167 |
168 | var constraints: [NSLayoutConstraint] = []
| `- error: 'NSLayoutConstraint' is unavailable in watchOS
169 |
170 | if let maxWidth = frameConstraint.maxWidth {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h:126:12: note: 'NSLayoutConstraint' has been explicitly marked unavailable here
124 |
125 | NSLAYOUTCONSTRAINT_EXTERN API_AVAILABLE(macos(10.7), ios(6.0), tvos(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
126 | @interface NSLayoutConstraint : NSObject
| `- note: 'NSLayoutConstraint' has been explicitly marked unavailable here
127 |
128 | /* Create an array of constraints using an ASCII-art-like visual format string. The values of the `metrics` dictionary should be NSNumber (or some other type that responds to -doubleValue and returns a double).
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview.swift:173:35: error: binary operator '+' cannot be applied to operands of type 'UILayoutPriority' and 'Int'
171 | if (maxWidth == .infinity) || (maxWidth == .greatestFiniteMagnitude) {
172 | let c = element.widthAnchor.constraint(equalToConstant: 5000)
173 | c.priority = .defaultHigh + 1
| `- error: binary operator '+' cannot be applied to operands of type 'UILayoutPriority' and 'Int'
174 | constraints.append(
175 | c
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview.swift:188:35: error: binary operator '+' cannot be applied to operands of type 'UILayoutPriority' and 'Int'
186 | if (maxHeight == .infinity) || (maxHeight == .greatestFiniteMagnitude) {
187 | let c = element.heightAnchor.constraint(equalToConstant: 5000)
188 | c.priority = .defaultHigh + 1
| `- error: binary operator '+' cannot be applied to operands of type 'UILayoutPriority' and 'Int'
189 | constraints.append(
190 | c
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')
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
/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 | /*
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/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-10-13 01:06:21.849 xcodebuild[657:3901] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
** BUILD FAILED **
The following build commands failed:
SwiftCompile normal arm64 (in target 'StorybookKit' from project 'Storybook')
SwiftEmitModule normal arm64 Emitting\ module\ for\ StorybookKit (in target 'StorybookKit' from project 'Storybook')
Building workspace Storybook with scheme Storybook
(3 failures)
Command line invocation:
/Applications/Xcode-27.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
Storybook: /Users/admin/builder/spi-builder-workspace
resolved source packages: Storybook
2026-10-13 01:06:29.270 xcodebuild[824:4524] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "Storybook",
"name" : "Storybook",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "maccatalyst",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "StorybookKit",
"targets" : [
"StorybookKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"6",
"5"
],
"targets" : [
{
"c99name" : "StorybookKitTests",
"module_type" : "SwiftTarget",
"name" : "StorybookKitTests",
"path" : "Tests/StorybookKitTests",
"sources" : [
"AppKitViewSizingTests.swift",
"ApplicationMachOImageScopeTests.swift",
"BookPageSelectorTests.swift",
"MacOSPreviewRegistryTests.swift",
"StorybookLaunchRequestTests.swift",
"StorybookMacOSViewportTests.swift",
"StorybookViewportTests.swift"
],
"target_dependencies" : [
"StorybookKit"
],
"type" : "test"
},
{
"c99name" : "StorybookKit",
"module_type" : "SwiftTarget",
"name" : "StorybookKit",
"path" : "Sources/StorybookKit",
"product_memberships" : [
"StorybookKit"
],
"sources" : [
"BookGenerator.swift",
"BookLorem.swift",
"Compositions/BookPadding.swift",
"Compositions/BookSection.swift",
"Internals/Hosting/AppKitHosts.swift",
"Internals/Hosting/_ViewControllerHost.swift",
"Internals/Hosting/_ViewHost.swift",
"Internals/Preview/PreviewRegistryWrapper.swift",
"Internals/TargetViewControllerKey.swift",
"Internals/fuzzyMatch.swift",
"Internals/machOLoader.swift",
"Primitives/Book.swift",
"Primitives/BookAction.swift",
"Primitives/BookActions+AppKit.swift",
"Primitives/BookPage.swift",
"Primitives/BookPageSelector.swift",
"Primitives/BookPresent.swift",
"Primitives/BookPreview+AppKit.swift",
"Primitives/BookPreview.swift",
"Primitives/BookProvider.swift",
"Primitives/BookPush.swift",
"Primitives/BookStore.swift",
"Primitives/BookText.swift",
"Primitives/BookView.swift",
"SearchBar.swift",
"SettingsView.swift",
"Storybook.swift",
"StorybookDisplayRootView.Sidebar.swift",
"StorybookDisplayRootView.swift",
"StorybookLaunchRequest.swift",
"StorybookViewport+AppKit.swift",
"StorybookViewport.swift"
],
"target_dependencies" : [
"StorybookC"
],
"type" : "library"
},
{
"c99name" : "StorybookC",
"module_type" : "ClangTarget",
"name" : "StorybookC",
"path" : "Sources/StorybookC",
"product_memberships" : [
"StorybookKit"
],
"sources" : [
"StorybookC.c"
],
"type" : "library"
}
],
"tools_version" : "6.3"
}
{
"workspace" : {
"name" : "Storybook",
"schemes" : [
"Storybook"
]
}
}
2026-10-13 01:06:30.674 xcodebuild[856:4770] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$PWD/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $PWD/.derivedData build -scheme Storybook -destination generic/platform=watchOS
Command line invocation:
/Applications/Xcode-27.0.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme Storybook -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
Storybook: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (3 targets)
Target 'StorybookKit-product' in project 'Storybook'
➜ Explicit dependency on target 'StorybookKit' in project 'Storybook'
➜ Explicit dependency on target 'StorybookC' in project 'Storybook'
Target 'StorybookKit' in project 'Storybook'
➜ Explicit dependency on target 'StorybookC' in project 'Storybook'
Target 'StorybookC' in project 'Storybook' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c044b9db9bc9c079ee3c7b5f3373b13d10bc.sdkstatcache
SwiftDriver StorybookKit normal arm64 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/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-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/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/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/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/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 -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 -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/StorybookKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
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_32 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_32 /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_32 /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_32 /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 | /*
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/Internals/machOLoader.swift:136:9: error: cannot convert value of type 'UnsafePointer<mach_header_64>' to expected argument type 'UnsafePointer<mach_header>'
134 | guard
135 | let sectionRawPtr = getsectiondata(
136 | headerPtr,
| |- error: cannot convert value of type 'UnsafePointer<mach_header_64>' to expected argument type 'UnsafePointer<mach_header>'
| `- note: arguments to generic parameter 'Pointee' ('mach_header_64' and 'mach_header') are expected to be equal
137 | SEG_TEXT,
138 | "__swift5_types",
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/machOLoader.swift:167:65: error: cannot infer key path type from context; consider explicitly specifying a root type
165 | continue
166 | }
167 | let metadataClosure = contextDescriptor.resolveValue(for: \.metadataAccessFunction)
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
168 | let metadata = metadataClosure(0xFF)
169 | guard
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Internals/machOLoader.swift:205:9: error: cannot convert value of type 'UnsafePointer<mach_header_64>' to expected argument type 'UnsafePointer<mach_header>'
203 | guard
204 | let sectionRawPtr = getsectiondata(
205 | headerPtr,
| |- error: cannot convert value of type 'UnsafePointer<mach_header_64>' to expected argument type 'UnsafePointer<mach_header>'
| `- note: arguments to generic parameter 'Pointee' ('mach_header_64' and 'mach_header') are expected to be equal
206 | SEG_TEXT,
207 | "__swift5_types",
SwiftEmitModule normal arm64_32 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.
SwiftCompile normal arm64_32 (in target 'StorybookKit' from project 'Storybook')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/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
SwiftCompile normal arm64_32 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_32 /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_32 /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_32 /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_32 /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_32 Compiling\ BookPreview+AppKit.swift,\ BookPreview.swift,\ BookProvider.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 (in target 'StorybookKit' from project 'Storybook')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview+AppKit.swift (in target 'StorybookKit' from project 'Storybook')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile BookPreview+AppKit.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview.swift (in target 'StorybookKit' from project 'Storybook')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile BookPreview.swift
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookProvider.swift (in target 'StorybookKit' from project 'Storybook')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile BookProvider.swift
/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/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/Primitives/BookPreview.swift:163:40: error: 'defaultLow' is unavailable in watchOS
161 |
162 | element.translatesAutoresizingMaskIntoConstraints = false
163 | element.setContentHuggingPriority(.defaultLow, for: .horizontal)
| `- error: 'defaultLow' is unavailable in watchOS
164 | element.setContentHuggingPriority(.defaultLow, for: .vertical)
165 |
UIKit.UILayoutPriority.defaultLow:3:21: note: 'defaultLow' has been explicitly marked unavailable here
1 | struct UILayoutPriority {
2 | @available(watchOS, unavailable)
3 | public static var defaultLow: UILayoutPriority { get }}
| `- note: 'defaultLow' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview.swift:164:40: error: 'defaultLow' is unavailable in watchOS
162 | element.translatesAutoresizingMaskIntoConstraints = false
163 | element.setContentHuggingPriority(.defaultLow, for: .horizontal)
164 | element.setContentHuggingPriority(.defaultLow, for: .vertical)
| `- error: 'defaultLow' is unavailable in watchOS
165 |
166 | addSubview(element)
UIKit.UILayoutPriority.defaultLow:3:21: note: 'defaultLow' has been explicitly marked unavailable here
1 | struct UILayoutPriority {
2 | @available(watchOS, unavailable)
3 | public static var defaultLow: UILayoutPriority { get }}
| `- note: 'defaultLow' has been explicitly marked unavailable here
4 |
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview.swift:168:23: error: 'NSLayoutConstraint' is unavailable in watchOS
166 | addSubview(element)
167 |
168 | var constraints: [NSLayoutConstraint] = []
| `- error: 'NSLayoutConstraint' is unavailable in watchOS
169 |
170 | if let maxWidth = frameConstraint.maxWidth {
/Applications/Xcode-27.0.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h:126:12: note: 'NSLayoutConstraint' has been explicitly marked unavailable here
124 |
125 | NSLAYOUTCONSTRAINT_EXTERN API_AVAILABLE(macos(10.7), ios(6.0), tvos(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
126 | @interface NSLayoutConstraint : NSObject
| `- note: 'NSLayoutConstraint' has been explicitly marked unavailable here
127 |
128 | /* Create an array of constraints using an ASCII-art-like visual format string. The values of the `metrics` dictionary should be NSNumber (or some other type that responds to -doubleValue and returns a double).
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview.swift:173:35: error: binary operator '+' cannot be applied to operands of type 'UILayoutPriority' and 'Int'
171 | if (maxWidth == .infinity) || (maxWidth == .greatestFiniteMagnitude) {
172 | let c = element.widthAnchor.constraint(equalToConstant: 5000)
173 | c.priority = .defaultHigh + 1
| `- error: binary operator '+' cannot be applied to operands of type 'UILayoutPriority' and 'Int'
174 | constraints.append(
175 | c
/Users/admin/builder/spi-builder-workspace/Sources/StorybookKit/Primitives/BookPreview.swift:188:35: error: binary operator '+' cannot be applied to operands of type 'UILayoutPriority' and 'Int'
186 | if (maxHeight == .infinity) || (maxHeight == .greatestFiniteMagnitude) {
187 | let c = element.heightAnchor.constraint(equalToConstant: 5000)
188 | c.priority = .defaultHigh + 1
| `- error: binary operator '+' cannot be applied to operands of type 'UILayoutPriority' and 'Int'
189 | constraints.append(
190 | c
SwiftCompile normal arm64_32 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_32 /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_32 /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_32 /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_32 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')
/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_32 /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_32 /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_32 /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
SwiftCompile normal arm64_32 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_32 /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_32 /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_32 /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);
SwiftCompile normal arm64_32 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_32 /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_32 /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_32 /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
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
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-1.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
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:06:31.708 xcodebuild[857:4795] [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