Search code examples
c#.netavaudioplayermonomac

MonoMac - AVAudioPlayer crash


We are having an issue using AVAudioPlayer on MonoMac.

We get this warning on the console:

Class AVAudioPlayer is implemented in both ?? and /System/Library/Frameworks/AVFoundation.framework/AVFoundation. One of the two will be used. Which one is undefined.

Which is followed by Segmentation fault: 11 and an immediate crash.

I'm assuming my MonoMac app is somehow loading the iOS libraries for AVAudioPlayer. Any ideas?


Solution

  • Xamarin just released Xamarin.Mac, which fixes this issue.