BackgroundMusic
BackgroundMusic copied to clipboard
Issues that are either Xcode 13 or Big Sur related
Example bug report template
Don't worry if you have trouble getting some of this info. Just leave it out.
Description of the bug Two things need to be changed to run build_and_install.sh successfully with Xcode 13 on macOS Big Sur, otherwise it fails to install.
Steps to reproduce
Steps to reproduce the bug. This usually doesn't need to be super detailed.
- Check out the archive.
- Run the build_and_install.sh script.
- See build errors for both the driver and the XPC module.
Versions
Please complete the following information.
- Background Music: 0.4.0-SNAPSHOT-0d5965b
- macOS: 11.5.2 (20G95)
Hardware
Delete this part if you think it's probably not necessary.
- Computer: Mac mini (M1, 2020)
- Audio Device: External Headphones. Manufacturer: Apple Inc. Output Channels: 2
Other info I solved the two issues as follows:
- Deleted
INSTALL_GROUP
andINSTALL_OWNER
from BGMApp XPC and BGMDriver settings. This allowed the build to progress futher, but not complete. - Replaced
kAudioHardwareServiceDeviceProperty_VirtualMasterVolume
withkAudioHardwareServiceDeviceProperty_VirtualMainVolume
, and replacedkAudioHardwareServiceDeviceProperty_VirtualMasterBalance
withkAudioHardwareServiceDeviceProperty_VirtualMainBalance
. This appears to be required to build with the 12.0 SDK, even when not targeting 12.0 explicitly. This property appears to be the same exact fourCC code, but under a new name?