I have an app with an in-app purchase mechanism in the app store. In-apps is a ZIP folder with sqlite dbs inside, so when you buy an application, the stream looks like this:
Buy in the application → download contents → the cycle launched update.sqlite db and insert the lines in app.slite db → conclusion and warning of successful completion.
This thread stops working with 10 or 10.1 or 10.1.1 (I do not have devices 10.0 and 10.1 to check it). Saving the context after the update.sqlite loop causes the application to freeze. Context:save does not return any errors, but the application does not complete the save process. The strange thing about the application now is the log:
(NSFetchedResultsController): Could not read cache file to update info timestamps repository
I have a search, this is already an error that is reported in but when I get the error log, I do not use NSFetchedResultsController, but I just did a fetchRequest to insert or retrieve objects. How:
NSManagedObjectContext *contesto=[(AppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext]; Image *newImage = [NSEntityDescription insertNewObjectForEntityForName:@"Image" inManagedObjectContext:contesto]; newImage.recipe=newRecipe; newImage.image=newImgs; NSError *error = nil; if (![contesto save:&error]) { NSLog(@"Unresolved error %@, %@", error, [error userInfo]); abort(); }
Why am I getting this error log without using NSFetchedResultsController directly? How can i fix this? I have to check if the update caused an update to my application in ios 10.
EDIT This is not a duplicate, because I do not use NSFetchedResultsController directly, but I am affected by the same error of the related question
source share