You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A private macOS call that Apple removes would crash StableBar or keep it from launching #489
StableBar calls a few private macOS functions: to hide and reveal the menu bar (MenuBarDelay.swift), read Spaces (Spaces.swift) and lock the screen (WidgetActions.swift). Two kinds of them would fail hard if a macOS release removed the symbol:
CGSMainConnectionID, CGSSetMenuBarInsetAndAlpha, CGSGetActiveSpace, CGSCopyManagedDisplaySpaces and CGSCopySpacesForWindows are declared with @_silgen_name, which binds them when the app loads. Without any one of them, StableBar wouldn't launch at all.
SLSSetMenuBarVisibilityOverrideOnDisplay is looked up with a force-unwrapped dlsym (MenuBarDelay.swift:8). Without it, the first menu bar reveal crashes.
Lock Screen already handles a missing call with a message (#412).
Steps to reproduce
Not reproducible today: every symbol exists on macOS 26 and 27. It happens on the day a macOS update drops one. macOS 27 has already changed how the menu bar works (#366, #372).
Expected
A missing call turns its feature off (the bar can't hide the menu bar, the Spaces source shows an error), and the rest of StableBar keeps working.
Environment
Every release with these calls; the menu bar override came with #311.
Diagnosis
Look each symbol up at runtime in one place, as lockScreen() already does, so a missing one is nil and its caller degrades. ArchitectureRulesTests can then allow private API in that one file only and ban @_silgen_name.
Activity
stablebar-releases commentedon Nov 10, 2026
🎉 This issue has been resolved in version 0.12.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀