I also have this problem in my AppKit Mac app that that has LSUIElement set to true in its Info.plist and displays an NSStatusItem (i.e., a menu bar icon) as its main interface.
My app also has a default Main Menu in its Main.storyboard file because it has a setting to decide if the app should show a Dock icon and menu bar or not (honored by callingNSApp.setActivationPolicy(…) at runtime).
I get these warnings about the default menus in the main menu bar when my app launches. For example, here's a warning about the default Services submenu in the main application menu for my app, SwitchGlass:
2025-11-11 07:55:35.456092-0500 0x384414 Error 0x0 4445 0 SwitchGlass: (AppKit) [com.apple.AppKit:Menu] Internal inconsistency in menus - menu <NSMenu: 0xc81288a00>
Title: Services
Supermenu: 0xc812889c0 (SwitchGlass), autoenable: YES
Previous menu: 0x0 (None)
Next menu: 0x0 (None)
Items: (
) believes it has <NSMenu: 0xc812889c0>
Title: SwitchGlass
Supermenu: 0x0 (None), autoenable: YES
Previous menu: 0x0 (None)
Next menu: 0x0 (None)
Items: (
) as a supermenu, but the supermenu does not seem to have any item with that submenu
These warnings don't seem to affect functionality (yet?), but I'd love a way to silence them.
Things I've tried: setting NSApp.mainMenu = nil in applicationWillFinishLaunching(…) or awakeFromNib() in my app delegate. The warnings appear in the console even before my app delegate's overridden awakeFromNib() is called!
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: