Build Information
Failed to build MacMenuBar, reference main (99c91a
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 07:37:23 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
21 | import Cocoa
22 |
23 | public var debugPrintMenuInsertionRefusals = true
| |- warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make var 'debugPrintMenuInsertionRefusals' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'shift' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'control' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'option' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'command' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'function' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'escape' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make let 'dummyMenuItem' part of global actor 'MainActor'
| `- 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/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: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: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: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 |
[4/32] Compiling MacMenuBar NSObject+Extension.swift
[5/32] Compiling MacMenuBar NoAction.swift
[6/32] Compiling MacMenuBar SelectorAction.swift
[7/32] Compiling MacMenuBar Action.swift
[8/32] Compiling MacMenuBar ActionResponder.swift
[9/32] Compiling MacMenuBar ClosureAction.swift
[10/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: add '@MainActor' to make static property 'shift' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'control' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'option' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'command' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'function' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'escape' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |
107 | // -------------------------------------
[11/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: add '@MainActor' to make static property 'shift' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'control' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'option' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'command' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'function' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'escape' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |
107 | // -------------------------------------
[12/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: add '@MainActor' to make static property 'shift' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'control' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'option' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'command' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'function' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'escape' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
106 |
107 | // -------------------------------------
[13/32] Compiling MacMenuBar StandardMenuItemAction.swift
[14/32] Compiling MacMenuBar UtilFunctions.swift
[15/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:57:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
55 | _ aSelector: Selector!) -> Unmanaged<AnyObject>!
56 | {
57 | delegate.perform(aSelector)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:65:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
63 | with object: Any!) -> Unmanaged<AnyObject>!
64 | {
65 | delegate.perform(aSelector, with: object)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:74:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
72 | with object2: Any!) -> Unmanaged<AnyObject>!
73 | {
74 | delegate.perform(aSelector, with: object1, with: object2)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
75 | }
76 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:79:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
77 | // -------------------------------------
78 | public override func responds(to aSelector: Selector!) -> Bool {
79 | delegate.responds(to: aSelector)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 | }
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:34: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:202:48: note: property declared here
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
| `- note: property declared here
203 | @property (getter=isActive, readonly) BOOL active;
204 | @property (getter=isHidden, readonly) BOOL hidden;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:28: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:35: warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:201:48: note: property declared here
199 | - (nullable NSWindow *)windowWithWindowNumber:(NSInteger)windowNum;
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
| `- note: property declared here
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
203 | @property (getter=isActive, readonly) BOOL active;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:29: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:33: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:202:48: note: property declared here
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
| `- note: property declared here
203 | @property (getter=isActive, readonly) BOOL active;
204 | @property (getter=isHidden, readonly) BOOL hidden;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:27: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:113:27: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
114 |
115 | if let appDelegate = NSApp.delegate {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:36: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:194:54: note: property declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
| `- note: property declared here
195 |
196 | - (void)hide:(nullable id)sender;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:30: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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 nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
151 | {
152 | responders.append(responder)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:389:41: note: property declared here
387 | - (BOOL)makeFirstResponder:(nullable NSResponder *)responder;
388 | /* firstResponder is Key Value Observing (KVO) compliant. */
389 | @property (readonly, weak) NSResponder *firstResponder;
| `- note: property declared here
390 |
391 | @property (readonly) NSEventModifierFlags resizeFlags;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:153:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
154 | while let curResp = curResponder
155 | {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:26:54: note: property declared here
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
26 | @property (nullable, unsafe_unretained) NSResponder *nextResponder;
| `- note: property declared here
27 | - (BOOL)tryToPerform:(SEL)action with:(nullable id)object;
28 | - (BOOL)performKeyEquivalent:(NSEvent *)event;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:157:40: warning: main actor-isolated property 'nextResponder' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
158 | }
159 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:26:54: note: property declared here
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
26 | @property (nullable, unsafe_unretained) NSResponder *nextResponder;
| `- note: property declared here
27 | - (BOOL)tryToPerform:(SEL)action with:(nullable id)object;
28 | - (BOOL)performKeyEquivalent:(NSEvent *)event;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:164:36: warning: main actor-isolated property 'windowController' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
165 | {
166 | responders.append(controller)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:576:57: note: property declared here
574 | @property (readonly, copy) NSDictionary<NSDeviceDescriptionKey, id> *deviceDescription;
575 |
576 | @property (nullable, weak) __kindof NSWindowController *windowController;
| `- note: property declared here
577 |
578 | /*
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:167:35: warning: main actor-isolated property 'document' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
168 | }
169 | else { document = nil }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindowController.h:70:61: note: property declared here
68 | You should not set the document property. It is invoked automatically from NSDocument's -addWindowController:. You can override it if you need to, but call super's implementation. The document is not retained by the NSWindowController.
69 | */
70 | @property (nullable, assign) id /* __kindof NSDocument * */ document;
| `- note: property declared here
71 |
72 | /* NSDocument calls this method for its window controllers whenever the document is made dirty or clean. By default this calls -setDocumentEdited: on the controller's window (if any). A controller calls this on itself when its document gets set or its window gets 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 nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
172 | responders.append(DelegateWrapper(delegate as! NSObject))
173 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:338:49: note: property declared here
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
| `- note: property declared here
339 | @property (readonly) NSInteger windowNumber;
340 |
/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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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 nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
176 | responders.append(DelegateWrapper(doc))
177 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:338:49: note: property declared here
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
| `- note: property declared here
339 | @property (readonly) NSInteger windowNumber;
340 |
/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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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.target:2:22: note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
1 | class NSApplication {
2 | @MainActor open func target(forAction action: Selector) -> Any?}
| |- note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:223:16: warning: main actor-isolated var 'NSApp' can not be referenced from a 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: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
224 | }
225 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:281:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
282 | return ret
283 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:26:54: note: property declared here
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
26 | @property (nullable, unsafe_unretained) NSResponder *nextResponder;
| `- note: property declared here
27 | - (BOOL)tryToPerform:(SEL)action with:(nullable id)object;
28 | - (BOOL)performKeyEquivalent:(NSEvent *)event;
[16/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:57:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
55 | _ aSelector: Selector!) -> Unmanaged<AnyObject>!
56 | {
57 | delegate.perform(aSelector)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:65:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
63 | with object: Any!) -> Unmanaged<AnyObject>!
64 | {
65 | delegate.perform(aSelector, with: object)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:74:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
72 | with object2: Any!) -> Unmanaged<AnyObject>!
73 | {
74 | delegate.perform(aSelector, with: object1, with: object2)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
75 | }
76 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:79:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
77 | // -------------------------------------
78 | public override func responds(to aSelector: Selector!) -> Bool {
79 | delegate.responds(to: aSelector)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 | }
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:34: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:202:48: note: property declared here
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
| `- note: property declared here
203 | @property (getter=isActive, readonly) BOOL active;
204 | @property (getter=isHidden, readonly) BOOL hidden;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:28: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:35: warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:201:48: note: property declared here
199 | - (nullable NSWindow *)windowWithWindowNumber:(NSInteger)windowNum;
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
| `- note: property declared here
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
203 | @property (getter=isActive, readonly) BOOL active;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:29: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:33: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:202:48: note: property declared here
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
| `- note: property declared here
203 | @property (getter=isActive, readonly) BOOL active;
204 | @property (getter=isHidden, readonly) BOOL hidden;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:27: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:113:27: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
114 |
115 | if let appDelegate = NSApp.delegate {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:36: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:194:54: note: property declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
| `- note: property declared here
195 |
196 | - (void)hide:(nullable id)sender;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:30: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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 nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
151 | {
152 | responders.append(responder)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:389:41: note: property declared here
387 | - (BOOL)makeFirstResponder:(nullable NSResponder *)responder;
388 | /* firstResponder is Key Value Observing (KVO) compliant. */
389 | @property (readonly, weak) NSResponder *firstResponder;
| `- note: property declared here
390 |
391 | @property (readonly) NSEventModifierFlags resizeFlags;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:153:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
154 | while let curResp = curResponder
155 | {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:26:54: note: property declared here
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
26 | @property (nullable, unsafe_unretained) NSResponder *nextResponder;
| `- note: property declared here
27 | - (BOOL)tryToPerform:(SEL)action with:(nullable id)object;
28 | - (BOOL)performKeyEquivalent:(NSEvent *)event;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:157:40: warning: main actor-isolated property 'nextResponder' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
158 | }
159 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:26:54: note: property declared here
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
26 | @property (nullable, unsafe_unretained) NSResponder *nextResponder;
| `- note: property declared here
27 | - (BOOL)tryToPerform:(SEL)action with:(nullable id)object;
28 | - (BOOL)performKeyEquivalent:(NSEvent *)event;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:164:36: warning: main actor-isolated property 'windowController' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
165 | {
166 | responders.append(controller)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:576:57: note: property declared here
574 | @property (readonly, copy) NSDictionary<NSDeviceDescriptionKey, id> *deviceDescription;
575 |
576 | @property (nullable, weak) __kindof NSWindowController *windowController;
| `- note: property declared here
577 |
578 | /*
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:167:35: warning: main actor-isolated property 'document' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
168 | }
169 | else { document = nil }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindowController.h:70:61: note: property declared here
68 | You should not set the document property. It is invoked automatically from NSDocument's -addWindowController:. You can override it if you need to, but call super's implementation. The document is not retained by the NSWindowController.
69 | */
70 | @property (nullable, assign) id /* __kindof NSDocument * */ document;
| `- note: property declared here
71 |
72 | /* NSDocument calls this method for its window controllers whenever the document is made dirty or clean. By default this calls -setDocumentEdited: on the controller's window (if any). A controller calls this on itself when its document gets set or its window gets 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 nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
172 | responders.append(DelegateWrapper(delegate as! NSObject))
173 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:338:49: note: property declared here
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
| `- note: property declared here
339 | @property (readonly) NSInteger windowNumber;
340 |
/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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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 nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
176 | responders.append(DelegateWrapper(doc))
177 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:338:49: note: property declared here
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
| `- note: property declared here
339 | @property (readonly) NSInteger windowNumber;
340 |
/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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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.target:2:22: note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
1 | class NSApplication {
2 | @MainActor open func target(forAction action: Selector) -> Any?}
| |- note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:223:16: warning: main actor-isolated var 'NSApp' can not be referenced from a 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: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
224 | }
225 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:281:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
282 | return ret
283 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:26:54: note: property declared here
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
26 | @property (nullable, unsafe_unretained) NSResponder *nextResponder;
| `- note: property declared here
27 | - (BOOL)tryToPerform:(SEL)action with:(nullable id)object;
28 | - (BOOL)performKeyEquivalent:(NSEvent *)event;
[17/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:57:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
55 | _ aSelector: Selector!) -> Unmanaged<AnyObject>!
56 | {
57 | delegate.perform(aSelector)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:65:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
63 | with object: Any!) -> Unmanaged<AnyObject>!
64 | {
65 | delegate.perform(aSelector, with: object)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
66 | }
67 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:74:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
72 | with object2: Any!) -> Unmanaged<AnyObject>!
73 | {
74 | delegate.perform(aSelector, with: object1, with: object2)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
75 | }
76 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:79:9: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | internal class DelegateWrapper: NSResponder
40 | {
41 | let delegate: NSObject
| `- note: property declared here
42 |
43 | // -------------------------------------
:
77 | // -------------------------------------
78 | public override func responds(to aSelector: Selector!) -> Bool {
79 | delegate.responds(to: aSelector)
| `- warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
80 | }
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:34: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:202:48: note: property declared here
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
| `- note: property declared here
203 | @property (getter=isActive, readonly) BOOL active;
204 | @property (getter=isHidden, readonly) BOOL hidden;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:104:28: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
105 | Self.addResponders(for: keyWindow, to: &responders)
106 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:35: warning: main actor-isolated property 'mainWindow' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:201:48: note: property declared here
199 | - (nullable NSWindow *)windowWithWindowNumber:(NSInteger)windowNum;
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
| `- note: property declared here
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
203 | @property (getter=isActive, readonly) BOOL active;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:107:29: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
108 | mainWindow !== NSApp.keyWindow
109 | {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:33: warning: main actor-isolated property 'keyWindow' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:202:48: note: property declared here
200 |
201 | @property (nullable, readonly, weak) NSWindow *mainWindow;
202 | @property (nullable, readonly, weak) NSWindow *keyWindow;
| `- note: property declared here
203 | @property (getter=isActive, readonly) BOOL active;
204 | @property (getter=isHidden, readonly) BOOL hidden;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:108:27: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
109 | {
110 | Self.addResponders(for: mainWindow, to: &responders)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:113:27: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
114 |
115 | if let appDelegate = NSApp.delegate {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:36: warning: main actor-isolated property 'delegate' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:194:54: note: property declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
| `- note: property declared here
195 |
196 | - (void)hide:(nullable id)sender;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:115:30: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
116 | responders.append(DelegateWrapper(appDelegate as! NSObject))
117 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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 nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
151 | {
152 | responders.append(responder)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:389:41: note: property declared here
387 | - (BOOL)makeFirstResponder:(nullable NSResponder *)responder;
388 | /* firstResponder is Key Value Observing (KVO) compliant. */
389 | @property (readonly, weak) NSResponder *firstResponder;
| `- note: property declared here
390 |
391 | @property (readonly) NSEventModifierFlags resizeFlags;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:153:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
154 | while let curResp = curResponder
155 | {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:26:54: note: property declared here
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
26 | @property (nullable, unsafe_unretained) NSResponder *nextResponder;
| `- note: property declared here
27 | - (BOOL)tryToPerform:(SEL)action with:(nullable id)object;
28 | - (BOOL)performKeyEquivalent:(NSEvent *)event;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:157:40: warning: main actor-isolated property 'nextResponder' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
158 | }
159 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:26:54: note: property declared here
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
26 | @property (nullable, unsafe_unretained) NSResponder *nextResponder;
| `- note: property declared here
27 | - (BOOL)tryToPerform:(SEL)action with:(nullable id)object;
28 | - (BOOL)performKeyEquivalent:(NSEvent *)event;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:164:36: warning: main actor-isolated property 'windowController' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
165 | {
166 | responders.append(controller)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:576:57: note: property declared here
574 | @property (readonly, copy) NSDictionary<NSDeviceDescriptionKey, id> *deviceDescription;
575 |
576 | @property (nullable, weak) __kindof NSWindowController *windowController;
| `- note: property declared here
577 |
578 | /*
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:167:35: warning: main actor-isolated property 'document' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
168 | }
169 | else { document = nil }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindowController.h:70:61: note: property declared here
68 | You should not set the document property. It is invoked automatically from NSDocument's -addWindowController:. You can override it if you need to, but call super's implementation. The document is not retained by the NSWindowController.
69 | */
70 | @property (nullable, assign) id /* __kindof NSDocument * */ document;
| `- note: property declared here
71 |
72 | /* NSDocument calls this method for its window controllers whenever the document is made dirty or clean. By default this calls -setDocumentEdited: on the controller's window (if any). A controller calls this on itself when its document gets set or its window gets 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 nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
172 | responders.append(DelegateWrapper(delegate as! NSObject))
173 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:338:49: note: property declared here
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
| `- note: property declared here
339 | @property (readonly) NSInteger windowNumber;
340 |
/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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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 nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
176 | responders.append(DelegateWrapper(doc))
177 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:338:49: note: property declared here
336 | @property (getter=isExcludedFromWindowsMenu) BOOL excludedFromWindowsMenu;
337 | @property (nullable, strong) __kindof NSView *contentView;
338 | @property (nullable, weak) id<NSWindowDelegate> delegate;
| `- note: property declared here
339 | @property (readonly) NSInteger windowNumber;
340 |
/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
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
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.target:2:22: note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
1 | class NSApplication {
2 | @MainActor open func target(forAction action: Selector) -> Any?}
| |- note: calls to instance method 'target(forAction:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:223:16: warning: main actor-isolated var 'NSApp' can not be referenced from a 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: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
224 | }
225 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
| `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/ResponderChain.swift:281:42: warning: main actor-isolated property 'nextResponder' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
282 | return ret
283 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:26:54: note: property declared here
24 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
25 |
26 | @property (nullable, unsafe_unretained) NSResponder *nextResponder;
| `- note: property declared here
27 | - (BOOL)tryToPerform:(SEL)action with:(nullable id)object;
28 | - (BOOL)performKeyEquivalent:(NSEvent *)event;
[18/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 | {
[19/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 | {
[20/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 | {
[21/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.validateMenuItem:2:17: note: calls to instance method 'validateMenuItem' from outside of its actor context are implicitly asynchronous
1 | protocol NSMenuItemValidation {
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.validateUserInterfaceItem:2:17: note: calls to instance method 'validateUserInterfaceItem' from outside of its actor context are implicitly asynchronous
1 | 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 value of non-Sendable type 'NSMacMenuItem' 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 value of non-Sendable type 'NSMacMenuItem' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSMacMenuItem' to main actor-isolated instance method 'validateMenuItem' risks causing races in between task-isolated and main actor-isolated uses
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: sending value of non-Sendable type 'any NSMenuItemValidation' 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 value of non-Sendable type 'any NSMenuItemValidation' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'any NSMenuItemValidation' to main actor-isolated instance method 'validateMenuItem' risks causing races in between task-isolated and main actor-isolated uses
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending value of non-Sendable type 'NSMacMenuItem' 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 value of non-Sendable type 'NSMacMenuItem' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSMacMenuItem' to main actor-isolated instance method 'validateUserInterfaceItem' risks causing races in between task-isolated and main actor-isolated uses
230 | ?? true
231 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending value of non-Sendable type 'any NSUserInterfaceValidations' 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 value of non-Sendable type 'any NSUserInterfaceValidations' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'any NSUserInterfaceValidations' to main actor-isolated instance method 'validateUserInterfaceItem' risks causing races in between task-isolated and main actor-isolated uses
230 | ?? true
231 | }
[22/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.validateMenuItem:2:17: note: calls to instance method 'validateMenuItem' from outside of its actor context are implicitly asynchronous
1 | protocol NSMenuItemValidation {
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.validateUserInterfaceItem:2:17: note: calls to instance method 'validateUserInterfaceItem' from outside of its actor context are implicitly asynchronous
1 | 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 value of non-Sendable type 'NSMacMenuItem' 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 value of non-Sendable type 'NSMacMenuItem' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSMacMenuItem' to main actor-isolated instance method 'validateMenuItem' risks causing races in between task-isolated and main actor-isolated uses
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: sending value of non-Sendable type 'any NSMenuItemValidation' 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 value of non-Sendable type 'any NSMenuItemValidation' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'any NSMenuItemValidation' to main actor-isolated instance method 'validateMenuItem' risks causing races in between task-isolated and main actor-isolated uses
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending value of non-Sendable type 'NSMacMenuItem' 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 value of non-Sendable type 'NSMacMenuItem' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSMacMenuItem' to main actor-isolated instance method 'validateUserInterfaceItem' risks causing races in between task-isolated and main actor-isolated uses
230 | ?? true
231 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending value of non-Sendable type 'any NSUserInterfaceValidations' 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 value of non-Sendable type 'any NSUserInterfaceValidations' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'any NSUserInterfaceValidations' to main actor-isolated instance method 'validateUserInterfaceItem' risks causing races in between task-isolated and main actor-isolated uses
230 | ?? true
231 | }
[23/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.validateMenuItem:2:17: note: calls to instance method 'validateMenuItem' from outside of its actor context are implicitly asynchronous
1 | protocol NSMenuItemValidation {
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.validateUserInterfaceItem:2:17: note: calls to instance method 'validateUserInterfaceItem' from outside of its actor context are implicitly asynchronous
1 | 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 value of non-Sendable type 'NSMacMenuItem' 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 value of non-Sendable type 'NSMacMenuItem' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSMacMenuItem' to main actor-isolated instance method 'validateMenuItem' risks causing races in between task-isolated and main actor-isolated uses
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:227:55: warning: sending value of non-Sendable type 'any NSMenuItemValidation' 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 value of non-Sendable type 'any NSMenuItemValidation' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'any NSMenuItemValidation' to main actor-isolated instance method 'validateMenuItem' risks causing races in between task-isolated and main actor-isolated uses
228 | ?? (target as? NSUserInterfaceValidations)?
229 | .validateUserInterfaceItem(self)
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending value of non-Sendable type 'NSMacMenuItem' 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 value of non-Sendable type 'NSMacMenuItem' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'NSMacMenuItem' to main actor-isolated instance method 'validateUserInterfaceItem' risks causing races in between task-isolated and main actor-isolated uses
230 | ?? true
231 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacMenuBar/AppKit Subclasses/NSMacMenuItem.swift:229:22: warning: sending value of non-Sendable type 'any NSUserInterfaceValidations' 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 value of non-Sendable type 'any NSUserInterfaceValidations' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'any NSUserInterfaceValidations' to main actor-isolated instance method 'validateUserInterfaceItem' risks causing races in between task-isolated and main actor-isolated uses
230 | ?? true
231 | }
[24/32] Compiling MacMenuBar MenuItemGroup.swift
/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: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: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: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 |
[25/32] Compiling MacMenuBar NoMenu.swift
/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: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: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: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 |
[26/32] Compiling MacMenuBar StandardMenu.swift
/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: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: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: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 |
[27/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: add '@MainActor' to make let 'dummyMenuItem' part of global actor 'MainActor'
| `- 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 | {
[28/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: add '@MainActor' to make let 'dummyMenuItem' part of global actor 'MainActor'
| `- 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 | {
[29/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: add '@MainActor' to make let 'dummyMenuItem' part of global actor 'MainActor'
| `- 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 | {
[30/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/NSMacMenu.swift:23:12: warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make var 'debugPrintMenuInsertionRefusals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | // -------------------------------------
[31/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/NSMacMenu.swift:23:12: warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make var 'debugPrintMenuInsertionRefusals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | // -------------------------------------
[32/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/NSMacMenu.swift:23:12: warning: var 'debugPrintMenuInsertionRefusals' is not concurrency-safe because it is nonisolated 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 nonisolated 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: add '@MainActor' to make var 'debugPrintMenuInsertionRefusals' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | // -------------------------------------
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/29] Emitting module MacMenuBar
/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/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/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/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: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: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: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 |
[3/31] Compiling MacMenuBar MenuItemGroup.swift
/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: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: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: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 |
[4/31] Compiling MacMenuBar NoMenu.swift
/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: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: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: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 |
[5/31] Compiling MacMenuBar StandardMenu.swift
/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: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: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: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 |
[6/31] Compiling MacMenuBar Action.swift
[7/31] Compiling MacMenuBar ActionResponder.swift
[8/31] Compiling MacMenuBar ClosureAction.swift
[9/31] Compiling MacMenuBar NSObject+Extension.swift
[10/31] Compiling MacMenuBar NoAction.swift
[11/31] Compiling MacMenuBar SelectorAction.swift
[12/31] 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 | {
[13/31] 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 | {
[14/31] 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 | {
[15/31] 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 | // -------------------------------------
[16/31] 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 | // -------------------------------------
[17/31] 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 | // -------------------------------------
[18/31] 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 }
[19/31] 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 }
[20/31] 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 }
[21/31] Compiling MacMenuBar ForEach.swift
[22/31] Compiling MacMenuBar MacMenuItem.swift
[23/31] Compiling MacMenuBar MenuSeparator.swift
[24/31] Compiling MacMenuBar NSMacMenuItem.swift
[25/31] Compiling MacMenuBar NSMenu+Extension.swift
[26/31] Compiling MacMenuBar NSMenuItem+Extension.swift
[27/31] Compiling MacMenuBar KeyEquivalent.swift
[28/31] Compiling MacMenuBar KeyEquivalentParser.swift
[29/31] Compiling MacMenuBar ActionableMenuItem.swift
[30/31] Compiling MacMenuBar StandardMenuItemAction.swift
[31/31] Compiling MacMenuBar UtilFunctions.swift
BUILD FAILURE 6.1 macosSpm