未找到捕获的视频 URL

Captured Video URL not Found

当我专门 运行 这段代码时,我一直收到这个错误:这里可能有什么问题?我假设没有找到视频的 URL,但如果是这样,那为什么会这样?

Error copying image: Error Domain=NSURLErrorDomain Code=-1100 "The requested URL was not found on this server." UserInfo={NSLocalizedDescription=The requested URL was not found on this server., NSUnderlyingError=0x161215860 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} Error copying image and no previous frames to duplicate

这是导致问题的代码片段:

isRecording = true
        self.godDamnWebView.hidden = true
        UIView.animateWithDuration(0.5, delay: 0.0, options: [.Repeat, .Autoreverse, .AllowUserInteraction], animations: { () -> () in
            self.cameraButton.transform = CGAffineTransformMakeScale(0.5, 0.5)
            }, completion: nil)

        let outputPath = NSTemporaryDirectory() + "output.mov"
        let outputFileURL = NSURL(fileURLWithPath: outputPath)

        videoFileOutput?.startRecordingToOutputFileURL(outputFileURL, recordingDelegate: self)

最好的方法是:

let outputFileURL = NSURL(fileURLWithPath: NSTemporaryDirectory()).URLByAppendingPathComponent("output.mov")