Build Information
Failed to build NotificationToast, reference 2.1.0 (058eb8), with Swift 6.4 for watchOS using Xcode 27.0 on 21 Sep 2026 19:12:03 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 NotificationToast -destination generic/platform=watchOSBuild Log
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:280:24: error: 'UIWindow' is unavailable in watchOS
278 |
279 | @available(iOSApplicationExtension, unavailable)
280 | class ToastViewWindow: UIWindow {
| `- error: 'UIWindow' is unavailable in watchOS
281 | init(toastView: ToastView, originWindowScene: UIWindowScene?) {
282 | if let originWindowScene {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindow : UIView
| `- note: 'UIWindow' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:139:33: error: 'UIImageView' is unavailable in watchOS
137 |
138 | if let icon = icon {
139 | let iconImageView = UIImageView()
| `- error: 'UIImageView' is unavailable in watchOS
140 | iconImageView.contentMode = .scaleAspectFit
141 | iconImageView.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/UIImageView.h:21:12: note: 'UIImageView' has been explicitly marked unavailable here
19 |
20 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UIImageView : UIView
| `- note: 'UIImageView' has been explicitly marked unavailable here
22 |
23 | - (instancetype)initWithImage:(nullable UIImage *)image;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:139:33: error: 'init()' is unavailable in watchOS
137 |
138 | if let icon = icon {
139 | let iconImageView = UIImageView()
| `- error: 'init()' is unavailable in watchOS
140 | iconImageView.contentMode = .scaleAspectFit
141 | iconImageView.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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:142:13: error: 'NSLayoutConstraint' is unavailable in watchOS
140 | iconImageView.contentMode = .scaleAspectFit
141 | iconImageView.translatesAutoresizingMaskIntoConstraints = false
142 | NSLayoutConstraint.activate([
| `- error: 'NSLayoutConstraint' is unavailable in watchOS
143 | iconImageView.widthAnchor.constraint(equalToConstant: 28),
144 | iconImageView.heightAnchor.constraint(equalToConstant: 28)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h:126:12: note: 'NSLayoutConstraint' has been explicitly marked unavailable here
124 |
125 | NSLAYOUTCONSTRAINT_EXTERN API_AVAILABLE(macos(10.7), ios(6.0), tvos(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
126 | @interface NSLayoutConstraint : NSObject
| `- note: 'NSLayoutConstraint' has been explicitly marked unavailable here
127 |
128 | /* Create an array of constraints using an ASCII-art-like visual format string. The values of the `metrics` dictionary should be NSNumber (or some other type that responds to -doubleValue and returns a double).
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:146:40: error: 'label' is unavailable in watchOS
144 | iconImageView.heightAnchor.constraint(equalToConstant: 28)
145 | ])
146 | iconImageView.tintColor = .label
| `- error: 'label' is unavailable in watchOS
147 | iconImageView.image = icon
148 | hStack.addArrangedSubview(iconImageView)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:171:49: note: 'label' has been explicitly marked unavailable here
169 | /* Foreground colors for static text and related elements.
170 | */
171 | @property (class, nonatomic, readonly) UIColor *labelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'label' has been explicitly marked unavailable here
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:152:33: error: 'UILabel' is unavailable in watchOS
150 |
151 | if let subtitle = subtitle {
152 | let subtitleLabel = UILabel()
| `- error: 'UILabel' is unavailable in watchOS
153 | subtitleLabel.textColor = .secondaryLabel
154 | subtitleLabel.numberOfLines = 0
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:152:33: error: 'init()' is unavailable in watchOS
150 |
151 | if let subtitle = subtitle {
152 | let subtitleLabel = UILabel()
| `- error: 'init()' is unavailable in watchOS
153 | subtitleLabel.textColor = .secondaryLabel
154 | subtitleLabel.numberOfLines = 0
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:153:40: error: 'secondaryLabel' is unavailable in watchOS
151 | if let subtitle = subtitle {
152 | let subtitleLabel = UILabel()
153 | subtitleLabel.textColor = .secondaryLabel
| `- error: 'secondaryLabel' is unavailable in watchOS
154 | subtitleLabel.numberOfLines = 0
155 | subtitleLabel.font = subtitleFont
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:172:49: note: 'secondaryLabel' has been explicitly marked unavailable here
170 | */
171 | @property (class, nonatomic, readonly) UIColor *labelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'secondaryLabel' has been explicitly marked unavailable here
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
174 | @property (class, nonatomic, readonly) UIColor *quaternaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:161:36: error: 'UITapGestureRecognizer' is unavailable in watchOS
159 |
160 | self.onTap = onTap
161 | let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didTap))
| `- error: 'UITapGestureRecognizer' is unavailable in watchOS
162 | addGestureRecognizer(tapGestureRecognizer)
163 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITapGestureRecognizer.h:23:12: note: 'UITapGestureRecognizer' has been explicitly marked unavailable here
21 |
22 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
23 | @interface UITapGestureRecognizer : UIGestureRecognizer
| `- note: 'UITapGestureRecognizer' has been explicitly marked unavailable here
24 |
25 | @property (nonatomic) NSUInteger numberOfTapsRequired; // Default is 1. The number of taps required to match
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:185:13: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
183 | public func show(originWindowScene: UIWindowScene? = nil, haptic: UINotificationFeedbackGenerator.FeedbackType? = nil, onHide: (() -> Void)? = nil) {
184 | if let haptic {
185 | UINotificationFeedbackGenerator().notificationOccurred(haptic)
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
186 | }
187 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift (in target 'NotificationToast' from project 'NotificationToast')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ToastView.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ NotificationToast (in target 'NotificationToast' from project 'NotificationToast')
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:22:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
20 | iconSpacing: CGFloat = 16,
21 | position: ToastView.Position = .top,
22 | haptic: UINotificationFeedbackGenerator.FeedbackType? = nil,
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
23 | onTap: (() -> Void)? = nil
24 | ) -> some View {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:54:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
52 | var iconSpacing: CGFloat = 16
53 | var position: ToastView.Position = .top
54 | var haptic: UINotificationFeedbackGenerator.FeedbackType? = nil
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
55 | var onTap: (() -> Void)? = nil
56 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:84:6: error: 'Previewable()' is only available in watchOS 10.0 or newer
82 | @available(iOS 17.0, *)
83 | #Preview {
84 | @Previewable @State var isPresented = false
| |- error: 'Previewable()' is only available in watchOS 10.0 or newer
| `- note: add 'if #available' version check
85 |
86 | Button("Present toast") {
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:40:25: error: 'UIStackView' is unavailable in watchOS
38 | }
39 |
40 | private let hStack: UIStackView = {
| `- error: 'UIStackView' is unavailable in watchOS
41 | let stackView = UIStackView()
42 | stackView.alignment = .center
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:41:25: error: 'UIStackView' is unavailable in watchOS
39 |
40 | private let hStack: UIStackView = {
41 | let stackView = UIStackView()
| `- error: 'UIStackView' is unavailable in watchOS
42 | stackView.alignment = .center
43 | return stackView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:41:25: error: 'init()' is unavailable in watchOS
39 |
40 | private let hStack: UIStackView = {
41 | let stackView = UIStackView()
| `- error: 'init()' is unavailable in watchOS
42 | stackView.alignment = .center
43 | return stackView
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:46:30: error: 'UIStackView' is unavailable in watchOS
44 | }()
45 |
46 | private lazy var vStack: UIStackView = {
| `- error: 'UIStackView' is unavailable in watchOS
47 | let stackView = UIStackView()
48 | stackView.axis = .vertical
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:47:25: error: 'UIStackView' is unavailable in watchOS
45 |
46 | private lazy var vStack: UIStackView = {
47 | let stackView = UIStackView()
| `- error: 'UIStackView' is unavailable in watchOS
48 | stackView.axis = .vertical
49 | stackView.alignment = vStackAlignment
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:47:25: error: 'init()' is unavailable in watchOS
45 |
46 | private lazy var vStack: UIStackView = {
47 | let stackView = UIStackView()
| `- error: 'init()' is unavailable in watchOS
48 | stackView.axis = .vertical
49 | stackView.alignment = vStackAlignment
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:53:29: error: 'UILabel' is unavailable in watchOS
51 | }()
52 |
53 | private let titleLabel: UILabel = {
| `- error: 'UILabel' is unavailable in watchOS
54 | let label = UILabel()
55 | label.numberOfLines = 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:54:21: error: 'UILabel' is unavailable in watchOS
52 |
53 | private let titleLabel: UILabel = {
54 | let label = UILabel()
| `- error: 'UILabel' is unavailable in watchOS
55 | label.numberOfLines = 1
56 | label.textColor = .label
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:54:21: error: 'init()' is unavailable in watchOS
52 |
53 | private let titleLabel: UILabel = {
54 | let label = UILabel()
| `- error: 'init()' is unavailable in watchOS
55 | label.numberOfLines = 1
56 | label.textColor = .label
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
SwiftCompile normal arm64_32 (in target 'NotificationToast' from project 'NotificationToast')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64_32 Compiling\ ToastView+SwiftUI.swift /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift (in target 'NotificationToast' from project 'NotificationToast')
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:22:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
20 | iconSpacing: CGFloat = 16,
21 | position: ToastView.Position = .top,
22 | haptic: UINotificationFeedbackGenerator.FeedbackType? = nil,
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
23 | onTap: (() -> Void)? = nil
24 | ) -> some View {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:54:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
52 | var iconSpacing: CGFloat = 16
53 | var position: ToastView.Position = .top
54 | var haptic: UINotificationFeedbackGenerator.FeedbackType? = nil
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
55 | var onTap: (() -> Void)? = nil
56 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift (in target 'NotificationToast' from project 'NotificationToast')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ToastView+SwiftUI.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-21 15:11:53.273 xcodebuild[627:3877] [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 'NotificationToast' from project 'NotificationToast')
SwiftEmitModule normal arm64 Emitting\ module\ for\ NotificationToast (in target 'NotificationToast' from project 'NotificationToast')
Building workspace NotificationToast with scheme NotificationToast
(3 failures)
Command line invocation:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
Resolve Package Graph
Resolved source packages:
NotificationToast: /Users/admin/builder/spi-builder-workspace
resolved source packages: NotificationToast
2026-09-21 15:12:00.020 xcodebuild[797:4615] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.
{
"dependencies" : [
],
"manifest_display_name" : "NotificationToast",
"name" : "NotificationToast",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "NotificationToast",
"targets" : [
"NotificationToast"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "NotificationToast",
"module_type" : "SwiftTarget",
"name" : "NotificationToast",
"path" : "Sources/NotificationToast",
"product_memberships" : [
"NotificationToast"
],
"sources" : [
"ToastView+SwiftUI.swift",
"ToastView.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
{
"workspace" : {
"name" : "NotificationToast",
"schemes" : [
"NotificationToast"
]
}
}
2026-09-21 15:12:01.344 xcodebuild[805:4682] [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 NotificationToast -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 NotificationToast -destination generic/platform=watchOS
Resolve Package Graph
Resolved source packages:
NotificationToast: /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 'NotificationToast-product' in project 'NotificationToast'
➜ Explicit dependency on target 'NotificationToast' in project 'NotificationToast'
Target 'NotificationToast' in project 'NotificationToast' (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 NotificationToast normal arm64_32 com.apple.xcode.tools.swift.compiler (in target 'NotificationToast' from project 'NotificationToast')
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 NotificationToast -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast.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 -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast-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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast-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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast_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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftDriver NotificationToast normal arm64 com.apple.xcode.tools.swift.compiler (in target 'NotificationToast' from project 'NotificationToast')
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 NotificationToast -Onone @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast.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 -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -swift-version 6 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos -Isystem /Applications/Xcode-27.0.0-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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast-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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast-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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast_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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -experimental-emit-module-separately -disable-cmo
SwiftEmitModule normal arm64 Emitting\ module\ for\ NotificationToast (in target 'NotificationToast' from project 'NotificationToast')
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:22:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
20 | iconSpacing: CGFloat = 16,
21 | position: ToastView.Position = .top,
22 | haptic: UINotificationFeedbackGenerator.FeedbackType? = nil,
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
23 | onTap: (() -> Void)? = nil
24 | ) -> some View {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:54:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
52 | var iconSpacing: CGFloat = 16
53 | var position: ToastView.Position = .top
54 | var haptic: UINotificationFeedbackGenerator.FeedbackType? = nil
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
55 | var onTap: (() -> Void)? = nil
56 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:84:6: error: 'Previewable()' is only available in watchOS 10.0 or newer
82 | @available(iOS 17.0, *)
83 | #Preview {
84 | @Previewable @State var isPresented = false
| |- error: 'Previewable()' is only available in watchOS 10.0 or newer
| `- note: add 'if #available' version check
85 |
86 | Button("Present toast") {
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:40:25: error: 'UIStackView' is unavailable in watchOS
38 | }
39 |
40 | private let hStack: UIStackView = {
| `- error: 'UIStackView' is unavailable in watchOS
41 | let stackView = UIStackView()
42 | stackView.alignment = .center
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:41:25: error: 'UIStackView' is unavailable in watchOS
39 |
40 | private let hStack: UIStackView = {
41 | let stackView = UIStackView()
| `- error: 'UIStackView' is unavailable in watchOS
42 | stackView.alignment = .center
43 | return stackView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:41:25: error: 'init()' is unavailable in watchOS
39 |
40 | private let hStack: UIStackView = {
41 | let stackView = UIStackView()
| `- error: 'init()' is unavailable in watchOS
42 | stackView.alignment = .center
43 | return stackView
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:46:30: error: 'UIStackView' is unavailable in watchOS
44 | }()
45 |
46 | private lazy var vStack: UIStackView = {
| `- error: 'UIStackView' is unavailable in watchOS
47 | let stackView = UIStackView()
48 | stackView.axis = .vertical
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:47:25: error: 'UIStackView' is unavailable in watchOS
45 |
46 | private lazy var vStack: UIStackView = {
47 | let stackView = UIStackView()
| `- error: 'UIStackView' is unavailable in watchOS
48 | stackView.axis = .vertical
49 | stackView.alignment = vStackAlignment
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:47:25: error: 'init()' is unavailable in watchOS
45 |
46 | private lazy var vStack: UIStackView = {
47 | let stackView = UIStackView()
| `- error: 'init()' is unavailable in watchOS
48 | stackView.axis = .vertical
49 | stackView.alignment = vStackAlignment
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:53:29: error: 'UILabel' is unavailable in watchOS
51 | }()
52 |
53 | private let titleLabel: UILabel = {
| `- error: 'UILabel' is unavailable in watchOS
54 | let label = UILabel()
55 | label.numberOfLines = 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:54:21: error: 'UILabel' is unavailable in watchOS
52 |
53 | private let titleLabel: UILabel = {
54 | let label = UILabel()
| `- error: 'UILabel' is unavailable in watchOS
55 | label.numberOfLines = 1
56 | label.textColor = .label
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:54:21: error: 'init()' is unavailable in watchOS
52 |
53 | private let titleLabel: UILabel = {
54 | let label = UILabel()
| `- error: 'init()' is unavailable in watchOS
55 | label.numberOfLines = 1
56 | label.textColor = .label
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:56:28: error: 'label' is unavailable in watchOS
54 | let label = UILabel()
55 | label.numberOfLines = 1
56 | label.textColor = .label
| `- error: 'label' is unavailable in watchOS
57 |
58 | return label
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:171:49: note: 'label' has been explicitly marked unavailable here
169 | /* Foreground colors for static text and related elements.
170 | */
171 | @property (class, nonatomic, readonly) UIColor *labelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'label' has been explicitly marked unavailable here
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:65:34: error: 'UIStackView' is unavailable in watchOS
63 | }
64 |
65 | private var vStackAlignment: UIStackView.Alignment {
| `- error: 'UIStackView' is unavailable in watchOS
66 | switch textAlignment {
67 | case .left:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:171:47: error: 'UIWindowScene' is unavailable in watchOS
169 | }
170 |
171 | func prepareForShowing(originWindowScene: UIWindowScene?) {
| `- error: 'UIWindowScene' is unavailable in watchOS
172 | overlayWindow = ToastViewWindow(toastView: self, originWindowScene: originWindowScene)
173 | setupConstraints(position: position)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:183:41: error: 'UIWindowScene' is unavailable in watchOS
181 | }
182 |
183 | public func show(originWindowScene: UIWindowScene? = nil, haptic: UINotificationFeedbackGenerator.FeedbackType? = nil, onHide: (() -> Void)? = nil) {
| `- error: 'UIWindowScene' is unavailable in watchOS
184 | if let haptic {
185 | UINotificationFeedbackGenerator().notificationOccurred(haptic)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:183:71: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
181 | }
182 |
183 | public func show(originWindowScene: UIWindowScene? = nil, haptic: UINotificationFeedbackGenerator.FeedbackType? = nil, onHide: (() -> Void)? = nil) {
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
184 | if let haptic {
185 | UINotificationFeedbackGenerator().notificationOccurred(haptic)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:216:78: error: 'UITraitCollection' is unavailable in watchOS
214 | }
215 |
216 | override public func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
| `- error: 'UITraitCollection' is unavailable in watchOS
217 | super.traitCollectionDidChange(previousTraitCollection)
218 | backgroundColor = viewBackgroundColor
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h:23:12: note: 'UITraitCollection' has been explicitly marked unavailable here
21 |
22 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_SENDABLE
23 | @interface UITraitCollection : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UITraitCollection' has been explicitly marked unavailable here
24 |
25 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:216:26: error: cannot override 'traitCollectionDidChange' which has been marked unavailable
214 | }
215 |
216 | override public func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
| |- error: cannot override 'traitCollectionDidChange' which has been marked unavailable
| `- note: remove 'override' modifier to declare a new 'traitCollectionDidChange'
217 | super.traitCollectionDidChange(previousTraitCollection)
218 | backgroundColor = viewBackgroundColor
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h:221:1: note: 'traitCollectionDidChange' has been explicitly marked unavailable here
219 |
220 | /*! To be overridden as needed to provide custom behavior when the environment's traits change. */
221 | - (void)traitCollectionDidChange:(nullable UITraitCollection *)previousTraitCollection API_DEPRECATED("Use the trait change registration APIs declared in the UITraitChangeObservable protocol", ios(8.0, 17.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
| `- note: 'traitCollectionDidChange' has been explicitly marked unavailable here
222 | @end
223 |
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:12:25: error: 'UIView' is unavailable in watchOS
10 |
11 | @available(iOSApplicationExtension, unavailable)
12 | public class ToastView: UIView {
| `- error: 'UIView' is unavailable in watchOS
13 | public enum TextAlignment {
14 | case left
/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/NotificationToast/ToastView.swift:281:51: error: 'UIWindowScene' is unavailable in watchOS
279 | @available(iOSApplicationExtension, unavailable)
280 | class ToastViewWindow: UIWindow {
281 | init(toastView: ToastView, originWindowScene: UIWindowScene?) {
| `- error: 'UIWindowScene' is unavailable in watchOS
282 | if let originWindowScene {
283 | super.init(windowScene: originWindowScene)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:303:60: error: 'UIEvent' is unavailable in watchOS
301 | }
302 |
303 | override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
| `- error: 'UIEvent' is unavailable in watchOS
304 | if let rootViewController = rootViewController,
305 | let toastView = rootViewController.view.subviews.first as? ToastView {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:280:24: error: 'UIWindow' is unavailable in watchOS
278 |
279 | @available(iOSApplicationExtension, unavailable)
280 | class ToastViewWindow: UIWindow {
| `- error: 'UIWindow' is unavailable in watchOS
281 | init(toastView: ToastView, originWindowScene: UIWindowScene?) {
282 | if let originWindowScene {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindow : UIView
| `- note: 'UIWindow' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
Failed frontend command:
SwiftCompile normal arm64 (in target 'NotificationToast' from project 'NotificationToast')
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/NotificationToast/ToastView+SwiftUI.swift /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast-dependencies-2.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 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name NotificationToast -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast_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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64/NotificationToast.abi.json
SwiftCompile normal arm64 Compiling\ ToastView.swift /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift (in target 'NotificationToast' from project 'NotificationToast')
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:40:25: error: 'UIStackView' is unavailable in watchOS
38 | }
39 |
40 | private let hStack: UIStackView = {
| `- error: 'UIStackView' is unavailable in watchOS
41 | let stackView = UIStackView()
42 | stackView.alignment = .center
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:41:25: error: 'UIStackView' is unavailable in watchOS
39 |
40 | private let hStack: UIStackView = {
41 | let stackView = UIStackView()
| `- error: 'UIStackView' is unavailable in watchOS
42 | stackView.alignment = .center
43 | return stackView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:41:25: error: 'init()' is unavailable in watchOS
39 |
40 | private let hStack: UIStackView = {
41 | let stackView = UIStackView()
| `- error: 'init()' is unavailable in watchOS
42 | stackView.alignment = .center
43 | return stackView
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:46:30: error: 'UIStackView' is unavailable in watchOS
44 | }()
45 |
46 | private lazy var vStack: UIStackView = {
| `- error: 'UIStackView' is unavailable in watchOS
47 | let stackView = UIStackView()
48 | stackView.axis = .vertical
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:47:25: error: 'UIStackView' is unavailable in watchOS
45 |
46 | private lazy var vStack: UIStackView = {
47 | let stackView = UIStackView()
| `- error: 'UIStackView' is unavailable in watchOS
48 | stackView.axis = .vertical
49 | stackView.alignment = vStackAlignment
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:47:25: error: 'init()' is unavailable in watchOS
45 |
46 | private lazy var vStack: UIStackView = {
47 | let stackView = UIStackView()
| `- error: 'init()' is unavailable in watchOS
48 | stackView.axis = .vertical
49 | stackView.alignment = vStackAlignment
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:53:29: error: 'UILabel' is unavailable in watchOS
51 | }()
52 |
53 | private let titleLabel: UILabel = {
| `- error: 'UILabel' is unavailable in watchOS
54 | let label = UILabel()
55 | label.numberOfLines = 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:54:21: error: 'UILabel' is unavailable in watchOS
52 |
53 | private let titleLabel: UILabel = {
54 | let label = UILabel()
| `- error: 'UILabel' is unavailable in watchOS
55 | label.numberOfLines = 1
56 | label.textColor = .label
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:54:21: error: 'init()' is unavailable in watchOS
52 |
53 | private let titleLabel: UILabel = {
54 | let label = UILabel()
| `- error: 'init()' is unavailable in watchOS
55 | label.numberOfLines = 1
56 | label.textColor = .label
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:56:28: error: 'label' is unavailable in watchOS
54 | let label = UILabel()
55 | label.numberOfLines = 1
56 | label.textColor = .label
| `- error: 'label' is unavailable in watchOS
57 |
58 | return label
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:171:49: note: 'label' has been explicitly marked unavailable here
169 | /* Foreground colors for static text and related elements.
170 | */
171 | @property (class, nonatomic, readonly) UIColor *labelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'label' has been explicitly marked unavailable here
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:65:34: error: 'UIStackView' is unavailable in watchOS
63 | }
64 |
65 | private var vStackAlignment: UIStackView.Alignment {
| `- error: 'UIStackView' is unavailable in watchOS
66 | switch textAlignment {
67 | case .left:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:171:47: error: 'UIWindowScene' is unavailable in watchOS
169 | }
170 |
171 | func prepareForShowing(originWindowScene: UIWindowScene?) {
| `- error: 'UIWindowScene' is unavailable in watchOS
172 | overlayWindow = ToastViewWindow(toastView: self, originWindowScene: originWindowScene)
173 | setupConstraints(position: position)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:183:41: error: 'UIWindowScene' is unavailable in watchOS
181 | }
182 |
183 | public func show(originWindowScene: UIWindowScene? = nil, haptic: UINotificationFeedbackGenerator.FeedbackType? = nil, onHide: (() -> Void)? = nil) {
| `- error: 'UIWindowScene' is unavailable in watchOS
184 | if let haptic {
185 | UINotificationFeedbackGenerator().notificationOccurred(haptic)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:183:71: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
181 | }
182 |
183 | public func show(originWindowScene: UIWindowScene? = nil, haptic: UINotificationFeedbackGenerator.FeedbackType? = nil, onHide: (() -> Void)? = nil) {
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
184 | if let haptic {
185 | UINotificationFeedbackGenerator().notificationOccurred(haptic)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:216:78: error: 'UITraitCollection' is unavailable in watchOS
214 | }
215 |
216 | override public func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
| `- error: 'UITraitCollection' is unavailable in watchOS
217 | super.traitCollectionDidChange(previousTraitCollection)
218 | backgroundColor = viewBackgroundColor
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h:23:12: note: 'UITraitCollection' has been explicitly marked unavailable here
21 |
22 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_SENDABLE
23 | @interface UITraitCollection : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UITraitCollection' has been explicitly marked unavailable here
24 |
25 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:216:26: error: cannot override 'traitCollectionDidChange' which has been marked unavailable
214 | }
215 |
216 | override public func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
| |- error: cannot override 'traitCollectionDidChange' which has been marked unavailable
| `- note: remove 'override' modifier to declare a new 'traitCollectionDidChange'
217 | super.traitCollectionDidChange(previousTraitCollection)
218 | backgroundColor = viewBackgroundColor
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h:221:1: note: 'traitCollectionDidChange' has been explicitly marked unavailable here
219 |
220 | /*! To be overridden as needed to provide custom behavior when the environment's traits change. */
221 | - (void)traitCollectionDidChange:(nullable UITraitCollection *)previousTraitCollection API_DEPRECATED("Use the trait change registration APIs declared in the UITraitChangeObservable protocol", ios(8.0, 17.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
| `- note: 'traitCollectionDidChange' has been explicitly marked unavailable here
222 | @end
223 |
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:12:25: error: 'UIView' is unavailable in watchOS
10 |
11 | @available(iOSApplicationExtension, unavailable)
12 | public class ToastView: UIView {
| `- error: 'UIView' is unavailable in watchOS
13 | public enum TextAlignment {
14 | case left
/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/NotificationToast/ToastView.swift:281:51: error: 'UIWindowScene' is unavailable in watchOS
279 | @available(iOSApplicationExtension, unavailable)
280 | class ToastViewWindow: UIWindow {
281 | init(toastView: ToastView, originWindowScene: UIWindowScene?) {
| `- error: 'UIWindowScene' is unavailable in watchOS
282 | if let originWindowScene {
283 | super.init(windowScene: originWindowScene)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:303:60: error: 'UIEvent' is unavailable in watchOS
301 | }
302 |
303 | override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
| `- error: 'UIEvent' is unavailable in watchOS
304 | if let rootViewController = rootViewController,
305 | let toastView = rootViewController.view.subviews.first as? ToastView {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:280:24: error: 'UIWindow' is unavailable in watchOS
278 |
279 | @available(iOSApplicationExtension, unavailable)
280 | class ToastViewWindow: UIWindow {
| `- error: 'UIWindow' is unavailable in watchOS
281 | init(toastView: ToastView, originWindowScene: UIWindowScene?) {
282 | if let originWindowScene {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindow : UIView
| `- note: 'UIWindow' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:139:33: error: 'UIImageView' is unavailable in watchOS
137 |
138 | if let icon = icon {
139 | let iconImageView = UIImageView()
| `- error: 'UIImageView' is unavailable in watchOS
140 | iconImageView.contentMode = .scaleAspectFit
141 | iconImageView.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/UIImageView.h:21:12: note: 'UIImageView' has been explicitly marked unavailable here
19 |
20 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UIImageView : UIView
| `- note: 'UIImageView' has been explicitly marked unavailable here
22 |
23 | - (instancetype)initWithImage:(nullable UIImage *)image;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:139:33: error: 'init()' is unavailable in watchOS
137 |
138 | if let icon = icon {
139 | let iconImageView = UIImageView()
| `- error: 'init()' is unavailable in watchOS
140 | iconImageView.contentMode = .scaleAspectFit
141 | iconImageView.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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:142:13: error: 'NSLayoutConstraint' is unavailable in watchOS
140 | iconImageView.contentMode = .scaleAspectFit
141 | iconImageView.translatesAutoresizingMaskIntoConstraints = false
142 | NSLayoutConstraint.activate([
| `- error: 'NSLayoutConstraint' is unavailable in watchOS
143 | iconImageView.widthAnchor.constraint(equalToConstant: 28),
144 | iconImageView.heightAnchor.constraint(equalToConstant: 28)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h:126:12: note: 'NSLayoutConstraint' has been explicitly marked unavailable here
124 |
125 | NSLAYOUTCONSTRAINT_EXTERN API_AVAILABLE(macos(10.7), ios(6.0), tvos(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
126 | @interface NSLayoutConstraint : NSObject
| `- note: 'NSLayoutConstraint' has been explicitly marked unavailable here
127 |
128 | /* Create an array of constraints using an ASCII-art-like visual format string. The values of the `metrics` dictionary should be NSNumber (or some other type that responds to -doubleValue and returns a double).
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:146:40: error: 'label' is unavailable in watchOS
144 | iconImageView.heightAnchor.constraint(equalToConstant: 28)
145 | ])
146 | iconImageView.tintColor = .label
| `- error: 'label' is unavailable in watchOS
147 | iconImageView.image = icon
148 | hStack.addArrangedSubview(iconImageView)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:171:49: note: 'label' has been explicitly marked unavailable here
169 | /* Foreground colors for static text and related elements.
170 | */
171 | @property (class, nonatomic, readonly) UIColor *labelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'label' has been explicitly marked unavailable here
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:152:33: error: 'UILabel' is unavailable in watchOS
150 |
151 | if let subtitle = subtitle {
152 | let subtitleLabel = UILabel()
| `- error: 'UILabel' is unavailable in watchOS
153 | subtitleLabel.textColor = .secondaryLabel
154 | subtitleLabel.numberOfLines = 0
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:152:33: error: 'init()' is unavailable in watchOS
150 |
151 | if let subtitle = subtitle {
152 | let subtitleLabel = UILabel()
| `- error: 'init()' is unavailable in watchOS
153 | subtitleLabel.textColor = .secondaryLabel
154 | subtitleLabel.numberOfLines = 0
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:153:40: error: 'secondaryLabel' is unavailable in watchOS
151 | if let subtitle = subtitle {
152 | let subtitleLabel = UILabel()
153 | subtitleLabel.textColor = .secondaryLabel
| `- error: 'secondaryLabel' is unavailable in watchOS
154 | subtitleLabel.numberOfLines = 0
155 | subtitleLabel.font = subtitleFont
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:172:49: note: 'secondaryLabel' has been explicitly marked unavailable here
170 | */
171 | @property (class, nonatomic, readonly) UIColor *labelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'secondaryLabel' has been explicitly marked unavailable here
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
174 | @property (class, nonatomic, readonly) UIColor *quaternaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:161:36: error: 'UITapGestureRecognizer' is unavailable in watchOS
159 |
160 | self.onTap = onTap
161 | let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didTap))
| `- error: 'UITapGestureRecognizer' is unavailable in watchOS
162 | addGestureRecognizer(tapGestureRecognizer)
163 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITapGestureRecognizer.h:23:12: note: 'UITapGestureRecognizer' has been explicitly marked unavailable here
21 |
22 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
23 | @interface UITapGestureRecognizer : UIGestureRecognizer
| `- note: 'UITapGestureRecognizer' has been explicitly marked unavailable here
24 |
25 | @property (nonatomic) NSUInteger numberOfTapsRequired; // Default is 1. The number of taps required to match
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:185:13: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
183 | public func show(originWindowScene: UIWindowScene? = nil, haptic: UINotificationFeedbackGenerator.FeedbackType? = nil, onHide: (() -> Void)? = nil) {
184 | if let haptic {
185 | UINotificationFeedbackGenerator().notificationOccurred(haptic)
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
186 | }
187 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:195:9: error: 'UIView' is unavailable in watchOS
193 | return
194 | }
195 | UIView.animate(withDuration: showAnimationDuration, delay: 0.0, options: .curveEaseOut, animations: {
| `- error: 'UIView' is unavailable in watchOS
196 | self.transform = .identity
197 | }) { [self] _ in
/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/NotificationToast/ToastView.swift:206:13: error: 'UIView' is unavailable in watchOS
204 | public func hide(after time: TimeInterval = 0.0, onHide: (() -> Void)? = nil) {
205 | DispatchQueue.main.asyncAfter(deadline: .now() + time) {
206 | UIView.animate(withDuration: self.hideAnimationDuration, delay: 0, options: .curveEaseIn, animations: { [self] in
| `- error: 'UIView' is unavailable in watchOS
207 | transform = initialTransform
208 | }) { [self] _ in
/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/NotificationToast/ToastView.swift:217:15: error: 'traitCollectionDidChange' is unavailable in watchOS
215 |
216 | override public func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
217 | super.traitCollectionDidChange(previousTraitCollection)
| `- error: 'traitCollectionDidChange' is unavailable in watchOS
218 | backgroundColor = viewBackgroundColor
219 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h:221:1: note: 'traitCollectionDidChange' has been explicitly marked unavailable here
219 |
220 | /*! To be overridden as needed to provide custom behavior when the environment's traits change. */
221 | - (void)traitCollectionDidChange:(nullable UITraitCollection *)previousTraitCollection API_DEPRECATED("Use the trait change registration APIs declared in the UITraitChangeObservable protocol", ios(8.0, 17.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
| `- note: 'traitCollectionDidChange' has been explicitly marked unavailable here
222 | @end
223 |
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:244:9: error: 'NSLayoutConstraint' is unavailable in watchOS
242 | }
243 |
244 | NSLayoutConstraint.activate(constraints)
| `- error: 'NSLayoutConstraint' is unavailable in watchOS
245 | }
246 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h:126:12: note: 'NSLayoutConstraint' has been explicitly marked unavailable here
124 |
125 | NSLAYOUTCONSTRAINT_EXTERN API_AVAILABLE(macos(10.7), ios(6.0), tvos(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
126 | @interface NSLayoutConstraint : NSObject
| `- note: 'NSLayoutConstraint' has been explicitly marked unavailable here
127 |
128 | /* Create an array of constraints using an ASCII-art-like visual format string. The values of the `metrics` dictionary should be NSNumber (or some other type that responds to -doubleValue and returns a double).
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift (in target 'NotificationToast' from project 'NotificationToast')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ToastView.swift
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:250:9: error: 'NSLayoutConstraint' is unavailable in watchOS
248 | hStack.translatesAutoresizingMaskIntoConstraints = false
249 |
250 | NSLayoutConstraint.activate([
| `- error: 'NSLayoutConstraint' is unavailable in watchOS
251 | hStack.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 24),
252 | hStack.trailingAnchor.constraint(equalTo: trailingAnchor, constant: -24),
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h:126:12: note: 'NSLayoutConstraint' has been explicitly marked unavailable here
124 |
125 | NSLAYOUTCONSTRAINT_EXTERN API_AVAILABLE(macos(10.7), ios(6.0), tvos(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
126 | @interface NSLayoutConstraint : NSObject
| `- note: 'NSLayoutConstraint' has been explicitly marked unavailable here
127 |
128 | /* Create an array of constraints using an ASCII-art-like visual format string. The values of the `metrics` dictionary should be NSNumber (or some other type that responds to -doubleValue and returns a double).
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:283:19: error: 'init(windowScene:)' is unavailable in watchOS
281 | init(toastView: ToastView, originWindowScene: UIWindowScene?) {
282 | if let originWindowScene {
283 | super.init(windowScene: originWindowScene)
| `- error: 'init(windowScene:)' is unavailable in watchOS
284 | } else if let activeForegroundScene = UIApplication.shared.connectedScenes
285 | .first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:25:1: note: 'init(windowScene:)' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
25 | - (instancetype)initWithWindowScene:(UIWindowScene *)windowScene NS_DESIGNATED_INITIALIZER API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'init(windowScene:)' has been explicitly marked unavailable here
26 |
27 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER API_DEPRECATED("Use init(windowScene:) instead.", ios(2.0, 26.0), tvos(9.0, 26.0), visionos(1.0, 26.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:285:76: error: 'UIWindowScene' is unavailable in watchOS
283 | super.init(windowScene: originWindowScene)
284 | } else if let activeForegroundScene = UIApplication.shared.connectedScenes
285 | .first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene {
| `- error: 'UIWindowScene' is unavailable in watchOS
286 | super.init(windowScene: activeForegroundScene)
287 | } else if let inactiveForegroundScene = UIApplication.shared.connectedScenes
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
SwiftCompile normal arm64 Compiling\ ToastView+SwiftUI.swift /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift (in target 'NotificationToast' from project 'NotificationToast')
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:22:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
20 | iconSpacing: CGFloat = 16,
21 | position: ToastView.Position = .top,
22 | haptic: UINotificationFeedbackGenerator.FeedbackType? = nil,
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
23 | onTap: (() -> Void)? = nil
24 | ) -> some View {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:54:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
52 | var iconSpacing: CGFloat = 16
53 | var position: ToastView.Position = .top
54 | var haptic: UINotificationFeedbackGenerator.FeedbackType? = nil
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
55 | var onTap: (() -> Void)? = nil
56 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift (in target 'NotificationToast' from project 'NotificationToast')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ToastView+SwiftUI.swift
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ NotificationToast (in target 'NotificationToast' from project 'NotificationToast')
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:22:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
20 | iconSpacing: CGFloat = 16,
21 | position: ToastView.Position = .top,
22 | haptic: UINotificationFeedbackGenerator.FeedbackType? = nil,
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
23 | onTap: (() -> Void)? = nil
24 | ) -> some View {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:54:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
52 | var iconSpacing: CGFloat = 16
53 | var position: ToastView.Position = .top
54 | var haptic: UINotificationFeedbackGenerator.FeedbackType? = nil
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
55 | var onTap: (() -> Void)? = nil
56 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:84:6: error: 'Previewable()' is only available in watchOS 10.0 or newer
82 | @available(iOS 17.0, *)
83 | #Preview {
84 | @Previewable @State var isPresented = false
| |- error: 'Previewable()' is only available in watchOS 10.0 or newer
| `- note: add 'if #available' version check
85 |
86 | Button("Present toast") {
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:40:25: error: 'UIStackView' is unavailable in watchOS
38 | }
39 |
40 | private let hStack: UIStackView = {
| `- error: 'UIStackView' is unavailable in watchOS
41 | let stackView = UIStackView()
42 | stackView.alignment = .center
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:41:25: error: 'UIStackView' is unavailable in watchOS
39 |
40 | private let hStack: UIStackView = {
41 | let stackView = UIStackView()
| `- error: 'UIStackView' is unavailable in watchOS
42 | stackView.alignment = .center
43 | return stackView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:41:25: error: 'init()' is unavailable in watchOS
39 |
40 | private let hStack: UIStackView = {
41 | let stackView = UIStackView()
| `- error: 'init()' is unavailable in watchOS
42 | stackView.alignment = .center
43 | return stackView
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:46:30: error: 'UIStackView' is unavailable in watchOS
44 | }()
45 |
46 | private lazy var vStack: UIStackView = {
| `- error: 'UIStackView' is unavailable in watchOS
47 | let stackView = UIStackView()
48 | stackView.axis = .vertical
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:47:25: error: 'UIStackView' is unavailable in watchOS
45 |
46 | private lazy var vStack: UIStackView = {
47 | let stackView = UIStackView()
| `- error: 'UIStackView' is unavailable in watchOS
48 | stackView.axis = .vertical
49 | stackView.alignment = vStackAlignment
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:47:25: error: 'init()' is unavailable in watchOS
45 |
46 | private lazy var vStack: UIStackView = {
47 | let stackView = UIStackView()
| `- error: 'init()' is unavailable in watchOS
48 | stackView.axis = .vertical
49 | stackView.alignment = vStackAlignment
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:53:29: error: 'UILabel' is unavailable in watchOS
51 | }()
52 |
53 | private let titleLabel: UILabel = {
| `- error: 'UILabel' is unavailable in watchOS
54 | let label = UILabel()
55 | label.numberOfLines = 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:54:21: error: 'UILabel' is unavailable in watchOS
52 |
53 | private let titleLabel: UILabel = {
54 | let label = UILabel()
| `- error: 'UILabel' is unavailable in watchOS
55 | label.numberOfLines = 1
56 | label.textColor = .label
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:54:21: error: 'init()' is unavailable in watchOS
52 |
53 | private let titleLabel: UILabel = {
54 | let label = UILabel()
| `- error: 'init()' is unavailable in watchOS
55 | label.numberOfLines = 1
56 | label.textColor = .label
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:56:28: error: 'label' is unavailable in watchOS
54 | let label = UILabel()
55 | label.numberOfLines = 1
56 | label.textColor = .label
| `- error: 'label' is unavailable in watchOS
57 |
58 | return label
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:171:49: note: 'label' has been explicitly marked unavailable here
169 | /* Foreground colors for static text and related elements.
170 | */
171 | @property (class, nonatomic, readonly) UIColor *labelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'label' has been explicitly marked unavailable here
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:65:34: error: 'UIStackView' is unavailable in watchOS
63 | }
64 |
65 | private var vStackAlignment: UIStackView.Alignment {
| `- error: 'UIStackView' is unavailable in watchOS
66 | switch textAlignment {
67 | case .left:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:171:47: error: 'UIWindowScene' is unavailable in watchOS
169 | }
170 |
171 | func prepareForShowing(originWindowScene: UIWindowScene?) {
| `- error: 'UIWindowScene' is unavailable in watchOS
172 | overlayWindow = ToastViewWindow(toastView: self, originWindowScene: originWindowScene)
173 | setupConstraints(position: position)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:183:41: error: 'UIWindowScene' is unavailable in watchOS
181 | }
182 |
183 | public func show(originWindowScene: UIWindowScene? = nil, haptic: UINotificationFeedbackGenerator.FeedbackType? = nil, onHide: (() -> Void)? = nil) {
| `- error: 'UIWindowScene' is unavailable in watchOS
184 | if let haptic {
185 | UINotificationFeedbackGenerator().notificationOccurred(haptic)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:183:71: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
181 | }
182 |
183 | public func show(originWindowScene: UIWindowScene? = nil, haptic: UINotificationFeedbackGenerator.FeedbackType? = nil, onHide: (() -> Void)? = nil) {
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
184 | if let haptic {
185 | UINotificationFeedbackGenerator().notificationOccurred(haptic)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:216:78: error: 'UITraitCollection' is unavailable in watchOS
214 | }
215 |
216 | override public func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
| `- error: 'UITraitCollection' is unavailable in watchOS
217 | super.traitCollectionDidChange(previousTraitCollection)
218 | backgroundColor = viewBackgroundColor
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h:23:12: note: 'UITraitCollection' has been explicitly marked unavailable here
21 |
22 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_SENDABLE
23 | @interface UITraitCollection : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UITraitCollection' has been explicitly marked unavailable here
24 |
25 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:216:26: error: cannot override 'traitCollectionDidChange' which has been marked unavailable
214 | }
215 |
216 | override public func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
| |- error: cannot override 'traitCollectionDidChange' which has been marked unavailable
| `- note: remove 'override' modifier to declare a new 'traitCollectionDidChange'
217 | super.traitCollectionDidChange(previousTraitCollection)
218 | backgroundColor = viewBackgroundColor
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h:221:1: note: 'traitCollectionDidChange' has been explicitly marked unavailable here
219 |
220 | /*! To be overridden as needed to provide custom behavior when the environment's traits change. */
221 | - (void)traitCollectionDidChange:(nullable UITraitCollection *)previousTraitCollection API_DEPRECATED("Use the trait change registration APIs declared in the UITraitChangeObservable protocol", ios(8.0, 17.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
| `- note: 'traitCollectionDidChange' has been explicitly marked unavailable here
222 | @end
223 |
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:12:25: error: 'UIView' is unavailable in watchOS
10 |
11 | @available(iOSApplicationExtension, unavailable)
12 | public class ToastView: UIView {
| `- error: 'UIView' is unavailable in watchOS
13 | public enum TextAlignment {
14 | case left
/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/NotificationToast/ToastView.swift:281:51: error: 'UIWindowScene' is unavailable in watchOS
279 | @available(iOSApplicationExtension, unavailable)
280 | class ToastViewWindow: UIWindow {
281 | init(toastView: ToastView, originWindowScene: UIWindowScene?) {
| `- error: 'UIWindowScene' is unavailable in watchOS
282 | if let originWindowScene {
283 | super.init(windowScene: originWindowScene)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:303:60: error: 'UIEvent' is unavailable in watchOS
301 | }
302 |
303 | override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
| `- error: 'UIEvent' is unavailable in watchOS
304 | if let rootViewController = rootViewController,
305 | let toastView = rootViewController.view.subviews.first as? ToastView {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:280:24: error: 'UIWindow' is unavailable in watchOS
278 |
279 | @available(iOSApplicationExtension, unavailable)
280 | class ToastViewWindow: UIWindow {
| `- error: 'UIWindow' is unavailable in watchOS
281 | init(toastView: ToastView, originWindowScene: UIWindowScene?) {
282 | if let originWindowScene {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindow : UIView
| `- note: 'UIWindow' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
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/NotificationToast/ToastView+SwiftUI.swift /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast-dependencies-1.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 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name NotificationToast -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast_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/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/NotificationToast.build/Debug-watchos/NotificationToast-t.build/Objects-normal/arm64_32/NotificationToast.abi.json
SwiftCompile normal arm64_32 (in target 'NotificationToast' from project 'NotificationToast')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64_32 Compiling\ ToastView+SwiftUI.swift /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift (in target 'NotificationToast' from project 'NotificationToast')
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift (in target 'NotificationToast' from project 'NotificationToast')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ToastView+SwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:22:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
20 | iconSpacing: CGFloat = 16,
21 | position: ToastView.Position = .top,
22 | haptic: UINotificationFeedbackGenerator.FeedbackType? = nil,
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
23 | onTap: (() -> Void)? = nil
24 | ) -> some View {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView+SwiftUI.swift:54:17: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
52 | var iconSpacing: CGFloat = 16
53 | var position: ToastView.Position = .top
54 | var haptic: UINotificationFeedbackGenerator.FeedbackType? = nil
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
55 | var onTap: (() -> Void)? = nil
56 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
SwiftCompile normal arm64_32 Compiling\ ToastView.swift /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift (in target 'NotificationToast' from project 'NotificationToast')
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:40:25: error: 'UIStackView' is unavailable in watchOS
38 | }
39 |
40 | private let hStack: UIStackView = {
| `- error: 'UIStackView' is unavailable in watchOS
41 | let stackView = UIStackView()
42 | stackView.alignment = .center
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:41:25: error: 'UIStackView' is unavailable in watchOS
39 |
40 | private let hStack: UIStackView = {
41 | let stackView = UIStackView()
| `- error: 'UIStackView' is unavailable in watchOS
42 | stackView.alignment = .center
43 | return stackView
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:41:25: error: 'init()' is unavailable in watchOS
39 |
40 | private let hStack: UIStackView = {
41 | let stackView = UIStackView()
| `- error: 'init()' is unavailable in watchOS
42 | stackView.alignment = .center
43 | return stackView
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:46:30: error: 'UIStackView' is unavailable in watchOS
44 | }()
45 |
46 | private lazy var vStack: UIStackView = {
| `- error: 'UIStackView' is unavailable in watchOS
47 | let stackView = UIStackView()
48 | stackView.axis = .vertical
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:47:25: error: 'UIStackView' is unavailable in watchOS
45 |
46 | private lazy var vStack: UIStackView = {
47 | let stackView = UIStackView()
| `- error: 'UIStackView' is unavailable in watchOS
48 | stackView.axis = .vertical
49 | stackView.alignment = vStackAlignment
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:47:25: error: 'init()' is unavailable in watchOS
45 |
46 | private lazy var vStack: UIStackView = {
47 | let stackView = UIStackView()
| `- error: 'init()' is unavailable in watchOS
48 | stackView.axis = .vertical
49 | stackView.alignment = vStackAlignment
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:53:29: error: 'UILabel' is unavailable in watchOS
51 | }()
52 |
53 | private let titleLabel: UILabel = {
| `- error: 'UILabel' is unavailable in watchOS
54 | let label = UILabel()
55 | label.numberOfLines = 1
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:54:21: error: 'UILabel' is unavailable in watchOS
52 |
53 | private let titleLabel: UILabel = {
54 | let label = UILabel()
| `- error: 'UILabel' is unavailable in watchOS
55 | label.numberOfLines = 1
56 | label.textColor = .label
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:54:21: error: 'init()' is unavailable in watchOS
52 |
53 | private let titleLabel: UILabel = {
54 | let label = UILabel()
| `- error: 'init()' is unavailable in watchOS
55 | label.numberOfLines = 1
56 | label.textColor = .label
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:56:28: error: 'label' is unavailable in watchOS
54 | let label = UILabel()
55 | label.numberOfLines = 1
56 | label.textColor = .label
| `- error: 'label' is unavailable in watchOS
57 |
58 | return label
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:171:49: note: 'label' has been explicitly marked unavailable here
169 | /* Foreground colors for static text and related elements.
170 | */
171 | @property (class, nonatomic, readonly) UIColor *labelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'label' has been explicitly marked unavailable here
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:65:34: error: 'UIStackView' is unavailable in watchOS
63 | }
64 |
65 | private var vStackAlignment: UIStackView.Alignment {
| `- error: 'UIStackView' is unavailable in watchOS
66 | switch textAlignment {
67 | case .left:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIStackView.h:124:12: note: 'UIStackView' has been explicitly marked unavailable here
122 | NS_HEADER_AUDIT_BEGIN(nullability, sendability)
123 | UIKIT_EXTERN API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
124 | @interface UIStackView : UIView
| `- note: 'UIStackView' has been explicitly marked unavailable here
125 |
126 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:171:47: error: 'UIWindowScene' is unavailable in watchOS
169 | }
170 |
171 | func prepareForShowing(originWindowScene: UIWindowScene?) {
| `- error: 'UIWindowScene' is unavailable in watchOS
172 | overlayWindow = ToastViewWindow(toastView: self, originWindowScene: originWindowScene)
173 | setupConstraints(position: position)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:183:41: error: 'UIWindowScene' is unavailable in watchOS
181 | }
182 |
183 | public func show(originWindowScene: UIWindowScene? = nil, haptic: UINotificationFeedbackGenerator.FeedbackType? = nil, onHide: (() -> Void)? = nil) {
| `- error: 'UIWindowScene' is unavailable in watchOS
184 | if let haptic {
185 | UINotificationFeedbackGenerator().notificationOccurred(haptic)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:183:71: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
181 | }
182 |
183 | public func show(originWindowScene: UIWindowScene? = nil, haptic: UINotificationFeedbackGenerator.FeedbackType? = nil, onHide: (() -> Void)? = nil) {
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
184 | if let haptic {
185 | UINotificationFeedbackGenerator().notificationOccurred(haptic)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:216:78: error: 'UITraitCollection' is unavailable in watchOS
214 | }
215 |
216 | override public func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
| `- error: 'UITraitCollection' is unavailable in watchOS
217 | super.traitCollectionDidChange(previousTraitCollection)
218 | backgroundColor = viewBackgroundColor
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h:23:12: note: 'UITraitCollection' has been explicitly marked unavailable here
21 |
22 | UIKIT_EXTERN API_AVAILABLE(ios(8.0)) API_UNAVAILABLE(watchos) NS_SWIFT_SENDABLE
23 | @interface UITraitCollection : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UITraitCollection' has been explicitly marked unavailable here
24 |
25 | - (instancetype)init NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:216:26: error: cannot override 'traitCollectionDidChange' which has been marked unavailable
214 | }
215 |
216 | override public func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
| |- error: cannot override 'traitCollectionDidChange' which has been marked unavailable
| `- note: remove 'override' modifier to declare a new 'traitCollectionDidChange'
217 | super.traitCollectionDidChange(previousTraitCollection)
218 | backgroundColor = viewBackgroundColor
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h:221:1: note: 'traitCollectionDidChange' has been explicitly marked unavailable here
219 |
220 | /*! To be overridden as needed to provide custom behavior when the environment's traits change. */
221 | - (void)traitCollectionDidChange:(nullable UITraitCollection *)previousTraitCollection API_DEPRECATED("Use the trait change registration APIs declared in the UITraitChangeObservable protocol", ios(8.0, 17.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
| `- note: 'traitCollectionDidChange' has been explicitly marked unavailable here
222 | @end
223 |
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:12:25: error: 'UIView' is unavailable in watchOS
10 |
11 | @available(iOSApplicationExtension, unavailable)
12 | public class ToastView: UIView {
| `- error: 'UIView' is unavailable in watchOS
13 | public enum TextAlignment {
14 | case left
/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/NotificationToast/ToastView.swift:281:51: error: 'UIWindowScene' is unavailable in watchOS
279 | @available(iOSApplicationExtension, unavailable)
280 | class ToastViewWindow: UIWindow {
281 | init(toastView: ToastView, originWindowScene: UIWindowScene?) {
| `- error: 'UIWindowScene' is unavailable in watchOS
282 | if let originWindowScene {
283 | super.init(windowScene: originWindowScene)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:303:60: error: 'UIEvent' is unavailable in watchOS
301 | }
302 |
303 | override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
| `- error: 'UIEvent' is unavailable in watchOS
304 | if let rootViewController = rootViewController,
305 | let toastView = rootViewController.view.subviews.first as? ToastView {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:62:12: note: 'UIEvent' has been explicitly marked unavailable here
60 |
61 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
62 | @interface UIEvent : NSObject
| `- note: 'UIEvent' has been explicitly marked unavailable here
63 |
64 | @property(nonatomic,readonly) UIEventType type API_AVAILABLE(ios(3.0));
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:280:24: error: 'UIWindow' is unavailable in watchOS
278 |
279 | @available(iOSApplicationExtension, unavailable)
280 | class ToastViewWindow: UIWindow {
| `- error: 'UIWindow' is unavailable in watchOS
281 | init(toastView: ToastView, originWindowScene: UIWindowScene?) {
282 | if let originWindowScene {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:22:12: note: 'UIWindow' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindow : UIView
| `- note: 'UIWindow' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:139:33: error: 'UIImageView' is unavailable in watchOS
137 |
138 | if let icon = icon {
139 | let iconImageView = UIImageView()
| `- error: 'UIImageView' is unavailable in watchOS
140 | iconImageView.contentMode = .scaleAspectFit
141 | iconImageView.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/UIImageView.h:21:12: note: 'UIImageView' has been explicitly marked unavailable here
19 |
20 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UIImageView : UIView
| `- note: 'UIImageView' has been explicitly marked unavailable here
22 |
23 | - (instancetype)initWithImage:(nullable UIImage *)image;
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:139:33: error: 'init()' is unavailable in watchOS
137 |
138 | if let icon = icon {
139 | let iconImageView = UIImageView()
| `- error: 'init()' is unavailable in watchOS
140 | iconImageView.contentMode = .scaleAspectFit
141 | iconImageView.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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:142:13: error: 'NSLayoutConstraint' is unavailable in watchOS
140 | iconImageView.contentMode = .scaleAspectFit
141 | iconImageView.translatesAutoresizingMaskIntoConstraints = false
142 | NSLayoutConstraint.activate([
| `- error: 'NSLayoutConstraint' is unavailable in watchOS
143 | iconImageView.widthAnchor.constraint(equalToConstant: 28),
144 | iconImageView.heightAnchor.constraint(equalToConstant: 28)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h:126:12: note: 'NSLayoutConstraint' has been explicitly marked unavailable here
124 |
125 | NSLAYOUTCONSTRAINT_EXTERN API_AVAILABLE(macos(10.7), ios(6.0), tvos(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
126 | @interface NSLayoutConstraint : NSObject
| `- note: 'NSLayoutConstraint' has been explicitly marked unavailable here
127 |
128 | /* Create an array of constraints using an ASCII-art-like visual format string. The values of the `metrics` dictionary should be NSNumber (or some other type that responds to -doubleValue and returns a double).
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:146:40: error: 'label' is unavailable in watchOS
144 | iconImageView.heightAnchor.constraint(equalToConstant: 28)
145 | ])
146 | iconImageView.tintColor = .label
| `- error: 'label' is unavailable in watchOS
147 | iconImageView.image = icon
148 | hStack.addArrangedSubview(iconImageView)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:171:49: note: 'label' has been explicitly marked unavailable here
169 | /* Foreground colors for static text and related elements.
170 | */
171 | @property (class, nonatomic, readonly) UIColor *labelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'label' has been explicitly marked unavailable here
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:152:33: error: 'UILabel' is unavailable in watchOS
150 |
151 | if let subtitle = subtitle {
152 | let subtitleLabel = UILabel()
| `- error: 'UILabel' is unavailable in watchOS
153 | subtitleLabel.textColor = .secondaryLabel
154 | subtitleLabel.numberOfLines = 0
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILabel.h:33:12: note: 'UILabel' has been explicitly marked unavailable here
31 |
32 | UIKIT_EXTERN API_AVAILABLE(ios(2.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
33 | @interface UILabel : UIView <NSCoding, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting>
| `- note: 'UILabel' has been explicitly marked unavailable here
34 |
35 | @property(nullable, nonatomic,copy) NSString *text; // default is nil
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:152:33: error: 'init()' is unavailable in watchOS
150 |
151 | if let subtitle = subtitle {
152 | let subtitleLabel = UILabel()
| `- error: 'init()' is unavailable in watchOS
153 | subtitleLabel.textColor = .secondaryLabel
154 | subtitleLabel.numberOfLines = 0
/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:158:1: note: 'init()' has been explicitly marked unavailable here
156 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER;
157 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
158 | - (instancetype)init API_AVAILABLE(ios(2.0), tvos(9.0), visionos(1.0)) API_UNAVAILABLE(watchos);
| `- note: 'init()' has been explicitly marked unavailable here
159 |
160 | @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled; // default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:153:40: error: 'secondaryLabel' is unavailable in watchOS
151 | if let subtitle = subtitle {
152 | let subtitleLabel = UILabel()
153 | subtitleLabel.textColor = .secondaryLabel
| `- error: 'secondaryLabel' is unavailable in watchOS
154 | subtitleLabel.numberOfLines = 0
155 | subtitleLabel.font = subtitleFont
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:172:49: note: 'secondaryLabel' has been explicitly marked unavailable here
170 | */
171 | @property (class, nonatomic, readonly) UIColor *labelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
172 | @property (class, nonatomic, readonly) UIColor *secondaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'secondaryLabel' has been explicitly marked unavailable here
173 | @property (class, nonatomic, readonly) UIColor *tertiaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
174 | @property (class, nonatomic, readonly) UIColor *quaternaryLabelColor API_AVAILABLE(ios(13.0), tvos(13.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:161:36: error: 'UITapGestureRecognizer' is unavailable in watchOS
159 |
160 | self.onTap = onTap
161 | let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didTap))
| `- error: 'UITapGestureRecognizer' is unavailable in watchOS
162 | addGestureRecognizer(tapGestureRecognizer)
163 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITapGestureRecognizer.h:23:12: note: 'UITapGestureRecognizer' has been explicitly marked unavailable here
21 |
22 | UIKIT_EXTERN API_AVAILABLE(ios(3.2)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
23 | @interface UITapGestureRecognizer : UIGestureRecognizer
| `- note: 'UITapGestureRecognizer' has been explicitly marked unavailable here
24 |
25 | @property (nonatomic) NSUInteger numberOfTapsRequired; // Default is 1. The number of taps required to match
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:185:13: error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
183 | public func show(originWindowScene: UIWindowScene? = nil, haptic: UINotificationFeedbackGenerator.FeedbackType? = nil, onHide: (() -> Void)? = nil) {
184 | if let haptic {
185 | UINotificationFeedbackGenerator().notificationOccurred(haptic)
| `- error: 'UINotificationFeedbackGenerator' is unavailable in watchOS
186 | }
187 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UINotificationFeedbackGenerator.h:21:12: note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
19 | // UINotificationFeedbackGenerator is used to give user feedback when an notification is displayed
20 | UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos, tvos) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
21 | @interface UINotificationFeedbackGenerator : UIFeedbackGenerator
| `- note: 'UINotificationFeedbackGenerator' has been explicitly marked unavailable here
22 |
23 | /// call when a notification is displayed, passing the corresponding type
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:195:9: error: 'UIView' is unavailable in watchOS
193 | return
194 | }
195 | UIView.animate(withDuration: showAnimationDuration, delay: 0.0, options: .curveEaseOut, animations: {
| `- error: 'UIView' is unavailable in watchOS
196 | self.transform = .identity
197 | }) { [self] _ in
/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/NotificationToast/ToastView.swift:206:13: error: 'UIView' is unavailable in watchOS
204 | public func hide(after time: TimeInterval = 0.0, onHide: (() -> Void)? = nil) {
205 | DispatchQueue.main.asyncAfter(deadline: .now() + time) {
206 | UIView.animate(withDuration: self.hideAnimationDuration, delay: 0, options: .curveEaseIn, animations: { [self] in
| `- error: 'UIView' is unavailable in watchOS
207 | transform = initialTransform
208 | }) { [self] _ in
/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/NotificationToast/ToastView.swift:217:15: error: 'traitCollectionDidChange' is unavailable in watchOS
215 |
216 | override public func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
217 | super.traitCollectionDidChange(previousTraitCollection)
| `- error: 'traitCollectionDidChange' is unavailable in watchOS
218 | backgroundColor = viewBackgroundColor
219 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h:221:1: note: 'traitCollectionDidChange' has been explicitly marked unavailable here
219 |
220 | /*! To be overridden as needed to provide custom behavior when the environment's traits change. */
221 | - (void)traitCollectionDidChange:(nullable UITraitCollection *)previousTraitCollection API_DEPRECATED("Use the trait change registration APIs declared in the UITraitChangeObservable protocol", ios(8.0, 17.0), visionos(1.0, 1.0)) API_UNAVAILABLE(watchos);
| `- note: 'traitCollectionDidChange' has been explicitly marked unavailable here
222 | @end
223 |
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:244:9: error: 'NSLayoutConstraint' is unavailable in watchOS
242 | }
243 |
244 | NSLayoutConstraint.activate(constraints)
| `- error: 'NSLayoutConstraint' is unavailable in watchOS
245 | }
246 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h:126:12: note: 'NSLayoutConstraint' has been explicitly marked unavailable here
124 |
125 | NSLAYOUTCONSTRAINT_EXTERN API_AVAILABLE(macos(10.7), ios(6.0), tvos(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
126 | @interface NSLayoutConstraint : NSObject
| `- note: 'NSLayoutConstraint' has been explicitly marked unavailable here
127 |
128 | /* Create an array of constraints using an ASCII-art-like visual format string. The values of the `metrics` dictionary should be NSNumber (or some other type that responds to -doubleValue and returns a double).
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:250:9: error: 'NSLayoutConstraint' is unavailable in watchOS
248 | hStack.translatesAutoresizingMaskIntoConstraints = false
249 |
250 | NSLayoutConstraint.activate([
| `- error: 'NSLayoutConstraint' is unavailable in watchOS
251 | hStack.leadingAnchor.constraint(equalTo: leadingAnchor, constant: 24),
252 | hStack.trailingAnchor.constraint(equalTo: trailingAnchor, constant: -24),
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutConstraint.h:126:12: note: 'NSLayoutConstraint' has been explicitly marked unavailable here
124 |
125 | NSLAYOUTCONSTRAINT_EXTERN API_AVAILABLE(macos(10.7), ios(6.0), tvos(9.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
126 | @interface NSLayoutConstraint : NSObject
| `- note: 'NSLayoutConstraint' has been explicitly marked unavailable here
127 |
128 | /* Create an array of constraints using an ASCII-art-like visual format string. The values of the `metrics` dictionary should be NSNumber (or some other type that responds to -doubleValue and returns a double).
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:283:19: error: 'init(windowScene:)' is unavailable in watchOS
281 | init(toastView: ToastView, originWindowScene: UIWindowScene?) {
282 | if let originWindowScene {
283 | super.init(windowScene: originWindowScene)
| `- error: 'init(windowScene:)' is unavailable in watchOS
284 | } else if let activeForegroundScene = UIApplication.shared.connectedScenes
285 | .first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h:25:1: note: 'init(windowScene:)' has been explicitly marked unavailable here
23 |
24 | // instantiate a UIWindow already associated with a given UIWindowScene instance, with matching frame & interface orientations.
25 | - (instancetype)initWithWindowScene:(UIWindowScene *)windowScene NS_DESIGNATED_INITIALIZER API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos);
| `- note: 'init(windowScene:)' has been explicitly marked unavailable here
26 |
27 | - (instancetype)initWithFrame:(CGRect)frame NS_DESIGNATED_INITIALIZER API_DEPRECATED("Use init(windowScene:) instead.", ios(2.0, 26.0), tvos(9.0, 26.0), visionos(1.0, 26.0)) API_UNAVAILABLE(watchos);
/Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift:285:76: error: 'UIWindowScene' is unavailable in watchOS
283 | super.init(windowScene: originWindowScene)
284 | } else if let activeForegroundScene = UIApplication.shared.connectedScenes
285 | .first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene {
| `- error: 'UIWindowScene' is unavailable in watchOS
286 | super.init(windowScene: activeForegroundScene)
287 | } else if let inactiveForegroundScene = UIApplication.shared.connectedScenes
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowScene.h:22:12: note: 'UIWindowScene' has been explicitly marked unavailable here
20 |
21 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
22 | @interface UIWindowScene : UIScene
| `- note: 'UIWindowScene' has been explicitly marked unavailable here
23 |
24 | #pragma mark Geometry
SwiftCompile normal arm64_32 /Users/admin/builder/spi-builder-workspace/Sources/NotificationToast/ToastView.swift (in target 'NotificationToast' from project 'NotificationToast')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile ToastView.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
2026-09-21 15:12:02.355 xcodebuild[806:4710] [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 'NotificationToast' from project 'NotificationToast')
SwiftEmitModule normal arm64 Emitting\ module\ for\ NotificationToast (in target 'NotificationToast' from project 'NotificationToast')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ NotificationToast (in target 'NotificationToast' from project 'NotificationToast')
SwiftCompile normal arm64_32 (in target 'NotificationToast' from project 'NotificationToast')
Building workspace NotificationToast with scheme NotificationToast
(5 failures)
BUILD FAILURE 6.4 watchOS