kyleneideck / BackgroundMusic

Background Music, a macOS audio utility: automatically pause your music, set individual apps' volumes and record system audio.
GNU General Public License v2.0
15.75k stars 667 forks source link

build and install error #742

Open GrimalDev opened 2 months ago

GrimalDev commented 2 months ago

Example bug report template

Description of the bug Hello, I was initially trying to get the arc browser fix from 3 days ago. I tried to install the pre release from the brew cask versions put it has been emptied. So i tried building from the source but I am getting an error when launching the build and install script. When I try to build the project by hand, I get an error too.

Steps to reproduce Execute the build and install script

Versions

Hardware M1

Debug logs

build and intall error logs

Failure in build_and_install.sh at line 593. The last command was (probably) awk '{ print $2 }' which exited with status 141. Error message: Internal script error. Probably a bug in this script.

Failure in build_and_install.sh at line 593. The last command was (probably) XCODE_VERSION=$((${XCODEBUILD} -version 2>/dev/null || echo 'V -1') | head -n 1 | awk '{ print $2 }') which exited with status 141. Error message: Internal script error. Probably a bug in this script.

build by hand error

xcodebuild: error: 'BGMDriver/BGMDriver.xcodeproj' does not exist.

kyleneideck commented 2 months ago

It should write a build_and_install.log file to the same dir as build_and_install.sh. That might have some useful info. It should tell you what the value of $XCODEBUILD was if you search for "Using xcodebuild:".

What does xcodebuild -version print for you?

As a workaround, you could just hardcode the XCODE_VERSION variable in build_and_install.sh.

Or you could just build Background Music.app in Xcode. The Arc Browser change doesn't affect the other components. Open BGM.xcworkspace in Xcode, set the scheme to "Background Music", in the menu bar: Product > Archive.