Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MenuBar not opening? - build and run locally? #66

Closed
alexisgaziello opened this issue Jan 10, 2025 · 6 comments
Closed

MenuBar not opening? - build and run locally? #66

alexisgaziello opened this issue Jan 10, 2025 · 6 comments

Comments

@alexisgaziello
Copy link

alexisgaziello commented Jan 10, 2025

Hey!

Thanks for the app. I was hoping to maybe contribute. Could you help me out building the project?

After cloning and running the project, the Dock icon shows up, but not the menu icon. Is there anything I should set up? Sorry, I am not that used to working with Swift/Mac OSX projects.

Screenshot 2025-01-11 at 12 11 24 AM
@mhaeuser
Copy link
Owner

Probably welcome to the hellhole that is Apple codesign. In case you used the prebuilt app before, best run uninstall.sh and reboot before launching your own. Might be something is weirdly cached. Have you adjusted the Xcode project build variables to match your development certificate? I’m not at the Mac, so I can’t take screenshots right now, sorry:

BT_CODESIGN_CN = "Apple Development: Marvin Häuser (87DYA6FH9K)";

@alexisgaziello
Copy link
Author

I did sign the app with my own certificate to be able to build the app, but I haven't modified the BT_CODESIGN_CN variable. What should I set it to? Why do we need this variable? Do I need to change anything else?

@alexisgaziello
Copy link
Author

I tried setting it to Apple Development: Alexis Gaziello (244U9R97J4) (replaced with my name and the number I got it from "DEVELOPMENT_TEAM", but its still not working.

@mhaeuser
Copy link
Owner

Run codesign --display --verbose=4 on your application bundle and use the Authority value (gives you the 87DYA6FH9K from BT_CODESIGN_CN). TeamIdentifier is entirely separate and is the EMH49F8A2Y prefix of BT_DAEMON_CONN. I don't remember whether you actually need to change the latter, probably not unless you plan to notarize it. In case you do, it appears in various other locations as well, so grep for it.

This is required because daemon installation and communication is authenticated by the signature of the GUI app. I'm not aware of any Xcode features to automatically populate these values, so this awkward mess is what I am left with.

@alexisgaziello
Copy link
Author

Understood.

Set up the value for the 5 targets, clean & built, but still no luck. Menu bar icon is not appearing.

@mhaeuser
Copy link
Owner

Bizarre. Maybe check Console and make sure to wait a little, there are multiple retries to connect to the daemon. Did you get the prompt to install the daemon to begin with?

Repository owner locked and limited conversation to collaborators Feb 24, 2025
@mhaeuser mhaeuser converted this issue into discussion #79 Feb 24, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants