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

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

问题描述

我们的应用程序已被App拒绝,原因是:

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


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.

特别是,我们发现在启动和/或内容下载时,您的
应用程序存储超过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>存储&备份>管理存储

  • 如有必要,请点按显示所有应用

  • 检查应用的存储空间

  • 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数据存储指南表明只有
用户使用您的应用创建的内容,例如文档,新文件,编辑等,
应该由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.

可以重新创建但必须保留以便$ b正常运行的数据$ b你的应用程序 - 或者因为客户希望它可用于离线
使用 - 应标记为不备份属性。对于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 Developer Technical Support。当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:


  • 您的拒绝问题的完整详情

  • 屏幕截图

  • 重现问题的步骤

  • 符号化崩溃日志 - 如果您的问题结果在崩溃日志中

  • complete details of your rejection issue(s)
  • screenshots
  • steps to reproduce the issue(s)
  • symbolicated crash logs - if your issue results in a crash log

如果您在复制报告的问题时遇到困难,请尝试
测试工作流程,如$ b中所述$ b https://developer.apple.com/library/ios/qa/qa1764 / 技术Q& A
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中,此目录设置为不备份,后面是苹果文档中的示例代码,它将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>存储&备份>管理存储

  • 如有必要,请点按显示所有应用

  • 检查应用的存储空间

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

然而我们只能找到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目录为空并且您在应用程序支持中的目录上设置了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.

性能提示章节中的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:


  • < Application_Home> /AppName.app

  • < Application_Data> / Library / Caches

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