iOS正在将28.0KB的未知数据从我的应用程序备份到iCloud [英] iOS is backing up 28.0KB of some unknown data from my app to iCloud

查看:148
本文介绍了iOS正在将28.0KB的未知数据从我的应用程序备份到iCloud的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序因未将不备份"属性设置为我使用的两个内部文件(并存储在/Documents中)而被拒绝.我已经设置了属性,它不再备份那些文件(〜11.5MB).

My app got rejected for not setting the "do not back up" attribute to two internal files I use (and store in /Documents). I've set the attribute, and it no longer backs up those files (~11.5MB).

尽管如此,它仍在备份28kb的某些数据.我从/Documents文件夹中删除了所有数据,并将它们放置到/tmp中,只是为了确保可以备份Documents中的任何内容.我确认/更改后我的应用程序的/Documents为空,但是iCloud设法找到28kb的数据进行备份.

It is still backing up 28kb of some data though. I removed all data from the /Documents folder and placed them to /tmp just to make sure that nothing in Documents could possibly be backed up. I verified /Documents is empty for my app after that change, and yet iCloud manages to find 28kb of data to back up.

如何确切确定该数据是什么以防止备份?我不想再次被拒绝,所以我想验证该应用程序在iCloud上是否占用了0kb的备份存储空间.

How can I determine exactly what this data is to prevent the backup? I don't want to get rejected again so I'd like to verify that the app takes 0kb of backup storage on iCloud.

谢谢

这是拒绝通知:

2.23

2.23

我们发现您的应用未遵循iOS数据存储 指南,这是《 App Store审查指南》所必需的.

We found that your app does not follow the iOS Data Storage Guidelines, which is required per the App Store Review Guidelines.

尤其是,我们发现在启动时,您的应用程序存储11.53 MB.到 检查您的应用存储了多少数据:

In particular, we found that on launch, your app stores 11.53 MB. To check how much data your app is storing:

  • 安装并启动您的应用
  • 转到设置">"iCloud">存储和存储".备份>管理存储
  • 如有必要,请点击显示所有应用"
  • 检查您应用的存储空间
  • Install and launch your app
  • Go to Settings > iCloud > Storage & Backup > Manage Storage
  • If necessary, tap "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, e.g., documents, new files, edits, etc., may be stored in the /Documents directory - and backed up by 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 marked 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.

有关更多信息,请参见技术问答1719:如何预防 要将文件备份到iCloud和iTunes?

For more information, please see Technical Q&A 1719: How do I prevent files from being backed up to iCloud and iTunes?.

有必要修改您的应用程序以满足iOS的要求 数据存储准则.对于离散的代码级问题,您可以 希望向Apple开发人员技术支持咨询.请确定 准备任何符号化的崩溃日志,屏幕截图或以下步骤: 重现DTS工程师跟进时的问题.为了 有关如何符号化和读取崩溃日志的信息,请参阅 技术说明TN2151了解和分析iPhone OS应用程序 崩溃报告.

It is necessary to revise your app to meet the requirements of the iOS Data Storage Guidelines. For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to prepare any symbolicated crash logs, screenshots, or steps to reproduce the issues for when the DTS engineer follows up. For information on how to symbolicate and read a crash log, please see Tech Note TN2151 Understanding and Analyzing iPhone OS Application Crash Reports.

推荐答案

事实证明,预编译的Google Analytics(分析)库在/Library目录中保留了一个名为googleanalytics.sql的小型数据库.发现该错误后,我将该文件的标志设置为不备份",它开始起作用:我得到了0kb的备份.

It turns out the pre-compiled Google Analytics library keeps a small database called googleanalytics.sql in the /Library directory. Once I discovered this, I set the flag to "do not back up" for that file and it worked: I get 0kb backup.

这篇关于iOS正在将28.0KB的未知数据从我的应用程序备份到iCloud的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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