Swift generics cause a loading error

Hello,

I've tried to make my AudioUnitViewController more generic. Here minimal example of what I have:

open class AudioUnitViewControllerBase<T>: AUViewController, AUAudioUnitFactory {
    private var audioUnit: AUAudioUnit?

    open override func loadView() {
        view = NSView()
    }

    open func createAudioUnit(with desc: AudioComponentDescription) throws -> AUAudioUnit {
        audioUnit = try MyAudioUnit(componentDescription: desc, options: [])
        return audioUnit!
    }
}

public class AudioUnitViewController: AudioUnitViewControllerBase<Any> {

}

It is successfully compiled, but works and passes validation only if AudioUnitViewControllerBase has no generic type paramers. auval prints following:

TESTING OPEN TIMES:
COLD:
FATAL ERROR: OpenAComponent: result: -10863,0xFFFFD591

What am I doing wrong?

Swift generics cause a loading error
 
 
Q