应用程序必须遵循 iOS 数据存储指南,/documents 中没有任何内容,但仍有一些 kbs 发送到 iCloud [英] Apps must follow the iOS Data Storage Guidelines, nothing in /documents but still some kbs sent to iCloud

查看:20
本文介绍了应用程序必须遵循 iOS 数据存储指南,/documents 中没有任何内容,但仍有一些 kbs 发送到 iCloud的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用被拒绝了,原因如下:

My app got rejected with for the following reason :

您的应用没有按照要求遵循 iOS 数据存储指南根据 App Store 审核指南.

Your app does not follow the iOS Data Storage Guidelines, as required by the App Store Review Guidelines.

您的应用将 4.0 MB 的数据备份到每个用户的 iCloud 空间发射.请务必为所有设置不备份"属性不是由用户生成或修改的数据.检查多少您的应用正在存储的数据:

Your app backs up 4.0 MB of data to each user's iCloud space on launch. Please be sure to set the "Do not back up" attribute for all data which is not generated or modified by the user. To check how much data your app is storing:

  • 安装并启动您的应用
  • 转到设置 > iCloud > 存储和备份 > 管理存储
  • 如有必要,请选择显示所有应用"
  • 检查应用的存储空间

iOS 数据存储指南表明,只有用户使用您的应用程序创建(文档、新文件、编辑等)可能存储在/Documents 目录中 - 并备份到 iCloud.

The iOS Data Storage Guidelines indicate that only content that the user creates using your app, (documents, new files, edits, etc.) may be stored in the /Documents directory - and backed up to iCloud.

您的应用程序使用的临时文件应仅存储在/tmp目录.请记住删除存储在此位置的文件当用户退出应用时.

Temporary files used by your app should only be stored in the /tmp directory. Please remember to delete the files stored in this location when the user exits the app.

可以重新创建但必须持久保存才能正常运行的数据您的应用程序或因为客户希望它可以离线使用使用应附加不备份"属性.对于 NSURL对象,添加 NSURLIsExcludedFromBackupKey 属性以防止相应的文件被备份.对于 CFURLRef 对象,使用对应的 kCFURLIsExcludedFromBackupKey 属性.

Data that can be recreated but must persist for proper functioning of your app or because customers expect it to be available for offline use should be appended with the "do not back up" attribute. For NSURL objects, add the NSURLIsExcludedFromBackupKey attribute to prevent the corresponding file from being backed up. For CFURLRef objects, use the corresponding kCFURLIsExcludedFromBackupKey attribute.

据我了解,存储在/documents 文件夹中的所有内容都将存储在 iCloud 中,并且该文件夹应仅包含用户生成的数据.现在,我已将/documents 中的所有文件移动到缓存文件夹中.但是,当我使用设备测试该应用程序时,仍有大约 28kb 的数据发送到 iCloud(根据 Organizer 的说法,该设备的应用程序沙箱的/documents 文件夹中没有任何内容).我的项目不支持 iCloud,所以当文档中没有任何内容时,我不明白正在发送什么.

From what I understand, everything that is stored in the /documents folder will be stored in iCloud, and this folder should only contain data that was generated by the user. Now, I've moved all my files that were in /documents into the cache folder. However when I test the app with a device, there's still about 28kb sent into iCloud (and there is nothing in the /documents folder of that device's app sandbox, according to Organizer). My project doesn't support iCloud, so I don't understand what's being sent when there's nothing in the documents.

有没有办法检查发送到 iCloud 的究竟是什么?

Is there a way to check what exactly is being sent into iCloud?

此外,我的项目现在面向 iOS 5.0.根据我在 5.0 中的理解,没有任何措施可以防止最终清除缓存文件夹.我应该只支持 >= 5.0.1 吗?

Also, my project right now targets iOS 5.0. From what I understand in 5.0 there is nothing in place to prevent an eventual purge of the cache folder. Should I only support >= 5.0.1?

推荐答案

现在,我已将/documents 中的所有文件移动到缓存文件夹中.

Now, I've moved all my files that were in /documents into the cache folder.

您是否错过了您引用的最后一段?您可以将数据标记为不备份",如该段所述.因此,请将您的文件保留在 Documents 目录中并适当标记它们.

Did you miss the last paragraph that you quoted? You can mark data as "do not back up," as described in that paragraph. So, leave your files in the Documents directory and mark them appropriately.

有没有办法检查发送到 iCloud 的究竟是什么?

Is there a way to check what exactly is being sent into iCloud?

将浏览器指向 http://developer.icloud.com

这篇关于应用程序必须遵循 iOS 数据存储指南,/documents 中没有任何内容,但仍有一些 kbs 发送到 iCloud的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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