拒绝:“2.23:应用程序必须遵循iOS数据存储指南",我们没有在文档文件夹中保存任何数据 [英] Rejection: "2.23: Apps must follow the iOS Data Storage Guidelines", We do not have any data saved in documents folder

查看:22
本文介绍了拒绝:“2.23:应用程序必须遵循iOS数据存储指南",我们没有在文档文件夹中保存任何数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的App被App拒绝了,原因是:

Our App has been rejected from App, the reason is:

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.

特别是,我们发现在发布和/或内容下载时,您的应用程序存储超过 2 MB 的数据.要检查您的应用存储了多少数据:

In particular, we found that on launch and/or content download, your app stores over 2 MB data. To check how much data your app is storing:

  • 安装并启动您的应用
  • 前往设置">iCloud">存储与存储"备份 > 管理存储
  • 如有必要,请点按显示所有应用"
  • 检查应用的存储空间

iOS 数据存储指南表明,只有用户使用您的应用程序创建,例如文档、新文件、编辑等,应该由 iCloud 备份.

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.

您的应用程序使用的临时文件应仅存储在/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工程师跟进您,请准备好提供:

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. When the DTS engineer follows up with you, please be ready to provide:

  • 关于拒绝问题的完整详细信息
  • 截图
  • 重现问题的步骤
  • 符号崩溃日志 - 如果您的问题导致崩溃日志

如果您难以重现报告的问题,请尝试测试工作流程,如https://developer.apple.com/library/ios/qa/qa1764/技术问答QA1764:如何重现只有 App Review 或用户的崩溃或错误正在看.

If you have difficulty reproducing a reported issue, please try testing the workflow as described in https://developer.apple.com/library/ios/qa/qa1764/Technical Q&A QA1764: How to reproduce a crash or bug that only App Review or users are seeing.

但是,我们没有数据存储在/document 文件夹中.我们的关键数据存储在Library/Application Support/bundle_id 并且此目录设置为不备份",然后是Apple 文档中的示例代码,将NSURLIsExcludedFromBackupKey 属性添加到该目录中.

However, We have no data stored in /document folder. Our key data is stored in Library/Application Support/bundle_id and this directory is set to 'do not back up' followed by the example code in apple document that add NSURLIsExcludedFromBackupKey attribute to the directory.

我们下载的缓存文件放在/tmp目录下,使用后删除.所以实际上没有通过 iCloud 备份的数据.事实上,我们已经按照说明测试了多次检查 iCloud 存储:

Our downloaded cache files are put in /tmp directory and deleted after use. So there is really no data that is backed-up via iCloud. In fact we have tested numerous of times checking the iCloud storage as instructed:

  • 安装并启动您的应用
  • 前往设置">iCloud">存储与存储"备份 > 管理存储
  • 如有必要,请点按显示所有应用"
  • 检查应用的存储空间

然而,我们始终只能找到 0.3KB 的 iCloud 使用量.我刚刚从我的 iPhone 上截取了一个屏幕截图:

and yet we could only find 0.3KB iCloud usage for all time. I have just taken a screen shot from my iPhone:

它显示确实只使用了 0.3KB(屏幕上的第二个应用程序).

It shows indeed only 0.3KB used (The second app on the screen).

任何想法,还有什么会导致这种拒绝?我们有点相信这是苹果审核团队的错误,有什么办法可以通过电话联系到苹果审核团队吗?

Any idea, what else will cause this rejection? We some kind of believing that this is apple review team's mistake, if there is any way that we could reach apple review team by phone?

推荐答案

仅仅因为 Documents 目录为空并且您在 Application Support 中的目录上设置了 do-not-backup 标志并不意味着没有其他任何东西可以备份.

Just because the Documents directory is empty and you are setting the do-not-backup flag on your directory in Application Support does not mean there is nothing else that could get backed up.

Performance Tips 一章中的 App Programming Guide for iOS 有一个部分说明:

The App Programming Guide for iOS in the Performance Tips chapter has a section which states:

您无需以任何方式为备份和恢复操作准备您的应用.具有活动 iCloud 帐户的设备会在适当的时候将其应用程序数据备份到 iCloud.对于插入计算机的设备,iTunes 会对应用程序的数据文件执行增量备份.但是,iCloud 和 iTunes 不备份以下目录的内容:

You do not have to prepare your app in any way for backup and restore operations. Devices with an active iCloud account have their app data backed up to iCloud at appropriate times. For devices that are plugged into a computer, iTunes performs an incremental backup of the app’s data files. However, iCloud and iTunes do not back up the contents of the following directories:

  • /AppName.app
  • /Library/Caches
  • /tmp
  • 因此,除了 Documents 文件夹之外,还有其他区域可以备份.也许您在图书馆或应用程序支持的某个地方隐藏了另一个文件?

    so there are areas other than the Documents folder that can get backed up. Maybe you have another file lurking someplace in Library or Application Support?

    这篇关于拒绝:“2.23:应用程序必须遵循iOS数据存储指南",我们没有在文档文件夹中保存任何数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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