this is my code : i use this code to record the iPhone output audio by using Audio Unit then saving the output in output.caf but the output.caf file is empty any body have
The RemoteIO Audio Unit does not record audio output, only input from the microphone. The output is not connected to the mic input.
If you use RemoteIO for playing audio, you can copy the copy the same buffers you feed the output callback for playing audio to a file writer as well. But that's only for raw audio content you play via RemoteIO.