Developers of Mac Menu Bar apps beware: there's a permission of sorts in System ...

@_inside@mastodon.social

Developers of Mac Menu Bar apps beware: there's a permission of sorts in System Settings → Menu Bar that can disable your app's ability to add icons to the Menu Bar since macOS Tahoe, and this is not very well documented or supported by the API. The symptom at runtime will be that setting an NSStatusItem's isVisible property to true results in the property immediately reverting back to false and the icon not showing up. This took me a while to figure out 😅