Apps müssen den iOS-Richtlinien zur Datenspeicherung entsprechen, da sie sonst abgelehnt werden

Ich habe eine App entwickelt, die MP3-Dateien (fast 6 bis 8 MB) von online herunterladen und in NSDocumentDirectory speichern kann. meine app wird heute abgelehnt und sagt das

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


 We found that your app does not follow the iOS Data Storage Guidelines, which is
 required per the App Store Review Guidelines. 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. "

Früher habe ich die Musikdateien in NSDocumentDirectory gespeichert. Also, dies ist das erste Mal, dass ich dies tue. Ich kann das eigentliche Problem nicht herausfinden. Was soll ich tun, um meine App erneut zur Annahme einzureichen?

Hier ist mein Code

 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);



 NSString *documentsDirectoryPath = [[paths objectAtIndex:0]stringByAppendingPathComponent:[NSString stringWithFormat:@"psalmsMusic%d.mp3",i]];
NSLog(@"ddddddd psalmsMusic%d.mp3",i);
i++;


 NSLog(@"path %@",documentsDirectoryPath);
 [receivedData writeToFile:documentsDirectoryPath atomically:YES];

brauche wirklich etwas Hilfe.

Antworten auf die Frage(7)

Ihre Antwort auf die Frage