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
我們有一個(gè)7M的Sqlite在Bundle里,第一次運(yùn)行時(shí)會(huì)被copy進(jìn)document里,根據(jù)上文的意思,我找到https://developer.apple.com/library/ios/qa/qa1719/_index.html
大概意思就是說Document目錄下的文件會(huì)自動(dòng)備份在iCloud里,但是7M的數(shù)據(jù)太大了,如果不需要備份可以設(shè)置NSURLIsExcludedFromBackupKey(iOS5.0 以后)或者直接#import <sys/xattr.h> 設(shè)置com.apple.MobileBackup這個(gè)KEY。
隨后我設(shè)置了鍵值,確保它不會(huì)備份。
結(jié)果第二天,拒絕的原因如期而至,我仔細(xì)查看之后發(fā)現(xiàn),我把這個(gè)NSBundle的文件Path 和 Document 的 Path 弄反了。。。于是繼續(xù)提交。
這個(gè)時(shí)候,老板已經(jīng)有點(diǎn)毛了,說“如果這次還沒有通過, 你就給我公司每個(gè)人買一罐啤酒”。。。
這一次,沒有拒絕沒有來,但是美國AppStore 直接給老板打電話說“這是一個(gè)小問題,你們?cè)趺催€沒有解決? 這一次先給你們通過,但是這個(gè)問題必須要解決!”
然后我,仔細(xì)回想了一下,我們sqlite 是可以更新的,而且第一次打開就會(huì)自動(dòng)更新到最新的版本,所以,我去看了一下下載更新的代碼。 果然,我只是在更新的destinationBlock里寫了這個(gè)不備份,completionHandlerBlock 里沒有寫。。。