The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Menu, reference master (767339), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 17:33:17 UTC.

Swift 6 data race errors: 7

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/iSapozhnik/Menu.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/iSapozhnik/Menu
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7673394 Update README.md
Cloned https://github.com/iSapozhnik/Menu.git
Revision (git rev-parse @):
76733940b2495cd5b532da81dca8be040c458137
SUCCESS checkout https://github.com/iSapozhnik/Menu.git at master
Fetching https://github.com/iSapozhnik/EventMonitor
[1/33] Fetching eventmonitor
Fetched https://github.com/iSapozhnik/EventMonitor from cache (0.58s)
Computing version for https://github.com/iSapozhnik/EventMonitor
Computed https://github.com/iSapozhnik/EventMonitor at 1.0.1 (1.19s)
Creating working copy for https://github.com/iSapozhnik/EventMonitor
Working copy of https://github.com/iSapozhnik/EventMonitor resolved at 1.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "menu",
      "name": "Menu",
      "url": "https://github.com/iSapozhnik/Menu.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Menu",
      "dependencies": [
        {
          "identity": "eventmonitor",
          "name": "EventMonitor",
          "url": "https://github.com/iSapozhnik/EventMonitor",
          "version": "1.0.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/EventMonitor",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/iSapozhnik/Menu.git
[3/275] Fetching menu
Fetched https://github.com/iSapozhnik/Menu.git from cache (1.09s)
Fetching https://github.com/iSapozhnik/EventMonitor from cache
Fetched https://github.com/iSapozhnik/EventMonitor from cache (0.44s)
Computing version for https://github.com/iSapozhnik/EventMonitor
Computed https://github.com/iSapozhnik/EventMonitor at 1.0.1 (0.49s)
Creating working copy for https://github.com/iSapozhnik/EventMonitor
Working copy of https://github.com/iSapozhnik/EventMonitor resolved at 1.0.1
Creating working copy for https://github.com/iSapozhnik/Menu.git
Working copy of https://github.com/iSapozhnik/Menu.git resolved at master (7673394)
warning: '.resolve-product-dependencies': dependency 'menu' is not used by any target
Found 1 product dependencies
  - EventMonitor
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/iSapozhnik/Menu.git
https://github.com/iSapozhnik/Menu.git
{
  "dependencies" : [
    {
      "identity" : "eventmonitor",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/iSapozhnik/EventMonitor"
    }
  ],
  "manifest_display_name" : "Menu",
  "name" : "Menu",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    }
  ],
  "products" : [
    {
      "name" : "Menu",
      "targets" : [
        "Menu"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MenuTests",
      "module_type" : "SwiftTarget",
      "name" : "MenuTests",
      "path" : "Tests/MenuTests",
      "sources" : [
        "MenuTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Menu"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Menu",
      "module_type" : "SwiftTarget",
      "name" : "Menu",
      "path" : "Sources/Menu",
      "product_dependencies" : [
        "EventMonitor"
      ],
      "product_memberships" : [
        "Menu"
      ],
      "sources" : [
        "CheckmarkView.swift",
        "ContentViewController.swift",
        "Control.swift",
        "Extensions.swift",
        "Menu.swift",
        "MenuConfiguration.swift",
        "MenuElement.swift",
        "MenuItem.swift",
        "MenuScroller.swift",
        "RoundedRectangleView.swift",
        "ScrollView.swift",
        "VerticallyCenteredTextFieldCell.swift",
        "Window.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/5] Emitting module EventMonitor
[5/5] Compiling EventMonitor EventMonitor.swift
[6/18] Compiling Menu MenuScroller.swift
/Users/admin/builder/spi-builder-workspace/Sources/Menu/MenuScroller.swift:49:9: warning: call to main actor-isolated instance method 'commonInit()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 47 |     override func awakeFromNib() {
 48 |         super.awakeFromNib()
 49 |         commonInit()
    |         `- warning: call to main actor-isolated instance method 'commonInit()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 50 |     }
 51 |
 52 |     func commonInit() {
    |          |- note: calls to instance method 'commonInit()' from outside of its actor context are implicitly asynchronous
    |          `- note: main actor isolation inferred from inheritance from class 'NSScroller'
 53 |         trackingArea = NSTrackingArea.init(rect: bounds, options: [.mouseEnteredAndExited, .activeInActiveApp, .mouseMoved], owner: self, userInfo: nil)
 54 |         addTrackingArea(trackingArea)
[7/18] Compiling Menu MenuItem.swift
[8/18] Compiling Menu RoundedRectangleView.swift
[9/18] Compiling Menu Menu.swift
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:45:35: warning: call to main actor-isolated instance method 'removeChildWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 43 |     public func dismiss(animated: Bool = true) {
 44 |         let actualDismiss: (NSWindow) -> Void = { [weak self] menuWindow in
 45 |             self?.window?.parent?.removeChildWindow(menuWindow)
    |                                   `- warning: call to main actor-isolated instance method 'removeChildWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 46 |             self?.window?.orderOut(self)
 47 |             self?.window = nil
AppKit.NSWindow.removeChildWindow:2:22: note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func removeChildWindow(_ childWin: NSWindow)}
  |                      |- note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:45:27: warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 43 |     public func dismiss(animated: Bool = true) {
 44 |         let actualDismiss: (NSWindow) -> Void = { [weak self] menuWindow in
 45 |             self?.window?.parent?.removeChildWindow(menuWindow)
    |                           `- warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 46 |             self?.window?.orderOut(self)
 47 |             self?.window = nil
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:612:38: note: property declared here
 610 | @property (nullable, readonly, copy) NSArray<__kindof NSWindow *> *childWindows;
 611 |
 612 | @property (nullable, weak) NSWindow *parentWindow;
     |                                      `- note: property declared here
 613 |
 614 | /// If set, the receiver will inherit the appearance of that object, as well as use KVO to observe its effectiveAppearance for changes. Typically this is used for child windows that are shown from a parent window or specific view. Defaults to NSApp.
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:46:27: warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 44 |         let actualDismiss: (NSWindow) -> Void = { [weak self] menuWindow in
 45 |             self?.window?.parent?.removeChildWindow(menuWindow)
 46 |             self?.window?.orderOut(self)
    |                           `- warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 47 |             self?.window = nil
 48 |             self?.stopMonitors()
AppKit.NSWindow.orderOut:2:22: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderOut(_ sender: Any?)}
  |                      |- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:130:54: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 |
128 |     // MARK: - Private
129 |     private func show(_ items: [MenuItem], from view: NSView, animated: Bool) {
    |                  `- note: add '@MainActor' to make instance method 'show(_:from:animated:)' part of global actor 'MainActor'
130 |         guard window == nil, let parentWindow = view.window else { return }
    |                                                      `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
131 |
132 |         let menuWindow = makeWindow(
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
 84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 85 |
 86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
    |                                                             `- note: property declared here
 87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
 88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:145:24: warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
127 |
128 |     // MARK: - Private
129 |     private func show(_ items: [MenuItem], from view: NSView, animated: Bool) {
    |                  `- note: add '@MainActor' to make instance method 'show(_:from:animated:)' part of global actor 'MainActor'
130 |         guard window == nil, let parentWindow = view.window else { return }
131 |
    :
143 |             fadeIn(menuWindow)
144 |         } else {
145 |             menuWindow.alphaValue = 1.0
    |                        `- warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
146 |         }
147 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:516:19: note: mutation of this property is only permitted within the actor
 514 | @property BOOL hasShadow;
 515 | - (void)invalidateShadow;
 516 | @property CGFloat alphaValue;
     |                   `- note: mutation of this property is only permitted within the actor
 517 | @property (getter=isOpaque) BOOL opaque;
 518 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:150:16: warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |     }
148 |
149 |     private func fadeIn(_ window: NSWindow) {
    |                  `- note: add '@MainActor' to make instance method 'fadeIn' part of global actor 'MainActor'
150 |         window.alphaValue = 0.0
    |                `- warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 |
152 |         NSAnimationContext.runAnimationGroup { context in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:516:19: note: mutation of this property is only permitted within the actor
 514 | @property BOOL hasShadow;
 515 | - (void)invalidateShadow;
 516 | @property CGFloat alphaValue;
     |                   `- note: mutation of this property is only permitted within the actor
 517 | @property (getter=isOpaque) BOOL opaque;
 518 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:155:31: warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
153 |             context.duration = configuration.animationDuration
154 |             context.timingFunction = CAMediaTimingFunction(name: .easeIn)
155 |             window.animator().alphaValue = 1.0
    |                               `- warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
156 |         }
157 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:516:19: note: mutation of this property is only permitted within the actor
 514 | @property BOOL hasShadow;
 515 | - (void)invalidateShadow;
 516 | @property CGFloat alphaValue;
     |                   `- note: mutation of this property is only permitted within the actor
 517 | @property (getter=isOpaque) BOOL opaque;
 518 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:155:20: warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
153 |             context.duration = configuration.animationDuration
154 |             context.timingFunction = CAMediaTimingFunction(name: .easeIn)
155 |             window.animator().alphaValue = 1.0
    |                    `- warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
156 |         }
157 |     }
AppKit.NSWindow.animator:3:24: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @available(macOS 10.5, *)
3 |   @MainActor open func animator() -> Self}
  |                        |- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:163:31: warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
161 |             context.duration = configuration.animationDuration
162 |             context.timingFunction = CAMediaTimingFunction(name: .easeOut)
163 |             window.animator().alphaValue = 0.0
    |                               `- warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |         }, completionHandler: {
165 |             completion()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:516:19: note: mutation of this property is only permitted within the actor
 514 | @property BOOL hasShadow;
 515 | - (void)invalidateShadow;
 516 | @property CGFloat alphaValue;
     |                   `- note: mutation of this property is only permitted within the actor
 517 | @property (getter=isOpaque) BOOL opaque;
 518 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:163:20: warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
161 |             context.duration = configuration.animationDuration
162 |             context.timingFunction = CAMediaTimingFunction(name: .easeOut)
163 |             window.animator().alphaValue = 0.0
    |                    `- warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
164 |         }, completionHandler: {
165 |             completion()
AppKit.NSWindow.animator:3:24: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @available(macOS 10.5, *)
3 |   @MainActor open func animator() -> Self}
  |                        |- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:171:13: warning: capture of 'self' with non-sendable type 'Menu?' in a '@Sendable' closure
  9 | import EventMonitor
 10 |
 11 | public final class Menu {
    |                    `- note: class 'Menu' does not conform to the 'Sendable' protocol
 12 |     public private(set) var items: [MenuItem]
 13 |     public var numberOfItems: Int {
    :
169 |     private func setupMonitors(for parentWindow: NSWindow, targetView: NSView) {
170 |         lostFocusObserver = NotificationCenter.default.addObserver(forName: NSWindow.didResignKeyNotification, object: parentWindow, queue: nil, using: { [weak self] (_ arg1: Notification) -> Void in
171 |             self?.dismiss(animated: false)
    |             `- warning: capture of 'self' with non-sendable type 'Menu?' in a '@Sendable' closure
172 |         })
173 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:205:37: warning: call to main actor-isolated initializer 'init(with:menuItems:selectedId:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
202 |     }
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
    |                  `- note: add '@MainActor' to make instance method 'makeWindow(with:menuItems:attachedTo:relativeTo:)' part of global actor 'MainActor'
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
    |                                     `- warning: call to main actor-isolated initializer 'init(with:menuItems:selectedId:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
206 |         contentViewController.delegate = self
207 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/ContentViewController.swift:41:5: note: calls to initializer 'init(with:menuItems:selectedId:configuration:)' from outside of its actor context are implicitly asynchronous
 39 |     }()
 40 |
 41 |     init(with titleString: String?, menuItems: [MenuItem], selectedId: UUID?, configuration: Configuration) {
    |     |- note: calls to initializer 'init(with:menuItems:selectedId:configuration:)' from outside of its actor context are implicitly asynchronous
    |     `- note: main actor isolation inferred from inheritance from class 'NSViewController'
 42 |         self.titleString = titleString
 43 |         self.menuItems = menuItems
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:206:31: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
202 |     }
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
    |                  `- note: add '@MainActor' to make instance method 'makeWindow(with:menuItems:attachedTo:relativeTo:)' part of global actor 'MainActor'
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
206 |         contentViewController.delegate = self
    |                               `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
207 |
208 |         let window = Window.make(with: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/ContentViewController.swift:15:14: note: mutation of this property is only permitted within the actor
 13 |
 14 | class ContentViewController: NSViewController {
 15 |     weak var delegate: ContentViewControllerDelegate?
    |              `- note: mutation of this property is only permitted within the actor
 16 |
 17 |     private let titleString: String?
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:208:29: warning: call to main actor-isolated static method 'make(with:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
202 |     }
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
    |                  `- note: add '@MainActor' to make instance method 'makeWindow(with:menuItems:attachedTo:relativeTo:)' part of global actor 'MainActor'
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
206 |         contentViewController.delegate = self
207 |
208 |         let window = Window.make(with: configuration)
    |                             `- warning: call to main actor-isolated static method 'make(with:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
209 |         window.contentViewController = contentViewController
210 |         parentWindow.addChildWindow(window, ordered: .above)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Window.swift:36:17: note: calls to static method 'make(with:)' from outside of its actor context are implicitly asynchronous
34 |     }
35 |
36 |     static func make(with configuration: Configuration) -> Window {
   |                 |- note: calls to static method 'make(with:)' from outside of its actor context are implicitly asynchronous
   |                 `- note: main actor isolation inferred from inheritance from class 'NSWindow'
37 |         return Window.init(
38 |             contentRect: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:209:16: warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
202 |     }
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
    |                  `- note: add '@MainActor' to make instance method 'makeWindow(with:menuItems:attachedTo:relativeTo:)' part of global actor 'MainActor'
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
206 |         contentViewController.delegate = self
207 |
208 |         let window = Window.make(with: configuration)
209 |         window.contentViewController = contentViewController
    |                `- warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
210 |         parentWindow.addChildWindow(window, ordered: .above)
211 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:651:48: note: mutation of this property is only permitted within the actor
 649 | /*! The main content view controller for the window. This provides the contentView of the window. Assigning this value will remove the existing contentView and will make the contentViewController.view the main contentView for the window. The default value is nil. The contentViewController only controls the contentView, and not the title of the window. The window title can easily be bound to the contentViewController with the following: [window bind:NSTitleBinding toObject:contentViewController withKeyPath:@"title" options:nil]. Setting the contentViewController will cause the window to resize based on the current size of the contentViewController. Autolayout should be used to restrict the size of the window. The value of the contentViewController is encoded in the NIB. Directly assigning a contentView will clear out the contentViewController.
 650 |  */
 651 | @property (nullable, strong) NSViewController *contentViewController API_AVAILABLE(macos(10.10));
     |                                                `- note: mutation of this property is only permitted within the actor
 652 |
 653 | /*! Convenience method for creating an autoreleased titled window with the given contentViewController. A basic NSWindow with the following attributes is made: titled, closable, resizable, miniaturizable. The window's title is automatically bound to the contentViewController's title. The size of the window can easily be controlled by utilizing autolayout and applying size constraints to the view (or its subviews). The window has isReleasedWhenClosed set to NO, and it must be explicitly retained to keep the window instance alive. To have it automatically be freed when it is closed, do the following: [window retain] and [window setReleasedWhenClosed:YES].
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:210:22: warning: call to main actor-isolated instance method 'addChildWindow(_:ordered:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
202 |     }
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
    |                  `- note: add '@MainActor' to make instance method 'makeWindow(with:menuItems:attachedTo:relativeTo:)' part of global actor 'MainActor'
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
206 |         contentViewController.delegate = self
    :
208 |         let window = Window.make(with: configuration)
209 |         window.contentViewController = contentViewController
210 |         parentWindow.addChildWindow(window, ordered: .above)
    |                      `- warning: call to main actor-isolated instance method 'addChildWindow(_:ordered:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
211 |
212 |         setFrame(for: window, relativeTo: targetView)
AppKit.NSWindow.addChildWindow:2:22: note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func addChildWindow(_ childWin: NSWindow, ordered place: NSWindow.OrderingMode)}
  |                      |- note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:218:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
    |                                       `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
 84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 85 |
 86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
    |                                                             `- note: property declared here
 87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
 88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:218:83: warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
    |                                                                                   `- warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: property declared here
 335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
 336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
 337 | @property (nullable, strong) __kindof NSView *contentView;
     |                                               `- note: property declared here
 338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
 339 | @property (readonly) NSInteger windowNumber;
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:220:37: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
    |                                     `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
221 |         let rectInWindow = NSRect(origin: locationInWindow, size: CGSize(width: NSWidth(view.frame), height: NSHeight(window.frame)))
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, to view: NSView?) -> NSPoint}
  |                      |- note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:220:62: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
    |                                                              `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
221 |         let rectInWindow = NSRect(origin: locationInWindow, size: CGSize(width: NSWidth(view.frame), height: NSHeight(window.frame)))
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
    |                  `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:221:94: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
221 |         let rectInWindow = NSRect(origin: locationInWindow, size: CGSize(width: NSWidth(view.frame), height: NSHeight(window.frame)))
    |                                                                                              `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
223 |         let origin = rectInScreen.origin
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
    |                  `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:221:126: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
221 |         let rectInWindow = NSRect(origin: locationInWindow, size: CGSize(width: NSWidth(view.frame), height: NSHeight(window.frame)))
    |                                                                                                                              `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
223 |         let origin = rectInScreen.origin
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:359:29: note: property declared here
 357 | @property (readonly) NSRect cascadingReferenceFrame API_AVAILABLE(macos(15.0));
 358 |
 359 | @property (readonly) NSRect frame;
     |                             `- note: property declared here
 360 |
 361 | /*! Subclasses can override \c animationResizeTime: to control the total time for the frame change.
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:222:41: warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
221 |         let rectInWindow = NSRect(origin: locationInWindow, size: CGSize(width: NSWidth(view.frame), height: NSHeight(window.frame)))
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
    |                                         `- warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
223 |         let origin = rectInScreen.origin
224 |         var additionalYOffset = configuration.appearsBelowSender ? NSHeight(view.frame) : 0
AppKit.NSWindow.convertToScreen:3:24: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @available(macOS 10.7, *)
3 |   @MainActor open func convertToScreen(_ rect: NSRect) -> NSRect}
  |                        |- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:224:82: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
    :
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
223 |         let origin = rectInScreen.origin
224 |         var additionalYOffset = configuration.appearsBelowSender ? NSHeight(view.frame) : 0
    |                                                                                  `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
225 |         additionalYOffset += abs(configuration.presentingOffset)
226 |         let newFrame = NSRect(x: origin.x, y: origin.y - NSHeight(window.frame) - additionalYOffset, width: NSWidth(view.frame), height: NSHeight(window.frame))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
    |                  `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:226:74: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
    :
224 |         var additionalYOffset = configuration.appearsBelowSender ? NSHeight(view.frame) : 0
225 |         additionalYOffset += abs(configuration.presentingOffset)
226 |         let newFrame = NSRect(x: origin.x, y: origin.y - NSHeight(window.frame) - additionalYOffset, width: NSWidth(view.frame), height: NSHeight(window.frame))
    |                                                                          `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
227 |
228 |         window.setFrame(newFrame, display: true, animate: false)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:359:29: note: property declared here
 357 | @property (readonly) NSRect cascadingReferenceFrame API_AVAILABLE(macos(15.0));
 358 |
 359 | @property (readonly) NSRect frame;
     |                             `- note: property declared here
 360 |
 361 | /*! Subclasses can override \c animationResizeTime: to control the total time for the frame change.
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:226:122: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
    :
224 |         var additionalYOffset = configuration.appearsBelowSender ? NSHeight(view.frame) : 0
225 |         additionalYOffset += abs(configuration.presentingOffset)
226 |         let newFrame = NSRect(x: origin.x, y: origin.y - NSHeight(window.frame) - additionalYOffset, width: NSWidth(view.frame), height: NSHeight(window.frame))
    |                                                                                                                          `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
227 |
228 |         window.setFrame(newFrame, display: true, animate: false)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
    |                  `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:226:154: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
    :
224 |         var additionalYOffset = configuration.appearsBelowSender ? NSHeight(view.frame) : 0
225 |         additionalYOffset += abs(configuration.presentingOffset)
226 |         let newFrame = NSRect(x: origin.x, y: origin.y - NSHeight(window.frame) - additionalYOffset, width: NSWidth(view.frame), height: NSHeight(window.frame))
    |                                                                                                                                                          `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
227 |
228 |         window.setFrame(newFrame, display: true, animate: false)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:359:29: note: property declared here
 357 | @property (readonly) NSRect cascadingReferenceFrame API_AVAILABLE(macos(15.0));
 358 |
 359 | @property (readonly) NSRect frame;
     |                             `- note: property declared here
 360 |
 361 | /*! Subclasses can override \c animationResizeTime: to control the total time for the frame change.
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:228:16: warning: call to main actor-isolated instance method 'setFrame(_:display:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
    :
226 |         let newFrame = NSRect(x: origin.x, y: origin.y - NSHeight(window.frame) - additionalYOffset, width: NSWidth(view.frame), height: NSHeight(window.frame))
227 |
228 |         window.setFrame(newFrame, display: true, animate: false)
    |                `- warning: call to main actor-isolated instance method 'setFrame(_:display:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
229 |     }
230 | }
AppKit.NSWindow.setFrame:2:22: note: calls to instance method 'setFrame(_:display:animate:)' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setFrame(_ frameRect: NSRect, display displayFlag: Bool, animate animateFlag: Bool)}
  |                      |- note: calls to instance method 'setFrame(_:display:animate:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:205:37: warning: sending 'menuItems' risks causing data races; this is an error in the Swift 6 language mode
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
    |                                     |- warning: sending 'menuItems' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending task-isolated 'menuItems' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
206 |         contentViewController.delegate = self
207 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:205:37: warning: sending 'self.configuration' risks causing data races; this is an error in the Swift 6 language mode
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
    |                                     |- warning: sending 'self.configuration' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending task-isolated 'self.configuration' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
206 |         contentViewController.delegate = self
207 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:208:29: warning: sending 'self.configuration' risks causing data races; this is an error in the Swift 6 language mode
206 |         contentViewController.delegate = self
207 |
208 |         let window = Window.make(with: configuration)
    |                             |- warning: sending 'self.configuration' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: sending task-isolated 'self.configuration' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
209 |         window.contentViewController = contentViewController
210 |         parentWindow.addChildWindow(window, ordered: .above)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:46:27: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
 44 |         let actualDismiss: (NSWindow) -> Void = { [weak self] menuWindow in
 45 |             self?.window?.parent?.removeChildWindow(menuWindow)
 46 |             self?.window?.orderOut(self)
    |                           |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                           `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'orderOut' risks causing races in between task-isolated and main actor-isolated uses
 47 |             self?.window = nil
 48 |             self?.stopMonitors()
[10/18] Compiling Menu MenuConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:45:35: warning: call to main actor-isolated instance method 'removeChildWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 43 |     public func dismiss(animated: Bool = true) {
 44 |         let actualDismiss: (NSWindow) -> Void = { [weak self] menuWindow in
 45 |             self?.window?.parent?.removeChildWindow(menuWindow)
    |                                   `- warning: call to main actor-isolated instance method 'removeChildWindow' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 46 |             self?.window?.orderOut(self)
 47 |             self?.window = nil
AppKit.NSWindow.removeChildWindow:2:22: note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func removeChildWindow(_ childWin: NSWindow)}
  |                      |- note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:45:27: warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 43 |     public func dismiss(animated: Bool = true) {
 44 |         let actualDismiss: (NSWindow) -> Void = { [weak self] menuWindow in
 45 |             self?.window?.parent?.removeChildWindow(menuWindow)
    |                           `- warning: main actor-isolated property 'parent' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 46 |             self?.window?.orderOut(self)
 47 |             self?.window = nil
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:612:38: note: property declared here
 610 | @property (nullable, readonly, copy) NSArray<__kindof NSWindow *> *childWindows;
 611 |
 612 | @property (nullable, weak) NSWindow *parentWindow;
     |                                      `- note: property declared here
 613 |
 614 | /// If set, the receiver will inherit the appearance of that object, as well as use KVO to observe its effectiveAppearance for changes. Typically this is used for child windows that are shown from a parent window or specific view. Defaults to NSApp.
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:46:27: warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 44 |         let actualDismiss: (NSWindow) -> Void = { [weak self] menuWindow in
 45 |             self?.window?.parent?.removeChildWindow(menuWindow)
 46 |             self?.window?.orderOut(self)
    |                           `- warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 47 |             self?.window = nil
 48 |             self?.stopMonitors()
AppKit.NSWindow.orderOut:2:22: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderOut(_ sender: Any?)}
  |                      |- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:130:54: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
127 |
128 |     // MARK: - Private
129 |     private func show(_ items: [MenuItem], from view: NSView, animated: Bool) {
    |                  `- note: add '@MainActor' to make instance method 'show(_:from:animated:)' part of global actor 'MainActor'
130 |         guard window == nil, let parentWindow = view.window else { return }
    |                                                      `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
131 |
132 |         let menuWindow = makeWindow(
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
 84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 85 |
 86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
    |                                                             `- note: property declared here
 87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
 88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:145:24: warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
127 |
128 |     // MARK: - Private
129 |     private func show(_ items: [MenuItem], from view: NSView, animated: Bool) {
    |                  `- note: add '@MainActor' to make instance method 'show(_:from:animated:)' part of global actor 'MainActor'
130 |         guard window == nil, let parentWindow = view.window else { return }
131 |
    :
143 |             fadeIn(menuWindow)
144 |         } else {
145 |             menuWindow.alphaValue = 1.0
    |                        `- warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
146 |         }
147 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:516:19: note: mutation of this property is only permitted within the actor
 514 | @property BOOL hasShadow;
 515 | - (void)invalidateShadow;
 516 | @property CGFloat alphaValue;
     |                   `- note: mutation of this property is only permitted within the actor
 517 | @property (getter=isOpaque) BOOL opaque;
 518 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:150:16: warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
147 |     }
148 |
149 |     private func fadeIn(_ window: NSWindow) {
    |                  `- note: add '@MainActor' to make instance method 'fadeIn' part of global actor 'MainActor'
150 |         window.alphaValue = 0.0
    |                `- warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
151 |
152 |         NSAnimationContext.runAnimationGroup { context in
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:516:19: note: mutation of this property is only permitted within the actor
 514 | @property BOOL hasShadow;
 515 | - (void)invalidateShadow;
 516 | @property CGFloat alphaValue;
     |                   `- note: mutation of this property is only permitted within the actor
 517 | @property (getter=isOpaque) BOOL opaque;
 518 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:155:31: warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
153 |             context.duration = configuration.animationDuration
154 |             context.timingFunction = CAMediaTimingFunction(name: .easeIn)
155 |             window.animator().alphaValue = 1.0
    |                               `- warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
156 |         }
157 |     }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:516:19: note: mutation of this property is only permitted within the actor
 514 | @property BOOL hasShadow;
 515 | - (void)invalidateShadow;
 516 | @property CGFloat alphaValue;
     |                   `- note: mutation of this property is only permitted within the actor
 517 | @property (getter=isOpaque) BOOL opaque;
 518 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:155:20: warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
153 |             context.duration = configuration.animationDuration
154 |             context.timingFunction = CAMediaTimingFunction(name: .easeIn)
155 |             window.animator().alphaValue = 1.0
    |                    `- warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
156 |         }
157 |     }
AppKit.NSWindow.animator:3:24: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @available(macOS 10.5, *)
3 |   @MainActor open func animator() -> Self}
  |                        |- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:163:31: warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
161 |             context.duration = configuration.animationDuration
162 |             context.timingFunction = CAMediaTimingFunction(name: .easeOut)
163 |             window.animator().alphaValue = 0.0
    |                               `- warning: main actor-isolated property 'alphaValue' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |         }, completionHandler: {
165 |             completion()
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:516:19: note: mutation of this property is only permitted within the actor
 514 | @property BOOL hasShadow;
 515 | - (void)invalidateShadow;
 516 | @property CGFloat alphaValue;
     |                   `- note: mutation of this property is only permitted within the actor
 517 | @property (getter=isOpaque) BOOL opaque;
 518 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:163:20: warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
161 |             context.duration = configuration.animationDuration
162 |             context.timingFunction = CAMediaTimingFunction(name: .easeOut)
163 |             window.animator().alphaValue = 0.0
    |                    `- warning: call to main actor-isolated instance method 'animator()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
164 |         }, completionHandler: {
165 |             completion()
AppKit.NSWindow.animator:3:24: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @available(macOS 10.5, *)
3 |   @MainActor open func animator() -> Self}
  |                        |- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:171:13: warning: capture of 'self' with non-sendable type 'Menu?' in a '@Sendable' closure
  9 | import EventMonitor
 10 |
 11 | public final class Menu {
    |                    `- note: class 'Menu' does not conform to the 'Sendable' protocol
 12 |     public private(set) var items: [MenuItem]
 13 |     public var numberOfItems: Int {
    :
169 |     private func setupMonitors(for parentWindow: NSWindow, targetView: NSView) {
170 |         lostFocusObserver = NotificationCenter.default.addObserver(forName: NSWindow.didResignKeyNotification, object: parentWindow, queue: nil, using: { [weak self] (_ arg1: Notification) -> Void in
171 |             self?.dismiss(animated: false)
    |             `- warning: capture of 'self' with non-sendable type 'Menu?' in a '@Sendable' closure
172 |         })
173 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:205:37: warning: call to main actor-isolated initializer 'init(with:menuItems:selectedId:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
202 |     }
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
    |                  `- note: add '@MainActor' to make instance method 'makeWindow(with:menuItems:attachedTo:relativeTo:)' part of global actor 'MainActor'
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
    |                                     `- warning: call to main actor-isolated initializer 'init(with:menuItems:selectedId:configuration:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
206 |         contentViewController.delegate = self
207 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/ContentViewController.swift:41:5: note: calls to initializer 'init(with:menuItems:selectedId:configuration:)' from outside of its actor context are implicitly asynchronous
 39 |     }()
 40 |
 41 |     init(with titleString: String?, menuItems: [MenuItem], selectedId: UUID?, configuration: Configuration) {
    |     |- note: calls to initializer 'init(with:menuItems:selectedId:configuration:)' from outside of its actor context are implicitly asynchronous
    |     `- note: main actor isolation inferred from inheritance from class 'NSViewController'
 42 |         self.titleString = titleString
 43 |         self.menuItems = menuItems
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:206:31: warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
202 |     }
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
    |                  `- note: add '@MainActor' to make instance method 'makeWindow(with:menuItems:attachedTo:relativeTo:)' part of global actor 'MainActor'
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
206 |         contentViewController.delegate = self
    |                               `- warning: main actor-isolated property 'delegate' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
207 |
208 |         let window = Window.make(with: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/ContentViewController.swift:15:14: note: mutation of this property is only permitted within the actor
 13 |
 14 | class ContentViewController: NSViewController {
 15 |     weak var delegate: ContentViewControllerDelegate?
    |              `- note: mutation of this property is only permitted within the actor
 16 |
 17 |     private let titleString: String?
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:208:29: warning: call to main actor-isolated static method 'make(with:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
202 |     }
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
    |                  `- note: add '@MainActor' to make instance method 'makeWindow(with:menuItems:attachedTo:relativeTo:)' part of global actor 'MainActor'
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
206 |         contentViewController.delegate = self
207 |
208 |         let window = Window.make(with: configuration)
    |                             `- warning: call to main actor-isolated static method 'make(with:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
209 |         window.contentViewController = contentViewController
210 |         parentWindow.addChildWindow(window, ordered: .above)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Window.swift:36:17: note: calls to static method 'make(with:)' from outside of its actor context are implicitly asynchronous
34 |     }
35 |
36 |     static func make(with configuration: Configuration) -> Window {
   |                 |- note: calls to static method 'make(with:)' from outside of its actor context are implicitly asynchronous
   |                 `- note: main actor isolation inferred from inheritance from class 'NSWindow'
37 |         return Window.init(
38 |             contentRect: .zero,
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:209:16: warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
202 |     }
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
    |                  `- note: add '@MainActor' to make instance method 'makeWindow(with:menuItems:attachedTo:relativeTo:)' part of global actor 'MainActor'
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
206 |         contentViewController.delegate = self
207 |
208 |         let window = Window.make(with: configuration)
209 |         window.contentViewController = contentViewController
    |                `- warning: main actor-isolated property 'contentViewController' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
210 |         parentWindow.addChildWindow(window, ordered: .above)
211 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:651:48: note: mutation of this property is only permitted within the actor
 649 | /*! The main content view controller for the window. This provides the contentView of the window. Assigning this value will remove the existing contentView and will make the contentViewController.view the main contentView for the window. The default value is nil. The contentViewController only controls the contentView, and not the title of the window. The window title can easily be bound to the contentViewController with the following: [window bind:NSTitleBinding toObject:contentViewController withKeyPath:@"title" options:nil]. Setting the contentViewController will cause the window to resize based on the current size of the contentViewController. Autolayout should be used to restrict the size of the window. The value of the contentViewController is encoded in the NIB. Directly assigning a contentView will clear out the contentViewController.
 650 |  */
 651 | @property (nullable, strong) NSViewController *contentViewController API_AVAILABLE(macos(10.10));
     |                                                `- note: mutation of this property is only permitted within the actor
 652 |
 653 | /*! Convenience method for creating an autoreleased titled window with the given contentViewController. A basic NSWindow with the following attributes is made: titled, closable, resizable, miniaturizable. The window's title is automatically bound to the contentViewController's title. The size of the window can easily be controlled by utilizing autolayout and applying size constraints to the view (or its subviews). The window has isReleasedWhenClosed set to NO, and it must be explicitly retained to keep the window instance alive. To have it automatically be freed when it is closed, do the following: [window retain] and [window setReleasedWhenClosed:YES].
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:210:22: warning: call to main actor-isolated instance method 'addChildWindow(_:ordered:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
202 |     }
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
    |                  `- note: add '@MainActor' to make instance method 'makeWindow(with:menuItems:attachedTo:relativeTo:)' part of global actor 'MainActor'
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
206 |         contentViewController.delegate = self
    :
208 |         let window = Window.make(with: configuration)
209 |         window.contentViewController = contentViewController
210 |         parentWindow.addChildWindow(window, ordered: .above)
    |                      `- warning: call to main actor-isolated instance method 'addChildWindow(_:ordered:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
211 |
212 |         setFrame(for: window, relativeTo: targetView)
AppKit.NSWindow.addChildWindow:2:22: note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func addChildWindow(_ childWin: NSWindow, ordered place: NSWindow.OrderingMode)}
  |                      |- note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:218:39: warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
    |                                       `- warning: main actor-isolated property 'window' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:86:61: note: property declared here
 84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
 85 |
 86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
    |                                                             `- note: property declared here
 87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
 88 | @property (copy) NSArray<__kindof NSView *> *subviews;
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:218:83: warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
    |                                                                                   `- warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:337:47: note: property declared here
 335 | - (void)setTitleWithRepresentedFilename:(NSString *)filename;
 336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
 337 | @property (nullable, strong) __kindof NSView *contentView;
     |                                               `- note: property declared here
 338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
 339 | @property (readonly) NSInteger windowNumber;
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:220:37: warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
    |                                     `- warning: call to main actor-isolated instance method 'convert(_:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
221 |         let rectInWindow = NSRect(origin: locationInWindow, size: CGSize(width: NSWidth(view.frame), height: NSHeight(window.frame)))
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
AppKit.NSView.convert:2:22: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func convert(_ point: NSPoint, to view: NSView?) -> NSPoint}
  |                      |- note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:220:62: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
    |                                                              `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
221 |         let rectInWindow = NSRect(origin: locationInWindow, size: CGSize(width: NSWidth(view.frame), height: NSHeight(window.frame)))
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
    |                  `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:221:94: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
221 |         let rectInWindow = NSRect(origin: locationInWindow, size: CGSize(width: NSWidth(view.frame), height: NSHeight(window.frame)))
    |                                                                                              `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
223 |         let origin = rectInScreen.origin
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
    |                  `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:221:126: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
221 |         let rectInWindow = NSRect(origin: locationInWindow, size: CGSize(width: NSWidth(view.frame), height: NSHeight(window.frame)))
    |                                                                                                                              `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
223 |         let origin = rectInScreen.origin
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:359:29: note: property declared here
 357 | @property (readonly) NSRect cascadingReferenceFrame API_AVAILABLE(macos(15.0));
 358 |
 359 | @property (readonly) NSRect frame;
     |                             `- note: property declared here
 360 |
 361 | /*! Subclasses can override \c animationResizeTime: to control the total time for the frame change.
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:222:41: warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
220 |         let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
221 |         let rectInWindow = NSRect(origin: locationInWindow, size: CGSize(width: NSWidth(view.frame), height: NSHeight(window.frame)))
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
    |                                         `- warning: call to main actor-isolated instance method 'convertToScreen' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
223 |         let origin = rectInScreen.origin
224 |         var additionalYOffset = configuration.appearsBelowSender ? NSHeight(view.frame) : 0
AppKit.NSWindow.convertToScreen:3:24: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @available(macOS 10.7, *)
3 |   @MainActor open func convertToScreen(_ rect: NSRect) -> NSRect}
  |                        |- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
  |                        `- note: main actor isolation inferred from inheritance from class 'NSResponder'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:224:82: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
    :
222 |         let rectInScreen = parentWindow.convertToScreen(rectInWindow)
223 |         let origin = rectInScreen.origin
224 |         var additionalYOffset = configuration.appearsBelowSender ? NSHeight(view.frame) : 0
    |                                                                                  `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
225 |         additionalYOffset += abs(configuration.presentingOffset)
226 |         let newFrame = NSRect(x: origin.x, y: origin.y - NSHeight(window.frame) - additionalYOffset, width: NSWidth(view.frame), height: NSHeight(window.frame))
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
    |                  `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:226:74: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
    :
224 |         var additionalYOffset = configuration.appearsBelowSender ? NSHeight(view.frame) : 0
225 |         additionalYOffset += abs(configuration.presentingOffset)
226 |         let newFrame = NSRect(x: origin.x, y: origin.y - NSHeight(window.frame) - additionalYOffset, width: NSWidth(view.frame), height: NSHeight(window.frame))
    |                                                                          `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
227 |
228 |         window.setFrame(newFrame, display: true, animate: false)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:359:29: note: property declared here
 357 | @property (readonly) NSRect cascadingReferenceFrame API_AVAILABLE(macos(15.0));
 358 |
 359 | @property (readonly) NSRect frame;
     |                             `- note: property declared here
 360 |
 361 | /*! Subclasses can override \c animationResizeTime: to control the total time for the frame change.
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:226:122: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
    :
224 |         var additionalYOffset = configuration.appearsBelowSender ? NSHeight(view.frame) : 0
225 |         additionalYOffset += abs(configuration.presentingOffset)
226 |         let newFrame = NSRect(x: origin.x, y: origin.y - NSHeight(window.frame) - additionalYOffset, width: NSWidth(view.frame), height: NSHeight(window.frame))
    |                                                                                                                          `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
227 |
228 |         window.setFrame(newFrame, display: true, animate: false)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: property declared here
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
    |                  `- note: property declared here
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:226:154: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
    :
224 |         var additionalYOffset = configuration.appearsBelowSender ? NSHeight(view.frame) : 0
225 |         additionalYOffset += abs(configuration.presentingOffset)
226 |         let newFrame = NSRect(x: origin.x, y: origin.y - NSHeight(window.frame) - additionalYOffset, width: NSWidth(view.frame), height: NSHeight(window.frame))
    |                                                                                                                                                          `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
227 |
228 |         window.setFrame(newFrame, display: true, animate: false)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:359:29: note: property declared here
 357 | @property (readonly) NSRect cascadingReferenceFrame API_AVAILABLE(macos(15.0));
 358 |
 359 | @property (readonly) NSRect frame;
     |                             `- note: property declared here
 360 |
 361 | /*! Subclasses can override \c animationResizeTime: to control the total time for the frame change.
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:228:16: warning: call to main actor-isolated instance method 'setFrame(_:display:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
215 |     }
216 |
217 |     private func setFrame(for window: NSWindow, relativeTo view: NSView) {
    |                  `- note: add '@MainActor' to make instance method 'setFrame(for:relativeTo:)' part of global actor 'MainActor'
218 |         guard let parentWindow = view.window, let topMostSuperView = parentWindow.contentView else { return }
219 |
    :
226 |         let newFrame = NSRect(x: origin.x, y: origin.y - NSHeight(window.frame) - additionalYOffset, width: NSWidth(view.frame), height: NSHeight(window.frame))
227 |
228 |         window.setFrame(newFrame, display: true, animate: false)
    |                `- warning: call to main actor-isolated instance method 'setFrame(_:display:animate:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
229 |     }
230 | }
AppKit.NSWindow.setFrame:2:22: note: calls to instance method 'setFrame(_:display:animate:)' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func setFrame(_ frameRect: NSRect, display displayFlag: Bool, animate animateFlag: Bool)}
  |                      |- note: calls to instance method 'setFrame(_:display:animate:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:205:37: warning: sending 'menuItems' risks causing data races; this is an error in the Swift 6 language mode
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
    |                                     |- warning: sending 'menuItems' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending task-isolated 'menuItems' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
206 |         contentViewController.delegate = self
207 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:205:37: warning: sending 'self.configuration' risks causing data races; this is an error in the Swift 6 language mode
203 |
204 |     private func makeWindow(with title: String?, menuItems: [MenuItem], attachedTo parentWindow: NSWindow, relativeTo targetView: NSView) -> Window {
205 |         let contentViewController = ContentViewController(with: title, menuItems: menuItems, selectedId: selectedId, configuration: configuration)
    |                                     |- warning: sending 'self.configuration' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending task-isolated 'self.configuration' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
206 |         contentViewController.delegate = self
207 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:208:29: warning: sending 'self.configuration' risks causing data races; this is an error in the Swift 6 language mode
206 |         contentViewController.delegate = self
207 |
208 |         let window = Window.make(with: configuration)
    |                             |- warning: sending 'self.configuration' risks causing data races; this is an error in the Swift 6 language mode
    |                             `- note: sending task-isolated 'self.configuration' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
209 |         window.contentViewController = contentViewController
210 |         parentWindow.addChildWindow(window, ordered: .above)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:46:27: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
 44 |         let actualDismiss: (NSWindow) -> Void = { [weak self] menuWindow in
 45 |             self?.window?.parent?.removeChildWindow(menuWindow)
 46 |             self?.window?.orderOut(self)
    |                           |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                           `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'orderOut' risks causing races in between task-isolated and main actor-isolated uses
 47 |             self?.window = nil
 48 |             self?.stopMonitors()
[11/18] Compiling Menu VerticallyCenteredTextFieldCell.swift
[12/18] Compiling Menu ScrollView.swift
[13/18] Compiling Menu MenuElement.swift
[14/19] Emitting module Menu
/Users/admin/builder/spi-builder-workspace/Sources/Menu/CheckmarkView.swift:88:10: warning: main actor-isolated instance method 'animationDidStop(_:finished:)' cannot be used to satisfy nonisolated requirement from protocol 'CAAnimationDelegate'; this is an error in the Swift 6 language mode
85 | }
86 |
87 | extension CheckmarkView: CAAnimationDelegate {
   |                          `- note: add '@preconcurrency' to the 'CAAnimationDelegate' conformance to defer isolation checking to run time
88 |     func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
   |          |- warning: main actor-isolated instance method 'animationDidStop(_:finished:)' cannot be used to satisfy nonisolated requirement from protocol 'CAAnimationDelegate'; this is an error in the Swift 6 language mode
   |          `- note: add 'nonisolated' to 'animationDidStop(_:finished:)' to make this instance method not isolated to the actor
89 |         animationCompletion?()
90 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/ContentViewController.swift:176:10: warning: main actor-isolated instance method 'didClickMenuElement' cannot be used to satisfy nonisolated requirement from protocol 'MenuElementDelegate'; this is an error in the Swift 6 language mode
173 | }
174 |
175 | extension ContentViewController: MenuElementDelegate {
    |                                  `- note: add '@preconcurrency' to the 'MenuElementDelegate' conformance to defer isolation checking to run time
176 |     func didClickMenuElement(_ menuElement: MenuElement) {
    |          |- warning: main actor-isolated instance method 'didClickMenuElement' cannot be used to satisfy nonisolated requirement from protocol 'MenuElementDelegate'; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'didClickMenuElement' to make this instance method not isolated to the actor
177 |         guard let index = menuElements.firstIndex(of: menuElement) else { return }
178 |         guard menuItems.indices.contains(index) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/MenuElement.swift:11:10: note: mark the protocol requirement 'didClickMenuElement' 'async' to allow actor-isolated conformances
  9 |
 10 | protocol MenuElementDelegate: AnyObject {
 11 |     func didClickMenuElement(_ menuElement: MenuElement)
    |          `- note: mark the protocol requirement 'didClickMenuElement' 'async' to allow actor-isolated conformances
 12 | }
 13 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:164:16: warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
162 |
163 | public extension CAMediaTimingFunction {
164 |     static let easeIn = CAMediaTimingFunction(name: .easeIn)
    |                |- warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'easeIn' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:165:16: warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
163 | public extension CAMediaTimingFunction {
164 |     static let easeIn = CAMediaTimingFunction(name: .easeIn)
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
    |                |- warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'easeOut' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
167 |     static let linear = CAMediaTimingFunction(name: .linear)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:166:16: warning: static property 'easeInEaseOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
164 |     static let easeIn = CAMediaTimingFunction(name: .easeIn)
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
    |                |- warning: static property 'easeInEaseOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'easeInEaseOut' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 |     static let linear = CAMediaTimingFunction(name: .linear)
168 |     static let `default` = CAMediaTimingFunction(name: .default)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:167:16: warning: static property 'linear' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
167 |     static let linear = CAMediaTimingFunction(name: .linear)
    |                |- warning: static property 'linear' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'linear' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 |     static let `default` = CAMediaTimingFunction(name: .default)
169 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:168:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
167 |     static let linear = CAMediaTimingFunction(name: .linear)
168 |     static let `default` = CAMediaTimingFunction(name: .default)
    |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | }
170 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
[15/19] Compiling Menu Control.swift
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:164:16: warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
162 |
163 | public extension CAMediaTimingFunction {
164 |     static let easeIn = CAMediaTimingFunction(name: .easeIn)
    |                |- warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'easeIn' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:165:16: warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
163 | public extension CAMediaTimingFunction {
164 |     static let easeIn = CAMediaTimingFunction(name: .easeIn)
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
    |                |- warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'easeOut' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
167 |     static let linear = CAMediaTimingFunction(name: .linear)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:166:16: warning: static property 'easeInEaseOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
164 |     static let easeIn = CAMediaTimingFunction(name: .easeIn)
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
    |                |- warning: static property 'easeInEaseOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'easeInEaseOut' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 |     static let linear = CAMediaTimingFunction(name: .linear)
168 |     static let `default` = CAMediaTimingFunction(name: .default)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:167:16: warning: static property 'linear' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
167 |     static let linear = CAMediaTimingFunction(name: .linear)
    |                |- warning: static property 'linear' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'linear' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 |     static let `default` = CAMediaTimingFunction(name: .default)
169 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:168:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
167 |     static let linear = CAMediaTimingFunction(name: .linear)
168 |     static let `default` = CAMediaTimingFunction(name: .default)
    |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | }
170 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:43:35: warning: call to main actor-isolated instance method 'makeKey()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 39 |
 40 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 41 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 42 |             switch self {
 43 |             case .makeKey: window.makeKey()
    |                                   `- warning: call to main actor-isolated instance method 'makeKey()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
 45 |             case .orderFront: window.orderFront(sender)
AppKit.NSWindow.makeKey:2:22: note: calls to instance method 'makeKey()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func makeKey()}
  |                      |- note: calls to instance method 'makeKey()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:44:48: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 39 |
 40 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 41 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 42 |             switch self {
 43 |             case .makeKey: window.makeKey()
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
    |                                                `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 45 |             case .orderFront: window.orderFront(sender)
 46 |             case .orderFrontRegardless: window.orderFrontRegardless()
AppKit.NSWindow.makeKeyAndOrderFront:2:22: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func makeKeyAndOrderFront(_ sender: Any?)}
  |                      |- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:45:38: warning: call to main actor-isolated instance method 'orderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 39 |
 40 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 41 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 42 |             switch self {
 43 |             case .makeKey: window.makeKey()
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
 45 |             case .orderFront: window.orderFront(sender)
    |                                      `- warning: call to main actor-isolated instance method 'orderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 46 |             case .orderFrontRegardless: window.orderFrontRegardless()
 47 |             }
AppKit.NSWindow.orderFront:2:22: note: calls to instance method 'orderFront' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderFront(_ sender: Any?)}
  |                      |- note: calls to instance method 'orderFront' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:46:48: warning: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 39 |
 40 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 41 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 42 |             switch self {
 43 |             case .makeKey: window.makeKey()
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
 45 |             case .orderFront: window.orderFront(sender)
 46 |             case .orderFrontRegardless: window.orderFrontRegardless()
    |                                                `- warning: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 47 |             }
 48 |         }
AppKit.NSWindow.orderFrontRegardless:2:22: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderFrontRegardless()}
  |                      |- note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:68:36: warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 64 |
 65 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 66 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 67 |             switch self {
 68 |             case .orderOut: window.orderOut(sender)
    |                                    `- warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 69 |             case .close: window.close()
 70 |             case .performClose: window.performClose(sender)
AppKit.NSWindow.orderOut:2:22: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderOut(_ sender: Any?)}
  |                      |- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:69:33: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 64 |
 65 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 66 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 67 |             switch self {
 68 |             case .orderOut: window.orderOut(sender)
 69 |             case .close: window.close()
    |                                 `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 70 |             case .performClose: window.performClose(sender)
 71 |             }
AppKit.NSWindow.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func close()}
  |                      |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:70:40: warning: call to main actor-isolated instance method 'performClose' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 64 |
 65 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 66 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 67 |             switch self {
 68 |             case .orderOut: window.orderOut(sender)
 69 |             case .close: window.close()
 70 |             case .performClose: window.performClose(sender)
    |                                        `- warning: call to main actor-isolated instance method 'performClose' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 71 |             }
 72 |         }
AppKit.NSWindow.performClose:2:22: note: calls to instance method 'performClose' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func performClose(_ sender: Any?)}
  |                      |- note: calls to instance method 'performClose' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:44:48: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
 42 |             switch self {
 43 |             case .makeKey: window.makeKey()
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
    |                                                |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'makeKeyAndOrderFront' risks causing races in between task-isolated and main actor-isolated uses
 45 |             case .orderFront: window.orderFront(sender)
 46 |             case .orderFrontRegardless: window.orderFrontRegardless()
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:45:38: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
 43 |             case .makeKey: window.makeKey()
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
 45 |             case .orderFront: window.orderFront(sender)
    |                                      |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'orderFront' risks causing races in between task-isolated and main actor-isolated uses
 46 |             case .orderFrontRegardless: window.orderFrontRegardless()
 47 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:68:36: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
 66 |         public func run(on window: NSWindow, sender: Any?) {
 67 |             switch self {
 68 |             case .orderOut: window.orderOut(sender)
    |                                    |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                                    `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'orderOut' risks causing races in between task-isolated and main actor-isolated uses
 69 |             case .close: window.close()
 70 |             case .performClose: window.performClose(sender)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:70:40: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
 68 |             case .orderOut: window.orderOut(sender)
 69 |             case .close: window.close()
 70 |             case .performClose: window.performClose(sender)
    |                                        |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'performClose' risks causing races in between task-isolated and main actor-isolated uses
 71 |             }
 72 |         }
[16/19] Compiling Menu Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:164:16: warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
162 |
163 | public extension CAMediaTimingFunction {
164 |     static let easeIn = CAMediaTimingFunction(name: .easeIn)
    |                |- warning: static property 'easeIn' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'easeIn' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:165:16: warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
163 | public extension CAMediaTimingFunction {
164 |     static let easeIn = CAMediaTimingFunction(name: .easeIn)
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
    |                |- warning: static property 'easeOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'easeOut' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
167 |     static let linear = CAMediaTimingFunction(name: .linear)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:166:16: warning: static property 'easeInEaseOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
164 |     static let easeIn = CAMediaTimingFunction(name: .easeIn)
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
    |                |- warning: static property 'easeInEaseOut' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'easeInEaseOut' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 |     static let linear = CAMediaTimingFunction(name: .linear)
168 |     static let `default` = CAMediaTimingFunction(name: .default)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:167:16: warning: static property 'linear' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
165 |     static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
167 |     static let linear = CAMediaTimingFunction(name: .linear)
    |                |- warning: static property 'linear' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'linear' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 |     static let `default` = CAMediaTimingFunction(name: .default)
169 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:168:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
166 |     static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
167 |     static let linear = CAMediaTimingFunction(name: .linear)
168 |     static let `default` = CAMediaTimingFunction(name: .default)
    |                |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CAMediaTimingFunction' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | }
170 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h:24:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
22 |
23 | API_AVAILABLE(macos(10.5), ios(2.0), tvos(9.0)) API_UNAVAILABLE(watchos)
24 | @interface CAMediaTimingFunction : NSObject <NSSecureCoding>
   |            `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
25 | {
26 | @private
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:43:35: warning: call to main actor-isolated instance method 'makeKey()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 39 |
 40 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 41 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 42 |             switch self {
 43 |             case .makeKey: window.makeKey()
    |                                   `- warning: call to main actor-isolated instance method 'makeKey()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
 45 |             case .orderFront: window.orderFront(sender)
AppKit.NSWindow.makeKey:2:22: note: calls to instance method 'makeKey()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func makeKey()}
  |                      |- note: calls to instance method 'makeKey()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:44:48: warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 39 |
 40 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 41 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 42 |             switch self {
 43 |             case .makeKey: window.makeKey()
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
    |                                                `- warning: call to main actor-isolated instance method 'makeKeyAndOrderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 45 |             case .orderFront: window.orderFront(sender)
 46 |             case .orderFrontRegardless: window.orderFrontRegardless()
AppKit.NSWindow.makeKeyAndOrderFront:2:22: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func makeKeyAndOrderFront(_ sender: Any?)}
  |                      |- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:45:38: warning: call to main actor-isolated instance method 'orderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 39 |
 40 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 41 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 42 |             switch self {
 43 |             case .makeKey: window.makeKey()
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
 45 |             case .orderFront: window.orderFront(sender)
    |                                      `- warning: call to main actor-isolated instance method 'orderFront' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 46 |             case .orderFrontRegardless: window.orderFrontRegardless()
 47 |             }
AppKit.NSWindow.orderFront:2:22: note: calls to instance method 'orderFront' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderFront(_ sender: Any?)}
  |                      |- note: calls to instance method 'orderFront' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:46:48: warning: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 39 |
 40 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 41 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 42 |             switch self {
 43 |             case .makeKey: window.makeKey()
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
 45 |             case .orderFront: window.orderFront(sender)
 46 |             case .orderFrontRegardless: window.orderFrontRegardless()
    |                                                `- warning: call to main actor-isolated instance method 'orderFrontRegardless()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 47 |             }
 48 |         }
AppKit.NSWindow.orderFrontRegardless:2:22: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderFrontRegardless()}
  |                      |- note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:68:36: warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 64 |
 65 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 66 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 67 |             switch self {
 68 |             case .orderOut: window.orderOut(sender)
    |                                    `- warning: call to main actor-isolated instance method 'orderOut' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 69 |             case .close: window.close()
 70 |             case .performClose: window.performClose(sender)
AppKit.NSWindow.orderOut:2:22: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func orderOut(_ sender: Any?)}
  |                      |- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:69:33: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 64 |
 65 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 66 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 67 |             switch self {
 68 |             case .orderOut: window.orderOut(sender)
 69 |             case .close: window.close()
    |                                 `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 70 |             case .performClose: window.performClose(sender)
 71 |             }
AppKit.NSWindow.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func close()}
  |                      |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:70:40: warning: call to main actor-isolated instance method 'performClose' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 64 |
 65 |         /// Runs the function represented by this case on the given window, passing the given selector if needed
 66 |         public func run(on window: NSWindow, sender: Any?) {
    |                     `- note: add '@MainActor' to make instance method 'run(on:sender:)' part of global actor 'MainActor'
 67 |             switch self {
 68 |             case .orderOut: window.orderOut(sender)
 69 |             case .close: window.close()
 70 |             case .performClose: window.performClose(sender)
    |                                        `- warning: call to main actor-isolated instance method 'performClose' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 71 |             }
 72 |         }
AppKit.NSWindow.performClose:2:22: note: calls to instance method 'performClose' from outside of its actor context are implicitly asynchronous
1 | class NSWindow {
2 | @MainActor open func performClose(_ sender: Any?)}
  |                      |- note: calls to instance method 'performClose' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:44:48: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
 42 |             switch self {
 43 |             case .makeKey: window.makeKey()
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
    |                                                |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                                                `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'makeKeyAndOrderFront' risks causing races in between task-isolated and main actor-isolated uses
 45 |             case .orderFront: window.orderFront(sender)
 46 |             case .orderFrontRegardless: window.orderFrontRegardless()
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:45:38: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
 43 |             case .makeKey: window.makeKey()
 44 |             case .makeKeyAndOrderFront: window.makeKeyAndOrderFront(sender)
 45 |             case .orderFront: window.orderFront(sender)
    |                                      |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                                      `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'orderFront' risks causing races in between task-isolated and main actor-isolated uses
 46 |             case .orderFrontRegardless: window.orderFrontRegardless()
 47 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:68:36: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
 66 |         public func run(on window: NSWindow, sender: Any?) {
 67 |             switch self {
 68 |             case .orderOut: window.orderOut(sender)
    |                                    |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                                    `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'orderOut' risks causing races in between task-isolated and main actor-isolated uses
 69 |             case .close: window.close()
 70 |             case .performClose: window.performClose(sender)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:70:40: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
 68 |             case .orderOut: window.orderOut(sender)
 69 |             case .close: window.close()
 70 |             case .performClose: window.performClose(sender)
    |                                        |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'performClose' risks causing races in between task-isolated and main actor-isolated uses
 71 |             }
 72 |         }
[17/19] Compiling Menu CheckmarkView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Menu/CheckmarkView.swift:88:10: warning: main actor-isolated instance method 'animationDidStop(_:finished:)' cannot be used to satisfy nonisolated requirement from protocol 'CAAnimationDelegate'; this is an error in the Swift 6 language mode
85 | }
86 |
87 | extension CheckmarkView: CAAnimationDelegate {
   |                          `- note: add '@preconcurrency' to the 'CAAnimationDelegate' conformance to defer isolation checking to run time
88 |     func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
   |          |- warning: main actor-isolated instance method 'animationDidStop(_:finished:)' cannot be used to satisfy nonisolated requirement from protocol 'CAAnimationDelegate'; this is an error in the Swift 6 language mode
   |          `- note: add 'nonisolated' to 'animationDidStop(_:finished:)' to make this instance method not isolated to the actor
89 |         animationCompletion?()
90 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/ContentViewController.swift:176:10: warning: main actor-isolated instance method 'didClickMenuElement' cannot be used to satisfy nonisolated requirement from protocol 'MenuElementDelegate'; this is an error in the Swift 6 language mode
173 | }
174 |
175 | extension ContentViewController: MenuElementDelegate {
    |                                  `- note: add '@preconcurrency' to the 'MenuElementDelegate' conformance to defer isolation checking to run time
176 |     func didClickMenuElement(_ menuElement: MenuElement) {
    |          |- warning: main actor-isolated instance method 'didClickMenuElement' cannot be used to satisfy nonisolated requirement from protocol 'MenuElementDelegate'; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'didClickMenuElement' to make this instance method not isolated to the actor
177 |         guard let index = menuElements.firstIndex(of: menuElement) else { return }
178 |         guard menuItems.indices.contains(index) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/MenuElement.swift:11:10: note: mark the protocol requirement 'didClickMenuElement' 'async' to allow actor-isolated conformances
  9 |
 10 | protocol MenuElementDelegate: AnyObject {
 11 |     func didClickMenuElement(_ menuElement: MenuElement)
    |          `- note: mark the protocol requirement 'didClickMenuElement' 'async' to allow actor-isolated conformances
 12 | }
 13 |
[18/19] Compiling Menu ContentViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/Menu/CheckmarkView.swift:88:10: warning: main actor-isolated instance method 'animationDidStop(_:finished:)' cannot be used to satisfy nonisolated requirement from protocol 'CAAnimationDelegate'; this is an error in the Swift 6 language mode
85 | }
86 |
87 | extension CheckmarkView: CAAnimationDelegate {
   |                          `- note: add '@preconcurrency' to the 'CAAnimationDelegate' conformance to defer isolation checking to run time
88 |     func animationDidStop(_ anim: CAAnimation, finished flag: Bool) {
   |          |- warning: main actor-isolated instance method 'animationDidStop(_:finished:)' cannot be used to satisfy nonisolated requirement from protocol 'CAAnimationDelegate'; this is an error in the Swift 6 language mode
   |          `- note: add 'nonisolated' to 'animationDidStop(_:finished:)' to make this instance method not isolated to the actor
89 |         animationCompletion?()
90 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/ContentViewController.swift:176:10: warning: main actor-isolated instance method 'didClickMenuElement' cannot be used to satisfy nonisolated requirement from protocol 'MenuElementDelegate'; this is an error in the Swift 6 language mode
173 | }
174 |
175 | extension ContentViewController: MenuElementDelegate {
    |                                  `- note: add '@preconcurrency' to the 'MenuElementDelegate' conformance to defer isolation checking to run time
176 |     func didClickMenuElement(_ menuElement: MenuElement) {
    |          |- warning: main actor-isolated instance method 'didClickMenuElement' cannot be used to satisfy nonisolated requirement from protocol 'MenuElementDelegate'; this is an error in the Swift 6 language mode
    |          `- note: add 'nonisolated' to 'didClickMenuElement' to make this instance method not isolated to the actor
177 |         guard let index = menuElements.firstIndex(of: menuElement) else { return }
178 |         guard menuItems.indices.contains(index) else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/MenuElement.swift:11:10: note: mark the protocol requirement 'didClickMenuElement' 'async' to allow actor-isolated conformances
  9 |
 10 | protocol MenuElementDelegate: AnyObject {
 11 |     func didClickMenuElement(_ menuElement: MenuElement)
    |          `- note: mark the protocol requirement 'didClickMenuElement' 'async' to allow actor-isolated conformances
 12 | }
 13 |
[19/19] Compiling Menu Window.swift
Build complete! (8.91s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "eventmonitor",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/iSapozhnik/EventMonitor"
    }
  ],
  "manifest_display_name" : "Menu",
  "name" : "Menu",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    }
  ],
  "products" : [
    {
      "name" : "Menu",
      "targets" : [
        "Menu"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MenuTests",
      "module_type" : "SwiftTarget",
      "name" : "MenuTests",
      "path" : "Tests/MenuTests",
      "sources" : [
        "MenuTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Menu"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Menu",
      "module_type" : "SwiftTarget",
      "name" : "Menu",
      "path" : "Sources/Menu",
      "product_dependencies" : [
        "EventMonitor"
      ],
      "product_memberships" : [
        "Menu"
      ],
      "sources" : [
        "CheckmarkView.swift",
        "ContentViewController.swift",
        "Control.swift",
        "Extensions.swift",
        "Menu.swift",
        "MenuConfiguration.swift",
        "MenuElement.swift",
        "MenuItem.swift",
        "MenuScroller.swift",
        "RoundedRectangleView.swift",
        "ScrollView.swift",
        "VerticallyCenteredTextFieldCell.swift",
        "Window.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.