Open herrmayr opened 4 years ago
I found the root of the problem, but I don't have a fix: When the path contains a space, the error I mentioned above appears.
The iOS path to the app's temp folder does contain a path since it's called "Application Support", so I can only hot-fix this issue by using the app's user-visible documents folder, which is not ideal ...
Thanks for pointing the cause of the problem. While waiting the library fixes this problem, I remove any space in the first argument of FlutterAudioRecorder
.
The temporary fix such as:
var fileDir = 'example name of file';
var recorder = FlutterAudioRecorder(
'$fileDir.wav'.replaceAll(' ', ''),
audioFormat: AudioFormat.WAV,
);
In the latest build of my app, without making any changes to the part where the app uses flutter_audio_recorder, the app crashes when trying to start a recording.
Here is the error:
In Xcode, the debugger jumps to this line:
Since I haven't changed anything around the audio recorder implementation, I suspect a new bug regarding iOS with this package? Android works fine by the way...
Of course, I might have made a mistake I'm currently anaware of - any hints would be greatly appreciated!