Apps must follow the iOS Data Storage Guidelines or they will be rejected

前端 未结 7 1632
栀梦
栀梦 2021-02-04 21:40

i have developed an app that can download mp3 files (nearly 6 to 8 mb of size) from online and stored in NSDocumentDirectory. my app get rejected today and says that

         


        
7条回答
  •  佛祖请我去吃肉
    2021-02-04 22:00

    Once the iCloud is implemented in Apple, The Document directory data is somehow related with iCloud Storage. Hence Apple is now rejecting the applications using heavy data storage in document directory.

    You need to store the data at some other location. Store MP3 files At some other location.

    This link May Help You.

    http://www.techotopia.com/index.php/Working_with_Directories_on_iOS_4_%28iPhone%29

    I Hope it'll Solve your problem.

    Another is following..........

    The iOS Data Storage Guidelines indicate that only content that the user creates using your app, e.g., documents, new files, edits, etc., may be stored in the /Documents directory - and backed up by iCloud.

    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. 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.

    See http://developer.appcelerator.com/question/134926/ipad-app-rejected-ios-data-storage-guidelines for details.

提交回复
热议问题