BackgroundMusic icon indicating copy to clipboard operation
BackgroundMusic copied to clipboard

Issues that are either Xcode 13 or Big Sur related

Open kode54 opened this issue 2 years ago • 0 comments

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.

  1. Check out the archive.
  2. Run the build_and_install.sh script.
  3. 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:

  1. Deleted INSTALL_GROUP and INSTALL_OWNER from BGMApp XPC and BGMDriver settings. This allowed the build to progress futher, but not complete.
  2. Replaced kAudioHardwareServiceDeviceProperty_VirtualMasterVolume with kAudioHardwareServiceDeviceProperty_VirtualMainVolume, and replaced kAudioHardwareServiceDeviceProperty_VirtualMasterBalance with kAudioHardwareServiceDeviceProperty_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?

kode54 avatar Aug 24 '21 08:08 kode54