Aplikacje muszą być zgodne z wytycznymi dotyczącymi przechowywania danych iOS lub zostaną odrzucone
opracowałem aplikację, która może pobierać pliki mp3 (o rozmiarze od 6 do 8 MB) z Internetu i przechowywane w NSDocumentDirectory. moja aplikacja została dzisiaj odrzucona i mówi to
"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. "
Użyłem do przechowywania plików muzycznych w NSDocumentDirectory. więc po raz pierwszy to robię, nie mogę zrozumieć rzeczywistego problemu. co powinienem zrobić, aby ponownie przesłać moją aplikację do akceptacji.
oto mój kod
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];
naprawdę potrzebuję pomocy.