Re: App can't be opened
Re: App can't be opened
- Subject: Re: App can't be opened
- From: Matt Jacobson via Cocoa-dev <email@hidden>
- Date: Wed, 15 Sep 2021 12:02:31 -0400
Hey,
> On Sep 15, 2021, at 11:38 AM, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> Thanks so much! I guess that missing symbol explains the crash.
>
> BTW: is it possible, to make Xcode produce an error message when I am using
> symbols that are not available on the deployment target?
> (unless they are guarded by @available() ...)
Normally, that does happen automatically.
However, in this case, it appears that AVAudioSessionInterruptionNotification
is missing an availability annotation for macOS. The compiler interprets this
as meaning “symbol is always available” and doesn’t warn you.
Since the online docs say that AVAudioSessionInterruptionNotification only
became publicly available in macOS 11.0, I suspect this is a bug in the
AVFAudio headers. (This is a somewhat frequent occurrence as iOS APIs get
moved over to macOS—often to support Catalyst—without a thorough audit of the
headers.)
Matt
_______________________________________________
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