Apps must follow the iOS Data Storage Guidelines or they will be rejected in app that contains .sqlite3

时光怂恿深爱的人放手 提交于 2019-11-28 02:19:18

问题


I created an ebook app and my app contains a lot of images and pdf files

I was putting the downloaded images in /Library/Caches and putting the pdf files and .sqlite3 file in /Documents

now my app is rejected and this is the reason

2.23 Apps must follow the iOS Data Storage Guidelines or they will be rejected

Is this means that I have to move all what in /Documents to /Library/Caches? If I let the .sqlite3 file in /Documents, will the app reject again?

Thanks in advance.


回答1:


2.23 means that you should only put stuff into /Documents that cannot be re-downloaded from the internet. i.e. user-generated files. Everything that CAN be re-downloaded should be in Library/Caches.

The reason for this rule is that /Documents gets backed up and users don't like if you waste their precious iClould backup space.




回答2:


You don't necessarily have to put the downloaded PDFs and databases into the Caches directory. An alternative would be to use the "do not backup" attribute, as described here: Technical Q&A QA1719 - How do I prevent files from being backed up to iCloud and iTunes?.



来源:https://stackoverflow.com/questions/13896757/apps-must-follow-the-ios-data-storage-guidelines-or-they-will-be-rejected-in-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!