Build Information
Failed to build BetterMenus, reference v1.1.0 (f7d479), with Swift 6.4 for watchOS using Xcode 27.0 on 23 Sep 2026 01:53:21 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 BetterMenus -destination generic/platform=watchOSBuild Log
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
398 | /// ```
399 | @available(iOS 16.0, *)
400 | public struct Button: UIActionBackedMenuBuilderElement {
| `- warning: unavailable class 'UIAction' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
401 | public var uiKitEquivalent: UIAction {
402 | UIAction(title: title, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state, handler: handler)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' declared here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' declared here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:452:33: error: 'UIAction' is unavailable in watchOS
450 | public struct Toggle: UIActionBackedMenuBuilderElement {
451 | /// Convert the builder `Toggle` into a `UIAction` with a handler that provides the new value.
452 | public var uiKitEquivalent: UIAction {
| `- error: 'UIAction' is unavailable in watchOS
453 | UIAction(title: title, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state.uiMenuElementState, handler: { action in
454 | handler(action, !state.boolValue)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:465:28: error: 'UIAction' is unavailable in watchOS
463 |
464 | /// Optional identifier for the action, can be set using ``UIActionBackedMenuBuilderElement/identifier(_:)-6auaj``.
465 | public var identifier: UIAction.Identifier? = nil
| `- error: 'UIAction' is unavailable in watchOS
466 |
467 | /// An optional discoverability title used by assistive features, can be set using ``UIActionBackedMenuBuilderElement/discoverabilityTitle(_:)-7qrbe``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:471:23: error: 'UIMenuElement' is unavailable in watchOS
469 |
470 | /// Attributes such as `.destructive` or `.disabled`, can be set using ``UIActionBackedMenuBuilderElement/style(_:)-rtxf``.
471 | public var style: UIMenuElement.Attributes = []
| `- error: 'UIMenuElement' is unavailable in watchOS
472 |
473 | /// The on/off state for actions that represent a stateful element, can be set using ``UIActionBackedMenuBuilderElement/state(_:)-12gq6``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:477:26: error: 'UIAction' is unavailable in watchOS
475 |
476 | /// Handler called when the toggle is activated; provides the new boolean value.
477 | public let handler: (UIAction, _ newValue: Bool) -> Void
| `- error: 'UIAction' is unavailable in watchOS
478 |
479 | /// Creates a Toggle.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:480:111: error: 'UIAction' is unavailable in watchOS
478 |
479 | /// Creates a Toggle.
480 | public init(_ title: String = "", image: UIImage? = nil, state: ToggleState = .off, _ handler: @escaping (UIAction, _ newValue: Bool) -> Void) {
| `- error: 'UIAction' is unavailable in watchOS
481 | self.title = title
482 | self.image = image
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:492:40: error: 'UIMenuElement' is unavailable in watchOS
490 |
491 | /// Convert to `UIMenuElement.State` used by `UIAction`.
492 | public var uiMenuElementState: UIMenuElement.State {
| `- error: 'UIMenuElement' is unavailable in watchOS
493 | return self == .on ? .on : .off
494 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:510:60: error: 'UIMenuElement' is unavailable in watchOS
508 | /// - Parameter state: A `UIMenuElement.State`.
509 | /// - Returns: `.on` or `.off` if the state maps, otherwise `nil`.
510 | public static func fromUIMenuElementState(_ state: UIMenuElement.State) -> Self? {
| `- error: 'UIMenuElement' is unavailable in watchOS
511 | switch state {
512 | case .off:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:450:15: warning: unavailable class 'UIAction' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
448 | /// ```
449 | @available(iOS 16.0, *)
450 | public struct Toggle: UIActionBackedMenuBuilderElement {
| `- warning: unavailable class 'UIAction' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
451 | /// Convert the builder `Toggle` into a `UIAction` with a handler that provides the new value.
452 | public var uiKitEquivalent: UIAction {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' declared here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' declared here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:540:33: error: 'UIMenu' is unavailable in watchOS
538 | @available(iOS 16.0, *)
539 | public struct ForEach<T>: MenuBuilderElement {
540 | public var uiKitEquivalent: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
541 | let children: [UIMenuElement] = self.elements.map(body).map(\.children).reduce([], {
542 | var copy = $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/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:553:45: error: 'UIMenu' is unavailable in watchOS
551 |
552 | /// The mapping closure that builds a `UIMenu` for each element.
553 | @BUIMenuBuilder public let body: (T) -> UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
554 |
555 | /// Create a ``BetterMenus/ForEach`` that maps `elements` using `body`.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:556:73: error: 'UIMenu' is unavailable in watchOS
554 |
555 | /// Create a ``BetterMenus/ForEach`` that maps `elements` using `body`.
556 | public init(_ elements: [T], @BUIMenuBuilder body: @escaping (T) -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
557 | self.elements = elements
558 | self.body = body
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:539:15: warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
537 | /// ```
538 | @available(iOS 16.0, *)
539 | public struct ForEach<T>: MenuBuilderElement {
| `- warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
540 | public var uiKitEquivalent: UIMenu {
541 | let children: [UIMenuElement] = self.elements.map(body).map(\.children).reduce([], {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' declared here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' declared here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:574:33: error: 'UIAction' is unavailable in watchOS
572 | @available(iOS 16.0, *)
573 | public struct Text: UIActionBackedMenuBuilderElement {
574 | public var uiKitEquivalent: UIAction {
| `- error: 'UIAction' is unavailable in watchOS
575 | UIAction(title: text, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state, handler: {_ in})
576 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:585:28: error: 'UIAction' is unavailable in watchOS
583 |
584 | /// Optional identifier for the action, can be set using ``UIActionBackedMenuBuilderElement/identifier(_:)-6auaj``.
585 | public var identifier: UIAction.Identifier? = nil
| `- error: 'UIAction' is unavailable in watchOS
586 |
587 | /// An optional discoverability title used by assistive features, can be set using ``UIActionBackedMenuBuilderElement/discoverabilityTitle(_:)-7qrbe``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:591:23: error: 'UIMenuElement' is unavailable in watchOS
589 |
590 | /// Attributes such as `.destructive` or `.disabled`, can be set using ``UIActionBackedMenuBuilderElement/style(_:)-rtxf``.
591 | public var style: UIMenuElement.Attributes = [.keepsMenuPresented]
| `- error: 'UIMenuElement' is unavailable in watchOS
592 |
593 | /// The on/off state for actions that represent a stateful element, can be set using ``UIActionBackedMenuBuilderElement/state(_:)-12gq6``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:591:52: error: 'keepsMenuPresented' is unavailable in watchOS
589 |
590 | /// Attributes such as `.destructive` or `.disabled`, can be set using ``UIActionBackedMenuBuilderElement/style(_:)-rtxf``.
591 | public var style: UIMenuElement.Attributes = [.keepsMenuPresented]
| `- error: 'keepsMenuPresented' is unavailable in watchOS
592 |
593 | /// The on/off state for actions that represent a stateful element, can be set using ``UIActionBackedMenuBuilderElement/state(_:)-12gq6``.
UIKit.UIMenuElement.Attributes.keepsMenuPresented:4:23: note: 'keepsMenuPresented' has been explicitly marked unavailable here
2 | struct Attributes {
3 | @available(watchOS, unavailable)
4 | public static var keepsMenuPresented: UIMenuElement.Attributes { get } }
| `- note: 'keepsMenuPresented' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:594:23: error: 'UIMenuElement' is unavailable in watchOS
592 |
593 | /// The on/off state for actions that represent a stateful element, can be set using ``UIActionBackedMenuBuilderElement/state(_:)-12gq6``.
594 | public var state: UIMenuElement.State = .off
| `- error: 'UIMenuElement' is unavailable in watchOS
595 |
596 | /// An optional tag that can be used by consumers for selection or identification.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:573:15: warning: unavailable enum 'State' was used to satisfy a requirement of protocol 'UIActionBackedMenuBuilderElement'; this will be an error in a future Swift language mode
183 | /// A protocol providing useful methods to customize an element whose UIKit type is a UIAction.
184 | public protocol UIActionBackedMenuBuilderElement: MenuBuilderElement where MenuElementType: UIAction {
185 | associatedtype StateType: UIActionBackedMenuBuilderElementState
| `- note: requirement 'StateType' declared here
186 |
187 | /// Optional identifier for the action, can be set using ``UIActionBackedMenuBuilderElement/identifier(_:)-6auaj``.
:
571 | /// ```
572 | @available(iOS 16.0, *)
573 | public struct Text: UIActionBackedMenuBuilderElement {
| `- warning: unavailable enum 'State' was used to satisfy a requirement of protocol 'UIActionBackedMenuBuilderElement'; this will be an error in a future Swift language mode
574 | public var uiKitEquivalent: UIAction {
575 | UIAction(title: text, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state, handler: {_ 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/UIMenuElement.h:14:28: note: 'State' declared here
12 | @class UIImage;
13 |
14 | typedef NS_ENUM(NSInteger, UIMenuElementState) {
| `- note: 'State' declared here
15 | UIMenuElementStateOff,
16 | UIMenuElementStateOn,
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:573:15: warning: unavailable class 'UIAction' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
571 | /// ```
572 | @available(iOS 16.0, *)
573 | public struct Text: UIActionBackedMenuBuilderElement {
| `- warning: unavailable class 'UIAction' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
574 | public var uiKitEquivalent: UIAction {
575 | UIAction(title: text, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state, handler: {_ 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/UIAction.h:29:12: note: 'UIAction' declared here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' declared here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:619:33: error: 'UIMenu' is unavailable in watchOS
617 | @available(iOS 16.0, *)
618 | public struct Stepper<T>: MenuBuilderElement where T: Strideable {
619 | public var uiKitEquivalent: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
620 | let processedBody = body(value)
621 | return Menu(processedBody.text, image: processedBody.image, options: [.displayInline], preferredElementSize: .small) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:618:15: warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
616 | /// ```
617 | @available(iOS 16.0, *)
618 | public struct Stepper<T>: MenuBuilderElement where T: Strideable {
| `- warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
619 | public var uiKitEquivalent: UIMenu {
620 | let processedBody = body(value)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' declared here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' declared here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:703:33: error: 'UIMenu' is unavailable in watchOS
701 | @available(iOS 16.0, *)
702 | public struct Section: MenuBuilderElement {
703 | public var uiKitEquivalent: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
704 | UIMenu(title: title, options: .displayInline, children: body().children)
705 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:711:21: error: 'UIMenu' is unavailable in watchOS
709 |
710 | /// Optional identifier for the section. Can be used to refresh the section only.
711 | var identifier: UIMenu.Identifier? = nil
| `- error: 'UIMenu' is unavailable in watchOS
712 |
713 | /// The body closure producing the content of the section.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:714:44: error: 'UIMenu' is unavailable in watchOS
712 |
713 | /// The body closure producing the content of the section.
714 | @BUIMenuBuilder public let body: () -> UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
715 |
716 | /// Create a new `Section`.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:717:77: error: 'UIMenu' is unavailable in watchOS
715 |
716 | /// Create a new `Section`.
717 | public init(_ title: String = "", @BUIMenuBuilder body: @escaping () -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
718 | self.title = title
719 | self.body = body
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:723:42: error: 'UIMenu' is unavailable in watchOS
721 |
722 | /// Optional identifier for the section. Can be used to refresh the section only.
723 | public func identifier(_ identifier: UIMenu.Identifier?) -> Self {
| `- error: 'UIMenu' is unavailable in watchOS
724 | var copy = self
725 | copy.identifier = identifier
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:702:15: warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
700 | /// ```
701 | @available(iOS 16.0, *)
702 | public struct Section: MenuBuilderElement {
| `- warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
703 | public var uiKitEquivalent: UIMenu {
704 | UIMenu(title: title, options: .displayInline, children: body().children)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' declared here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' declared here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:752:33: error: 'UIMenu' is unavailable in watchOS
750 | @available(iOS 16.0, *)
751 | public struct ControlGroup: MenuBuilderElement {
752 | public var uiKitEquivalent: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
753 | UIMenu(options: [.displayInline], preferredElementSize: .medium, children: controls().children)
754 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:757:48: error: 'UIMenu' is unavailable in watchOS
755 |
756 | /// A builder closure that returns the controls to include in the group.
757 | @BUIMenuBuilder public let controls: () -> UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
758 |
759 | /// Create a control group from the provided `controls` closure.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:760:59: error: 'UIMenu' is unavailable in watchOS
758 |
759 | /// Create a control group from the provided `controls` closure.
760 | public init(@BUIMenuBuilder controls: @escaping () -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
761 | self.controls = controls
762 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:751:15: warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
749 | /// ```
750 | @available(iOS 16.0, *)
751 | public struct ControlGroup: MenuBuilderElement {
| `- warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
752 | public var uiKitEquivalent: UIMenu {
753 | UIMenu(options: [.displayInline], preferredElementSize: .medium, children: controls().children)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' declared here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' declared here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:774:32: error: 'UIDeferredMenuElement' is unavailable in watchOS
772 |
773 | enum CacheType {
774 | case uiDeferredElement(UIDeferredMenuElement)
| `- error: 'UIDeferredMenuElement' is unavailable in watchOS
775 | case deferredContent(Any)
776 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h:16:12: note: 'UIDeferredMenuElement' has been explicitly marked unavailable here
14 |
15 | UIKIT_EXTERN API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
16 | @interface UIDeferredMenuElement : UIMenuElement
| `- note: 'UIDeferredMenuElement' has been explicitly marked unavailable here
17 |
18 | /// The identifier of this deferred menu element.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:881:33: error: 'UIDeferredMenuElement' is unavailable in watchOS
879 | @available(iOS 16.0, *)
880 | public struct Async<Result>: MenuBuilderElement {
881 | public var uiKitEquivalent: UIDeferredMenuElement {
| `- error: 'UIDeferredMenuElement' is unavailable in watchOS
882 | let completionHandler: (@escaping ([UIMenuElement]) -> Void) -> Void = { completion in
883 | Task {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h:16:12: note: 'UIDeferredMenuElement' has been explicitly marked unavailable here
14 |
15 | UIKIT_EXTERN API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
16 | @interface UIDeferredMenuElement : UIMenuElement
| `- note: 'UIDeferredMenuElement' has been explicitly marked unavailable here
17 |
18 | /// The identifier of this deferred menu element.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:949:66: error: 'UIMenuElement' is unavailable in watchOS
947 | /// A static method to clean the cache for identifiers and elements that match a certain condition.
948 | @available(*, deprecated, message: "Use cleanCache(where condition: (AnyHashable) -> Bool) condition instead. This method will be removed in a future version of BetterMenus.") // TODO: make the AsyncCache private when this gets removed
949 | public static func cleanCache(where condition: (AnyHashable, UIMenuElement) -> Bool) {
| `- error: 'UIMenuElement' is unavailable in watchOS
950 | return AsyncStorage.AsyncStorageQueue.asyncAndWait {
951 | AsyncStorage.AsyncCache.removeAll(where: { key, element 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/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:976:50: error: 'UIMenu' is unavailable in watchOS
974 |
975 | /// A builder closure that maps the fetched `Result` into a `UIMenu`.
976 | @BUIMenuBuilder public let body: (Result) -> UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
977 |
978 | /// Create an `Async` deferred menu element.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:985:105: error: 'UIMenu' is unavailable in watchOS
983 | /// - asyncFetch: The asynchronous fetch closure.
984 | /// - body: Builder that returns a `UIMenu` given the fetch result.
985 | public init(_ asyncFetch: @escaping () async -> Result, @BUIMenuBuilder body: @escaping (Result) -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
986 | self.asyncFetch = asyncFetch
987 | self.body = body
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:880:15: warning: unavailable class 'UIDeferredMenuElement' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
878 | /// ```
879 | @available(iOS 16.0, *)
880 | public struct Async<Result>: MenuBuilderElement {
| `- warning: unavailable class 'UIDeferredMenuElement' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
881 | public var uiKitEquivalent: UIDeferredMenuElement {
882 | let completionHandler: (@escaping ([UIMenuElement]) -> Void) -> Void = { completion 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/UIDeferredMenuElement.h:16:12: note: 'UIDeferredMenuElement' declared here
14 |
15 | UIKIT_EXTERN API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
16 | @interface UIDeferredMenuElement : UIMenuElement
| `- note: 'UIDeferredMenuElement' declared here
17 |
18 | /// The identifier of this deferred menu element.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1045:33: error: 'UIMenu' is unavailable in watchOS
1043 | /// Delegate that returns a dynamically-updatable menu. Subclass it to have more customizability.
1044 | public class Delegate: NSObject, BetterUIContextMenuInteractionDelegate {
1045 | public var currentMenu: UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
1046 |
1047 | public var previewProvider: UIContextMenuContentPreviewProvider?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1047:37: error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1045 | public var currentMenu: UIMenu
1046 |
1047 | public var previewProvider: UIContextMenuContentPreviewProvider?
| `- error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1048 |
1049 | public init(currentMenu: UIMenu, previewProvider: UIContextMenuContentPreviewProvider?) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:35:40: note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
33 | * @abstract Return a UIViewController to be displayed as this menu's preview component.
34 | */
35 | typedef UIViewController * _Nullable (^UIContextMenuContentPreviewProvider)(void) API_UNAVAILABLE(watchos);
| `- note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1049:34: error: 'UIMenu' is unavailable in watchOS
1047 | public var previewProvider: UIContextMenuContentPreviewProvider?
1048 |
1049 | public init(currentMenu: UIMenu, previewProvider: UIContextMenuContentPreviewProvider?) {
| `- error: 'UIMenu' is unavailable in watchOS
1050 | self.currentMenu = currentMenu
1051 | self.previewProvider = previewProvider
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1049:59: error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1047 | public var previewProvider: UIContextMenuContentPreviewProvider?
1048 |
1049 | public init(currentMenu: UIMenu, previewProvider: UIContextMenuContentPreviewProvider?) {
| `- error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1050 | self.currentMenu = currentMenu
1051 | self.previewProvider = previewProvider
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:35:40: note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
33 | * @abstract Return a UIViewController to be displayed as this menu's preview component.
34 | */
35 | typedef UIViewController * _Nullable (^UIContextMenuContentPreviewProvider)(void) API_UNAVAILABLE(watchos);
| `- note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1054:59: error: 'UIContextMenuInteraction' is unavailable in watchOS
1052 | }
1053 |
1054 | public func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration? {
| `- error: 'UIContextMenuInteraction' is unavailable in watchOS
1055 | return UIContextMenuConfiguration(identifier: nil,
1056 | previewProvider: previewProvider,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h:32:12: note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(17.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIContextMenuInteraction : NSObject <UIInteraction>
| `- note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
33 |
34 | /// The interaction's delegate.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1054:138: error: 'UIContextMenuConfiguration' is unavailable in watchOS
1052 | }
1053 |
1054 | public func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration? {
| `- error: 'UIContextMenuConfiguration' is unavailable in watchOS
1055 | return UIContextMenuConfiguration(identifier: nil,
1056 | previewProvider: previewProvider,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:39:12: note: 'UIContextMenuConfiguration' has been explicitly marked unavailable here
37 |
38 | UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(17.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
39 | @interface UIContextMenuConfiguration : NSObject
| `- note: 'UIContextMenuConfiguration' has been explicitly marked unavailable here
40 |
41 | /// This configuration's identifier. When representing multiple items in your app, this identifier
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1065:28: error: 'UIMenu' is unavailable in watchOS
1063 |
1064 | /// The body closure used to construct the menu on demand.
1065 | public let body: () -> UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
1066 |
1067 | /// A preview provider for the `UIContextMenuInteractionDelegate`.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1068:33: error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1066 |
1067 | /// A preview provider for the `UIContextMenuInteractionDelegate`.
1068 | public var previewProvider: UIContextMenuContentPreviewProvider? {
| `- error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1069 | didSet {
1070 | self._delegate.previewProvider = previewProvider
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:35:40: note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
33 | * @abstract Return a UIViewController to be displayed as this menu's preview component.
34 | */
35 | typedef UIViewController * _Nullable (^UIContextMenuContentPreviewProvider)(void) API_UNAVAILABLE(watchos);
| `- note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1075:30: error: 'UIMenu' is unavailable in watchOS
1073 |
1074 | /// The currently-visible menu. When set it updates the delegate's reference.
1075 | private var currentMenu: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
1076 | didSet {
1077 | self._delegate.currentMenu = currentMenu
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1093:55: error: 'UIMenu' is unavailable in watchOS
1091 | ///
1092 | /// If you call `reloadMenu()` without specifying an identifier, it will update the root menu. However, if a submenu is currently open, that submenu won't reflect the changes until it is closed and reopened again. This is because the update applies to the visible menus based on UIKit's menu presentation behavior.
1093 | public func reloadMenu(withIdentifier identifier: UIMenu.Identifier? = nil) {
| `- error: 'UIMenu' is unavailable in watchOS
1094 |
1095 | // documentation from UIKit
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1149:55: error: 'UIMenu' is unavailable in watchOS
1147 | /// view.addInteraction(interaction)
1148 | /// ```
1149 | public init(@BUIMenuBuilder body: @escaping () -> UIMenu, previewProvider: UIContextMenuContentPreviewProvider? = nil, delegate: BetterUIContextMenuInteractionDelegate? = nil) {
| `- error: 'UIMenu' is unavailable in watchOS
1150 | self.body = body
1151 | self.previewProvider = previewProvider
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1149:80: error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1147 | /// view.addInteraction(interaction)
1148 | /// ```
1149 | public init(@BUIMenuBuilder body: @escaping () -> UIMenu, previewProvider: UIContextMenuContentPreviewProvider? = nil, delegate: BetterUIContextMenuInteractionDelegate? = nil) {
| `- error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1150 | self.body = body
1151 | self.previewProvider = previewProvider
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:35:40: note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
33 | * @abstract Return a UIViewController to be displayed as this menu's preview component.
34 | */
35 | typedef UIViewController * _Nullable (^UIContextMenuContentPreviewProvider)(void) API_UNAVAILABLE(watchos);
| `- note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1042:44: error: 'UIContextMenuInteraction' is unavailable in watchOS
1040 |
1041 | @available(iOS 16.0, *)
1042 | public class BetterContextMenuInteraction: UIContextMenuInteraction {
| `- error: 'UIContextMenuInteraction' is unavailable in watchOS
1043 | /// Delegate that returns a dynamically-updatable menu. Subclass it to have more customizability.
1044 | public class Delegate: NSObject, BetterUIContextMenuInteractionDelegate {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h:32:12: note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(17.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIContextMenuInteraction : NSObject <UIInteraction>
| `- note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
33 |
34 | /// The interaction's delegate.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1174:22: error: 'UIMenu' is unavailable in watchOS
1172 | /// See the implementation of ``BetterMenus/BetterContextMenuInteraction/Delegate`` to get more details.
1173 | public protocol BetterUIContextMenuInteractionDelegate: UIContextMenuInteractionDelegate {
1174 | var currentMenu: UIMenu { get set }
| `- error: 'UIMenu' is unavailable in watchOS
1175 |
1176 | var previewProvider: UIContextMenuContentPreviewProvider? { get set }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1176:26: error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1174 | var currentMenu: UIMenu { get set }
1175 |
1176 | var previewProvider: UIContextMenuContentPreviewProvider? { get set }
| `- error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1177 |
1178 | func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:35:40: note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
33 | * @abstract Return a UIViewController to be displayed as this menu's preview component.
34 | */
35 | typedef UIViewController * _Nullable (^UIContextMenuContentPreviewProvider)(void) API_UNAVAILABLE(watchos);
| `- note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1178:48: error: 'UIContextMenuInteraction' is unavailable in watchOS
1176 | var previewProvider: UIContextMenuContentPreviewProvider? { get set }
1177 |
1178 | func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration?
| `- error: 'UIContextMenuInteraction' is unavailable in watchOS
1179 | }
1180 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h:32:12: note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(17.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIContextMenuInteraction : NSObject <UIInteraction>
| `- note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
33 |
34 | /// The interaction's delegate.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1178:127: error: 'UIContextMenuConfiguration' is unavailable in watchOS
1176 | var previewProvider: UIContextMenuContentPreviewProvider? { get set }
1177 |
1178 | func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration?
| `- error: 'UIContextMenuConfiguration' is unavailable in watchOS
1179 | }
1180 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:39:12: note: 'UIContextMenuConfiguration' has been explicitly marked unavailable here
37 |
38 | UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(17.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
39 | @interface UIContextMenuConfiguration : NSObject
| `- note: 'UIContextMenuConfiguration' has been explicitly marked unavailable here
40 |
41 | /// This configuration's identifier. When representing multiple items in your app, this identifier
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1173:57: error: 'UIContextMenuInteractionDelegate' is unavailable in watchOS
1171 | ///
1172 | /// See the implementation of ``BetterMenus/BetterContextMenuInteraction/Delegate`` to get more details.
1173 | public protocol BetterUIContextMenuInteractionDelegate: UIContextMenuInteractionDelegate {
| `- error: 'UIContextMenuInteractionDelegate' is unavailable in watchOS
1174 | var currentMenu: UIMenu { get set }
1175 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h:99:11: note: 'UIContextMenuInteractionDelegate' has been explicitly marked unavailable here
97 |
98 | UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(17.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
99 | @protocol UIContextMenuInteractionDelegate <NSObject>
| `- note: 'UIContextMenuInteractionDelegate' has been explicitly marked unavailable here
100 |
101 | /*!
[#ExistentialAny]: <https://docs.swift.org/compiler/documentation/diagnostics/existential-any>
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/BetterMenus/BetterMenus.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/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/BetterMenus.build/Debug-watchos/BetterMenus-t.build/Objects-normal/arm64_32/BetterMenus-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/PackageFrameworks -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 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/watchos27.0-24R360-e829b21a6f8c9b70876ba0858053c04477534ef55a1706bf4c1112bbb242f0a2.sdkstatcache -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-watchos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/BetterMenus.build/Debug-watchos/BetterMenus-t.build/DerivedSources-normal/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/BetterMenus.build/Debug-watchos/BetterMenus-t.build/DerivedSources/arm64_32 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/BetterMenus.build/Debug-watchos/BetterMenus-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name BetterMenus -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/BetterMenus.build/Debug-watchos/BetterMenus-t.build/Objects-normal/arm64_32/BetterMenus_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/BetterMenus.build/Debug-watchos/BetterMenus-t.build/Objects-normal/arm64_32/BetterMenus.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/BetterMenus.build/Debug-watchos/BetterMenus-t.build/Objects-normal/arm64_32/BetterMenus.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/BetterMenus.build/Debug-watchos/BetterMenus-t.build/Objects-normal/arm64_32/BetterMenus-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/BetterMenus.build/Debug-watchos/BetterMenus-t.build/Objects-normal/arm64_32/BetterMenus-primary-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/BetterMenus.build/Debug-watchos/BetterMenus-t.build/Objects-normal/arm64_32/BetterMenus-primary-emit-module.d -parse-as-library -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/BetterMenus.build/Debug-watchos/BetterMenus-t.build/Objects-normal/arm64_32/BetterMenus.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/BetterMenus.build/Debug-watchos/BetterMenus-t.build/Objects-normal/arm64_32/BetterMenus.abi.json
SwiftCompile normal arm64_32 (in target 'BetterMenus' from project 'BetterMenus')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
SwiftCompile normal arm64 Compiling\ BetterMenus.swift /Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift (in target 'BetterMenus' from project 'BetterMenus')
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:29:74: error: 'UIMenu' is unavailable in watchOS
27 | /// - Parameter components: The list of elements produced by the builder.
28 | /// - Returns: A constructed `UIMenu` representing the composed menu hierarchy.
29 | public static func buildArray(_ components: [MenuBuilderElement]) -> UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
30 | let mainMenu: UIMenuInfo = UIMenuInfo(image: UIImage(systemName: "cube"), options: .displayInline)
31 | var grandParentsQueue: [UIMenuInfo] = []
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:29:50: warning: use of protocol 'MenuBuilderElement' as a type must be written 'any MenuBuilderElement'; this will be an error in a future Swift language mode [#ExistentialAny]
27 | /// - Parameter components: The list of elements produced by the builder.
28 | /// - Returns: A constructed `UIMenu` representing the composed menu hierarchy.
29 | public static func buildArray(_ components: [MenuBuilderElement]) -> UIMenu {
| `- warning: use of protocol 'MenuBuilderElement' as a type must be written 'any MenuBuilderElement'; this will be an error in a future Swift language mode [#ExistentialAny]
30 | let mainMenu: UIMenuInfo = UIMenuInfo(image: UIImage(systemName: "cube"), options: .displayInline)
31 | var grandParentsQueue: [UIMenuInfo] = []
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:57:79: error: 'UIMenu' is unavailable in watchOS
55 | }
56 |
57 | public static func buildBlock(_ components: any MenuBuilderElement...) -> UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
58 | return Self.buildArray(components)
59 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:69:81: error: 'UIMenu' is unavailable in watchOS
67 | }
68 |
69 | public static func buildFinalResult(_ component: any MenuBuilderElement) -> UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
70 | return (component as? UIMenu) ?? UIMenu(options: .displayInline, children: [component.uiKitEquivalent])
71 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:91:25: error: 'UIMenu' is unavailable in watchOS
89 |
90 | /// An optional identifier used to identify the menu.
91 | var identifier: UIMenu.Identifier?
| `- error: 'UIMenu' is unavailable in watchOS
92 |
93 | /// Options that control menu behavior and presentation.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:94:22: error: 'UIMenu' is unavailable in watchOS
92 |
93 | /// Options that control menu behavior and presentation.
94 | var options: UIMenu.Options
| `- error: 'UIMenu' is unavailable in watchOS
95 |
96 | /// Preferred element size for the menu's children.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:97:35: error: 'UIMenu' is unavailable in watchOS
95 |
96 | /// Preferred element size for the menu's children.
97 | var preferredElementSize: UIMenu.ElementSize
| `- error: 'UIMenu' is unavailable in watchOS
98 |
99 | /// The collected children for this menu node.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:100:24: error: 'UIMenuElement' is unavailable in watchOS
98 |
99 | /// The collected children for this menu node.
100 | var children: [UIMenuElement]
| `- error: 'UIMenuElement' is unavailable in watchOS
101 |
102 | /// Initialize a new ``UIMenuInfo``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:106:94: error: 'UIMenu' is unavailable in watchOS
104 | /// All parameters mirror the `UIMenu` initializer. The default `preferredElementSize`
105 | /// is `.automatic` on iOS 17+ and `.large` on older targets to preserve behavior.
106 | init(title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }(), children: [UIMenuElement] = []) {
| `- error: 'UIMenu' is unavailable in watchOS
107 | self.title = title
108 | self.subtitle = subtitle
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:106:129: error: 'UIMenu' is unavailable in watchOS
104 | /// All parameters mirror the `UIMenu` initializer. The default `preferredElementSize`
105 | /// is `.automatic` on iOS 17+ and `.large` on older targets to preserve behavior.
106 | init(title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }(), children: [UIMenuElement] = []) {
| `- error: 'UIMenu' is unavailable in watchOS
107 | self.title = title
108 | self.subtitle = subtitle
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:106:172: error: 'UIMenu' is unavailable in watchOS
104 | /// All parameters mirror the `UIMenu` initializer. The default `preferredElementSize`
105 | /// is `.automatic` on iOS 17+ and `.large` on older targets to preserve behavior.
106 | init(title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }(), children: [UIMenuElement] = []) {
| `- error: 'UIMenu' is unavailable in watchOS
107 | self.title = title
108 | self.subtitle = subtitle
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:106:294: error: 'UIMenuElement' is unavailable in watchOS
104 | /// All parameters mirror the `UIMenu` initializer. The default `preferredElementSize`
105 | /// is `.automatic` on iOS 17+ and `.large` on older targets to preserve behavior.
106 | init(title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }(), children: [UIMenuElement] = []) {
| `- error: 'UIMenuElement' is unavailable in watchOS
107 | self.title = title
108 | self.subtitle = subtitle
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:106:250: error: 'automatic' is unavailable in watchOS
104 | /// All parameters mirror the `UIMenu` initializer. The default `preferredElementSize`
105 | /// is `.automatic` on iOS 17+ and `.large` on older targets to preserve behavior.
106 | init(title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }(), children: [UIMenuElement] = []) {
| `- error: 'automatic' is unavailable in watchOS
107 | self.title = title
108 | self.subtitle = subtitle
UIKit.UIMenu.ElementSize.automatic:4:10: note: 'automatic' has been explicitly marked unavailable here
2 | enum ElementSize {
3 | @available(watchOS, unavailable)
4 | case automatic }
| `- note: 'automatic' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:119:28: error: 'UIMenu' is unavailable in watchOS
117 | ///
118 | /// - Returns: A fully constructed `UIMenu` instance.
119 | func makeMenu() -> UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
120 | return UIMenu(title: title, subtitle: subtitle, image: image, identifier: identifier, options: options, preferredElementSize: preferredElementSize, children: children)
121 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:136:57: error: 'UIMenu' is unavailable in watchOS
134 | }
135 |
136 | public func findChildren(withIdentifier identifier: UIMenu.Identifier) -> UIMenu? {
| `- error: 'UIMenu' is unavailable in watchOS
137 | if self.identifier == identifier {
138 | return self
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:136:79: error: 'UIMenu' is unavailable in watchOS
134 | }
135 |
136 | public func findChildren(withIdentifier identifier: UIMenu.Identifier) -> UIMenu? {
| `- error: 'UIMenu' is unavailable in watchOS
137 | if self.identifier == identifier {
138 | return self
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:128:11: error: 'UIMenu' is unavailable in watchOS
126 |
127 | @available(iOS 16.0, *)
128 | extension UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
129 | /// Convert a runtime `UIMenu` into the builders' internal `UIMenuInfo` representation.
130 | ///
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:155:37: error: 'UIMenuElement' is unavailable in watchOS
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- error: 'UIMenuElement' is unavailable in watchOS
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:166:33: error: 'UIMenuElement' is unavailable in watchOS
164 |
165 | extension UIMenuElement: MenuBuilderElement {
166 | public var uiKitEquivalent: UIMenuElement { self }
| `- error: 'UIMenuElement' is unavailable in watchOS
167 | }
168 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:165:1: warning: unavailable class 'UIMenuElement' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
163 | }
164 |
165 | extension UIMenuElement: MenuBuilderElement {
| `- warning: unavailable class 'UIMenuElement' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
166 | public var uiKitEquivalent: UIMenuElement { self }
167 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' declared here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' declared here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:165:11: error: 'UIMenuElement' is unavailable in watchOS
163 | }
164 |
165 | extension UIMenuElement: MenuBuilderElement {
| `- error: 'UIMenuElement' is unavailable in watchOS
166 | public var uiKitEquivalent: UIMenuElement { self }
167 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:170:33: error: 'UIMenu' is unavailable in watchOS
168 |
169 | extension Array: MenuBuilderElement where Element: MenuBuilderElement {
170 | public var uiKitEquivalent: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
171 | return BUIMenuBuilder.buildArray(self)
172 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:169:1: warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
167 | }
168 |
169 | extension Array: MenuBuilderElement where Element: MenuBuilderElement {
| `- warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
170 | public var uiKitEquivalent: UIMenu {
171 | return BUIMenuBuilder.buildArray(self)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' declared here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' declared here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:181:11: error: 'UIMenuElement' is unavailable in watchOS
179 | }
180 |
181 | extension UIMenuElement.State: UIActionBackedMenuBuilderElementState {}
| `- error: 'UIMenuElement' is unavailable in watchOS
182 |
183 | /// A protocol providing useful methods to customize an element whose UIKit type is a UIAction.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:188:21: error: 'UIAction' is unavailable in watchOS
186 |
187 | /// Optional identifier for the action, can be set using ``UIActionBackedMenuBuilderElement/identifier(_:)-6auaj``.
188 | var identifier: UIAction.Identifier? { get set }
| `- error: 'UIAction' is unavailable in watchOS
189 |
190 | /// An optional discoverability title used by assistive features, can be set using ``UIActionBackedMenuBuilderElement/discoverabilityTitle(_:)-7qrbe``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:194:16: error: 'UIMenuElement' is unavailable in watchOS
192 |
193 | /// Attributes such as `.destructive` or `.disabled`, can be set using ``UIActionBackedMenuBuilderElement/style(_:)-rtxf``.
194 | var style: UIMenuElement.Attributes { get set }
| `- error: 'UIMenuElement' is unavailable in watchOS
195 |
196 | /// The on/off state for actions that represent a stateful element, can be set using ``UIActionBackedMenuBuilderElement/state(_:)-12gq6``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:200:35: error: 'UIAction' is unavailable in watchOS
198 |
199 | /// Sets an identifier for the action.
200 | func identifier(_ identifier: UIAction.Identifier?) -> Self
| `- error: 'UIAction' is unavailable in watchOS
201 |
202 | /// Sets a discoverability title used by assistive features.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:206:25: error: 'UIMenuElement' is unavailable in watchOS
204 |
205 | /// Sets attributes such as `.destructive` or `.disabled`.
206 | func style(_ style: UIMenuElement.Attributes) -> Self
| `- error: 'UIMenuElement' is unavailable in watchOS
207 |
208 | /// Sets the on/off state for actions that represent a stateful element.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:184:93: error: 'UIAction' is unavailable in watchOS
182 |
183 | /// A protocol providing useful methods to customize an element whose UIKit type is a UIAction.
184 | public protocol UIActionBackedMenuBuilderElement: MenuBuilderElement where MenuElementType: UIAction {
| `- error: 'UIAction' is unavailable in watchOS
185 | associatedtype StateType: UIActionBackedMenuBuilderElementState
186 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:213:35: error: 'UIAction' is unavailable in watchOS
211 |
212 | public extension UIActionBackedMenuBuilderElement {
213 | func identifier(_ identifier: UIAction.Identifier?) -> Self {
| `- error: 'UIAction' is unavailable in watchOS
214 | var copy = self
215 | copy.identifier = identifier
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:225:25: error: 'UIMenuElement' is unavailable in watchOS
223 | }
224 |
225 | func style(_ style: UIMenuElement.Attributes) -> Self {
| `- error: 'UIMenuElement' is unavailable in watchOS
226 | var copy = self
227 | copy.style = style
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:286:33: error: 'UIMenu' is unavailable in watchOS
284 | @available(iOS 16.0, *)
285 | public struct Divider: MenuBuilderElement {
286 | public var uiKitEquivalent: UIMenu { UIMenu(title: "", image: .init(systemName: "cube"), options: .displayInline) } // arbitrary image otherwise it won't show the divider
| `- error: 'UIMenu' is unavailable in watchOS
287 |
288 | public init() {}
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:285:15: warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
283 | /// ```
284 | @available(iOS 16.0, *)
285 | public struct Divider: MenuBuilderElement {
| `- warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
286 | public var uiKitEquivalent: UIMenu { UIMenu(title: "", image: .init(systemName: "cube"), options: .displayInline) } // arbitrary image otherwise it won't show the divider
287 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' declared here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' declared here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:304:33: error: 'UIMenu' is unavailable in watchOS
302 | @available(iOS 16.0, *)
303 | public struct Menu: MenuBuilderElement {
304 | public var uiKitEquivalent: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
305 | UIMenu(title: title, subtitle: subtitle, image: image, identifier: identifier, options: options, preferredElementSize: preferredElementSize, children: body().children)
306 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:318:28: error: 'UIMenu' is unavailable in watchOS
316 |
317 | /// Optional identifier for the menu. Can be used to refresh the menu only.
318 | public var identifier: UIMenu.Identifier? = nil
| `- error: 'UIMenu' is unavailable in watchOS
319 |
320 | /// Options that affect presentation and behavior.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:321:25: error: 'UIMenu' is unavailable in watchOS
319 |
320 | /// Options that affect presentation and behavior.
321 | public var options: UIMenu.Options = []
| `- error: 'UIMenu' is unavailable in watchOS
322 |
323 | /// Preferred element size for children.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:324:38: error: 'UIMenu' is unavailable in watchOS
322 |
323 | /// Preferred element size for children.
324 | public var preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }()
| `- error: 'UIMenu' is unavailable in watchOS
325 |
326 | /// The body closure producing nested menu content. Annotated with ``BetterMenus/BUIMenuBuilder``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:324:116: error: 'automatic' is unavailable in watchOS
322 |
323 | /// Preferred element size for children.
324 | public var preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }()
| `- error: 'automatic' is unavailable in watchOS
325 |
326 | /// The body closure producing nested menu content. Annotated with ``BetterMenus/BUIMenuBuilder``.
UIKit.UIMenu.ElementSize.automatic:4:10: note: 'automatic' has been explicitly marked unavailable here
2 | enum ElementSize {
3 | @available(watchOS, unavailable)
4 | case automatic }
| `- note: 'automatic' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:327:44: error: 'UIMenu' is unavailable in watchOS
325 |
326 | /// The body closure producing nested menu content. Annotated with ``BetterMenus/BUIMenuBuilder``.
327 | @BUIMenuBuilder public let body: () -> UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
328 |
329 | /// Create a new ``BetterMenus/Menu`` node.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:340:99: error: 'UIMenu' is unavailable in watchOS
338 | /// - body: A `@BUIMenuBuilder` closure that constructs the menu's children.
339 | @available(*, deprecated, message: "Use init(_ title: String, subtitle: String?, image: UIImage?, @BUIMenuBuilder body: @escaping () -> UIMenu) and the inline modifiers instead. This method will be removed in a future version of BetterMenus.")
340 | public init(_ title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }(), @BUIMenuBuilder body: @escaping () -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
341 | self.title = title
342 | self.subtitle = subtitle
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:340:134: error: 'UIMenu' is unavailable in watchOS
338 | /// - body: A `@BUIMenuBuilder` closure that constructs the menu's children.
339 | @available(*, deprecated, message: "Use init(_ title: String, subtitle: String?, image: UIImage?, @BUIMenuBuilder body: @escaping () -> UIMenu) and the inline modifiers instead. This method will be removed in a future version of BetterMenus.")
340 | public init(_ title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }(), @BUIMenuBuilder body: @escaping () -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
341 | self.title = title
342 | self.subtitle = subtitle
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:340:177: error: 'UIMenu' is unavailable in watchOS
338 | /// - body: A `@BUIMenuBuilder` closure that constructs the menu's children.
339 | @available(*, deprecated, message: "Use init(_ title: String, subtitle: String?, image: UIImage?, @BUIMenuBuilder body: @escaping () -> UIMenu) and the inline modifiers instead. This method will be removed in a future version of BetterMenus.")
340 | public init(_ title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }(), @BUIMenuBuilder body: @escaping () -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
341 | self.title = title
342 | self.subtitle = subtitle
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:340:326: error: 'UIMenu' is unavailable in watchOS
338 | /// - body: A `@BUIMenuBuilder` closure that constructs the menu's children.
339 | @available(*, deprecated, message: "Use init(_ title: String, subtitle: String?, image: UIImage?, @BUIMenuBuilder body: @escaping () -> UIMenu) and the inline modifiers instead. This method will be removed in a future version of BetterMenus.")
340 | public init(_ title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }(), @BUIMenuBuilder body: @escaping () -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
341 | self.title = title
342 | self.subtitle = subtitle
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:340:255: error: 'automatic' is unavailable in watchOS
338 | /// - body: A `@BUIMenuBuilder` closure that constructs the menu's children.
339 | @available(*, deprecated, message: "Use init(_ title: String, subtitle: String?, image: UIImage?, @BUIMenuBuilder body: @escaping () -> UIMenu) and the inline modifiers instead. This method will be removed in a future version of BetterMenus.")
340 | public init(_ title: String = "", subtitle: String? = nil, image: UIImage? = nil, identifier: UIMenu.Identifier? = nil, options: UIMenu.Options = [], preferredElementSize: UIMenu.ElementSize = { if #available(iOS 17.0, tvOS 17.0, watchOS 10.0, *) { .automatic } else { .large } }(), @BUIMenuBuilder body: @escaping () -> UIMenu) {
| `- error: 'automatic' is unavailable in watchOS
341 | self.title = title
342 | self.subtitle = subtitle
UIKit.UIMenu.ElementSize.automatic:4:10: note: 'automatic' has been explicitly marked unavailable here
2 | enum ElementSize {
3 | @available(watchOS, unavailable)
4 | case automatic }
| `- note: 'automatic' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:357:125: error: 'UIMenu' is unavailable in watchOS
355 | /// - image: Optional icon.
356 | /// - body: A `@BUIMenuBuilder` closure that constructs the menu's children.
357 | public init(_ title: String = "", subtitle: String? = nil, image: UIImage? = nil, @BUIMenuBuilder body: @escaping () -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
358 | self.title = title
359 | self.subtitle = subtitle
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:364:42: error: 'UIMenu' is unavailable in watchOS
362 | }
363 |
364 | public func identifier(_ identifier: UIMenu.Identifier?) -> Self {
| `- error: 'UIMenu' is unavailable in watchOS
365 | var copy = self
366 | copy.identifier = identifier
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:376:36: error: 'UIMenu' is unavailable in watchOS
374 | }
375 |
376 | public func options(_ options: UIMenu.Options?) -> Self {
| `- error: 'UIMenu' is unavailable in watchOS
377 | var copy = self
378 | copy.options = options ?? []
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:382:62: error: 'UIMenu' is unavailable in watchOS
380 | }
381 |
382 | public func preferredElementSize(_ preferredElementSize: UIMenu.ElementSize) -> Self {
| `- error: 'UIMenu' is unavailable in watchOS
383 | var copy = self
384 | copy.preferredElementSize = preferredElementSize
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:303:15: warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
301 | /// ```
302 | @available(iOS 16.0, *)
303 | public struct Menu: MenuBuilderElement {
| `- warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
304 | public var uiKitEquivalent: UIMenu {
305 | UIMenu(title: title, subtitle: subtitle, image: image, identifier: identifier, options: options, preferredElementSize: preferredElementSize, children: body().children)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' declared here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' declared here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:401:33: error: 'UIAction' is unavailable in watchOS
399 | @available(iOS 16.0, *)
400 | public struct Button: UIActionBackedMenuBuilderElement {
401 | public var uiKitEquivalent: UIAction {
| `- error: 'UIAction' is unavailable in watchOS
402 | UIAction(title: title, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state, handler: handler)
403 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:412:28: error: 'UIAction' is unavailable in watchOS
410 |
411 | /// Optional identifier for the action, can be set using ``UIActionBackedMenuBuilderElement/identifier(_:)-6auaj``.
412 | public var identifier: UIAction.Identifier? = nil
| `- error: 'UIAction' is unavailable in watchOS
413 |
414 | /// An optional discoverability title used by assistive features, can be set using ``UIActionBackedMenuBuilderElement/discoverabilityTitle(_:)-7qrbe``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:418:23: error: 'UIMenuElement' is unavailable in watchOS
416 |
417 | /// Attributes such as `.destructive` or `.disabled`, can be set using ``UIActionBackedMenuBuilderElement/style(_:)-rtxf``.
418 | public var style: UIMenuElement.Attributes = []
| `- error: 'UIMenuElement' is unavailable in watchOS
419 |
420 | /// The on/off state for actions that represent a stateful element, can be set using ``UIActionBackedMenuBuilderElement/state(_:)-12gq6``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:421:23: error: 'UIMenuElement' is unavailable in watchOS
419 |
420 | /// The on/off state for actions that represent a stateful element, can be set using ``UIActionBackedMenuBuilderElement/state(_:)-12gq6``.
421 | public var state: UIMenuElement.State = .off
| `- error: 'UIMenuElement' is unavailable in watchOS
422 |
423 | /// Handler invoked when the action is selected.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:424:26: error: 'UIAction' is unavailable in watchOS
422 |
423 | /// Handler invoked when the action is selected.
424 | public let handler: (UIAction) -> Void
| `- error: 'UIAction' is unavailable in watchOS
425 |
426 | /// Create a ``BetterMenus/Button``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:427:84: error: 'UIAction' is unavailable in watchOS
425 |
426 | /// Create a ``BetterMenus/Button``.
427 | public init(_ title: String = "", image: UIImage? = nil, _ handler: @escaping (UIAction) -> Void) {
| `- error: 'UIAction' is unavailable in watchOS
428 | self.title = title
429 | self.image = image
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:400:15: warning: unavailable enum 'State' was used to satisfy a requirement of protocol 'UIActionBackedMenuBuilderElement'; this will be an error in a future Swift language mode
183 | /// A protocol providing useful methods to customize an element whose UIKit type is a UIAction.
184 | public protocol UIActionBackedMenuBuilderElement: MenuBuilderElement where MenuElementType: UIAction {
185 | associatedtype StateType: UIActionBackedMenuBuilderElementState
| `- note: requirement 'StateType' declared here
186 |
187 | /// Optional identifier for the action, can be set using ``UIActionBackedMenuBuilderElement/identifier(_:)-6auaj``.
:
398 | /// ```
399 | @available(iOS 16.0, *)
400 | public struct Button: UIActionBackedMenuBuilderElement {
| `- warning: unavailable enum 'State' was used to satisfy a requirement of protocol 'UIActionBackedMenuBuilderElement'; this will be an error in a future Swift language mode
401 | public var uiKitEquivalent: UIAction {
402 | UIAction(title: title, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state, handler: handler)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:14:28: note: 'State' declared here
12 | @class UIImage;
13 |
14 | typedef NS_ENUM(NSInteger, UIMenuElementState) {
| `- note: 'State' declared here
15 | UIMenuElementStateOff,
16 | UIMenuElementStateOn,
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:400:15: warning: unavailable class 'UIAction' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
398 | /// ```
399 | @available(iOS 16.0, *)
400 | public struct Button: UIActionBackedMenuBuilderElement {
| `- warning: unavailable class 'UIAction' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
401 | public var uiKitEquivalent: UIAction {
402 | UIAction(title: title, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state, handler: handler)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' declared here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' declared here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:452:33: error: 'UIAction' is unavailable in watchOS
450 | public struct Toggle: UIActionBackedMenuBuilderElement {
451 | /// Convert the builder `Toggle` into a `UIAction` with a handler that provides the new value.
452 | public var uiKitEquivalent: UIAction {
| `- error: 'UIAction' is unavailable in watchOS
453 | UIAction(title: title, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state.uiMenuElementState, handler: { action in
454 | handler(action, !state.boolValue)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:465:28: error: 'UIAction' is unavailable in watchOS
463 |
464 | /// Optional identifier for the action, can be set using ``UIActionBackedMenuBuilderElement/identifier(_:)-6auaj``.
465 | public var identifier: UIAction.Identifier? = nil
| `- error: 'UIAction' is unavailable in watchOS
466 |
467 | /// An optional discoverability title used by assistive features, can be set using ``UIActionBackedMenuBuilderElement/discoverabilityTitle(_:)-7qrbe``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:471:23: error: 'UIMenuElement' is unavailable in watchOS
469 |
470 | /// Attributes such as `.destructive` or `.disabled`, can be set using ``UIActionBackedMenuBuilderElement/style(_:)-rtxf``.
471 | public var style: UIMenuElement.Attributes = []
| `- error: 'UIMenuElement' is unavailable in watchOS
472 |
473 | /// The on/off state for actions that represent a stateful element, can be set using ``UIActionBackedMenuBuilderElement/state(_:)-12gq6``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:477:26: error: 'UIAction' is unavailable in watchOS
475 |
476 | /// Handler called when the toggle is activated; provides the new boolean value.
477 | public let handler: (UIAction, _ newValue: Bool) -> Void
| `- error: 'UIAction' is unavailable in watchOS
478 |
479 | /// Creates a Toggle.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:480:111: error: 'UIAction' is unavailable in watchOS
478 |
479 | /// Creates a Toggle.
480 | public init(_ title: String = "", image: UIImage? = nil, state: ToggleState = .off, _ handler: @escaping (UIAction, _ newValue: Bool) -> Void) {
| `- error: 'UIAction' is unavailable in watchOS
481 | self.title = title
482 | self.image = image
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:492:40: error: 'UIMenuElement' is unavailable in watchOS
490 |
491 | /// Convert to `UIMenuElement.State` used by `UIAction`.
492 | public var uiMenuElementState: UIMenuElement.State {
| `- error: 'UIMenuElement' is unavailable in watchOS
493 | return self == .on ? .on : .off
494 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:510:60: error: 'UIMenuElement' is unavailable in watchOS
508 | /// - Parameter state: A `UIMenuElement.State`.
509 | /// - Returns: `.on` or `.off` if the state maps, otherwise `nil`.
510 | public static func fromUIMenuElementState(_ state: UIMenuElement.State) -> Self? {
| `- error: 'UIMenuElement' is unavailable in watchOS
511 | switch state {
512 | case .off:
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:450:15: warning: unavailable class 'UIAction' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
448 | /// ```
449 | @available(iOS 16.0, *)
450 | public struct Toggle: UIActionBackedMenuBuilderElement {
| `- warning: unavailable class 'UIAction' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
451 | /// Convert the builder `Toggle` into a `UIAction` with a handler that provides the new value.
452 | public var uiKitEquivalent: UIAction {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' declared here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' declared here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:540:33: error: 'UIMenu' is unavailable in watchOS
538 | @available(iOS 16.0, *)
539 | public struct ForEach<T>: MenuBuilderElement {
540 | public var uiKitEquivalent: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
541 | let children: [UIMenuElement] = self.elements.map(body).map(\.children).reduce([], {
542 | var copy = $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/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:553:45: error: 'UIMenu' is unavailable in watchOS
551 |
552 | /// The mapping closure that builds a `UIMenu` for each element.
553 | @BUIMenuBuilder public let body: (T) -> UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
554 |
555 | /// Create a ``BetterMenus/ForEach`` that maps `elements` using `body`.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:556:73: error: 'UIMenu' is unavailable in watchOS
554 |
555 | /// Create a ``BetterMenus/ForEach`` that maps `elements` using `body`.
556 | public init(_ elements: [T], @BUIMenuBuilder body: @escaping (T) -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
557 | self.elements = elements
558 | self.body = body
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:539:15: warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
537 | /// ```
538 | @available(iOS 16.0, *)
539 | public struct ForEach<T>: MenuBuilderElement {
| `- warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
540 | public var uiKitEquivalent: UIMenu {
541 | let children: [UIMenuElement] = self.elements.map(body).map(\.children).reduce([], {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' declared here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' declared here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:574:33: error: 'UIAction' is unavailable in watchOS
572 | @available(iOS 16.0, *)
573 | public struct Text: UIActionBackedMenuBuilderElement {
574 | public var uiKitEquivalent: UIAction {
| `- error: 'UIAction' is unavailable in watchOS
575 | UIAction(title: text, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state, handler: {_ in})
576 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:585:28: error: 'UIAction' is unavailable in watchOS
583 |
584 | /// Optional identifier for the action, can be set using ``UIActionBackedMenuBuilderElement/identifier(_:)-6auaj``.
585 | public var identifier: UIAction.Identifier? = nil
| `- error: 'UIAction' is unavailable in watchOS
586 |
587 | /// An optional discoverability title used by assistive features, can be set using ``UIActionBackedMenuBuilderElement/discoverabilityTitle(_:)-7qrbe``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h:29:12: note: 'UIAction' has been explicitly marked unavailable here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' has been explicitly marked unavailable here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:591:23: error: 'UIMenuElement' is unavailable in watchOS
589 |
590 | /// Attributes such as `.destructive` or `.disabled`, can be set using ``UIActionBackedMenuBuilderElement/style(_:)-rtxf``.
591 | public var style: UIMenuElement.Attributes = [.keepsMenuPresented]
| `- error: 'UIMenuElement' is unavailable in watchOS
592 |
593 | /// The on/off state for actions that represent a stateful element, can be set using ``UIActionBackedMenuBuilderElement/state(_:)-12gq6``.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:591:52: error: 'keepsMenuPresented' is unavailable in watchOS
589 |
590 | /// Attributes such as `.destructive` or `.disabled`, can be set using ``UIActionBackedMenuBuilderElement/style(_:)-rtxf``.
591 | public var style: UIMenuElement.Attributes = [.keepsMenuPresented]
| `- error: 'keepsMenuPresented' is unavailable in watchOS
592 |
593 | /// The on/off state for actions that represent a stateful element, can be set using ``UIActionBackedMenuBuilderElement/state(_:)-12gq6``.
UIKit.UIMenuElement.Attributes.keepsMenuPresented:4:23: note: 'keepsMenuPresented' has been explicitly marked unavailable here
2 | struct Attributes {
3 | @available(watchOS, unavailable)
4 | public static var keepsMenuPresented: UIMenuElement.Attributes { get } }
| `- note: 'keepsMenuPresented' has been explicitly marked unavailable here
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:594:23: error: 'UIMenuElement' is unavailable in watchOS
592 |
593 | /// The on/off state for actions that represent a stateful element, can be set using ``UIActionBackedMenuBuilderElement/state(_:)-12gq6``.
594 | public var state: UIMenuElement.State = .off
| `- error: 'UIMenuElement' is unavailable in watchOS
595 |
596 | /// An optional tag that can be used by consumers for selection or identification.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:573:15: warning: unavailable enum 'State' was used to satisfy a requirement of protocol 'UIActionBackedMenuBuilderElement'; this will be an error in a future Swift language mode
183 | /// A protocol providing useful methods to customize an element whose UIKit type is a UIAction.
184 | public protocol UIActionBackedMenuBuilderElement: MenuBuilderElement where MenuElementType: UIAction {
185 | associatedtype StateType: UIActionBackedMenuBuilderElementState
| `- note: requirement 'StateType' declared here
186 |
187 | /// Optional identifier for the action, can be set using ``UIActionBackedMenuBuilderElement/identifier(_:)-6auaj``.
:
571 | /// ```
572 | @available(iOS 16.0, *)
573 | public struct Text: UIActionBackedMenuBuilderElement {
| `- warning: unavailable enum 'State' was used to satisfy a requirement of protocol 'UIActionBackedMenuBuilderElement'; this will be an error in a future Swift language mode
574 | public var uiKitEquivalent: UIAction {
575 | UIAction(title: text, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state, handler: {_ 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/UIMenuElement.h:14:28: note: 'State' declared here
12 | @class UIImage;
13 |
14 | typedef NS_ENUM(NSInteger, UIMenuElementState) {
| `- note: 'State' declared here
15 | UIMenuElementStateOff,
16 | UIMenuElementStateOn,
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:573:15: warning: unavailable class 'UIAction' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
571 | /// ```
572 | @available(iOS 16.0, *)
573 | public struct Text: UIActionBackedMenuBuilderElement {
| `- warning: unavailable class 'UIAction' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
574 | public var uiKitEquivalent: UIAction {
575 | UIAction(title: text, image: image, identifier: identifier, discoverabilityTitle: discoverabilityTitle, attributes: style, state: state, handler: {_ 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/UIAction.h:29:12: note: 'UIAction' declared here
27 |
28 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
29 | @interface UIAction : UIMenuElement <UIMenuLeaf>
| `- note: 'UIAction' declared here
30 |
31 | /// Short display title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:619:33: error: 'UIMenu' is unavailable in watchOS
617 | @available(iOS 16.0, *)
618 | public struct Stepper<T>: MenuBuilderElement where T: Strideable {
619 | public var uiKitEquivalent: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
620 | let processedBody = body(value)
621 | return Menu(processedBody.text, image: processedBody.image, options: [.displayInline], preferredElementSize: .small) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:618:15: warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
616 | /// ```
617 | @available(iOS 16.0, *)
618 | public struct Stepper<T>: MenuBuilderElement where T: Strideable {
| `- warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
619 | public var uiKitEquivalent: UIMenu {
620 | let processedBody = body(value)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' declared here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' declared here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:703:33: error: 'UIMenu' is unavailable in watchOS
701 | @available(iOS 16.0, *)
702 | public struct Section: MenuBuilderElement {
703 | public var uiKitEquivalent: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
704 | UIMenu(title: title, options: .displayInline, children: body().children)
705 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:711:21: error: 'UIMenu' is unavailable in watchOS
709 |
710 | /// Optional identifier for the section. Can be used to refresh the section only.
711 | var identifier: UIMenu.Identifier? = nil
| `- error: 'UIMenu' is unavailable in watchOS
712 |
713 | /// The body closure producing the content of the section.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:714:44: error: 'UIMenu' is unavailable in watchOS
712 |
713 | /// The body closure producing the content of the section.
714 | @BUIMenuBuilder public let body: () -> UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
715 |
716 | /// Create a new `Section`.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:717:77: error: 'UIMenu' is unavailable in watchOS
715 |
716 | /// Create a new `Section`.
717 | public init(_ title: String = "", @BUIMenuBuilder body: @escaping () -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
718 | self.title = title
719 | self.body = body
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:723:42: error: 'UIMenu' is unavailable in watchOS
721 |
722 | /// Optional identifier for the section. Can be used to refresh the section only.
723 | public func identifier(_ identifier: UIMenu.Identifier?) -> Self {
| `- error: 'UIMenu' is unavailable in watchOS
724 | var copy = self
725 | copy.identifier = identifier
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:702:15: warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
700 | /// ```
701 | @available(iOS 16.0, *)
702 | public struct Section: MenuBuilderElement {
| `- warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
703 | public var uiKitEquivalent: UIMenu {
704 | UIMenu(title: title, options: .displayInline, children: body().children)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' declared here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' declared here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:752:33: error: 'UIMenu' is unavailable in watchOS
750 | @available(iOS 16.0, *)
751 | public struct ControlGroup: MenuBuilderElement {
752 | public var uiKitEquivalent: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
753 | UIMenu(options: [.displayInline], preferredElementSize: .medium, children: controls().children)
754 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:757:48: error: 'UIMenu' is unavailable in watchOS
755 |
756 | /// A builder closure that returns the controls to include in the group.
757 | @BUIMenuBuilder public let controls: () -> UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
758 |
759 | /// Create a control group from the provided `controls` closure.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:760:59: error: 'UIMenu' is unavailable in watchOS
758 |
759 | /// Create a control group from the provided `controls` closure.
760 | public init(@BUIMenuBuilder controls: @escaping () -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
761 | self.controls = controls
762 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:751:15: warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
749 | /// ```
750 | @available(iOS 16.0, *)
751 | public struct ControlGroup: MenuBuilderElement {
| `- warning: unavailable class 'UIMenu' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
752 | public var uiKitEquivalent: UIMenu {
753 | UIMenu(options: [.displayInline], preferredElementSize: .medium, children: controls().children)
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' declared here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' declared here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:774:32: error: 'UIDeferredMenuElement' is unavailable in watchOS
772 |
773 | enum CacheType {
774 | case uiDeferredElement(UIDeferredMenuElement)
| `- error: 'UIDeferredMenuElement' is unavailable in watchOS
775 | case deferredContent(Any)
776 | }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h:16:12: note: 'UIDeferredMenuElement' has been explicitly marked unavailable here
14 |
15 | UIKIT_EXTERN API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
16 | @interface UIDeferredMenuElement : UIMenuElement
| `- note: 'UIDeferredMenuElement' has been explicitly marked unavailable here
17 |
18 | /// The identifier of this deferred menu element.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:881:33: error: 'UIDeferredMenuElement' is unavailable in watchOS
879 | @available(iOS 16.0, *)
880 | public struct Async<Result>: MenuBuilderElement {
881 | public var uiKitEquivalent: UIDeferredMenuElement {
| `- error: 'UIDeferredMenuElement' is unavailable in watchOS
882 | let completionHandler: (@escaping ([UIMenuElement]) -> Void) -> Void = { completion in
883 | Task {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h:16:12: note: 'UIDeferredMenuElement' has been explicitly marked unavailable here
14 |
15 | UIKIT_EXTERN API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
16 | @interface UIDeferredMenuElement : UIMenuElement
| `- note: 'UIDeferredMenuElement' has been explicitly marked unavailable here
17 |
18 | /// The identifier of this deferred menu element.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:949:66: error: 'UIMenuElement' is unavailable in watchOS
947 | /// A static method to clean the cache for identifiers and elements that match a certain condition.
948 | @available(*, deprecated, message: "Use cleanCache(where condition: (AnyHashable) -> Bool) condition instead. This method will be removed in a future version of BetterMenus.") // TODO: make the AsyncCache private when this gets removed
949 | public static func cleanCache(where condition: (AnyHashable, UIMenuElement) -> Bool) {
| `- error: 'UIMenuElement' is unavailable in watchOS
950 | return AsyncStorage.AsyncStorageQueue.asyncAndWait {
951 | AsyncStorage.AsyncCache.removeAll(where: { key, element 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/UIMenuElement.h:56:12: note: 'UIMenuElement' has been explicitly marked unavailable here
54 |
55 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
56 | @interface UIMenuElement : NSObject <NSCopying, NSSecureCoding>
| `- note: 'UIMenuElement' has been explicitly marked unavailable here
57 |
58 | /// The element's title.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:976:50: error: 'UIMenu' is unavailable in watchOS
974 |
975 | /// A builder closure that maps the fetched `Result` into a `UIMenu`.
976 | @BUIMenuBuilder public let body: (Result) -> UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
977 |
978 | /// Create an `Async` deferred menu element.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:985:105: error: 'UIMenu' is unavailable in watchOS
983 | /// - asyncFetch: The asynchronous fetch closure.
984 | /// - body: Builder that returns a `UIMenu` given the fetch result.
985 | public init(_ asyncFetch: @escaping () async -> Result, @BUIMenuBuilder body: @escaping (Result) -> UIMenu) {
| `- error: 'UIMenu' is unavailable in watchOS
986 | self.asyncFetch = asyncFetch
987 | self.body = body
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:880:15: warning: unavailable class 'UIDeferredMenuElement' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
153 | public protocol MenuBuilderElement {
154 | /// The concrete UIKit type used as the equivalent of the builder element.
155 | associatedtype MenuElementType: UIMenuElement
| `- note: requirement 'MenuElementType' declared here
156 |
157 | /// A UIKit equivalent of this builder element. Implementers must return a concrete
:
878 | /// ```
879 | @available(iOS 16.0, *)
880 | public struct Async<Result>: MenuBuilderElement {
| `- warning: unavailable class 'UIDeferredMenuElement' was used to satisfy a requirement of protocol 'MenuBuilderElement'; this will be an error in a future Swift language mode
881 | public var uiKitEquivalent: UIDeferredMenuElement {
882 | let completionHandler: (@escaping ([UIMenuElement]) -> Void) -> Void = { completion 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/UIDeferredMenuElement.h:16:12: note: 'UIDeferredMenuElement' declared here
14 |
15 | UIKIT_EXTERN API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
16 | @interface UIDeferredMenuElement : UIMenuElement
| `- note: 'UIDeferredMenuElement' declared here
17 |
18 | /// The identifier of this deferred menu element.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1045:33: error: 'UIMenu' is unavailable in watchOS
1043 | /// Delegate that returns a dynamically-updatable menu. Subclass it to have more customizability.
1044 | public class Delegate: NSObject, BetterUIContextMenuInteractionDelegate {
1045 | public var currentMenu: UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
1046 |
1047 | public var previewProvider: UIContextMenuContentPreviewProvider?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1047:37: error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1045 | public var currentMenu: UIMenu
1046 |
1047 | public var previewProvider: UIContextMenuContentPreviewProvider?
| `- error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1048 |
1049 | public init(currentMenu: UIMenu, previewProvider: UIContextMenuContentPreviewProvider?) {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:35:40: note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
33 | * @abstract Return a UIViewController to be displayed as this menu's preview component.
34 | */
35 | typedef UIViewController * _Nullable (^UIContextMenuContentPreviewProvider)(void) API_UNAVAILABLE(watchos);
| `- note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1049:34: error: 'UIMenu' is unavailable in watchOS
1047 | public var previewProvider: UIContextMenuContentPreviewProvider?
1048 |
1049 | public init(currentMenu: UIMenu, previewProvider: UIContextMenuContentPreviewProvider?) {
| `- error: 'UIMenu' is unavailable in watchOS
1050 | self.currentMenu = currentMenu
1051 | self.previewProvider = previewProvider
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1049:59: error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1047 | public var previewProvider: UIContextMenuContentPreviewProvider?
1048 |
1049 | public init(currentMenu: UIMenu, previewProvider: UIContextMenuContentPreviewProvider?) {
| `- error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1050 | self.currentMenu = currentMenu
1051 | self.previewProvider = previewProvider
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:35:40: note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
33 | * @abstract Return a UIViewController to be displayed as this menu's preview component.
34 | */
35 | typedef UIViewController * _Nullable (^UIContextMenuContentPreviewProvider)(void) API_UNAVAILABLE(watchos);
| `- note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1054:59: error: 'UIContextMenuInteraction' is unavailable in watchOS
1052 | }
1053 |
1054 | public func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration? {
| `- error: 'UIContextMenuInteraction' is unavailable in watchOS
1055 | return UIContextMenuConfiguration(identifier: nil,
1056 | previewProvider: previewProvider,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h:32:12: note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(17.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIContextMenuInteraction : NSObject <UIInteraction>
| `- note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
33 |
34 | /// The interaction's delegate.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1054:138: error: 'UIContextMenuConfiguration' is unavailable in watchOS
1052 | }
1053 |
1054 | public func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration? {
| `- error: 'UIContextMenuConfiguration' is unavailable in watchOS
1055 | return UIContextMenuConfiguration(identifier: nil,
1056 | previewProvider: previewProvider,
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:39:12: note: 'UIContextMenuConfiguration' has been explicitly marked unavailable here
37 |
38 | UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(17.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
39 | @interface UIContextMenuConfiguration : NSObject
| `- note: 'UIContextMenuConfiguration' has been explicitly marked unavailable here
40 |
41 | /// This configuration's identifier. When representing multiple items in your app, this identifier
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1065:28: error: 'UIMenu' is unavailable in watchOS
1063 |
1064 | /// The body closure used to construct the menu on demand.
1065 | public let body: () -> UIMenu
| `- error: 'UIMenu' is unavailable in watchOS
1066 |
1067 | /// A preview provider for the `UIContextMenuInteractionDelegate`.
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1068:33: error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1066 |
1067 | /// A preview provider for the `UIContextMenuInteractionDelegate`.
1068 | public var previewProvider: UIContextMenuContentPreviewProvider? {
| `- error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1069 | didSet {
1070 | self._delegate.previewProvider = previewProvider
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:35:40: note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
33 | * @abstract Return a UIViewController to be displayed as this menu's preview component.
34 | */
35 | typedef UIViewController * _Nullable (^UIContextMenuContentPreviewProvider)(void) API_UNAVAILABLE(watchos);
| `- note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1075:30: error: 'UIMenu' is unavailable in watchOS
1073 |
1074 | /// The currently-visible menu. When set it updates the delegate's reference.
1075 | private var currentMenu: UIMenu {
| `- error: 'UIMenu' is unavailable in watchOS
1076 | didSet {
1077 | self._delegate.currentMenu = currentMenu
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1093:55: error: 'UIMenu' is unavailable in watchOS
1091 | ///
1092 | /// If you call `reloadMenu()` without specifying an identifier, it will update the root menu. However, if a submenu is currently open, that submenu won't reflect the changes until it is closed and reopened again. This is because the update applies to the visible menus based on UIKit's menu presentation behavior.
1093 | public func reloadMenu(withIdentifier identifier: UIMenu.Identifier? = nil) {
| `- error: 'UIMenu' is unavailable in watchOS
1094 |
1095 | // documentation from UIKit
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1149:55: error: 'UIMenu' is unavailable in watchOS
1147 | /// view.addInteraction(interaction)
1148 | /// ```
1149 | public init(@BUIMenuBuilder body: @escaping () -> UIMenu, previewProvider: UIContextMenuContentPreviewProvider? = nil, delegate: BetterUIContextMenuInteractionDelegate? = nil) {
| `- error: 'UIMenu' is unavailable in watchOS
1150 | self.body = body
1151 | self.previewProvider = previewProvider
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1149:80: error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1147 | /// view.addInteraction(interaction)
1148 | /// ```
1149 | public init(@BUIMenuBuilder body: @escaping () -> UIMenu, previewProvider: UIContextMenuContentPreviewProvider? = nil, delegate: BetterUIContextMenuInteractionDelegate? = nil) {
| `- error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1150 | self.body = body
1151 | self.previewProvider = previewProvider
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:35:40: note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
33 | * @abstract Return a UIViewController to be displayed as this menu's preview component.
34 | */
35 | typedef UIViewController * _Nullable (^UIContextMenuContentPreviewProvider)(void) API_UNAVAILABLE(watchos);
| `- note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1042:44: error: 'UIContextMenuInteraction' is unavailable in watchOS
1040 |
1041 | @available(iOS 16.0, *)
1042 | public class BetterContextMenuInteraction: UIContextMenuInteraction {
| `- error: 'UIContextMenuInteraction' is unavailable in watchOS
1043 | /// Delegate that returns a dynamically-updatable menu. Subclass it to have more customizability.
1044 | public class Delegate: NSObject, BetterUIContextMenuInteractionDelegate {
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h:32:12: note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(17.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIContextMenuInteraction : NSObject <UIInteraction>
| `- note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
33 |
34 | /// The interaction's delegate.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1174:22: error: 'UIMenu' is unavailable in watchOS
1172 | /// See the implementation of ``BetterMenus/BetterContextMenuInteraction/Delegate`` to get more details.
1173 | public protocol BetterUIContextMenuInteractionDelegate: UIContextMenuInteractionDelegate {
1174 | var currentMenu: UIMenu { get set }
| `- error: 'UIMenu' is unavailable in watchOS
1175 |
1176 | var previewProvider: UIContextMenuContentPreviewProvider? { get set }
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h:43:12: note: 'UIMenu' has been explicitly marked unavailable here
41 |
42 | UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
43 | @interface UIMenu : UIMenuElement
| `- note: 'UIMenu' has been explicitly marked unavailable here
44 |
45 | /// Unique identifier.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1176:26: error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1174 | var currentMenu: UIMenu { get set }
1175 |
1176 | var previewProvider: UIContextMenuContentPreviewProvider? { get set }
| `- error: 'UIContextMenuContentPreviewProvider' is unavailable in watchOS
1177 |
1178 | func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration?
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:35:40: note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
33 | * @abstract Return a UIViewController to be displayed as this menu's preview component.
34 | */
35 | typedef UIViewController * _Nullable (^UIContextMenuContentPreviewProvider)(void) API_UNAVAILABLE(watchos);
| `- note: 'UIContextMenuContentPreviewProvider' has been explicitly marked unavailable here
36 |
37 |
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1178:48: error: 'UIContextMenuInteraction' is unavailable in watchOS
1176 | var previewProvider: UIContextMenuContentPreviewProvider? { get set }
1177 |
1178 | func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration?
| `- error: 'UIContextMenuInteraction' is unavailable in watchOS
1179 | }
1180 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h:32:12: note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
30 |
31 | UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(17.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
32 | @interface UIContextMenuInteraction : NSObject <UIInteraction>
| `- note: 'UIContextMenuInteraction' has been explicitly marked unavailable here
33 |
34 | /// The interaction's delegate.
/Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift:1178:127: error: 'UIContextMenuConfiguration' is unavailable in watchOS
1176 | var previewProvider: UIContextMenuContentPreviewProvider? { get set }
1177 |
1178 | func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration?
| `- error: 'UIContextMenuConfiguration' is unavailable in watchOS
1179 | }
1180 |
/Applications/Xcode-27.0.0-Release.Candidate.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS27.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h:39:12: note: 'UIContextMenuConfiguration' has been explicitly marked unavailable here
37 |
38 | UIKIT_EXTERN API_AVAILABLE(ios(13.0), tvos(17.0)) API_UNAVAILABLE(watchos) NS_SWIFT_UI_ACTOR
39 | @interface UIContextMenuConfiguration : NSObject
| `- note: 'UIContextMenuConfiguration' has been explicitly marked unavailable here
40 |
41 | /// This configuration's identifier. When representing multiple items in your app, this identifier
SwiftCompile normal arm64 /Users/admin/builder/spi-builder-workspace/Sources/BetterMenus/BetterMenus.swift (in target 'BetterMenus' from project 'BetterMenus')
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-SwiftPerFileCompile BetterMenus.swift
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/SwiftExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/SDKExplicitPrecompiledModules
PruneExplicitPrecompiledModules /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/ExplicitPrecompiledModules
2026-09-22 21:53:20.206 xcodebuild[880:5284] [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 'BetterMenus' from project 'BetterMenus')
SwiftEmitModule normal arm64 Emitting\ module\ for\ BetterMenus (in target 'BetterMenus' from project 'BetterMenus')
SwiftEmitModule normal arm64_32 Emitting\ module\ for\ BetterMenus (in target 'BetterMenus' from project 'BetterMenus')
SwiftCompile normal arm64_32 (in target 'BetterMenus' from project 'BetterMenus')
Building workspace BetterMenus with scheme BetterMenus
(5 failures)
BUILD FAILURE 6.4 watchOS