title: iOS App Documents directory being dropped
body: <p>In my iOS app I am saving data in the documents directory, and it is all being flagged to NOT sync to the cloud as Apple suggests.</p>
  
  <p>The issue I am having is every once in a while my app's documents directory is being deleted, which results in a loss of the user's data. I am having trouble finding when this happens, as it is rare and there is no one thing that is causing the issue. </p>
  
  <p>I initially assumed the folder grew too large, so the OS just dropped the folder, but Apple does not state any size limit or anything for the documents directory, at least not that I could find. </p>
  
  <p>Has anyone had a similar issue or does anyone have any info that should shed some light on my issue?</p>
  
  <p>Thanks</p>
  
  <p>EDIT:</p>
  
  <p>The issue has just come up again, and here is a screenshot of my apps documents with no documents directory, it was just deleted:</p>
  
  <p><img src="https://i.stack.imgur.com/japCW.png" alt="enter image description here"></p>
  
  <p>Xcode also keeps spitting out this message after it happened every few seconds:</p>
  
  <blockquote>
    <p>Error: Failed end transaction from database 'cannot commit - no
    transaction is active'</p>
  </blockquote>