gpt4 book ai didi

iOS 正在将 28.0KB 的一些未知数据从我的应用程序备份到 iCloud

转载 作者:可可西里 更新时间:2023-11-01 05:31:41 25 4
gpt4 key购买 nike

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

不过它仍然备份了 28kb 的一些数据。我从/Documents 文件夹中删除了所有数据并将它们放在/tmp 中,只是为了确保不会备份 Documents 中的任何内容。更改后,我验证了我的应用程序的/Documents 为空,但 iCloud 设法找到 28kb 的数据进行备份。

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

谢谢

这是拒绝通知:

2.23

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

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

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

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.

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.

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.

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

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 的备份。

关于iOS 正在将 28.0KB 的一些未知数据从我的应用程序备份到 iCloud,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9743977/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com