Open armadsen opened 9 years ago
I believe @pwightman is working on this.
Yep, I'll get on this next.
I think this is good enough for now. You get a descriptive error message and a link to a wiki page with steps to solve the problem.
Reopening because I'd like to add real (NSError) error handling to these.
This issue was raised by the fact that
MIDIDestinationCreate()
fails on iOS (6+) unless the audio key is set for UIBackgroundModes. See here:Beginning in iOS 6, apps need to have the audio key in their UIBackgroundModes in order to use CoreMIDI’s MIDISourceCreate and MIDIDestinationCreate functions. These functions return kMIDINotPermitted (-10844) if the key is not set.
This also causes MIKMIDISequencer to fail on iOS unless that's set
We should make sure the error message for that particular case is descriptive to guide people toward the solution.