build and install error
GrimalDev opened this issue · 2 comments
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
- Background Music: master branch after 0.4.3
- macOS: macosx Version 14.4.1 (23E224)
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.
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.
Sorry for the late response...
SO, turns out that while trying to build manually with xcode, I ran into a popup to update some libraries. I did it, made this archive build and re-ran the build-and-install script. Now perfect.
For anyone landing here, check your xcode version for anything wierd.
Thanks a lot @kyleneideck !