Build Information
Failed to build MacMenuBar with Swift 6.0 for macOS (SPM).
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
41 |
42 | // -------------------------------------
43 | public extension SwiftUI.App
| | `- error: 'App' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
44 | {
45 | // -------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenu.swift:23:12: warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
21 | import Cocoa
22 |
23 | public var debugPrintMenuInsertionRefusals = true
| |- warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugPrintMenuInsertionRefusals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugPrintMenuInsertionRefusals' 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
24 |
25 | // -------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:98:23: warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
96 | public let modifiers: NSEvent.ModifierFlags
97 |
98 | public static let shift = Self(Modifier.shift)
| |- warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shift' 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
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:99:23: warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
97 |
98 | public static let shift = Self(Modifier.shift)
99 | public static let control = Self(Modifier.control)
| |- warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'control' 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
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:100:23: warning: static property 'option' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
98 | public static let shift = Self(Modifier.shift)
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
| |- warning: static property 'option' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'option' 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
101 | public static let command = Self(Modifier.command)
102 | public static let function = Self(Modifier.function)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:101:23: warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
| |- warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'command' 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
102 | public static let function = Self(Modifier.function)
103 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:102:23: warning: static property 'function' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
102 | public static let function = Self(Modifier.function)
| |- warning: static property 'function' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'function' 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
103 |
104 | public static let none = Self(nullChar)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:104:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
102 | public static let function = Self(Modifier.function)
103 |
104 | public static let none = Self(nullChar)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
105 | public static let escape = Self(escapeChar)
106 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:105:23: warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
103 |
104 | public static let none = Self(nullChar)
105 | public static let escape = Self(escapeChar)
| |- warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escape' 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
106 |
107 | // -------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/ForEach.swift:23:17: warning: let 'dummyMenuItem' is not concurrency-safe because non-'Sendable' type 'NSMacMenuItem' may have shared mutable state; this is an error in the Swift 6 language mode
21 | import AppKit
22 |
23 | fileprivate let dummyMenuItem = NSMacMenuItem()
| |- warning: let 'dummyMenuItem' is not concurrency-safe because non-'Sendable' type 'NSMacMenuItem' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dummyMenuItem' 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
24 |
25 | // -------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:24:20: note: class 'NSMacMenuItem' does not conform to the 'Sendable' protocol
22 |
23 | // -------------------------------------
24 | @objc public class NSMacMenuItem:
| `- note: class 'NSMacMenuItem' does not conform to the 'Sendable' protocol
25 | NSMenuItem, NSMenuItemValidation, NSUserInterfaceValidations
26 | {
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:36:16: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
34 | {
35 | get { (nsMenuItem as? NSMacMenuItem)!._action! }
36 | set { (nsMenuItem as? NSMacMenuItem)!._action! = newValue }
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:45:13: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
43 | set
44 | {
45 | nsMenuItem.keyEquivalent = String(newValue.key)
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
46 | nsMenuItem.keyEquivalentModifierMask = newValue.modifiers
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:46:13: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
44 | {
45 | nsMenuItem.keyEquivalent = String(newValue.key)
46 | nsMenuItem.keyEquivalentModifierMask = newValue.modifiers
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:125:15: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
123 | {
124 | get { nsMenuItem.title }
125 | set { nsMenuItem.title = newValue }
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
126 | }
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:66:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
24 | public struct MenuItemGroup: MenuElement
25 | {
26 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
27 |
28 | // -------------------------------------
:
64 | {
65 | get { nsMenu.title }
66 | set { nsMenu.title = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:72:39: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
70 | @inlinable public var isVisible: Bool
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:73:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
24 | public struct MenuItemGroup: MenuElement
25 | {
26 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
27 |
28 | // -------------------------------------
:
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:73:37: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:66:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
64 | {
65 | get { nsMenu.title }
66 | set { nsMenu.title = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:72:39: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
70 | @inlinable public var isVisible: Bool
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:73:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:73:37: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:80:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
78 | {
79 | get { nsMenu.nsMacMenuItem?.isEnabled ?? false }
80 | set { nsMenu.nsMacMenuItem?.canBeEnabled = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
81 | }
82 |
[4/32] Compiling MacMenuBar KeyEquivalent.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:98:23: warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
96 | public let modifiers: NSEvent.ModifierFlags
97 |
98 | public static let shift = Self(Modifier.shift)
| |- warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shift' 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
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:99:23: warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
97 |
98 | public static let shift = Self(Modifier.shift)
99 | public static let control = Self(Modifier.control)
| |- warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'control' 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
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:100:23: warning: static property 'option' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
98 | public static let shift = Self(Modifier.shift)
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
| |- warning: static property 'option' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'option' 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
101 | public static let command = Self(Modifier.command)
102 | public static let function = Self(Modifier.function)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:101:23: warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
| |- warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'command' 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
102 | public static let function = Self(Modifier.function)
103 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:102:23: warning: static property 'function' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
102 | public static let function = Self(Modifier.function)
| |- warning: static property 'function' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'function' 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
103 |
104 | public static let none = Self(nullChar)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:104:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
102 | public static let function = Self(Modifier.function)
103 |
104 | public static let none = Self(nullChar)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
105 | public static let escape = Self(escapeChar)
106 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:105:23: warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
103 |
104 | public static let none = Self(nullChar)
105 | public static let escape = Self(escapeChar)
| |- warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escape' 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
106 |
107 | // -------------------------------------
[5/32] Compiling MacMenuBar KeyEquivalentParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:98:23: warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
96 | public let modifiers: NSEvent.ModifierFlags
97 |
98 | public static let shift = Self(Modifier.shift)
| |- warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shift' 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
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:99:23: warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
97 |
98 | public static let shift = Self(Modifier.shift)
99 | public static let control = Self(Modifier.control)
| |- warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'control' 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
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:100:23: warning: static property 'option' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
98 | public static let shift = Self(Modifier.shift)
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
| |- warning: static property 'option' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'option' 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
101 | public static let command = Self(Modifier.command)
102 | public static let function = Self(Modifier.function)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:101:23: warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
| |- warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'command' 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
102 | public static let function = Self(Modifier.function)
103 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:102:23: warning: static property 'function' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
102 | public static let function = Self(Modifier.function)
| |- warning: static property 'function' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'function' 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
103 |
104 | public static let none = Self(nullChar)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:104:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
102 | public static let function = Self(Modifier.function)
103 |
104 | public static let none = Self(nullChar)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
105 | public static let escape = Self(escapeChar)
106 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:105:23: warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
103 |
104 | public static let none = Self(nullChar)
105 | public static let escape = Self(escapeChar)
| |- warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escape' 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
106 |
107 | // -------------------------------------
[6/32] Compiling MacMenuBar ActionableMenuItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:98:23: warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
96 | public let modifiers: NSEvent.ModifierFlags
97 |
98 | public static let shift = Self(Modifier.shift)
| |- warning: static property 'shift' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shift' 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
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:99:23: warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
97 |
98 | public static let shift = Self(Modifier.shift)
99 | public static let control = Self(Modifier.control)
| |- warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'control' 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
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:100:23: warning: static property 'option' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
98 | public static let shift = Self(Modifier.shift)
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
| |- warning: static property 'option' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'option' 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
101 | public static let command = Self(Modifier.command)
102 | public static let function = Self(Modifier.function)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:101:23: warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
| |- warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'command' 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
102 | public static let function = Self(Modifier.function)
103 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:102:23: warning: static property 'function' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
102 | public static let function = Self(Modifier.function)
| |- warning: static property 'function' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'function' 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
103 |
104 | public static let none = Self(nullChar)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:104:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
102 | public static let function = Self(Modifier.function)
103 |
104 | public static let none = Self(nullChar)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
105 | public static let escape = Self(escapeChar)
106 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:105:23: warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
103 |
104 | public static let none = Self(nullChar)
105 | public static let escape = Self(escapeChar)
| |- warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escape' 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
106 |
107 | // -------------------------------------
[7/32] Compiling MacMenuBar ForEach.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/ForEach.swift:23:17: warning: let 'dummyMenuItem' is not concurrency-safe because non-'Sendable' type 'NSMacMenuItem' may have shared mutable state; this is an error in the Swift 6 language mode
21 | import AppKit
22 |
23 | fileprivate let dummyMenuItem = NSMacMenuItem()
| |- warning: let 'dummyMenuItem' is not concurrency-safe because non-'Sendable' type 'NSMacMenuItem' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dummyMenuItem' 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
24 |
25 | // -------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:24:20: note: class 'NSMacMenuItem' does not conform to the 'Sendable' protocol
22 |
23 | // -------------------------------------
24 | @objc public class NSMacMenuItem:
| `- note: class 'NSMacMenuItem' does not conform to the 'Sendable' protocol
25 | NSMenuItem, NSMenuItemValidation, NSUserInterfaceValidations
26 | {
[8/32] Compiling MacMenuBar MacMenuItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/ForEach.swift:23:17: warning: let 'dummyMenuItem' is not concurrency-safe because non-'Sendable' type 'NSMacMenuItem' may have shared mutable state; this is an error in the Swift 6 language mode
21 | import AppKit
22 |
23 | fileprivate let dummyMenuItem = NSMacMenuItem()
| |- warning: let 'dummyMenuItem' is not concurrency-safe because non-'Sendable' type 'NSMacMenuItem' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dummyMenuItem' 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
24 |
25 | // -------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:24:20: note: class 'NSMacMenuItem' does not conform to the 'Sendable' protocol
22 |
23 | // -------------------------------------
24 | @objc public class NSMacMenuItem:
| `- note: class 'NSMacMenuItem' does not conform to the 'Sendable' protocol
25 | NSMenuItem, NSMenuItemValidation, NSUserInterfaceValidations
26 | {
[9/32] Compiling MacMenuBar MenuSeparator.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/ForEach.swift:23:17: warning: let 'dummyMenuItem' is not concurrency-safe because non-'Sendable' type 'NSMacMenuItem' may have shared mutable state; this is an error in the Swift 6 language mode
21 | import AppKit
22 |
23 | fileprivate let dummyMenuItem = NSMacMenuItem()
| |- warning: let 'dummyMenuItem' is not concurrency-safe because non-'Sendable' type 'NSMacMenuItem' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dummyMenuItem' 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
24 |
25 | // -------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:24:20: note: class 'NSMacMenuItem' does not conform to the 'Sendable' protocol
22 |
23 | // -------------------------------------
24 | @objc public class NSMacMenuItem:
| `- note: class 'NSMacMenuItem' does not conform to the 'Sendable' protocol
25 | NSMenuItem, NSMenuItemValidation, NSUserInterfaceValidations
26 | {
[10/32] Compiling MacMenuBar Action.swift
[11/32] Compiling MacMenuBar ActionResponder.swift
[12/32] Compiling MacMenuBar ClosureAction.swift
[13/32] Compiling MacMenuBar NSMacMenuItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: call to main actor-isolated instance method 'validateMenuItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
213 |
214 | // -------------------------------------
215 | private func validateMenuItem(for target: NSObject) -> Bool
| `- note: add '@MainActor' to make instance method 'validateMenuItem(for:)' part of global actor 'MainActor'
216 | {
217 | var useSelectors: Bool { true }
:
225 | else
226 | {
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
| `- warning: call to main actor-isolated instance method 'validateMenuItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
AppKit.NSMenuItemValidation:2:21: note: calls to instance method 'validateMenuItem' from outside of its actor context are implicitly asynchronous
1 | public protocol NSMenuItemValidation : NSObjectProtocol {
2 | @MainActor func validateMenuItem(_ menuItem: NSMenuItem) -> Bool
| `- note: calls to instance method 'validateMenuItem' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: call to main actor-isolated instance method 'validateUserInterfaceItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
| `- warning: call to main actor-isolated instance method 'validateUserInterfaceItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
230 | ?? true
231 | }
AppKit.NSUserInterfaceValidations:2:21: note: calls to instance method 'validateUserInterfaceItem' from outside of its actor context are implicitly asynchronous
1 | public protocol NSUserInterfaceValidations {
2 | @MainActor func validateUserInterfaceItem(_ item: any NSValidatedUserInterfaceItem) -> Bool
| `- note: calls to instance method 'validateUserInterfaceItem' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
225 | else
226 | {
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
| `- warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: sending task-isolated value of type 'any NSMenuItemValidation' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
225 | else
226 | {
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
| `- warning: sending task-isolated value of type 'any NSMenuItemValidation' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
| `- warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
230 | ?? true
231 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending task-isolated value of type 'any NSUserInterfaceValidations' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
| `- warning: sending task-isolated value of type 'any NSUserInterfaceValidations' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
230 | ?? true
231 | }
[14/32] Compiling MacMenuBar NSMenu+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: call to main actor-isolated instance method 'validateMenuItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
213 |
214 | // -------------------------------------
215 | private func validateMenuItem(for target: NSObject) -> Bool
| `- note: add '@MainActor' to make instance method 'validateMenuItem(for:)' part of global actor 'MainActor'
216 | {
217 | var useSelectors: Bool { true }
:
225 | else
226 | {
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
| `- warning: call to main actor-isolated instance method 'validateMenuItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
AppKit.NSMenuItemValidation:2:21: note: calls to instance method 'validateMenuItem' from outside of its actor context are implicitly asynchronous
1 | public protocol NSMenuItemValidation : NSObjectProtocol {
2 | @MainActor func validateMenuItem(_ menuItem: NSMenuItem) -> Bool
| `- note: calls to instance method 'validateMenuItem' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: call to main actor-isolated instance method 'validateUserInterfaceItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
| `- warning: call to main actor-isolated instance method 'validateUserInterfaceItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
230 | ?? true
231 | }
AppKit.NSUserInterfaceValidations:2:21: note: calls to instance method 'validateUserInterfaceItem' from outside of its actor context are implicitly asynchronous
1 | public protocol NSUserInterfaceValidations {
2 | @MainActor func validateUserInterfaceItem(_ item: any NSValidatedUserInterfaceItem) -> Bool
| `- note: calls to instance method 'validateUserInterfaceItem' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
225 | else
226 | {
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
| `- warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: sending task-isolated value of type 'any NSMenuItemValidation' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
225 | else
226 | {
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
| `- warning: sending task-isolated value of type 'any NSMenuItemValidation' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
| `- warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
230 | ?? true
231 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending task-isolated value of type 'any NSUserInterfaceValidations' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
| `- warning: sending task-isolated value of type 'any NSUserInterfaceValidations' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
230 | ?? true
231 | }
[15/32] Compiling MacMenuBar NSMenuItem+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: call to main actor-isolated instance method 'validateMenuItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
213 |
214 | // -------------------------------------
215 | private func validateMenuItem(for target: NSObject) -> Bool
| `- note: add '@MainActor' to make instance method 'validateMenuItem(for:)' part of global actor 'MainActor'
216 | {
217 | var useSelectors: Bool { true }
:
225 | else
226 | {
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
| `- warning: call to main actor-isolated instance method 'validateMenuItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
AppKit.NSMenuItemValidation:2:21: note: calls to instance method 'validateMenuItem' from outside of its actor context are implicitly asynchronous
1 | public protocol NSMenuItemValidation : NSObjectProtocol {
2 | @MainActor func validateMenuItem(_ menuItem: NSMenuItem) -> Bool
| `- note: calls to instance method 'validateMenuItem' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: call to main actor-isolated instance method 'validateUserInterfaceItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
| `- warning: call to main actor-isolated instance method 'validateUserInterfaceItem' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
230 | ?? true
231 | }
AppKit.NSUserInterfaceValidations:2:21: note: calls to instance method 'validateUserInterfaceItem' from outside of its actor context are implicitly asynchronous
1 | public protocol NSUserInterfaceValidations {
2 | @MainActor func validateUserInterfaceItem(_ item: any NSValidatedUserInterfaceItem) -> Bool
| `- note: calls to instance method 'validateUserInterfaceItem' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
225 | else
226 | {
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
| `- warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: sending task-isolated value of type 'any NSMenuItemValidation' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
225 | else
226 | {
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
| `- warning: sending task-isolated value of type 'any NSMenuItemValidation' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
| `- warning: sending task-isolated value of type 'NSMacMenuItem' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
230 | ?? true
231 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending task-isolated value of type 'any NSUserInterfaceValidations' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
227 | return (target as? NSMenuItemValidation)?.validateMenuItem(self)
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
| `- warning: sending task-isolated value of type 'any NSUserInterfaceValidations' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
230 | ?? true
231 | }
[16/32] Compiling MacMenuBar MenuBar.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MenuBar/MenuBar.swift:30:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
28 |
29 | // -------------------------------------
30 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
31 | public struct MenuBarBuilder {
32 | public static func buildBlock(_ menus: MacMenu...) -> [MacMenu] { menus }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:34: warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
102 | responders.reserveCapacity(8)
103 |
104 | if let keyWindow = NSApp.keyWindow {
| `- warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
AppKit.NSApplication:13:30: note: property declared here
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | weak open var mainWindow: NSWindow? { get }
13 | @MainActor weak open var keyWindow: NSWindow? { get }
| `- note: property declared here
14 | open var isActive: Bool { get }
15 | @available(swift, obsoleted: 3, renamed: "isActive")
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:28: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
102 | responders.reserveCapacity(8)
103 |
104 | if let keyWindow = NSApp.keyWindow {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:35: warning: main actor-isolated property 'mainWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
107 | if let mainWindow = NSApp.mainWindow,
| `- warning: main actor-isolated property 'mainWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
AppKit.NSApplication:12:19: note: property declared here
10 | @available(swift, obsoleted: 3, renamed: "window(withWindowNumber:)")
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | weak open var mainWindow: NSWindow? { get }
| `- note: property declared here
13 | @MainActor weak open var keyWindow: NSWindow? { get }
14 | open var isActive: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:29: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
107 | if let mainWindow = NSApp.mainWindow,
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:33: warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
106 | }
107 | if let mainWindow = NSApp.mainWindow,
108 | mainWindow !== NSApp.keyWindow
| `- warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
AppKit.NSApplication:13:30: note: property declared here
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | weak open var mainWindow: NSWindow? { get }
13 | @MainActor weak open var keyWindow: NSWindow? { get }
| `- note: property declared here
14 | open var isActive: Bool { get }
15 | @available(swift, obsoleted: 3, renamed: "isActive")
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:27: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
106 | }
107 | if let mainWindow = NSApp.mainWindow,
108 | mainWindow !== NSApp.keyWindow
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:113:27: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
111 | }
112 |
113 | responders.append(NSApp)
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
114 |
115 | if let appDelegate = NSApp.delegate {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:36: warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
113 | responders.append(NSApp)
114 |
115 | if let appDelegate = NSApp.delegate {
| `- warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
AppKit.NSApplication:5:19: note: property declared here
3 | @available(swift, obsoleted: 3, renamed: "shared")
4 | open class var sharedApplication: NSApplication { get }
5 | weak open var delegate: (any NSApplicationDelegate)? { get set }
| `- note: property declared here
6 | open func hide(_ sender: Any?)
7 | open func unhide(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:30: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
113 | responders.append(NSApp)
114 |
115 | if let appDelegate = NSApp.delegate {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:116:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
114 |
115 | if let appDelegate = NSApp.delegate {
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:120:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
118 |
119 | if let documentController = Self.findDocumentController() {
120 | responders.append(DelegateWrapper(documentController))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:150:35: warning: main actor-isolated property 'firstResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
148 | guard let window = window else { return }
149 |
150 | if let responder = window.firstResponder
| `- warning: main actor-isolated property 'firstResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
151 | {
152 | responders.append(responder)
AppKit.NSWindow:91:30: note: property declared here
89 | open func update()
90 | open func makeFirstResponder(_ responder: NSResponder?) -> Bool
91 | @MainActor weak open var firstResponder: NSResponder? { get }
| `- note: property declared here
92 | open var resizeFlags: NSEvent.ModifierFlags { get }
93 | open func close()
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:153:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
151 | {
152 | responders.append(responder)
153 | var curResponder = responder.nextResponder
| `- warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
154 | while let curResp = curResponder
155 | {
AppKit.NSResponder:4:41: note: property declared here
2 | @MainActor public init()
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var nextResponder: NSResponder? { get set }
| `- note: property declared here
5 | open func tryToPerform(_ action: Selector, with object: Any?) -> Bool
6 | open func performKeyEquivalent(with event: NSEvent) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:157:40: warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
155 | {
156 | responders.append(curResp)
157 | curResponder = curResp.nextResponder
| `- warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
158 | }
159 | }
AppKit.NSResponder:4:41: note: property declared here
2 | @MainActor public init()
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var nextResponder: NSResponder? { get set }
| `- note: property declared here
5 | open func tryToPerform(_ action: Selector, with object: Any?) -> Bool
6 | open func performKeyEquivalent(with event: NSEvent) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:164:36: warning: main actor-isolated property 'windowController' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
162 |
163 | let document: NSDocument?
164 | if let controller = window.windowController
| `- warning: main actor-isolated property 'windowController' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
165 | {
166 | responders.append(controller)
AppKit.NSWindow:301:19: note: property declared here
299 | open var maxFullScreenContentSize: NSSize { get set }
300 | open var deviceDescription: [NSDeviceDescriptionKey : Any] { get }
301 | weak open var windowController: NSWindowController? { get set }
| `- note: property declared here
302 | @available(macOS 10.9, *)
303 | open func beginSheet(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:167:35: warning: main actor-isolated property 'document' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
165 | {
166 | responders.append(controller)
167 | document = controller.document as? NSDocument
| `- warning: main actor-isolated property 'document' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
168 | }
169 | else { document = nil }
AppKit.NSWindowController:14:41: note: property declared here
12 | @available(macOS 13.2, *)
13 | open var previewRepresentableActivityItems: [any NSPreviewRepresentableActivityItem]? { get set }
14 | @MainActor unowned(unsafe) open var document: AnyObject? { get set }
| `- note: property declared here
15 | open func setDocumentEdited(_ dirtyFlag: Bool)
16 | open var shouldCloseDocument: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:171:34: warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
169 | else { document = nil }
170 |
171 | if let delegate = window.delegate {
| `- warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
172 | responders.append(DelegateWrapper(delegate as! NSObject))
173 | }
AppKit.NSWindow:57:19: note: property declared here
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
| `- note: property declared here
58 | open var windowNumber: Int { get }
59 | open var styleMask: NSWindow.StyleMask { get set }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:172:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
170 |
171 | if let delegate = window.delegate {
172 | responders.append(DelegateWrapper(delegate as! NSObject))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:175:47: warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
173 | }
174 |
175 | if let doc = document, doc !== window.delegate {
| `- warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
176 | responders.append(DelegateWrapper(doc))
177 | }
AppKit.NSWindow:57:19: note: property declared here
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
| `- note: property declared here
58 | open var windowNumber: Int { get }
59 | open var styleMask: NSWindow.StyleMask { get set }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:176:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
174 |
175 | if let doc = document, doc !== window.delegate {
176 | responders.append(DelegateWrapper(doc))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
177 | }
178 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:223:22: warning: call to main actor-isolated instance method 'target(forAction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | - Returns: The current `NSDocumentController`, or `nil` if there isn't one.
217 | */
218 | private static func findDocumentController() -> NSDocumentController?
| `- note: add '@MainActor' to make static method 'findDocumentController()' part of global actor 'MainActor'
219 | {
220 | let querySelector =
221 | #selector(getter: NSDocumentController.documentClassNames)
222 |
223 | return NSApp.target(forAction: querySelector) as? NSDocumentController
| `- warning: call to main actor-isolated instance method 'target(forAction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
224 | }
225 |
AppKit.NSApplication:3:26: note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
3 | @MainActor open func target(forAction action: Selector) -> Any?
| `- note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
5 | open func targetForAction(_ action: Selector) -> Any?
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:223:16: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
216 | - Returns: The current `NSDocumentController`, or `nil` if there isn't one.
217 | */
218 | private static func findDocumentController() -> NSDocumentController?
| `- note: add '@MainActor' to make static method 'findDocumentController()' part of global actor 'MainActor'
219 | {
220 | let querySelector =
221 | #selector(getter: NSDocumentController.documentClassNames)
222 |
223 | return NSApp.target(forAction: querySelector) as? NSDocumentController
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
224 | }
225 |
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:281:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
269 | }
270 |
271 | public mutating func next() -> Element?
| `- note: add '@MainActor' to make instance method 'next()' part of global actor 'MainActor'
272 | {
273 | if curResponder == nil
:
279 |
280 | let ret = curResponder
281 | curResponder = curResponder?.nextResponder
| `- warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
282 | return ret
283 | }
AppKit.NSResponder:4:41: note: property declared here
2 | @MainActor public init()
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var nextResponder: NSResponder? { get set }
| `- note: property declared here
5 | open func tryToPerform(_ action: Selector, with object: Any?) -> Bool
6 | open func performKeyEquivalent(with event: NSEvent) -> Bool
[17/32] Compiling MacMenuBar MenuElement.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MenuBar/MenuBar.swift:30:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
28 |
29 | // -------------------------------------
30 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
31 | public struct MenuBarBuilder {
32 | public static func buildBlock(_ menus: MacMenu...) -> [MacMenu] { menus }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:34: warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
102 | responders.reserveCapacity(8)
103 |
104 | if let keyWindow = NSApp.keyWindow {
| `- warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
AppKit.NSApplication:13:30: note: property declared here
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | weak open var mainWindow: NSWindow? { get }
13 | @MainActor weak open var keyWindow: NSWindow? { get }
| `- note: property declared here
14 | open var isActive: Bool { get }
15 | @available(swift, obsoleted: 3, renamed: "isActive")
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:28: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
102 | responders.reserveCapacity(8)
103 |
104 | if let keyWindow = NSApp.keyWindow {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:35: warning: main actor-isolated property 'mainWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
107 | if let mainWindow = NSApp.mainWindow,
| `- warning: main actor-isolated property 'mainWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
AppKit.NSApplication:12:19: note: property declared here
10 | @available(swift, obsoleted: 3, renamed: "window(withWindowNumber:)")
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | weak open var mainWindow: NSWindow? { get }
| `- note: property declared here
13 | @MainActor weak open var keyWindow: NSWindow? { get }
14 | open var isActive: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:29: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
107 | if let mainWindow = NSApp.mainWindow,
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:33: warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
106 | }
107 | if let mainWindow = NSApp.mainWindow,
108 | mainWindow !== NSApp.keyWindow
| `- warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
AppKit.NSApplication:13:30: note: property declared here
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | weak open var mainWindow: NSWindow? { get }
13 | @MainActor weak open var keyWindow: NSWindow? { get }
| `- note: property declared here
14 | open var isActive: Bool { get }
15 | @available(swift, obsoleted: 3, renamed: "isActive")
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:27: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
106 | }
107 | if let mainWindow = NSApp.mainWindow,
108 | mainWindow !== NSApp.keyWindow
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:113:27: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
111 | }
112 |
113 | responders.append(NSApp)
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
114 |
115 | if let appDelegate = NSApp.delegate {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:36: warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
113 | responders.append(NSApp)
114 |
115 | if let appDelegate = NSApp.delegate {
| `- warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
AppKit.NSApplication:5:19: note: property declared here
3 | @available(swift, obsoleted: 3, renamed: "shared")
4 | open class var sharedApplication: NSApplication { get }
5 | weak open var delegate: (any NSApplicationDelegate)? { get set }
| `- note: property declared here
6 | open func hide(_ sender: Any?)
7 | open func unhide(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:30: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
113 | responders.append(NSApp)
114 |
115 | if let appDelegate = NSApp.delegate {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:116:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
114 |
115 | if let appDelegate = NSApp.delegate {
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:120:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
118 |
119 | if let documentController = Self.findDocumentController() {
120 | responders.append(DelegateWrapper(documentController))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:150:35: warning: main actor-isolated property 'firstResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
148 | guard let window = window else { return }
149 |
150 | if let responder = window.firstResponder
| `- warning: main actor-isolated property 'firstResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
151 | {
152 | responders.append(responder)
AppKit.NSWindow:91:30: note: property declared here
89 | open func update()
90 | open func makeFirstResponder(_ responder: NSResponder?) -> Bool
91 | @MainActor weak open var firstResponder: NSResponder? { get }
| `- note: property declared here
92 | open var resizeFlags: NSEvent.ModifierFlags { get }
93 | open func close()
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:153:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
151 | {
152 | responders.append(responder)
153 | var curResponder = responder.nextResponder
| `- warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
154 | while let curResp = curResponder
155 | {
AppKit.NSResponder:4:41: note: property declared here
2 | @MainActor public init()
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var nextResponder: NSResponder? { get set }
| `- note: property declared here
5 | open func tryToPerform(_ action: Selector, with object: Any?) -> Bool
6 | open func performKeyEquivalent(with event: NSEvent) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:157:40: warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
155 | {
156 | responders.append(curResp)
157 | curResponder = curResp.nextResponder
| `- warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
158 | }
159 | }
AppKit.NSResponder:4:41: note: property declared here
2 | @MainActor public init()
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var nextResponder: NSResponder? { get set }
| `- note: property declared here
5 | open func tryToPerform(_ action: Selector, with object: Any?) -> Bool
6 | open func performKeyEquivalent(with event: NSEvent) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:164:36: warning: main actor-isolated property 'windowController' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
162 |
163 | let document: NSDocument?
164 | if let controller = window.windowController
| `- warning: main actor-isolated property 'windowController' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
165 | {
166 | responders.append(controller)
AppKit.NSWindow:301:19: note: property declared here
299 | open var maxFullScreenContentSize: NSSize { get set }
300 | open var deviceDescription: [NSDeviceDescriptionKey : Any] { get }
301 | weak open var windowController: NSWindowController? { get set }
| `- note: property declared here
302 | @available(macOS 10.9, *)
303 | open func beginSheet(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:167:35: warning: main actor-isolated property 'document' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
165 | {
166 | responders.append(controller)
167 | document = controller.document as? NSDocument
| `- warning: main actor-isolated property 'document' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
168 | }
169 | else { document = nil }
AppKit.NSWindowController:14:41: note: property declared here
12 | @available(macOS 13.2, *)
13 | open var previewRepresentableActivityItems: [any NSPreviewRepresentableActivityItem]? { get set }
14 | @MainActor unowned(unsafe) open var document: AnyObject? { get set }
| `- note: property declared here
15 | open func setDocumentEdited(_ dirtyFlag: Bool)
16 | open var shouldCloseDocument: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:171:34: warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
169 | else { document = nil }
170 |
171 | if let delegate = window.delegate {
| `- warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
172 | responders.append(DelegateWrapper(delegate as! NSObject))
173 | }
AppKit.NSWindow:57:19: note: property declared here
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
| `- note: property declared here
58 | open var windowNumber: Int { get }
59 | open var styleMask: NSWindow.StyleMask { get set }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:172:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
170 |
171 | if let delegate = window.delegate {
172 | responders.append(DelegateWrapper(delegate as! NSObject))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:175:47: warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
173 | }
174 |
175 | if let doc = document, doc !== window.delegate {
| `- warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
176 | responders.append(DelegateWrapper(doc))
177 | }
AppKit.NSWindow:57:19: note: property declared here
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
| `- note: property declared here
58 | open var windowNumber: Int { get }
59 | open var styleMask: NSWindow.StyleMask { get set }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:176:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
174 |
175 | if let doc = document, doc !== window.delegate {
176 | responders.append(DelegateWrapper(doc))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
177 | }
178 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:223:22: warning: call to main actor-isolated instance method 'target(forAction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | - Returns: The current `NSDocumentController`, or `nil` if there isn't one.
217 | */
218 | private static func findDocumentController() -> NSDocumentController?
| `- note: add '@MainActor' to make static method 'findDocumentController()' part of global actor 'MainActor'
219 | {
220 | let querySelector =
221 | #selector(getter: NSDocumentController.documentClassNames)
222 |
223 | return NSApp.target(forAction: querySelector) as? NSDocumentController
| `- warning: call to main actor-isolated instance method 'target(forAction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
224 | }
225 |
AppKit.NSApplication:3:26: note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
3 | @MainActor open func target(forAction action: Selector) -> Any?
| `- note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
5 | open func targetForAction(_ action: Selector) -> Any?
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:223:16: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
216 | - Returns: The current `NSDocumentController`, or `nil` if there isn't one.
217 | */
218 | private static func findDocumentController() -> NSDocumentController?
| `- note: add '@MainActor' to make static method 'findDocumentController()' part of global actor 'MainActor'
219 | {
220 | let querySelector =
221 | #selector(getter: NSDocumentController.documentClassNames)
222 |
223 | return NSApp.target(forAction: querySelector) as? NSDocumentController
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
224 | }
225 |
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:281:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
269 | }
270 |
271 | public mutating func next() -> Element?
| `- note: add '@MainActor' to make instance method 'next()' part of global actor 'MainActor'
272 | {
273 | if curResponder == nil
:
279 |
280 | let ret = curResponder
281 | curResponder = curResponder?.nextResponder
| `- warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
282 | return ret
283 | }
AppKit.NSResponder:4:41: note: property declared here
2 | @MainActor public init()
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var nextResponder: NSResponder? { get set }
| `- note: property declared here
5 | open func tryToPerform(_ action: Selector, with object: Any?) -> Bool
6 | open func performKeyEquivalent(with event: NSEvent) -> Bool
[18/32] Compiling MacMenuBar ResponderChain.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MenuBar/MenuBar.swift:30:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
28 |
29 | // -------------------------------------
30 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
31 | public struct MenuBarBuilder {
32 | public static func buildBlock(_ menus: MacMenu...) -> [MacMenu] { menus }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:34: warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
102 | responders.reserveCapacity(8)
103 |
104 | if let keyWindow = NSApp.keyWindow {
| `- warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
AppKit.NSApplication:13:30: note: property declared here
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | weak open var mainWindow: NSWindow? { get }
13 | @MainActor weak open var keyWindow: NSWindow? { get }
| `- note: property declared here
14 | open var isActive: Bool { get }
15 | @available(swift, obsoleted: 3, renamed: "isActive")
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:28: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
102 | responders.reserveCapacity(8)
103 |
104 | if let keyWindow = NSApp.keyWindow {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:35: warning: main actor-isolated property 'mainWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
107 | if let mainWindow = NSApp.mainWindow,
| `- warning: main actor-isolated property 'mainWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
AppKit.NSApplication:12:19: note: property declared here
10 | @available(swift, obsoleted: 3, renamed: "window(withWindowNumber:)")
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | weak open var mainWindow: NSWindow? { get }
| `- note: property declared here
13 | @MainActor weak open var keyWindow: NSWindow? { get }
14 | open var isActive: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:29: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
107 | if let mainWindow = NSApp.mainWindow,
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:33: warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
106 | }
107 | if let mainWindow = NSApp.mainWindow,
108 | mainWindow !== NSApp.keyWindow
| `- warning: main actor-isolated property 'keyWindow' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
AppKit.NSApplication:13:30: note: property declared here
11 | open func windowWithWindowNumber(_ windowNum: Int) -> NSWindow?
12 | weak open var mainWindow: NSWindow? { get }
13 | @MainActor weak open var keyWindow: NSWindow? { get }
| `- note: property declared here
14 | open var isActive: Bool { get }
15 | @available(swift, obsoleted: 3, renamed: "isActive")
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:27: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
106 | }
107 | if let mainWindow = NSApp.mainWindow,
108 | mainWindow !== NSApp.keyWindow
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:113:27: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
111 | }
112 |
113 | responders.append(NSApp)
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
114 |
115 | if let appDelegate = NSApp.delegate {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:36: warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
113 | responders.append(NSApp)
114 |
115 | if let appDelegate = NSApp.delegate {
| `- warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
AppKit.NSApplication:5:19: note: property declared here
3 | @available(swift, obsoleted: 3, renamed: "shared")
4 | open class var sharedApplication: NSApplication { get }
5 | weak open var delegate: (any NSApplicationDelegate)? { get set }
| `- note: property declared here
6 | open func hide(_ sender: Any?)
7 | open func unhide(_ sender: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:30: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
113 | responders.append(NSApp)
114 |
115 | if let appDelegate = NSApp.delegate {
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:116:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
114 |
115 | if let appDelegate = NSApp.delegate {
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | }
118 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:120:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
118 |
119 | if let documentController = Self.findDocumentController() {
120 | responders.append(DelegateWrapper(documentController))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:150:35: warning: main actor-isolated property 'firstResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
148 | guard let window = window else { return }
149 |
150 | if let responder = window.firstResponder
| `- warning: main actor-isolated property 'firstResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
151 | {
152 | responders.append(responder)
AppKit.NSWindow:91:30: note: property declared here
89 | open func update()
90 | open func makeFirstResponder(_ responder: NSResponder?) -> Bool
91 | @MainActor weak open var firstResponder: NSResponder? { get }
| `- note: property declared here
92 | open var resizeFlags: NSEvent.ModifierFlags { get }
93 | open func close()
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:153:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
151 | {
152 | responders.append(responder)
153 | var curResponder = responder.nextResponder
| `- warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
154 | while let curResp = curResponder
155 | {
AppKit.NSResponder:4:41: note: property declared here
2 | @MainActor public init()
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var nextResponder: NSResponder? { get set }
| `- note: property declared here
5 | open func tryToPerform(_ action: Selector, with object: Any?) -> Bool
6 | open func performKeyEquivalent(with event: NSEvent) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:157:40: warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
155 | {
156 | responders.append(curResp)
157 | curResponder = curResp.nextResponder
| `- warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
158 | }
159 | }
AppKit.NSResponder:4:41: note: property declared here
2 | @MainActor public init()
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var nextResponder: NSResponder? { get set }
| `- note: property declared here
5 | open func tryToPerform(_ action: Selector, with object: Any?) -> Bool
6 | open func performKeyEquivalent(with event: NSEvent) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:164:36: warning: main actor-isolated property 'windowController' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
162 |
163 | let document: NSDocument?
164 | if let controller = window.windowController
| `- warning: main actor-isolated property 'windowController' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
165 | {
166 | responders.append(controller)
AppKit.NSWindow:301:19: note: property declared here
299 | open var maxFullScreenContentSize: NSSize { get set }
300 | open var deviceDescription: [NSDeviceDescriptionKey : Any] { get }
301 | weak open var windowController: NSWindowController? { get set }
| `- note: property declared here
302 | @available(macOS 10.9, *)
303 | open func beginSheet(_ sheetWindow: NSWindow, completionHandler handler: ((NSApplication.ModalResponse) -> Void)? = nil)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:167:35: warning: main actor-isolated property 'document' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
165 | {
166 | responders.append(controller)
167 | document = controller.document as? NSDocument
| `- warning: main actor-isolated property 'document' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
168 | }
169 | else { document = nil }
AppKit.NSWindowController:14:41: note: property declared here
12 | @available(macOS 13.2, *)
13 | open var previewRepresentableActivityItems: [any NSPreviewRepresentableActivityItem]? { get set }
14 | @MainActor unowned(unsafe) open var document: AnyObject? { get set }
| `- note: property declared here
15 | open func setDocumentEdited(_ dirtyFlag: Bool)
16 | open var shouldCloseDocument: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:171:34: warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
169 | else { document = nil }
170 |
171 | if let delegate = window.delegate {
| `- warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
172 | responders.append(DelegateWrapper(delegate as! NSObject))
173 | }
AppKit.NSWindow:57:19: note: property declared here
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
| `- note: property declared here
58 | open var windowNumber: Int { get }
59 | open var styleMask: NSWindow.StyleMask { get set }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:172:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
170 |
171 | if let delegate = window.delegate {
172 | responders.append(DelegateWrapper(delegate as! NSObject))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
173 | }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:175:47: warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
173 | }
174 |
175 | if let doc = document, doc !== window.delegate {
| `- warning: main actor-isolated property 'delegate' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
176 | responders.append(DelegateWrapper(doc))
177 | }
AppKit.NSWindow:57:19: note: property declared here
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
| `- note: property declared here
58 | open var windowNumber: Int { get }
59 | open var styleMask: NSWindow.StyleMask { get set }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:176:31: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
42 |
43 | // -------------------------------------
44 | init(_ delegate: NSObject)
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
45 | {
46 | self.delegate = delegate
:
142 | responders will be added.
143 | */
144 | private static func addResponders(
| `- note: add '@MainActor' to make static method 'addResponders(for:to:)' part of global actor 'MainActor'
145 | for window: NSWindow?,
146 | to responders: inout [NSResponder])
:
174 |
175 | if let doc = document, doc !== window.delegate {
176 | responders.append(DelegateWrapper(doc))
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
177 | }
178 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:223:22: warning: call to main actor-isolated instance method 'target(forAction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | - Returns: The current `NSDocumentController`, or `nil` if there isn't one.
217 | */
218 | private static func findDocumentController() -> NSDocumentController?
| `- note: add '@MainActor' to make static method 'findDocumentController()' part of global actor 'MainActor'
219 | {
220 | let querySelector =
221 | #selector(getter: NSDocumentController.documentClassNames)
222 |
223 | return NSApp.target(forAction: querySelector) as? NSDocumentController
| `- warning: call to main actor-isolated instance method 'target(forAction:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
224 | }
225 |
AppKit.NSApplication:3:26: note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
1 | extension NSApplication {
2 | open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool
3 | @MainActor open func target(forAction action: Selector) -> Any?
| `- note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
5 | open func targetForAction(_ action: Selector) -> Any?
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:223:16: warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
216 | - Returns: The current `NSDocumentController`, or `nil` if there isn't one.
217 | */
218 | private static func findDocumentController() -> NSDocumentController?
| `- note: add '@MainActor' to make static method 'findDocumentController()' part of global actor 'MainActor'
219 | {
220 | let querySelector =
221 | #selector(getter: NSDocumentController.documentClassNames)
222 |
223 | return NSApp.target(forAction: querySelector) as? NSDocumentController
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
224 | }
225 |
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:281:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
269 | }
270 |
271 | public mutating func next() -> Element?
| `- note: add '@MainActor' to make instance method 'next()' part of global actor 'MainActor'
272 | {
273 | if curResponder == nil
:
279 |
280 | let ret = curResponder
281 | curResponder = curResponder?.nextResponder
| `- warning: main actor-isolated property 'nextResponder' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
282 | return ret
283 | }
AppKit.NSResponder:4:41: note: property declared here
2 | @MainActor public init()
3 | @MainActor public init?(coder: NSCoder)
4 | @MainActor unowned(unsafe) open var nextResponder: NSResponder? { get set }
| `- note: property declared here
5 | open func tryToPerform(_ action: Selector, with object: Any?) -> Bool
6 | open func performKeyEquivalent(with event: NSEvent) -> Bool
[19/32] Compiling MacMenuBar MenuItemGroup.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:66:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
24 | public struct MenuItemGroup: MenuElement
25 | {
26 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
27 |
28 | // -------------------------------------
:
64 | {
65 | get { nsMenu.title }
66 | set { nsMenu.title = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:72:39: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
70 | @inlinable public var isVisible: Bool
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:73:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
24 | public struct MenuItemGroup: MenuElement
25 | {
26 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
27 |
28 | // -------------------------------------
:
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:73:37: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:66:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
64 | {
65 | get { nsMenu.title }
66 | set { nsMenu.title = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:72:39: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
70 | @inlinable public var isVisible: Bool
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:73:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:73:37: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:80:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
78 | {
79 | get { nsMenu.nsMacMenuItem?.isEnabled ?? false }
80 | set { nsMenu.nsMacMenuItem?.canBeEnabled = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
81 | }
82 |
[20/32] Compiling MacMenuBar NoMenu.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:66:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
24 | public struct MenuItemGroup: MenuElement
25 | {
26 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
27 |
28 | // -------------------------------------
:
64 | {
65 | get { nsMenu.title }
66 | set { nsMenu.title = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:72:39: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
70 | @inlinable public var isVisible: Bool
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:73:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
24 | public struct MenuItemGroup: MenuElement
25 | {
26 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
27 |
28 | // -------------------------------------
:
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:73:37: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:66:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
64 | {
65 | get { nsMenu.title }
66 | set { nsMenu.title = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:72:39: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
70 | @inlinable public var isVisible: Bool
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:73:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:73:37: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:80:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
78 | {
79 | get { nsMenu.nsMacMenuItem?.isEnabled ?? false }
80 | set { nsMenu.nsMacMenuItem?.canBeEnabled = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
81 | }
82 |
[21/32] Compiling MacMenuBar StandardMenu.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:66:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
24 | public struct MenuItemGroup: MenuElement
25 | {
26 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
27 |
28 | // -------------------------------------
:
64 | {
65 | get { nsMenu.title }
66 | set { nsMenu.title = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:72:39: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
70 | @inlinable public var isVisible: Bool
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:73:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
24 | public struct MenuItemGroup: MenuElement
25 | {
26 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
27 |
28 | // -------------------------------------
:
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuItemGroup.swift:73:37: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:66:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
64 | {
65 | get { nsMenu.title }
66 | set { nsMenu.title = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:72:39: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
70 | @inlinable public var isVisible: Bool
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
74 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:73:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:73:37: warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
71 | {
72 | get { !(nsMenu.nsMacMenuItem?.isHidden ?? true) }
73 | set { nsMenu.nsMacMenuItem?.isHidden = !newValue }
| |- warning: property 'isHidden' cannot be used in an '@inlinable' function because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/StandardMenu.swift:80:15: error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
22 | public struct StandardMenu
23 | {
24 | public internal(set) var nsMenu: NSMacMenu
| `- note: setter for property 'nsMenu' is not '@usableFromInline' or public
25 |
26 | // -------------------------------------
:
78 | {
79 | get { nsMenu.nsMacMenuItem?.isEnabled ?? false }
80 | set { nsMenu.nsMacMenuItem?.canBeEnabled = newValue }
| `- error: setter for property 'nsMenu' is internal and cannot be referenced from an '@inlinable' function
81 | }
82 |
[22/32] Compiling MacMenuBar StandardMenuItemAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:101:23: warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
| |- warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'command' 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
102 | public static let function = Self(Modifier.function)
103 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:104:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
102 | public static let function = Self(Modifier.function)
103 |
104 | public static let none = Self(nullChar)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
105 | public static let escape = Self(escapeChar)
106 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:99:23: warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
97 |
98 | public static let shift = Self(Modifier.shift)
99 | public static let control = Self(Modifier.control)
| |- warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'control' 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
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:105:23: warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
103 |
104 | public static let none = Self(nullChar)
105 | public static let escape = Self(escapeChar)
| |- warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escape' 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
106 |
107 | // -------------------------------------
[23/32] Compiling MacMenuBar UtilFunctions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:101:23: warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
99 | public static let control = Self(Modifier.control)
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
| |- warning: static property 'command' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'command' 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
102 | public static let function = Self(Modifier.function)
103 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:104:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
102 | public static let function = Self(Modifier.function)
103 |
104 | public static let none = Self(nullChar)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
105 | public static let escape = Self(escapeChar)
106 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:99:23: warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
97 |
98 | public static let shift = Self(Modifier.shift)
99 | public static let control = Self(Modifier.control)
| |- warning: static property 'control' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'control' 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
100 | public static let option = Self(Modifier.option)
101 | public static let command = Self(Modifier.command)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:105:23: warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
103 |
104 | public static let none = Self(nullChar)
105 | public static let escape = Self(escapeChar)
| |- warning: static property 'escape' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escape' 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
106 |
107 | // -------------------------------------
[24/32] Compiling MacMenuBar NSObject+Extension.swift
[25/32] Compiling MacMenuBar NoAction.swift
[26/32] Compiling MacMenuBar SelectorAction.swift
[27/32] Compiling MacMenuBar DynamicNSMenuContent.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSApplicationDelegate+Extension.swift:43:26: error: 'App' is only available in macOS 11.0 or newer
41 |
42 | // -------------------------------------
43 | public extension SwiftUI.App
| | `- error: 'App' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
44 | {
45 | // -------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSApplicationDelegate+Extension.swift:29:20: warning: capture of 'menuBar' with non-sendable type 'MenuBarType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 |
24 | // -------------------------------------
25 | fileprivate func _setMenuBar<MenuBarType: MenuBar>(to menuBar: MenuBarType)
| `- note: consider making generic parameter 'MenuBarType' conform to the 'Sendable' protocol
26 | {
27 | DispatchQueue.main.async
28 | {
29 | let menu = menuBar.body.menu
| `- warning: capture of 'menuBar' with non-sendable type 'MenuBarType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | // Build dynamic menu content before setting the menu bar so our menus
31 | // are populated before macOS knows about them to inject its own.
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenu.swift:23:12: warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
21 | import Cocoa
22 |
23 | public var debugPrintMenuInsertionRefusals = true
| |- warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugPrintMenuInsertionRefusals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugPrintMenuInsertionRefusals' 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
24 |
25 | // -------------------------------------
[28/32] Compiling MacMenuBar NSApplicationDelegate+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSApplicationDelegate+Extension.swift:43:26: error: 'App' is only available in macOS 11.0 or newer
41 |
42 | // -------------------------------------
43 | public extension SwiftUI.App
| | `- error: 'App' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
44 | {
45 | // -------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSApplicationDelegate+Extension.swift:29:20: warning: capture of 'menuBar' with non-sendable type 'MenuBarType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 |
24 | // -------------------------------------
25 | fileprivate func _setMenuBar<MenuBarType: MenuBar>(to menuBar: MenuBarType)
| `- note: consider making generic parameter 'MenuBarType' conform to the 'Sendable' protocol
26 | {
27 | DispatchQueue.main.async
28 | {
29 | let menu = menuBar.body.menu
| `- warning: capture of 'menuBar' with non-sendable type 'MenuBarType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | // Build dynamic menu content before setting the menu bar so our menus
31 | // are populated before macOS knows about them to inject its own.
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenu.swift:23:12: warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
21 | import Cocoa
22 |
23 | public var debugPrintMenuInsertionRefusals = true
| |- warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugPrintMenuInsertionRefusals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugPrintMenuInsertionRefusals' 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
24 |
25 | // -------------------------------------
[29/32] Compiling MacMenuBar NSMacMenu.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSApplicationDelegate+Extension.swift:43:26: error: 'App' is only available in macOS 11.0 or newer
41 |
42 | // -------------------------------------
43 | public extension SwiftUI.App
| | `- error: 'App' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
44 | {
45 | // -------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSApplicationDelegate+Extension.swift:29:20: warning: capture of 'menuBar' with non-sendable type 'MenuBarType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 |
24 | // -------------------------------------
25 | fileprivate func _setMenuBar<MenuBarType: MenuBar>(to menuBar: MenuBarType)
| `- note: consider making generic parameter 'MenuBarType' conform to the 'Sendable' protocol
26 | {
27 | DispatchQueue.main.async
28 | {
29 | let menu = menuBar.body.menu
| `- warning: capture of 'menuBar' with non-sendable type 'MenuBarType' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 | // Build dynamic menu content before setting the menu bar so our menus
31 | // are populated before macOS knows about them to inject its own.
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenu.swift:23:12: warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
21 | import Cocoa
22 |
23 | public var debugPrintMenuInsertionRefusals = true
| |- warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'debugPrintMenuInsertionRefusals' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'debugPrintMenuInsertionRefusals' 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
24 |
25 | // -------------------------------------
[30/32] Compiling MacMenuBar TextMenuItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuBuilder.swift:22:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
20 |
21 | // -------------------------------------
22 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
23 | public struct MenuBuilder
24 | {
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:104:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
102 | public static let function = Self(Modifier.function)
103 |
104 | public static let none = Self(nullChar)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
105 | public static let escape = Self(escapeChar)
106 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:36:16: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
34 | {
35 | get { (nsMenuItem as? NSMacMenuItem)!._action! }
36 | set { (nsMenuItem as? NSMacMenuItem)!._action! = newValue }
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:45:13: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
43 | set
44 | {
45 | nsMenuItem.keyEquivalent = String(newValue.key)
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
46 | nsMenuItem.keyEquivalentModifierMask = newValue.modifiers
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:46:13: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
44 | {
45 | nsMenuItem.keyEquivalent = String(newValue.key)
46 | nsMenuItem.keyEquivalentModifierMask = newValue.modifiers
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:125:15: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
123 | {
124 | get { nsMenuItem.title }
125 | set { nsMenuItem.title = newValue }
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
126 | }
127 | }
[31/32] Compiling MacMenuBar MacMenu.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuBuilder.swift:22:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
20 |
21 | // -------------------------------------
22 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
23 | public struct MenuBuilder
24 | {
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:104:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
102 | public static let function = Self(Modifier.function)
103 |
104 | public static let none = Self(nullChar)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
105 | public static let escape = Self(escapeChar)
106 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:36:16: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
34 | {
35 | get { (nsMenuItem as? NSMacMenuItem)!._action! }
36 | set { (nsMenuItem as? NSMacMenuItem)!._action! = newValue }
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:45:13: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
43 | set
44 | {
45 | nsMenuItem.keyEquivalent = String(newValue.key)
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
46 | nsMenuItem.keyEquivalentModifierMask = newValue.modifiers
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:46:13: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
44 | {
45 | nsMenuItem.keyEquivalent = String(newValue.key)
46 | nsMenuItem.keyEquivalentModifierMask = newValue.modifiers
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:125:15: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
123 | {
124 | get { nsMenuItem.title }
125 | set { nsMenuItem.title = newValue }
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
126 | }
127 | }
[32/32] Compiling MacMenuBar MenuBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenus/MenuBuilder.swift:22:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
20 |
21 | // -------------------------------------
22 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
23 | public struct MenuBuilder
24 | {
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/KeyEquivalents/KeyEquivalent.swift:104:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
68 | displayed representation in a menu.
69 | */
70 | public struct KeyEquivalent
| `- note: consider making struct 'KeyEquivalent' conform to the 'Sendable' protocol
71 | {
72 | // -------------------------------------
:
102 | public static let function = Self(Modifier.function)
103 |
104 | public static let none = Self(nullChar)
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'KeyEquivalent' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
105 | public static let escape = Self(escapeChar)
106 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:36:16: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
34 | {
35 | get { (nsMenuItem as? NSMacMenuItem)!._action! }
36 | set { (nsMenuItem as? NSMacMenuItem)!._action! = newValue }
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:45:13: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
43 | set
44 | {
45 | nsMenuItem.keyEquivalent = String(newValue.key)
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
46 | nsMenuItem.keyEquivalentModifierMask = newValue.modifiers
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:46:13: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
44 | {
45 | nsMenuItem.keyEquivalent = String(newValue.key)
46 | nsMenuItem.keyEquivalentModifierMask = newValue.modifiers
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
47 | }
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/MacMenuItems/TextMenuItem.swift:125:15: error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
29 | public typealias ActionClosure = ClosureAction.ActionClosure
30 |
31 | public private(set) var nsMenuItem: NSMenuItem
| `- note: setter for property 'nsMenuItem' is not '@usableFromInline' or public
32 |
33 | @inlinable public var action: Action
:
123 | {
124 | get { nsMenuItem.title }
125 | set { nsMenuItem.title = newValue }
| `- error: setter for property 'nsMenuItem' is private and cannot be referenced from an '@inlinable' function
126 | }
127 | }
BUILD FAILURE 6.0 macosSpm