录制视频遇到的异常崩溃
Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ’ -[AVCaptureMovieFileOutput startRecordingToOutputFileURL:recordingDelegate:] Cannot record to URL /private/var/mobile/Containers/Data/Application/1CD7C276-EE5B-4174-8AAF-3D343AC8A2DB/tmp/xp_moive/xp1.mov because it is not a file URL’
** 报以上异常的代码(如下:其余代码省略了) **
let fileName = "xp_moive/xp1.mov";
let path = NSTemporaryDirectory()+fileName;
guard