IOS Application Document Pack

In my iOS application, I save the data in the document directory, and all of them are marked as NOT cloud sync, as Apple suggests.

The problem I am facing is all, and sometimes my application document directory is deleted, which leads to the loss of user data. I am having trouble finding when this happens, as it is rare and there is nothing that causes the problem.

It was originally supposed that the folder became too large, so the OS simply deleted the folder, but Apple did not specify any size or anything for the document catalog, at least not what I could find.

If someone had a similar problem or do you have information that should shed light on my problem?

thanks

EDIT:

The problem reappeared, and here is a screenshot of my application documents without a document directory, it just was deleted:

enter image description here

Xcode also continues to spit out this message after it happened every few seconds:

Error: A completed transaction from the database failed 'could not be committed - no transaction is active'

+7
source share
1 answer

Are you sure this is a catalog of documents? Please check it. This is a known situation with the Cache and tmp directories, as indicated here .

+1
source

All Articles