Simulator issues with AUv3 Example code

Hi, I'm not totally sure if this is purely a simulator issue, since I'm still in the process of installing the iOS 11 beta on a device.


I've downloaded the example code from https://developer.apple.com/library/content/samplecode/AudioUnitV3Example/Introduction/Intro.html, and each of the stand-alone applications run fine in the Simulator on iPad Pro 10.5", however, none of the Extensions will open up properly in the iOSAUv3Host app.


I am also not able to see the AU's from the Filter or Instrument published in the list of available Effects or Instruments.


Is there something I'm missing here that isn't in the README, or does it just "not work" in the Simulator? Has anyone else gotten this working?


I am also seeing this error when I run the Host, but I don't know if it's related or not:


2017-06-25 13:15:55.566828+0200 AUv3Host[6996:1279773] [UIFocus] Focus system disabled

2017-06-25 13:16:00.063359+0200 AUv3Host[6996:1280866] [audiocomp] 178: registration server connection invalidated

2017-06-25 13:16:00.063451+0200 AUv3Host[6996:1279773] [audiocomp] 170: registration server proxy error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated.}

2017-06-25 13:16:00.125837+0200 AUv3Host[6996:1279773] 35: CoreSimulator failed to supply SIMULATOR_AUDIO_SETTINGS_PATH; volume and mute will not work.

2017-06-25 13:16:00.126372+0200 AUv3Host[6996:1279773] [AudioHAL_Client] AudioHardware.cpp:780:AudioObjectSetPropertyData: AudioObjectSetPropertyData: no object with given ID 0

2017-06-25 13:16:00.127335+0200 AUv3Host[6996:1279773] 177: Failed to set processVolumeScalar on device. Error: 560947818

Replies

I had this same error, in case I am compiling for watchOS.



2017-07-07 18:18:19.403968-0300 TestingAV WatchKit Extension[7368:2935401] [audiocomp] 178: registration server connection invalidated

2017-07-07 18:18:19.404003-0300 TestingAV WatchKit Extension[7368:2928791] [audiocomp] 170: registration server proxy error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated.}

I ran into the "not able to see the AU's from the Filter or Instrument" problem, when running on an actual iPad. The only error message I noticed was something about a bundle display name. The AUv3Host project didn't have one. Go to the Info.plist, add a "Bundle display name" String item, and set the value to e.g. "AUv3Host". After I did that, I got an error message saying something about being unable to connect to a server, but there was a clue there, in the form of the substring "[i-aa]". That looked like "inter-app audio" to me, and indeed that was the problem. In Xcode 9.2, click on the AUv3Host project in the left pane, click on Capabilities in the primary pane, and switch on the Inter-App Audio capability. After doing that, I had to manually delete the app from my iPad, because Xcode complained that it couldn't "update" it with the new capability, but once I got the rebuilt version installed, hey presto, I could now see all AU Extensions, including FilterDemo, InstrumentDemo, and all the third-party AUE's from music apps I had purchased.


I'm sure it's written down somewhere, that you have to enable Inter-App Audio in order to use AUv3 Extensions, but I sure couldn't find it.