Skip to content
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

Great work - Extremely useful - Hell to install on M1/Ventura #18

Open
FawziD opened this issue Jan 18, 2023 · 7 comments
Open

Great work - Extremely useful - Hell to install on M1/Ventura #18

FawziD opened this issue Jan 18, 2023 · 7 comments

Comments

@FawziD
Copy link

FawziD commented Jan 18, 2023

I've been using Volume Control for a while. Until I switched to an M1 MBPro with Ventura.
I use it because while at my desk I use my MBPro's speakers simultaneously with an HomePod mini via AirPlay. The HomePod mini plays lower to mid frequencies while the MBPro plays mids to highs. Which gives me a better listening experience than either one alone. So I just needed something to control both levels at the same time.

I finally decided to try installing it again. Reinstalled Xcode I had uninstalled it because I didn't need the CLT that I needed before for a reason that escapes me. And I reactivated my developper account that I had setup to install Beta software.
Anyway, I had never compiled an app with Xcode before (some AppleScripts and messed with ResEdit eons ago for software localization). The provisioning part in particular was painful to understand and to execute. And I had to remove VC from Accessibility in Security & Privacy and relaunch it for it to finally work.

Anyway, all this to say, first of all Thank you for this great little utility !
And second, I'm sure a step by step guide to get it to run on Ventura would be greatly appreciated for all the Ventura and later OS users that will inexorably grow in numbers.

Thanks again !

@FawziD FawziD changed the title Great work - Extremely practical - Hell to install on M1/Ventura Great work - Extremely useful - Hell to install on M1/Ventura Jan 18, 2023
@alberti42
Copy link
Owner

alberti42 commented Jan 20, 2023 via email

@Drarig29
Copy link

Drarig29 commented Apr 11, 2023

First of all, thank you for this tool.

I tried to write a step-by-step guide on how to compile for Ventura, first trying without Xcode installed, then trying without opening Xcode at all. But it was required to add a developer account to be able to sign the program.

So in the end, I had to install Xcode, open it and add my developer account. But there was still an error because I wasn't allowed to sign your bundle identifier org.Alberti42.VolumeControl.

image

I tried a bunch of things, and I saw your note on running codesign --force --deep -s - /Applications/Volume\ Control.app, but it requires the application to have been built.

The easiest solution is just to change the bundle identifier. In my case, I changed it to com.drarig29.VolumeControl.

Cons:

  • I changed the bundle identifier. (but I'm not going to publish this so I guess it's okay)
  • Automatic updates do not work. (but I don't mind checking this repository from time to time)
  • You have to rebuild the app after each reboot. (see step 7)

So here is the step-by-step guide:


Prerequisites:

  • Xcode must be installed.

Once Xcode is installed:

  1. git clone https://github.com/alberti42/Volume-Control
  2. Open the cloned project in Xcode
  3. Hit ⌘ 1 to open the Project navigator
  4. Click on project name "Volume Control" (the root of the tree) and go in the "Signing & Capabilities" tab.
  5. In "Team", choose your own Personal Team (you may need to add your Apple ID account).
  6. Change the "Bundle identifier" from org.Alberti42.VolumeControl to something unique: org.<your_unique_id>.VolumeControl
  7. Ensure you are allowed to compile and signing is up-to-date:
    • If you recently rebooted, you'll have to hit ⌘ B in Xcode to build the project. This will trigger "Update signing" for you (which is not possible in command line).
  8. Remove the PhaseScriptExecution phase in the "Build Phases" tab.
  9. Close Xcode (you won't need it anymore) and run xcodebuild in the project folder to create a release build.
  10. You'll find the application in ./build/Release.
  11. Just drag it in your "Applications" folder! 🎉

image

@cambrown1
Copy link

Thank you Andrea for creating this, and Drarig29 for the step-by-step instructions. It's all working for me now, and life is great!
Much appreciated both of you.

@jonbhanson
Copy link

I tried building, but I recieved the following error:

Set: Entry, ":CFBundleVersion", Does Not Exist
Set: Entry, ":CFBundleShortVersionString", Does Not Exist
Command PhaseScriptExecution failed with a nonzero exit code

Any advice on how to resolve this error?

@Drarig29
Copy link

Drarig29 commented Oct 17, 2023

I had the same issue and removed the PhaseScriptExecution build phase here:

image

I added this as step 8 in my instructions.

@jonbhanson
Copy link

Perfect, thanks @Drarig29. As soon as I deleted the PhaseScriptExecution phase, it built fine. Installed it and it's working once again!

@Drarig29
Copy link

Drarig29 commented Jan 5, 2024

Just adding a new keyword to the thread: Sonoma

(this is the update after Ventura, which still requires the instructions above)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants