> On Mar 20, 2022, at 11:41 AM, Quincey Morris 
> <quinceymor...@rivergatesoftware.com> wrote:
> 
> (Resending because I forgot to cc the list)
> 
> On Mar 20, 2022, at 08:09, Gabriel Zachmann via Cocoa-dev 
> <cocoa-dev@lists.apple.com> wrote:
>> 
>> Apparently, this caused it:
>> 
>> Symbol not found: _AVAudioSessionInterruptionNotification
>> 
>> Yes, I am using that function, and yes, it seems to be available only on 
>> macOS 11 and higher.
> 
> AVAudioSession doesn’t exist on macOS, in any version. I see that the 
> documentation page for AVAudioSessionInterruptionNotification lists it 
> incorrectly as supported on macOS 11+, but I can’t find anything in the SDK 
> headers to suggest where that incorrect information came from.
        Wow, good catch.  


> The real question is how the macOS target compiled at all. Can you shed any 
> light on how you got as far as linking, with an unknown 
> _AVAudioSessionInterruptionNotification symbol in your target?
        The header, in the 12.2 SDK, doesn’t list macOS as one of the available 
OSs for that constant, so Quincey is right. It shouldn’t have compiled for 
macOS.

OS_EXPORT NSNotificationName const  AVAudioSessionInterruptionNotification 
API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0));

—Rob


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to