Just in case, someone had the same problem as me, I thought I posted my solution here.
My problem was that the predicate methods run in the background thread, so I sent a stream "file io", which processes any entries in the files, deletes, etc. in the application.
The problem is that the temporary file is deleted as soon as the delegate method that happened when I switched the threads ends. So when I tried to access the file in my io thread file, it was already deleted.
My solution was to parse the file in NSData in the delegate method and then use NSData to write to the file system in my io thread file.
Nick kirsten
source share