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

查看:24
本文介绍了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

我们发现您的应用没有遵循 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">存储与存储"备份 > 管理存储
  • 如有必要,请点按显示所有应用"
  • 检查应用的存储空间

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 操作系统应用程序崩溃报告.

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天全站免登陆