Hey, > On Sep 15, 2021, at 11:38 AM, Gabriel Zachmann via Cocoa-dev > <cocoa-dev@lists.apple.com> 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 (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