gpt4 book ai didi

ios - 如何验证 iOS 数据存储指南

转载 作者:可可西里 更新时间:2023-11-01 06:08:11 26 4
gpt4 key购买 nike

我们的应用由于以下原因被拒绝。

We have also 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 and/or content download, your app stores 6.1MB. 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., should be 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.

我们将书籍的封面存储在 NSDocument 目录中,这些不是用户特定的,因此根据 iOS 数据存储指南,我们使用 NSURLIsExcludedFromBackupKey 属性来防止这些文件形成备份。但是我们的应用程序仍然被拒绝。

我们如何验证我们是否遵循 iOS 数据存储准则。苹果有没有提供什么工具?

最佳答案

随着 iOS 8 的推出,Apple 似乎更加严格地执行了这一点。

这是 iOS Data Storage Guidelines , 如果你不能将它移动到/Library/Caches 目录,这里有一个 Technical Q&A了解如何标记文件以免备份。

似乎没有办法检查模拟器,但一旦将其推送到设备,您就可以按照 Apple 上面的建议来验证使用了多少空间:

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

关于ios - 如何验证 iOS 数据存储指南,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22477495/

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