sbooth/CAAudioHardware

Can't build on Xcode 15.0 macOS 14.5: Cannot find 'kAudioAggregateDevicePropertyTapList' in scope

angstsmurf opened this issue · 3 comments

Got this when trying to build SimplePlayer-macOS.

Sounds similar to this, but the answers are not helpful:
https://stackoverflow.com/questions/70552206/swift-unable-to-find-in-scope

I'm new to this so probably missing something obvious.
Build CAAudioHardware_2024-07-27T13-32-59.txt

According to Apple's docs kAudioAggregateDevicePropertyTapList (and the other properties causing errors in your build) was added in macOS 14.2 but unfortunately those constants aren't decorated with availability macros in the CoreAudio headers. I would expect Xcode 15 to have those definitions in the SDK for macOS 14.5 but apparently that isn't the case. I will investigate a fix, but upgrading to a newer Xcode should also fix the problem.

Thanks!

So this was pretty much a duplicate of sbooth/SFBAudioEngine#268, in other words.

I'll try to make room on my HDD to update Xcode and report back.

I can confirm that it works fine with Xcode 15.4. Closing this.