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.
Post
Replies
Boosts
Views
Activity
Same issue with Xcode 14.2 on macOS Ventura 13.1