Repository navigation
Building from source
Roy Padina edited this page Oct 2, 2026
·
1 revision
No Xcode project: plain swiftc over the Swift files in the repo root.
git clone https://github.com/roypadina/SmartHiddenBar.git
cd SmartHiddenBar
./build.sh- Compiles
*.swiftwithswiftc -Ointobuild/SmartHiddenBar.app/Contents/MacOS/SmartHiddenBar. - Copies
Info.plistand the menu bar icons plusAppIcon.icnsfor the chosen icon set (SET=at the top of the script:fold-chevron,peek-striporcurtain-panel, fromAssets/icons/). - Signs the app with
codesign. - Installs to
/Applications/SmartHiddenBar.app, unless that copy is running. Quit it first and rerun.
Always run the /Applications copy, never the one in build/: the allow-list only matches the LaunchServices copy (How it works).
| Command | Result |
|---|---|
./build.sh |
Build, sign, install to /Applications. |
RELEASE=1 ./build.sh |
Ad-hoc signed build/SmartHiddenBar.zip (for GitHub Releases and the cask), prints its SHA-256. No install. |
CI=1 ./build.sh |
Ad-hoc compile check. No install. |
- Local builds use the code-signing identity named "KeyLayoutSwitcher Dev" if it exists in your keychain. A stable identity keeps the Accessibility grant across rebuilds.
- If it is missing, the script falls back to ad-hoc (
-), which changes the signature every build and re-prompts for Accessibility. To use your own identity, changeIDinbuild.sh. -
RELEASE=1andCI=1always sign ad-hoc.
open /Applications/SmartHiddenBar.app
osascript -e 'quit app "SmartHiddenBar"'
tail -f ~/Library/Logs/SmartHiddenBar.log
/Applications/SmartHiddenBar.app/Contents/MacOS/SmartHiddenBar --list # print every item: visible/hidden, x, nameReset a broken grant: tccutil reset Accessibility com.roypadina.SmartHiddenBar (Screen Recording: tccutil reset ScreenCapture com.roypadina.SmartHiddenBar).
Icon assets are regenerated by Assets/icons/gen.py. See Architecture for the code layout.
SmartHiddenBar · MIT © Roy Padina · More Mac apps · Support on Ko-fi ☕