Build Information
Failed to build Unscreenshottable, reference 1.1.1 (cd8612), with Swift 6.4 for watchOS using Xcode 27.0 on 20 Sep 2026 20:52:10 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 Unscreenshottable -destination generic/platform=watchOSBuild Log
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ Unscreenshottable (in target 'Unscreenshottable' from project 'Unscreenshottable')
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:35: error: 'UITextField' is unavailable in watchOS
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- error: 'UITextField' is unavailable in watchOS
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:1:43: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
| | `- error: 'UITextField' is unavailable in watchOS
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:3:45: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
| | `- error: 'UITextField' is unavailable in watchOS
|4 | _textField.projectedValue
|5 | }
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:38: error: 'UIView' is unavailable in watchOS
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- error: 'UIView' is unavailable in watchOS
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:2:24: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 1 | private var __secureCanvas = SwiftUICore.State._makeStorage(({
| 2 | let value: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
| 3 | return value
| 4 | }))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:8:27: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxN1Vuc2NyZWVuc2hvdHRhYmxlMTNQcm90ZWN0ZWRWaWV3VjEyc2VjdXJlQ2FudmFzMzNfMTVFQkU4OTA5ODkwNkYyOEJFOEIwQzA1MUU4M0JERTZMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _secureCanvas: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| 8 | SwiftUICore.State<UIView?>(initialValue: nil)
| | `- error: 'UIView' is unavailable in watchOS
| 9 | })
|10 |
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:12:47: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|10 |
|11 | @SwiftUICore._StateProjectedValue
|12 | private var $secureCanvas = SwiftUICore.State<UIView?>(initialValue: nil).projectedValue
| | `- error: 'UIView' is unavailable in watchOS
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:16:20: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
|15 | private static var $s17Unscreenshottable13ProtectedViewV12secureCanvas33_15EBE89098906F28BE8B0C051E83BDE6LL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
|17 | return x
|18 | }()))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:31:43: error: cannot find type 'UIHostingController' in scope
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- error: cannot find type 'UIHostingController' in scope
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:1:51: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
| | `- error: cannot find type 'UIHostingController' in scope
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:3:53: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
| | `- error: cannot find type 'UIHostingController' in scope
|4 | _hostingController.projectedValue
|5 | }
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:30: error: cannot find type 'Context' in scope
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
65 | hostingController.view
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:42: error: 'UIView' is unavailable in watchOS
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: 'UIView' is unavailable in watchOS
65 | hostingController.view
66 | }
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:68:50: error: cannot find type 'Context' in scope
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:68:33: error: 'UIView' is unavailable in watchOS
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: 'UIView' is unavailable in watchOS
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:80:78: error: cannot find type 'Context' in scope
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: cannot find type 'Context' in scope
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:61: error: 'UIView' is unavailable in watchOS
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: 'UIView' is unavailable in watchOS
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:27:38: error: cannot find type 'UIViewRepresentable' in scope
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:107:27: error: 'UIView' is unavailable in watchOS
105 |
106 | private extension UIView {
107 | func overlay(subview: UIView) {
| `- error: 'UIView' is unavailable in watchOS
108 | subview.translatesAutoresizingMaskIntoConstraints = false
109 | addSubview(subview)
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:106:19: error: 'UIView' is unavailable in watchOS
104 | }
105 |
106 | private extension UIView {
| `- error: 'UIView' is unavailable in watchOS
107 | func overlay(subview: UIView) {
108 | subview.translatesAutoresizingMaskIntoConstraints = false
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:123:21: error: 'UIView' is unavailable in watchOS
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
122 | /// - Warning: This may stop working if Apple changes the view hierarchy in future iOS versions.
123 | var canvasView: UIView? {
| `- error: 'UIView' is unavailable in watchOS
124 | subviews.first {
125 | // iOS 15... iOS 14...
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:119:11: error: 'UITextField' is unavailable in watchOS
117 | }
118 |
119 | extension UITextField {
| `- error: 'UITextField' is unavailable in watchOS
120 | /// Extracts a canvas view from a secure `TextField`'s view hierarchy.
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift -target arm64_32-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable-dependencies-2.json -enable-objc-interop -sdk /Applications/Xcode-27.0.0-Release.Candidate.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-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.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 5 -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 -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Unscreenshottable -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable.abi.json
SwiftCompile normal arm64_32 (in target 'Unscreenshottable' from project 'Unscreenshottable')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64_32 Compiling\ ProtectedView.swift /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift (in target 'Unscreenshottable' from project 'Unscreenshottable')
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:35: error: 'UITextField' is unavailable in watchOS
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- error: 'UITextField' is unavailable in watchOS
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:1:43: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
| | `- error: 'UITextField' is unavailable in watchOS
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:3:45: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
| | `- error: 'UITextField' is unavailable in watchOS
|4 | _textField.projectedValue
|5 | }
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:38: error: 'UIView' is unavailable in watchOS
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- error: 'UIView' is unavailable in watchOS
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:2:24: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 1 | private var __secureCanvas = SwiftUICore.State._makeStorage(({
| 2 | let value: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
| 3 | return value
| 4 | }))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:8:27: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxN1Vuc2NyZWVuc2hvdHRhYmxlMTNQcm90ZWN0ZWRWaWV3VjEyc2VjdXJlQ2FudmFzMzNfMTVFQkU4OTA5ODkwNkYyOEJFOEIwQzA1MUU4M0JERTZMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _secureCanvas: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| 8 | SwiftUICore.State<UIView?>(initialValue: nil)
| | `- error: 'UIView' is unavailable in watchOS
| 9 | })
|10 |
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:12:47: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|10 |
|11 | @SwiftUICore._StateProjectedValue
|12 | private var $secureCanvas = SwiftUICore.State<UIView?>(initialValue: nil).projectedValue
| | `- error: 'UIView' is unavailable in watchOS
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:16:20: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
|15 | private static var $s17Unscreenshottable13ProtectedViewV12secureCanvas33_15EBE89098906F28BE8B0C051E83BDE6LL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
|17 | return x
|18 | }()))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:31:43: error: cannot find type 'UIHostingController' in scope
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- error: cannot find type 'UIHostingController' in scope
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:1:51: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
| | `- error: cannot find type 'UIHostingController' in scope
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:3:53: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
| | `- error: cannot find type 'UIHostingController' in scope
|4 | _hostingController.projectedValue
|5 | }
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:30: error: cannot find type 'Context' in scope
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
65 | hostingController.view
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:42: error: 'UIView' is unavailable in watchOS
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: 'UIView' is unavailable in watchOS
65 | hostingController.view
66 | }
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:68:50: error: cannot find type 'Context' in scope
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:68:33: error: 'UIView' is unavailable in watchOS
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: 'UIView' is unavailable in watchOS
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:80:78: error: cannot find type 'Context' in scope
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: cannot find type 'Context' in scope
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:61: error: 'UIView' is unavailable in watchOS
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: 'UIView' is unavailable in watchOS
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:27:38: error: cannot find type 'UIViewRepresentable' in scope
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:107:27: error: 'UIView' is unavailable in watchOS
105 |
106 | private extension UIView {
107 | func overlay(subview: UIView) {
| `- error: 'UIView' is unavailable in watchOS
108 | subview.translatesAutoresizingMaskIntoConstraints = false
109 | addSubview(subview)
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:106:19: error: 'UIView' is unavailable in watchOS
104 | }
105 |
106 | private extension UIView {
| `- error: 'UIView' is unavailable in watchOS
107 | func overlay(subview: UIView) {
108 | subview.translatesAutoresizingMaskIntoConstraints = false
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:123:21: error: 'UIView' is unavailable in watchOS
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
122 | /// - Warning: This may stop working if Apple changes the view hierarchy in future iOS versions.
123 | var canvasView: UIView? {
| `- error: 'UIView' is unavailable in watchOS
124 | subviews.first {
125 | // iOS 15... iOS 14...
/Applications/Xcode-27.0.0-Release.Candidate.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 /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift (in target 'Unscreenshottable' from project 'Unscreenshottable')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ProtectedView.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-20 16:51:59.626 xcodebuild[661:3918] [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 'Unscreenshottable' from project 'Unscreenshottable')
SwiftEmitModule normal arm64 Emitting\ module\ for\ Unscreenshottable (in target 'Unscreenshottable' from project 'Unscreenshottable')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ Unscreenshottable (in target 'Unscreenshottable' from project 'Unscreenshottable')
SwiftCompile normal arm64_32 (in target 'Unscreenshottable' from project 'Unscreenshottable')
Building workspace Unscreenshottable with scheme Unscreenshottable
(5 failures)
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
Unscreenshottable: /Users/admin/builder/spi-builder-workspace
resolved source packages: Unscreenshottable
2026-09-20 16:52:06.767 xcodebuild[825:4623] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "Unscreenshottable",
"name" : "Unscreenshottable",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
}
],
"products" : [
{
"name" : "Unscreenshottable",
"targets" : [
"Unscreenshottable"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "UnscreenshottableTests",
"module_type" : "SwiftTarget",
"name" : "UnscreenshottableTests",
"path" : "Tests/UnscreenshottableTests",
"sources" : [
"UnscreenshottableTests.swift"
],
"target_dependencies" : [
"Unscreenshottable"
],
"type" : "test"
},
{
"c99name" : "Unscreenshottable",
"module_type" : "SwiftTarget",
"name" : "Unscreenshottable",
"path" : "Sources/Unscreenshottable",
"product_memberships" : [
"Unscreenshottable"
],
"sources" : [
"ProtectedView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
{
"workspace" : {
"name" : "Unscreenshottable",
"schemes" : [
"Unscreenshottable"
]
}
}
2026-09-20 16:52:08.033 xcodebuild[833:4689] [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 Unscreenshottable -destination generic/platform=watchOS
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme Unscreenshottable -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
Unscreenshottable: /Users/admin/builder/spi-builder-workspace
ComputePackagePrebuildTargetDependencyGraph
Prepare packages
CreateBuildRequest
SendProjectDescription
CreateBuildOperation
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
Target 'Unscreenshottable-product' in project 'Unscreenshottable'
➜ Explicit dependency on target 'Unscreenshottable' in project 'Unscreenshottable'
Target 'Unscreenshottable' in project 'Unscreenshottable' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache
SwiftDriver Unscreenshottable normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Unscreenshottable' from project 'Unscreenshottable')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name Unscreenshottable -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64-apple-watchos9.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 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.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-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable-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/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable-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/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-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/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver Unscreenshottable normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'Unscreenshottable' from project 'Unscreenshottable')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftDriver -- /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -parse-as-library -module-name Unscreenshottable -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -plugin-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins/testing -enable-experimental-feature DebugDescriptionMacro -sdk /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk -target arm64_32-apple-watchos9.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 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.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-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable-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/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable-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/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-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/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftEmitModule normal arm64 Emitting\ module\ for\ Unscreenshottable (in target 'Unscreenshottable' from project 'Unscreenshottable')
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:35: error: 'UITextField' is unavailable in watchOS
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- error: 'UITextField' is unavailable in watchOS
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:1:43: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
| | `- error: 'UITextField' is unavailable in watchOS
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:3:45: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
| | `- error: 'UITextField' is unavailable in watchOS
|4 | _textField.projectedValue
|5 | }
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:38: error: 'UIView' is unavailable in watchOS
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- error: 'UIView' is unavailable in watchOS
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:2:24: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 1 | private var __secureCanvas = SwiftUICore.State._makeStorage(({
| 2 | let value: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
| 3 | return value
| 4 | }))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:8:27: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxN1Vuc2NyZWVuc2hvdHRhYmxlMTNQcm90ZWN0ZWRWaWV3VjEyc2VjdXJlQ2FudmFzMzNfMTVFQkU4OTA5ODkwNkYyOEJFOEIwQzA1MUU4M0JERTZMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _secureCanvas: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| 8 | SwiftUICore.State<UIView?>(initialValue: nil)
| | `- error: 'UIView' is unavailable in watchOS
| 9 | })
|10 |
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:12:47: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|10 |
|11 | @SwiftUICore._StateProjectedValue
|12 | private var $secureCanvas = SwiftUICore.State<UIView?>(initialValue: nil).projectedValue
| | `- error: 'UIView' is unavailable in watchOS
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:16:20: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
|15 | private static var $s17Unscreenshottable13ProtectedViewV12secureCanvas33_15EBE89098906F28BE8B0C051E83BDE6LL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
|17 | return x
|18 | }()))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:31:43: error: cannot find type 'UIHostingController' in scope
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- error: cannot find type 'UIHostingController' in scope
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:1:51: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
| | `- error: cannot find type 'UIHostingController' in scope
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:3:53: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
| | `- error: cannot find type 'UIHostingController' in scope
|4 | _hostingController.projectedValue
|5 | }
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:30: error: cannot find type 'Context' in scope
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
65 | hostingController.view
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:42: error: 'UIView' is unavailable in watchOS
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: 'UIView' is unavailable in watchOS
65 | hostingController.view
66 | }
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:68:50: error: cannot find type 'Context' in scope
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:68:33: error: 'UIView' is unavailable in watchOS
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: 'UIView' is unavailable in watchOS
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:80:78: error: cannot find type 'Context' in scope
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: cannot find type 'Context' in scope
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:61: error: 'UIView' is unavailable in watchOS
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: 'UIView' is unavailable in watchOS
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:27:38: error: cannot find type 'UIViewRepresentable' in scope
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:107:27: error: 'UIView' is unavailable in watchOS
105 |
106 | private extension UIView {
107 | func overlay(subview: UIView) {
| `- error: 'UIView' is unavailable in watchOS
108 | subview.translatesAutoresizingMaskIntoConstraints = false
109 | addSubview(subview)
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:106:19: error: 'UIView' is unavailable in watchOS
104 | }
105 |
106 | private extension UIView {
| `- error: 'UIView' is unavailable in watchOS
107 | func overlay(subview: UIView) {
108 | subview.translatesAutoresizingMaskIntoConstraints = false
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:123:21: error: 'UIView' is unavailable in watchOS
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
122 | /// - Warning: This may stop working if Apple changes the view hierarchy in future iOS versions.
123 | var canvasView: UIView? {
| `- error: 'UIView' is unavailable in watchOS
124 | subviews.first {
125 | // iOS 15... iOS 14...
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:119:11: error: 'UITextField' is unavailable in watchOS
117 | }
118 |
119 | extension UITextField {
| `- error: 'UITextField' is unavailable in watchOS
120 | /// Extracts a canvas view from a secure `TextField`'s view hierarchy.
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
Failed frontend command:
SwiftCompile normal arm64 (in target 'Unscreenshottable' from project 'Unscreenshottable')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift -target arm64-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable-dependencies-1.json -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode-27.0.0-Release.Candidate.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-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.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 5 -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 -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Unscreenshottable -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable_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-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64/Unscreenshottable.abi.json
SwiftCompile normal arm64 Compiling\ ProtectedView.swift /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift (in target 'Unscreenshottable' from project 'Unscreenshottable')
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:35: error: 'UITextField' is unavailable in watchOS
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- error: 'UITextField' is unavailable in watchOS
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:1:43: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
| | `- error: 'UITextField' is unavailable in watchOS
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:3:45: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
| | `- error: 'UITextField' is unavailable in watchOS
|4 | _textField.projectedValue
|5 | }
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:38: error: 'UIView' is unavailable in watchOS
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- error: 'UIView' is unavailable in watchOS
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:2:24: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 1 | private var __secureCanvas = SwiftUICore.State._makeStorage(({
| 2 | let value: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
| 3 | return value
| 4 | }))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:8:27: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxN1Vuc2NyZWVuc2hvdHRhYmxlMTNQcm90ZWN0ZWRWaWV3VjEyc2VjdXJlQ2FudmFzMzNfMTVFQkU4OTA5ODkwNkYyOEJFOEIwQzA1MUU4M0JERTZMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _secureCanvas: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| 8 | SwiftUICore.State<UIView?>(initialValue: nil)
| | `- error: 'UIView' is unavailable in watchOS
| 9 | })
|10 |
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:12:47: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|10 |
|11 | @SwiftUICore._StateProjectedValue
|12 | private var $secureCanvas = SwiftUICore.State<UIView?>(initialValue: nil).projectedValue
| | `- error: 'UIView' is unavailable in watchOS
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:16:20: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
|15 | private static var $s17Unscreenshottable13ProtectedViewV12secureCanvas33_15EBE89098906F28BE8B0C051E83BDE6LL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
|17 | return x
|18 | }()))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:31:43: error: cannot find type 'UIHostingController' in scope
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- error: cannot find type 'UIHostingController' in scope
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:1:51: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
| | `- error: cannot find type 'UIHostingController' in scope
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:3:53: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
| | `- error: cannot find type 'UIHostingController' in scope
|4 | _hostingController.projectedValue
|5 | }
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:30: error: cannot find type 'Context' in scope
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
65 | hostingController.view
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:42: error: 'UIView' is unavailable in watchOS
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: 'UIView' is unavailable in watchOS
65 | hostingController.view
66 | }
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:68:50: error: cannot find type 'Context' in scope
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift (in target 'Unscreenshottable' from project 'Unscreenshottable')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ProtectedView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:68:33: error: 'UIView' is unavailable in watchOS
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: 'UIView' is unavailable in watchOS
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:80:78: error: cannot find type 'Context' in scope
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: cannot find type 'Context' in scope
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:61: error: 'UIView' is unavailable in watchOS
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: 'UIView' is unavailable in watchOS
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:27:38: error: cannot find type 'UIViewRepresentable' in scope
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:107:27: error: 'UIView' is unavailable in watchOS
105 |
106 | private extension UIView {
107 | func overlay(subview: UIView) {
| `- error: 'UIView' is unavailable in watchOS
108 | subview.translatesAutoresizingMaskIntoConstraints = false
109 | addSubview(subview)
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:106:19: error: 'UIView' is unavailable in watchOS
104 | }
105 |
106 | private extension UIView {
| `- error: 'UIView' is unavailable in watchOS
107 | func overlay(subview: UIView) {
108 | subview.translatesAutoresizingMaskIntoConstraints = false
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:123:21: error: 'UIView' is unavailable in watchOS
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
122 | /// - Warning: This may stop working if Apple changes the view hierarchy in future iOS versions.
123 | var canvasView: UIView? {
| `- error: 'UIView' is unavailable in watchOS
124 | subviews.first {
125 | // iOS 15... iOS 14...
/Applications/Xcode-27.0.0-Release.Candidate.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.
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ Unscreenshottable (in target 'Unscreenshottable' from project 'Unscreenshottable')
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:35: error: 'UITextField' is unavailable in watchOS
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- error: 'UITextField' is unavailable in watchOS
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:1:43: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
| | `- error: 'UITextField' is unavailable in watchOS
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:3:45: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
| | `- error: 'UITextField' is unavailable in watchOS
|4 | _textField.projectedValue
|5 | }
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:38: error: 'UIView' is unavailable in watchOS
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- error: 'UIView' is unavailable in watchOS
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:2:24: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 1 | private var __secureCanvas = SwiftUICore.State._makeStorage(({
| 2 | let value: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
| 3 | return value
| 4 | }))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:8:27: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxN1Vuc2NyZWVuc2hvdHRhYmxlMTNQcm90ZWN0ZWRWaWV3VjEyc2VjdXJlQ2FudmFzMzNfMTVFQkU4OTA5ODkwNkYyOEJFOEIwQzA1MUU4M0JERTZMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _secureCanvas: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| 8 | SwiftUICore.State<UIView?>(initialValue: nil)
| | `- error: 'UIView' is unavailable in watchOS
| 9 | })
|10 |
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:12:47: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|10 |
|11 | @SwiftUICore._StateProjectedValue
|12 | private var $secureCanvas = SwiftUICore.State<UIView?>(initialValue: nil).projectedValue
| | `- error: 'UIView' is unavailable in watchOS
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:16:20: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
|15 | private static var $s17Unscreenshottable13ProtectedViewV12secureCanvas33_15EBE89098906F28BE8B0C051E83BDE6LL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
|17 | return x
|18 | }()))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:31:43: error: cannot find type 'UIHostingController' in scope
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- error: cannot find type 'UIHostingController' in scope
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:1:51: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
| | `- error: cannot find type 'UIHostingController' in scope
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:3:53: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
| | `- error: cannot find type 'UIHostingController' in scope
|4 | _hostingController.projectedValue
|5 | }
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:30: error: cannot find type 'Context' in scope
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
65 | hostingController.view
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:42: error: 'UIView' is unavailable in watchOS
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: 'UIView' is unavailable in watchOS
65 | hostingController.view
66 | }
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:68:50: error: cannot find type 'Context' in scope
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:68:33: error: 'UIView' is unavailable in watchOS
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: 'UIView' is unavailable in watchOS
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:80:78: error: cannot find type 'Context' in scope
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: cannot find type 'Context' in scope
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:61: error: 'UIView' is unavailable in watchOS
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: 'UIView' is unavailable in watchOS
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:27:38: error: cannot find type 'UIViewRepresentable' in scope
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:107:27: error: 'UIView' is unavailable in watchOS
105 |
106 | private extension UIView {
107 | func overlay(subview: UIView) {
| `- error: 'UIView' is unavailable in watchOS
108 | subview.translatesAutoresizingMaskIntoConstraints = false
109 | addSubview(subview)
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:106:19: error: 'UIView' is unavailable in watchOS
104 | }
105 |
106 | private extension UIView {
| `- error: 'UIView' is unavailable in watchOS
107 | func overlay(subview: UIView) {
108 | subview.translatesAutoresizingMaskIntoConstraints = false
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:123:21: error: 'UIView' is unavailable in watchOS
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
122 | /// - Warning: This may stop working if Apple changes the view hierarchy in future iOS versions.
123 | var canvasView: UIView? {
| `- error: 'UIView' is unavailable in watchOS
124 | subviews.first {
125 | // iOS 15... iOS 14...
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:119:11: error: 'UITextField' is unavailable in watchOS
117 | }
118 |
119 | extension UITextField {
| `- error: 'UITextField' is unavailable in watchOS
120 | /// Extracts a canvas view from a secure `TextField`'s view hierarchy.
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
Failed frontend command:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift -target arm64_32-apple-watchos9.0 -disable-cross-import-overlay-search -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libFoundationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#FoundationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libObservationMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#ObservationMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libPreviewsMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#PreviewsMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/bin/swift-plugin-server\#SwiftMacros -load-resolved-plugin /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib/swift/host/plugins/libSwiftUIMacros.dylib\#/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable-dependencies-2.json -enable-objc-interop -sdk /Applications/Xcode-27.0.0-Release.Candidate.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-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -F /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-27.0.0-Release.Candidate.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 5 -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 -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Unscreenshottable -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable_const_extract_protocols.json -disable-clang-spi -clang-target arm64_32-apple-watchos27.0 -target-sdk-version 27.0 -target-sdk-name watchos27.0 -in-process-plugin-server-path /Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/Unscreenshottable.build/Debug-watchos/Unscreenshottable-t.build/Objects-normal/arm64_32/Unscreenshottable.abi.json
SwiftCompile normal arm64_32 (in target 'Unscreenshottable' from project 'Unscreenshottable')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64_32 Compiling\ ProtectedView.swift /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift (in target 'Unscreenshottable' from project 'Unscreenshottable')
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:35: error: 'UITextField' is unavailable in watchOS
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- error: 'UITextField' is unavailable in watchOS
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:1:43: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
| | `- error: 'UITextField' is unavailable in watchOS
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
macro expansion @State:3:45: error: 'UITextField' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:29:46: note: expanded code originates here
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
| `- note: in expansion of macro 'State' on property 'textField' here
+--- macro expansion @State ----------------------------------------
|1 | private var _textField: SwiftUICore.State<UITextField>
|2 |
|3 | private var $textField: SwiftUICore.Binding<UITextField> {
| | `- error: 'UITextField' is unavailable in watchOS
|4 | _textField.projectedValue
|5 | }
+-------------------------------------------------------------------
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextField.h:53:12: note: 'UITextField' has been explicitly marked unavailable here
51 |
52 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
53 | @interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UITextField' has been explicitly marked unavailable here
54 |
55 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:38: error: 'UIView' is unavailable in watchOS
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- error: 'UIView' is unavailable in watchOS
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:2:24: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 1 | private var __secureCanvas = SwiftUICore.State._makeStorage(({
| 2 | let value: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
| 3 | return value
| 4 | }))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:8:27: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
| 6 | @SwiftUICore._StatePropertyWrapperStorage(initialValue: "JHMxN1Vuc2NyZWVuc2hvdHRhYmxlMTNQcm90ZWN0ZWRWaWV3VjEyc2VjdXJlQ2FudmFzMzNfMTVFQkU4OTA5ODkwNkYyOEJFOEIwQzA1MUU4M0JERTZMTDVTdGF0ZWZNcF8yMF9pbml0aWFsU3RvcmVkVmFsdWVfZk11Xw==")
| 7 | private var _secureCanvas: SwiftUICore.State<_>! = SwiftUICore._stateNil(of: {
| 8 | SwiftUICore.State<UIView?>(initialValue: nil)
| | `- error: 'UIView' is unavailable in watchOS
| 9 | })
|10 |
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:12:47: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|10 |
|11 | @SwiftUICore._StateProjectedValue
|12 | private var $secureCanvas = SwiftUICore.State<UIView?>(initialValue: nil).projectedValue
| | `- error: 'UIView' is unavailable in watchOS
|13 |
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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.
macro expansion @State:16:20: error: 'UIView' is unavailable in watchOS
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:30:45: note: expanded code originates here
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
| `- note: in expansion of macro 'State' on property 'secureCanvas' here
+--- macro expansion @State ----------------------------------------
|14 | @SwiftUICore._StateInitialStoredValue("U3dpZnRVSUNvcmUuU3RhdGUuX21ha2VTdG9yYWdlKGluaXRpYWxWYWx1ZTogeyBsZXQgeDogVUlWaWV3PyA9IG5pbApyZXR1cm4geCB9KCkp")
|15 | private static var $s17Unscreenshottable13ProtectedViewV12secureCanvas33_15EBE89098906F28BE8B0C051E83BDE6LL5StatefMp_20_initialStoredValue_fMu_ = (SwiftUICore.State._makeStorage(initialValue: {
|16 | let x: UIView? = nil
| | `- error: 'UIView' is unavailable in watchOS
|17 | return x
|18 | }()))
+-------------------------------------------------------------------
31 | @State private var hostingController: UIHostingController<Content>
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:31:43: error: cannot find type 'UIHostingController' in scope
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- error: cannot find type 'UIHostingController' in scope
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:1:51: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
| | `- error: cannot find type 'UIHostingController' in scope
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
macro expansion @State:3:53: error: cannot find type 'UIHostingController' in scope
`- /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:31:71: note: expanded code originates here
29 | @State private var textField: UITextField
30 | @State private var secureCanvas: UIView?
31 | @State private var hostingController: UIHostingController<Content>
| `- note: in expansion of macro 'State' on property 'hostingController' here
+--- macro expansion @State ----------------------------------------
|1 | private var _hostingController: SwiftUICore.State<UIHostingController<Content>>
|2 |
|3 | private var $hostingController: SwiftUICore.Binding<UIHostingController<Content>> {
| | `- error: cannot find type 'UIHostingController' in scope
|4 | _hostingController.projectedValue
|5 | }
+-------------------------------------------------------------------
32 | // Just observing size classes allows updateUIView and sizeThatFits to be called when the screen is rotated
33 | @Environment(\.horizontalSizeClass) private var horizontalSizeClass
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:30: error: cannot find type 'Context' in scope
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: cannot find type 'Context' in scope
65 | hostingController.view
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:64:42: error: 'UIView' is unavailable in watchOS
62 | }
63 |
64 | func makeUIView(context: Context) -> UIView {
| `- error: 'UIView' is unavailable in watchOS
65 | hostingController.view
66 | }
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:68:50: error: cannot find type 'Context' in scope
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: cannot find type 'Context' in scope
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:68:33: error: 'UIView' is unavailable in watchOS
66 | }
67 |
68 | func updateUIView(_ uiView: UIView, context: Context) {
| `- error: 'UIView' is unavailable in watchOS
69 | guard options.contains(.screenshots), secureCanvas == nil else { return }
70 | DispatchQueue.main.async {
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:80:78: error: cannot find type 'Context' in scope
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: cannot find type 'Context' in scope
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:80:61: error: 'UIView' is unavailable in watchOS
78 |
79 | @available(iOS 16.0, *)
80 | func sizeThatFits(_ proposal: ProposedViewSize, uiView: UIView, context: Context) -> CGSize? {
| `- error: 'UIView' is unavailable in watchOS
81 | let size = CGSize(width: proposal.width ?? .infinity, height: proposal.height ?? .infinity)
82 | hostingController.view.frame.size = size
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:27:38: error: cannot find type 'UIViewRepresentable' in scope
25 | }
26 |
27 | struct ProtectedView<Content: View>: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
28 | let options: ProtectionOptions
29 | @State private var textField: UITextField
/Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift:107:27: error: 'UIView' is unavailable in watchOS
105 |
106 | private extension UIView {
107 | func overlay(subview: UIView) {
| `- error: 'UIView' is unavailable in watchOS
108 | subview.translatesAutoresizingMaskIntoConstraints = false
109 | addSubview(subview)
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:106:19: error: 'UIView' is unavailable in watchOS
104 | }
105 |
106 | private extension UIView {
| `- error: 'UIView' is unavailable in watchOS
107 | func overlay(subview: UIView) {
108 | subview.translatesAutoresizingMaskIntoConstraints = false
/Applications/Xcode-27.0.0-Release.Candidate.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/Unscreenshottable/ProtectedView.swift:123:21: error: 'UIView' is unavailable in watchOS
121 | /// The canvas view is a internal view that hides its subviews during a screenshot.
122 | /// - Warning: This may stop working if Apple changes the view hierarchy in future iOS versions.
123 | var canvasView: UIView? {
| `- error: 'UIView' is unavailable in watchOS
124 | subviews.first {
125 | // iOS 15... iOS 14...
/Applications/Xcode-27.0.0-Release.Candidate.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 /Users/admin/builder/spi-builder-workspace/Sources/Unscreenshottable/ProtectedView.swift (in target 'Unscreenshottable' from project 'Unscreenshottable')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ProtectedView.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
2026-09-20 16:52:09.022 xcodebuild[834:4713] [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 'Unscreenshottable' from project 'Unscreenshottable')
SwiftEmitModule normal arm64 Emitting\ module\ for\ Unscreenshottable (in target 'Unscreenshottable' from project 'Unscreenshottable')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ Unscreenshottable (in target 'Unscreenshottable' from project 'Unscreenshottable')
SwiftCompile normal arm64_32 (in target 'Unscreenshottable' from project 'Unscreenshottable')
Building workspace Unscreenshottable with scheme Unscreenshottable
(5 failures)
BUILD FAILURE 6.4 watchOS