同一問題被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

我們有一個(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 里沒有寫。。。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的閱讀 13,681評(píng)論 5 6
  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,262評(píng)論 0 23
  • 她坐在明亮的餐廳里,隔著玻璃看車水馬龍,燈紅酒綠,霓虹燈的光閃耀,把天空肢解的支離破碎。一面玻璃分割成兩個(gè)世界,外...
    姜呢呢閱讀 410評(píng)論 9 6
  • 因?yàn)閶寢屔习?,我奶奶下地干活,所以我和弟弟和兩個(gè)姐姐玩兒姐姐們寫作業(yè)我在旁邊看著,我姐姐給我了五仁的月,在他家玩兒...
    高金鑫a閱讀 224評(píng)論 0 0
  • 即將迎來19歲的我,從現(xiàn)在開始堅(jiān)定自己對(duì)文字的信念,從現(xiàn)在開始活的精彩,從現(xiàn)在開始變成一個(gè)更好的自己,來到這里,期...
    你喜歡summer嘛閱讀 405評(píng)論 1 1

友情鏈接更多精彩內(nèi)容