I'm finding my way around Xcode and tried to build a basic live transcription app using the guidance on Apple's developer website (link)
The following line throws the error shown below:
guard let inputNode = audioEngine.inputNode else { fatalError("Audio engine has no input node") }
"Initializer for conditional binding must have Optional type, not AVAudioInputNode"
I've checked every stackoverflow post with similar errors and nothing has worked. I even downloaded the project from Apple from the above link and their code is error-free. I copied the code from their project into mine in case I had a silly mistake somewhere but in my project the exact same code always throws the exception.
I am using Xcode 9.2 and I'm developing for iOS 11.
Thanks!