应用程序拒绝在Documents目录存储数据库 [英] App rejected for storing database in Documents directory

查看:133
本文介绍了应用程序拒绝在Documents目录存储数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用是最近从App Store拒绝在文件目录中存储的数据。我有感动,因为有最新变化,该数据库现在必须是可写的 - 它不再是只读的。

My app was recently rejected from the app store for storing data in the Documents directory. I had moved it there because with the latest change, the db must now be writeable - it's no longer read-only.

在研究解决方案,我读过,它实际上是preferable使用NSLibraryDirectory。这是如此,更重要的是,将这个地址苹果的顾虑?他们的抱怨是,应用程序让用户下载到多的内容(它不会让用户下载任何除非你的分贝),而且它的存储在数据太多,不正确的位置。数据为8 MB,但可能增长到约10或12 MB最大。

In researching the solution, I've read that it's actually preferable to use NSLibraryDirectory. Is this so, and more importantly, will that address Apple's concerns? Their complaint is that the app lets the user download to much content (it doesn't let the user download any unless you count the db), and that it's storing "too much data" in the "incorrect location." The data is 8 mb, but could grow to about 10 or 12 mb max.

推荐答案

其实,因为iCloud中的它。

Actually its because of iCloud.

,应用程序的文件目录同步到云和到其他设备,因此苹果希望开发人员能够存储在文档目录只是数据,他们希望与iCloud的同步。

using iCloud, Application's document directory is synced to cloud and to other devices and hence Apple want developers to store only that data in document directory which they want to sync with iCloud.

我才知道这种形式我的朋友谁的工作@苹果加州之一,我真的不知道,如果这种材料是苹果的文档。

I came to know this form one of my friends who work @ Apple California and I'm not really sure if this material is on Apple's documentation.

这篇关于应用程序拒绝在Documents目录存储数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆