in the init method i use
audioEngine = AVAudioEngine()
to init my audioEngine and then after button "record" is click i start my engine..
audioEngine.prepare()
do{
try audioEngine.start()
}catch {
print("audioEngine start failed")
}
but i comes to an error error : libc++abi.dylib: terminating with uncaught exception of type NSException