Re: Building for 10.12
Re: Building for 10.12
- Subject: Re: Building for 10.12
- From: Rob Petrovec via Cocoa-dev <email@hidden>
- Date: Sun, 20 Mar 2022 12:18:50 -0600
> On Mar 20, 2022, at 11:41 AM, Quincey Morris
> <email@hidden> wrote:
>
> (Resending because I forgot to cc the list)
>
> On Mar 20, 2022, at 08:09, Gabriel Zachmann via Cocoa-dev
> <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden