I'm working on writing a custom audio unit using the v3 APIs, and I'm having trouble getting them to instantiate correctly under some circumstances:
I can instantiate my Audio Unit if I include its view controller and AUAudioUnit subclass within the associated app (either directly or by linking them in from a framework) and then registering it using AUAudioUnit.registerSubclass(asComponentDescription:, name:, version:), but I haven't been able to get it to work by installing the .appex file anywhere. The system just doesn't find it. I have tried putting the .appex in ~/Library/Audio/Plug-Ins/Components, and /Library/Audio/Plug-Ins/Components but it never shows up in the list returned by AVAudioUnitComponentManager.sharedAudioUnitComponentManager().componentsMatchingDescription(). I created a minimal test project using the templates provided by XCode for an Audio Unit Extension, and I've been careful to be sure the Info.plist file for the extension has been filled in correctly.
Has anyone else successfully created a v3 audio unit and had it recognized by the system? If so, how?
Also, for v3 audio units with custom UIs, does one override requestViewControllerWithCompletionHandler()? This seems to be the only way to instantiate a custom view controller. The FilterDemo from AudioUnitV3Example instantiates a custom UI in the embedding view controller, which seems totally wrong if one wants to package the audio unit for use elsewhere in the system.
Thanks.