同一问题被AppStore连拒三次的故事

3.0 BEFORE YOU SUBMIT:ICLOUD

Hello,

Thank you for your resubmission.

We still found that after launch and content download, your app stores 6.87 MB on the user's iCloud, which does not comply with the iOS Data Storage Guidelines.

Please verify that only the content that the user creates using your app, e.g., documents, new files, edits, etc. is backed up by iCloud as required by the iOS Data Storage Guidelines. Also, check that any temporary files used by your app are only stored in the /tmp directory; please remember to remove or delete the files stored in this location when it is determined they are no longer needed.

Data that can be recreated but must persist for proper functioning of your app - or because users 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 kCRUFLIsExcludedFromBackupKey attribute.

Resources

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

If you have difficulty reproducing a reported issue, please try testing the workflow described in Technical Q&A QA1764: How to reproduce bugs reported against App Store submissions.

If you have code-level questions after utilizing the above resources, 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

If you have any questions about the information provided, please reply to this messages and we will get back to you as soon as we can.

Best regards,

App Store Review

我们有一个7M的Sqlite在Bundle里,第一次运行时会被copy进document里,根据上文的意思,我找到https://developer.apple.com/library/ios/qa/qa1719/_index.html
大概意思就是说Document目录下的文件会自动备份在iCloud里,但是7M的数据太大了,如果不需要备份可以设置NSURLIsExcludedFromBackupKey(iOS5.0 以后)或者直接#import 设置com.apple.MobileBackup这个KEY。

随后我设置了键值,确保它不会备份。
结果第二天,拒绝的原因如期而至,我仔细查看之后发现,我把这个NSBundle的文件Path 和 Document 的 Path 弄反了。。。于是继续提交。

这个时候,老板已经有点毛了,说“如果这次还没有通过, 你就给我公司每个人买一罐啤酒”。。。

这一次,没有拒绝没有来,但是美国AppStore 直接给老板打电话说“这是一个小问题,你们怎么还没有解决? 这一次先给你们通过,但是这个问题必须要解决!”

然后我,仔细回想了一下,我们sqlite 是可以更新的,而且第一次打开就会自动更新到最新的版本,所以,我去看了一下下载更新的代码。 果然,我只是在更新的destinationBlock里写了这个不备份,completionHandlerBlock 里没有写。。。

你可能感兴趣的:(同一问题被AppStore连拒三次的故事)