App/Documents limitation after 15.5

My app stores 3D models in the app's Documents folder. After the 15.5 update or one of the updates around then, the folder seems to only allow 34MB before refusing to let me write to the folder, regardless of how much memory is left on the phone. This has caused a critical problem, because the same file is being uploaded to my web service, due to the file not being over-written. Any idea what happened here?

the [Documents] folder seems to only allow 34MB before refusing to let me write … regardless of how much [free space] is left on the phone

iOS does not implement quotas like this. If writes are failing due to limited disk space — typically this means an error of ENOSPC, either directly or as the underlying error for some other error — it’s because there’s limited disk space.

How are you assessing the amount of free space? If you’re using the UI, be aware that the free space shown by the UI is ofter far removed from the free space available. If you pass the Documents directory to statfs, what does it return?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

App/Documents limitation after 15.5
 
 
Q