Same issue with Xcode 14.2 on macOS Ventura 13.1
Post
Replies
Boosts
Views
Activity
In my case, I was using the FileManager's URL for saving the recording. I was using the below-mentioned code for creating the URL:
let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) let fileUrl = paths[0].appendingPathComponent("screenRecording-\(UUID().uuidString).mp4")
I have changed the way of creating URL. Instead of using FileManager I used NSTemporaryDirectory() as mentioned below:
let fileURL: URL = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("screenRecording-\(UUID().uuidString).mp4")
This resolved my issue.