Crashing iOS Examples

Hi there. I am kicking the iPlug2 tires and having trouble with all “iOS-APP with AUv3” examples. The MacOS examples are all building fine, but the iOS examples crash upon launch (they seem to build fine).

The initial error is always:

Thread 1: “[[busArray objectAtIndexedSubscript:(NSUInteger)element] setFormat:format error:&nsErr]: returned false, error Error Domain=NSOSStatusErrorDomain Code=-10868 "(null)"”

The error seems to stem from line 90 within IPlugAUPlayer, which is the following:

#if PLUG_TYPE != 1
  if (pluginInputFormat != nil)
    [audioEngine connect:audioEngine.inputNode to:avAudioUnit format: micInputFormat];
#endif

So, it seems the issue is somehow connected with the AU format. I get the same error no matter what example I choose (as long as it is iOS).

Any ideas what might be going on? Thanks!

(BTW, I’m on an M1 MacBook Pro with Xcode 14.3.1)

Are you running in the emulator or on hardware?

I’m getting these errors with the simulator. Thank you!

I can reproduce on the emulator - I’ve made an issue and that’s the place to track progress:

As covered in the thread if your default audio output on the laptop is set to in built speakers or headphones it should work. If you are on an external soundcard or hdmi etc. you will likely see this bug.

So the workaround for now is to use the in-built laptop audio.

1 Like