Build Information
Successful build of Menu with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 7
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/iSapozhnik/Menu.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/5] Emitting module EventMonitor
[5/5] Compiling EventMonitor EventMonitor.swift
[6/18] Compiling Menu MenuScroller.swift
[7/18] Compiling Menu ScrollView.swift
[8/19] Compiling Menu VerticallyCenteredTextFieldCell.swift
[9/19] Compiling Menu MenuItem.swift
[10/19] Compiling Menu MenuElement.swift
[11/19] Compiling Menu RoundedRectangleView.swift
[12/19] Compiling Menu Window.swift
[13/19] Compiling Menu Control.swift
/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
167 | static let linear = CAMediaTimingFunction(name: .linear)
168 | static let `default` = CAMediaTimingFunction(name: .default)
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'QuartzCore'
6 | //
7 |
8 | import Cocoa
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'QuartzCore'
9 |
10 | extension CAEdgeAntialiasingMask {
:
164 | static let easeIn = CAMediaTimingFunction(name: .easeIn)
165 | static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 | static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
| |- note: annotate 'easeInEaseOut' with '@MainActor' if property should only be accessed from the main actor
| `- 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)
/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | }
170 |
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in 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: annotate 'easeIn' with '@MainActor' if property should only be accessed from the main actor
| `- 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)
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/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: annotate 'easeOut' with '@MainActor' if property should only be accessed from the main actor
| `- 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)
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/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: annotate 'linear' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 | static let `default` = CAMediaTimingFunction(name: .default)
169 | }
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/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:172:26: note: calls to instance method 'makeKey()' from outside of its actor context are implicitly asynchronous
170 | @available(swift, obsoleted: 3, renamed: "canBecomeMain")
171 | open var canBecomeMainWindow: Bool { get }
172 | @MainActor open func makeKey()
| `- note: calls to instance method 'makeKey()' from outside of its actor context are implicitly asynchronous
173 | @available(swift, obsoleted: 3, renamed: "makeKey()")
174 | open func makeKeyWindow()
/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:142:26: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
140 | open var canHide: Bool { get set }
141 | open func center()
142 | @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
| `- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
143 | @MainActor open func orderFront(_ sender: Any?)
144 | open func orderBack(_ sender: Any?)
/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:143:26: note: calls to instance method 'orderFront' from outside of its actor context are implicitly asynchronous
141 | open func center()
142 | @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
143 | @MainActor open func orderFront(_ sender: Any?)
| `- note: calls to instance method 'orderFront' from outside of its actor context are implicitly asynchronous
144 | open func orderBack(_ sender: Any?)
145 | open func orderOut(_ sender: Any?)
/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:149:26: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
147 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
148 | open func orderWindow(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
149 | @MainActor open func orderFrontRegardless()
| `- note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
150 | open var miniwindowImage: NSImage? { get set }
151 | open var miniwindowTitle: String! { get set }
/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:145:15: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
143 | @MainActor open func orderFront(_ sender: Any?)
144 | open func orderBack(_ sender: Any?)
145 | open func orderOut(_ sender: Any?)
| `- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
146 | open func order(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
147 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
/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:93:15: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
91 | weak open var firstResponder: NSResponder? { get }
92 | open var resizeFlags: NSEvent.ModifierFlags { get }
93 | open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
94 | open var isReleasedWhenClosed: Bool { get set }
95 | @available(swift, obsoleted: 3, renamed: "isReleasedWhenClosed")
/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:231:15: note: calls to instance method 'performClose' from outside of its actor context are implicitly asynchronous
229 | @available(macOS 10.7, *)
230 | open var backingScaleFactor: CGFloat { get }
231 | open func performClose(_ sender: Any?)
| `- note: calls to instance method 'performClose' from outside of its actor context are implicitly asynchronous
232 | open func performMiniaturize(_ sender: Any?)
233 | open func performZoom(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:44:48: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context 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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context 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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
46 | case .orderFrontRegardless: window.orderFrontRegardless()
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:68:36: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context 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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context 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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
71 | }
72 | }
[14/19] Compiling Menu Extensions.swift
/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
167 | static let linear = CAMediaTimingFunction(name: .linear)
168 | static let `default` = CAMediaTimingFunction(name: .default)
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'QuartzCore'
6 | //
7 |
8 | import Cocoa
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'QuartzCore'
9 |
10 | extension CAEdgeAntialiasingMask {
:
164 | static let easeIn = CAMediaTimingFunction(name: .easeIn)
165 | static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 | static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
| |- note: annotate 'easeInEaseOut' with '@MainActor' if property should only be accessed from the main actor
| `- 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)
/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: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | }
170 |
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in 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: annotate 'easeIn' with '@MainActor' if property should only be accessed from the main actor
| `- 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)
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/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: annotate 'easeOut' with '@MainActor' if property should only be accessed from the main actor
| `- 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)
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/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: annotate 'linear' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 | static let `default` = CAMediaTimingFunction(name: .default)
169 | }
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/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:172:26: note: calls to instance method 'makeKey()' from outside of its actor context are implicitly asynchronous
170 | @available(swift, obsoleted: 3, renamed: "canBecomeMain")
171 | open var canBecomeMainWindow: Bool { get }
172 | @MainActor open func makeKey()
| `- note: calls to instance method 'makeKey()' from outside of its actor context are implicitly asynchronous
173 | @available(swift, obsoleted: 3, renamed: "makeKey()")
174 | open func makeKeyWindow()
/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:142:26: note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
140 | open var canHide: Bool { get set }
141 | open func center()
142 | @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
| `- note: calls to instance method 'makeKeyAndOrderFront' from outside of its actor context are implicitly asynchronous
143 | @MainActor open func orderFront(_ sender: Any?)
144 | open func orderBack(_ sender: Any?)
/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:143:26: note: calls to instance method 'orderFront' from outside of its actor context are implicitly asynchronous
141 | open func center()
142 | @MainActor open func makeKeyAndOrderFront(_ sender: Any?)
143 | @MainActor open func orderFront(_ sender: Any?)
| `- note: calls to instance method 'orderFront' from outside of its actor context are implicitly asynchronous
144 | open func orderBack(_ sender: Any?)
145 | open func orderOut(_ sender: Any?)
/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:149:26: note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
147 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
148 | open func orderWindow(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
149 | @MainActor open func orderFrontRegardless()
| `- note: calls to instance method 'orderFrontRegardless()' from outside of its actor context are implicitly asynchronous
150 | open var miniwindowImage: NSImage? { get set }
151 | open var miniwindowTitle: String! { get set }
/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:145:15: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
143 | @MainActor open func orderFront(_ sender: Any?)
144 | open func orderBack(_ sender: Any?)
145 | open func orderOut(_ sender: Any?)
| `- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
146 | open func order(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
147 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
/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:93:15: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
91 | weak open var firstResponder: NSResponder? { get }
92 | open var resizeFlags: NSEvent.ModifierFlags { get }
93 | open func close()
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
94 | open var isReleasedWhenClosed: Bool { get set }
95 | @available(swift, obsoleted: 3, renamed: "isReleasedWhenClosed")
/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:231:15: note: calls to instance method 'performClose' from outside of its actor context are implicitly asynchronous
229 | @available(macOS 10.7, *)
230 | open var backingScaleFactor: CGFloat { get }
231 | open func performClose(_ sender: Any?)
| `- note: calls to instance method 'performClose' from outside of its actor context are implicitly asynchronous
232 | open func performMiniaturize(_ sender: Any?)
233 | open func performZoom(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:44:48: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context 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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context 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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
46 | case .orderFrontRegardless: window.orderFrontRegardless()
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:68:36: warning: sending task-isolated value of type 'Any?' with later accesses to main actor-isolated context 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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context 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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
71 | }
72 | }
[15/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 protocol requirement; 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 protocol requirement; 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 | }
QuartzCore.CAAnimationDelegate:5:19: note: 'animationDidStop(_:finished:)' declared here
3 | optional func animationDidStart(_ anim: CAAnimation)
4 | @available(macOS 10.5, *)
5 | optional func animationDidStop(_ anim: CAAnimation, finished flag: Bool)
| `- note: 'animationDidStop(_:finished:)' declared here
6 | }
/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
167 | static let linear = CAMediaTimingFunction(name: .linear)
168 | static let `default` = CAMediaTimingFunction(name: .default)
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'QuartzCore'
6 | //
7 |
8 | import Cocoa
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'QuartzCore'
9 |
10 | extension CAEdgeAntialiasingMask {
:
164 | static let easeIn = CAMediaTimingFunction(name: .easeIn)
165 | static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 | static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
| |- note: annotate 'easeInEaseOut' with '@MainActor' if property should only be accessed from the main actor
| `- 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)
/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 protocol requirement; 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 protocol requirement; 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 |
[16/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 protocol requirement; 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 protocol requirement; 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 | }
QuartzCore.CAAnimationDelegate:5:19: note: 'animationDidStop(_:finished:)' declared here
3 | optional func animationDidStart(_ anim: CAAnimation)
4 | @available(macOS 10.5, *)
5 | optional func animationDidStop(_ anim: CAAnimation, finished flag: Bool)
| `- note: 'animationDidStop(_:finished:)' declared here
6 | }
/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
167 | static let linear = CAMediaTimingFunction(name: .linear)
168 | static let `default` = CAMediaTimingFunction(name: .default)
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'QuartzCore'
6 | //
7 |
8 | import Cocoa
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'QuartzCore'
9 |
10 | extension CAEdgeAntialiasingMask {
:
164 | static let easeIn = CAMediaTimingFunction(name: .easeIn)
165 | static let easeOut = CAMediaTimingFunction(name: .easeOut)
166 | static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
| |- note: annotate 'easeInEaseOut' with '@MainActor' if property should only be accessed from the main actor
| `- 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)
/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 protocol requirement; 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 protocol requirement; 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 |
[17/19] 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:327:26: note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
325 | open func standardWindowButton(_ b: NSWindow.ButtonType) -> NSButton?
326 | open func addChildWindow(_ childWin: NSWindow, ordered place: NSWindow.OrderingMode)
327 | @MainActor open func removeChildWindow(_ childWin: NSWindow)
| `- note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
328 | open var childWindows: [NSWindow]? { get }
329 | weak open var parent: NSWindow? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:45:27: warning: main actor-isolated property 'parent' can not be referenced from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
46 | self?.window?.orderOut(self)
47 | self?.window = nil
AppKit.NSWindow:329:19: note: property declared here
327 | @MainActor open func removeChildWindow(_ childWin: NSWindow)
328 | open var childWindows: [NSWindow]? { get }
329 | weak open var parent: NSWindow? { get set }
| `- note: property declared here
330 | @available(swift, obsoleted: 3, renamed: "parent")
331 | weak open var parentWindow: NSWindow? { get set }
/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:145:26: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
143 | open func orderFront(_ sender: Any?)
144 | open func orderBack(_ sender: Any?)
145 | @MainActor open func orderOut(_ sender: Any?)
| `- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
146 | open func order(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
147 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:130:54: warning: main actor-isolated property 'window' can not be referenced from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
131 |
132 | let menuWindow = makeWindow(
AppKit.NSView:4:41: note: property declared here
2 | public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:145:24: warning: main actor-isolated property 'alphaValue' can not be mutated from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
146 | }
147 | }
AppKit.NSWindow:251:14: note: mutation of this property is only permitted within the actor
249 | open var hasShadow: Bool { get set }
250 | open func invalidateShadow()
251 | open var alphaValue: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
252 | open var isOpaque: Bool { get set }
253 | @available(swift, obsoleted: 3, renamed: "isOpaque")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:150:16: warning: main actor-isolated property 'alphaValue' can not be mutated from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
151 |
152 | NSAnimationContext.runAnimationGroup { context in
AppKit.NSWindow:251:14: note: mutation of this property is only permitted within the actor
249 | open var hasShadow: Bool { get set }
250 | open func invalidateShadow()
251 | open var alphaValue: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
252 | open var isOpaque: Bool { get set }
253 | @available(swift, obsoleted: 3, renamed: "isOpaque")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:155:31: warning: main actor-isolated property 'alphaValue' can not be mutated from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
156 | }
157 | }
AppKit.NSWindow:251:14: note: mutation of this property is only permitted within the actor
249 | open var hasShadow: Bool { get set }
250 | open func invalidateShadow()
251 | open var alphaValue: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
252 | open var isOpaque: Bool { get set }
253 | @available(swift, obsoleted: 3, renamed: "isOpaque")
/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:438:15: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
436 | open var effectiveAppearance: NSAppearance { get }
437 | @available(macOS 10.5, *)
438 | open func animator() -> Self
| `- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
439 | @available(macOS 10.5, *)
440 | open func animation(forKey key: NSAnimatablePropertyKey) -> Any?
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:163:31: warning: main actor-isolated property 'alphaValue' can not be mutated from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
164 | }, completionHandler: {
165 | completion()
AppKit.NSWindow:251:14: note: mutation of this property is only permitted within the actor
249 | open var hasShadow: Bool { get set }
250 | open func invalidateShadow()
251 | open var alphaValue: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
252 | open var isOpaque: Bool { get set }
253 | @available(swift, obsoleted: 3, renamed: "isOpaque")
/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:438:15: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
436 | open var effectiveAppearance: NSAppearance { get }
437 | @available(macOS 10.5, *)
438 | open func animator() -> Self
| `- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
439 | @available(macOS 10.5, *)
440 | open func animation(forKey key: NSAnimatablePropertyKey) -> Any?
/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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
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 non-isolated 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 non-isolated 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
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 non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
210 | parentWindow.addChildWindow(window, ordered: .above)
211 |
AppKit.NSWindow:359:14: note: mutation of this property is only permitted within the actor
357 | open var titlebarSeparatorStyle: NSTitlebarSeparatorStyle { get set }
358 | @available(macOS 10.10, *)
359 | open var contentViewController: NSViewController? { get set }
| `- note: mutation of this property is only permitted within the actor
360 | @available(macOS 10.10, *)
361 | public convenience init(contentViewController: NSViewController)
/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:326:15: note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
324 | open class func standardWindowButton(_ b: NSWindow.ButtonType, forStyleMask styleMask: NSWindow.StyleMask) -> NSButton?
325 | open func standardWindowButton(_ b: NSWindow.ButtonType) -> NSButton?
326 | 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
327 | @MainActor open func removeChildWindow(_ childWin: NSWindow)
328 | open var childWindows: [NSWindow]? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:218:39: warning: main actor-isolated property 'window' can not be referenced from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
219 |
220 | let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
AppKit.NSView:4:41: note: property declared here
2 | public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:218:83: warning: main actor-isolated property 'contentView' can not be referenced from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
219 |
220 | let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
AppKit.NSWindow:56:14: note: property declared here
54 | @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
| `- note: property declared here
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
58 | open var windowNumber: Int { get }
/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:92:15: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
90 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
91 | open func convertPoint(_ point: NSPoint, fromView view: NSView?) -> NSPoint
92 | 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
93 | @available(swift, obsoleted: 3, renamed: "convert(_:to:)")
94 | open func convertPoint(_ point: NSPoint, toView view: NSView?) -> NSPoint
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:220:62: warning: main actor-isolated property 'frame' can not be referenced from a non-isolated 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 non-isolated 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:60:14: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @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 non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
222 | let rectInScreen = parentWindow.convertToScreen(rectInWindow)
223 | let origin = rectInScreen.origin
AppKit.NSView:60:14: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @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 non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
222 | let rectInScreen = parentWindow.convertToScreen(rectInWindow)
223 | let origin = rectInScreen.origin
AppKit.NSWindow:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "cascadeTopLeft(from:)")
75 | open func cascadeTopLeftFromPoint(_ topLeftPoint: NSPoint) -> NSPoint
76 | open var frame: NSRect { get }
| `- note: property declared here
77 | open func animationResizeTime(_ newFrame: NSRect) -> TimeInterval
78 | open func setFrame(_ frameRect: NSRect, display displayFlag: Bool, animate animateFlag: Bool)
/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:194:15: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
192 | open var preventsApplicationTerminationWhenModal: Bool { get set }
193 | @available(macOS 10.7, *)
194 | open func convertToScreen(_ rect: NSRect) -> NSRect
| `- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
195 | @available(macOS 10.7, *)
196 | @available(swift, obsoleted: 3, renamed: "convertToScreen(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:224:82: warning: main actor-isolated property 'frame' can not be referenced from a non-isolated 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 non-isolated 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))
AppKit.NSView:60:14: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @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 non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
227 |
228 | window.setFrame(newFrame, display: true, animate: false)
AppKit.NSWindow:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "cascadeTopLeft(from:)")
75 | open func cascadeTopLeftFromPoint(_ topLeftPoint: NSPoint) -> NSPoint
76 | open var frame: NSRect { get }
| `- note: property declared here
77 | open func animationResizeTime(_ newFrame: NSRect) -> TimeInterval
78 | open func setFrame(_ frameRect: NSRect, display displayFlag: Bool, animate animateFlag: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:226:122: warning: main actor-isolated property 'frame' can not be referenced from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
227 |
228 | window.setFrame(newFrame, display: true, animate: false)
AppKit.NSView:60:14: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @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 non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
227 |
228 | window.setFrame(newFrame, display: true, animate: false)
AppKit.NSWindow:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "cascadeTopLeft(from:)")
75 | open func cascadeTopLeftFromPoint(_ topLeftPoint: NSPoint) -> NSPoint
76 | open var frame: NSRect { get }
| `- note: property declared here
77 | open func animationResizeTime(_ newFrame: NSRect) -> TimeInterval
78 | open func setFrame(_ frameRect: NSRect, display displayFlag: Bool, animate animateFlag: Bool)
/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:78:15: note: calls to instance method 'setFrame(_:display:animate:)' from outside of its actor context are implicitly asynchronous
76 | open var frame: NSRect { get }
77 | open func animationResizeTime(_ newFrame: NSRect) -> TimeInterval
78 | 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
79 | @available(macOS 10.6, *)
80 | open var inLiveResize: Bool { get }
/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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context 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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
47 | self?.window = nil
48 | self?.stopMonitors()
[18/19] 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:327:26: note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
325 | open func standardWindowButton(_ b: NSWindow.ButtonType) -> NSButton?
326 | open func addChildWindow(_ childWin: NSWindow, ordered place: NSWindow.OrderingMode)
327 | @MainActor open func removeChildWindow(_ childWin: NSWindow)
| `- note: calls to instance method 'removeChildWindow' from outside of its actor context are implicitly asynchronous
328 | open var childWindows: [NSWindow]? { get }
329 | weak open var parent: NSWindow? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:45:27: warning: main actor-isolated property 'parent' can not be referenced from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
46 | self?.window?.orderOut(self)
47 | self?.window = nil
AppKit.NSWindow:329:19: note: property declared here
327 | @MainActor open func removeChildWindow(_ childWin: NSWindow)
328 | open var childWindows: [NSWindow]? { get }
329 | weak open var parent: NSWindow? { get set }
| `- note: property declared here
330 | @available(swift, obsoleted: 3, renamed: "parent")
331 | weak open var parentWindow: NSWindow? { get set }
/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:145:26: note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
143 | open func orderFront(_ sender: Any?)
144 | open func orderBack(_ sender: Any?)
145 | @MainActor open func orderOut(_ sender: Any?)
| `- note: calls to instance method 'orderOut' from outside of its actor context are implicitly asynchronous
146 | open func order(_ place: NSWindow.OrderingMode, relativeTo otherWin: Int)
147 | @available(swift, obsoleted: 3, renamed: "order(_:relativeTo:)")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:130:54: warning: main actor-isolated property 'window' can not be referenced from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
131 |
132 | let menuWindow = makeWindow(
AppKit.NSView:4:41: note: property declared here
2 | public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:145:24: warning: main actor-isolated property 'alphaValue' can not be mutated from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
146 | }
147 | }
AppKit.NSWindow:251:14: note: mutation of this property is only permitted within the actor
249 | open var hasShadow: Bool { get set }
250 | open func invalidateShadow()
251 | open var alphaValue: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
252 | open var isOpaque: Bool { get set }
253 | @available(swift, obsoleted: 3, renamed: "isOpaque")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:150:16: warning: main actor-isolated property 'alphaValue' can not be mutated from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
151 |
152 | NSAnimationContext.runAnimationGroup { context in
AppKit.NSWindow:251:14: note: mutation of this property is only permitted within the actor
249 | open var hasShadow: Bool { get set }
250 | open func invalidateShadow()
251 | open var alphaValue: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
252 | open var isOpaque: Bool { get set }
253 | @available(swift, obsoleted: 3, renamed: "isOpaque")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:155:31: warning: main actor-isolated property 'alphaValue' can not be mutated from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
156 | }
157 | }
AppKit.NSWindow:251:14: note: mutation of this property is only permitted within the actor
249 | open var hasShadow: Bool { get set }
250 | open func invalidateShadow()
251 | open var alphaValue: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
252 | open var isOpaque: Bool { get set }
253 | @available(swift, obsoleted: 3, renamed: "isOpaque")
/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:438:15: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
436 | open var effectiveAppearance: NSAppearance { get }
437 | @available(macOS 10.5, *)
438 | open func animator() -> Self
| `- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
439 | @available(macOS 10.5, *)
440 | open func animation(forKey key: NSAnimatablePropertyKey) -> Any?
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:163:31: warning: main actor-isolated property 'alphaValue' can not be mutated from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
164 | }, completionHandler: {
165 | completion()
AppKit.NSWindow:251:14: note: mutation of this property is only permitted within the actor
249 | open var hasShadow: Bool { get set }
250 | open func invalidateShadow()
251 | open var alphaValue: CGFloat { get set }
| `- note: mutation of this property is only permitted within the actor
252 | open var isOpaque: Bool { get set }
253 | @available(swift, obsoleted: 3, renamed: "isOpaque")
/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:438:15: note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
436 | open var effectiveAppearance: NSAppearance { get }
437 | @available(macOS 10.5, *)
438 | open func animator() -> Self
| `- note: calls to instance method 'animator()' from outside of its actor context are implicitly asynchronous
439 | @available(macOS 10.5, *)
440 | open func animation(forKey key: NSAnimatablePropertyKey) -> Any?
/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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
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 non-isolated 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 non-isolated 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
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 non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
210 | parentWindow.addChildWindow(window, ordered: .above)
211 |
AppKit.NSWindow:359:14: note: mutation of this property is only permitted within the actor
357 | open var titlebarSeparatorStyle: NSTitlebarSeparatorStyle { get set }
358 | @available(macOS 10.10, *)
359 | open var contentViewController: NSViewController? { get set }
| `- note: mutation of this property is only permitted within the actor
360 | @available(macOS 10.10, *)
361 | public convenience init(contentViewController: NSViewController)
/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:326:15: note: calls to instance method 'addChildWindow(_:ordered:)' from outside of its actor context are implicitly asynchronous
324 | open class func standardWindowButton(_ b: NSWindow.ButtonType, forStyleMask styleMask: NSWindow.StyleMask) -> NSButton?
325 | open func standardWindowButton(_ b: NSWindow.ButtonType) -> NSButton?
326 | 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
327 | @MainActor open func removeChildWindow(_ childWin: NSWindow)
328 | open var childWindows: [NSWindow]? { get }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:218:39: warning: main actor-isolated property 'window' can not be referenced from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
219 |
220 | let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
AppKit.NSView:4:41: note: property declared here
2 | public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var window: NSWindow? { get }
| `- note: property declared here
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:218:83: warning: main actor-isolated property 'contentView' can not be referenced from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
219 |
220 | let locationInWindow = view.convert(topMostSuperView.frame.origin, to: nil)
AppKit.NSWindow:56:14: note: property declared here
54 | @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
| `- note: property declared here
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
58 | open var windowNumber: Int { get }
/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:92:15: note: calls to instance method 'convert(_:to:)' from outside of its actor context are implicitly asynchronous
90 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
91 | open func convertPoint(_ point: NSPoint, fromView view: NSView?) -> NSPoint
92 | 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
93 | @available(swift, obsoleted: 3, renamed: "convert(_:to:)")
94 | open func convertPoint(_ point: NSPoint, toView view: NSView?) -> NSPoint
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:220:62: warning: main actor-isolated property 'frame' can not be referenced from a non-isolated 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 non-isolated 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:60:14: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @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 non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
222 | let rectInScreen = parentWindow.convertToScreen(rectInWindow)
223 | let origin = rectInScreen.origin
AppKit.NSView:60:14: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @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 non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
222 | let rectInScreen = parentWindow.convertToScreen(rectInWindow)
223 | let origin = rectInScreen.origin
AppKit.NSWindow:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "cascadeTopLeft(from:)")
75 | open func cascadeTopLeftFromPoint(_ topLeftPoint: NSPoint) -> NSPoint
76 | open var frame: NSRect { get }
| `- note: property declared here
77 | open func animationResizeTime(_ newFrame: NSRect) -> TimeInterval
78 | open func setFrame(_ frameRect: NSRect, display displayFlag: Bool, animate animateFlag: Bool)
/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:194:15: note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
192 | open var preventsApplicationTerminationWhenModal: Bool { get set }
193 | @available(macOS 10.7, *)
194 | open func convertToScreen(_ rect: NSRect) -> NSRect
| `- note: calls to instance method 'convertToScreen' from outside of its actor context are implicitly asynchronous
195 | @available(macOS 10.7, *)
196 | @available(swift, obsoleted: 3, renamed: "convertToScreen(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:224:82: warning: main actor-isolated property 'frame' can not be referenced from a non-isolated 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 non-isolated 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))
AppKit.NSView:60:14: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @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 non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
227 |
228 | window.setFrame(newFrame, display: true, animate: false)
AppKit.NSWindow:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "cascadeTopLeft(from:)")
75 | open func cascadeTopLeftFromPoint(_ topLeftPoint: NSPoint) -> NSPoint
76 | open var frame: NSRect { get }
| `- note: property declared here
77 | open func animationResizeTime(_ newFrame: NSRect) -> TimeInterval
78 | open func setFrame(_ frameRect: NSRect, display displayFlag: Bool, animate animateFlag: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Menu.swift:226:122: warning: main actor-isolated property 'frame' can not be referenced from a non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
227 |
228 | window.setFrame(newFrame, display: true, animate: false)
AppKit.NSView:60:14: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @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 non-isolated 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 non-isolated context; this is an error in the Swift 6 language mode
227 |
228 | window.setFrame(newFrame, display: true, animate: false)
AppKit.NSWindow:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "cascadeTopLeft(from:)")
75 | open func cascadeTopLeftFromPoint(_ topLeftPoint: NSPoint) -> NSPoint
76 | open var frame: NSRect { get }
| `- note: property declared here
77 | open func animationResizeTime(_ newFrame: NSRect) -> TimeInterval
78 | open func setFrame(_ frameRect: NSRect, display displayFlag: Bool, animate animateFlag: Bool)
/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:78:15: note: calls to instance method 'setFrame(_:display:animate:)' from outside of its actor context are implicitly asynchronous
76 | open var frame: NSRect { get }
77 | open func animationResizeTime(_ newFrame: NSRect) -> TimeInterval
78 | 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
79 | @available(macOS 10.6, *)
80 | open var inLiveResize: Bool { get }
/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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context 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 task-isolated value of type 'Any?' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
47 | self?.window = nil
48 | self?.stopMonitors()
[19/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 protocol requirement; 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 protocol requirement; 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 | }
QuartzCore.CAAnimationDelegate:5:19: note: 'animationDidStop(_:finished:)' declared here
3 | optional func animationDidStart(_ anim: CAAnimation)
4 | @available(macOS 10.5, *)
5 | optional func animationDidStop(_ anim: CAAnimation, finished flag: Bool)
| `- note: 'animationDidStop(_:finished:)' declared here
6 | }
/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 protocol requirement; 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 protocol requirement; 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: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
169 | }
170 |
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/Menu/Extensions.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'QuartzCore'
6 | //
7 |
8 | import Cocoa
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'QuartzCore'
9 |
10 | extension CAEdgeAntialiasingMask {
:
166 | static let easeInEaseOut = CAMediaTimingFunction(name: .easeInEaseOut)
167 | static let linear = CAMediaTimingFunction(name: .linear)
168 | static let `default` = CAMediaTimingFunction(name: .default)
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
169 | }
170 |
/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: annotate 'easeIn' with '@MainActor' if property should only be accessed from the main actor
| `- 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)
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/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: annotate 'easeOut' with '@MainActor' if property should only be accessed from the main actor
| `- 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)
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/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: annotate 'easeInEaseOut' with '@MainActor' if property should only be accessed from the main actor
| `- 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)
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
/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: annotate 'linear' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
168 | static let `default` = CAMediaTimingFunction(name: .default)
169 | }
QuartzCore.CAMediaTimingFunction:2:12: note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.5, *)
2 | open class CAMediaTimingFunction : NSObject, NSSecureCoding {
| `- note: class 'CAMediaTimingFunction' does not conform to the 'Sendable' protocol
3 | public convenience init(name: CAMediaTimingFunctionName)
4 | @available(*, unavailable, renamed: "init(name:)", message: "Not available in Swift")
Build complete! (29.43s)
Fetching https://github.com/iSapozhnik/EventMonitor
[1/33] Fetching eventmonitor
Fetched https://github.com/iSapozhnik/EventMonitor from cache (0.61s)
Computing version for https://github.com/iSapozhnik/EventMonitor
Computed https://github.com/iSapozhnik/EventMonitor at 1.0.1 (0.67s)
Creating working copy for https://github.com/iSapozhnik/EventMonitor
Working copy of https://github.com/iSapozhnik/EventMonitor resolved at 1.0.1
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.