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

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

问题描述

我的应用因以下原因遭到拒绝:

My app got rejected with for the following reason :


您的应用不符合iOS数据存储指南,因为需要$ b App Store评论指南$ b。

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

你的应用程序在
发布时为每个用户的iCloud空间备份4.0 MB的数据。请务必为用户未生成或修改的所有
数据设置不备份属性。要查看您的应用存储了多少
数据:

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>存储和备份>管理存储

  • 如有必要,请选择显示所有应用

  • 检查应用的存储空间

  • Install and launch your app
  • Go to Settings > iCloud > Storage and Backup > Manage Storage
  • If necessary, select "Show all apps"
  • Check your app's storage

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.

可以重新创建但必须保持以便$ b正常运行的数据$ b你的应用程序或因为客户希望它可用于离线
使用时应附加不备份属性。对于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数据存储指南,/文档中没有任何内容,但仍然会向iCloud发送一些kbs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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