AVAudioPlayer Nie odtwarza utworów wewnątrz folderów?

Użyłem tego kodu do odtwarzania utworów, które nie odtwarzają piosenek w folderach lub folderach folderów z wyjątkiem katalogu Dokumenty.

NSString *songname=[NSString stringWithFormat:@"%@",songArray[songIndex]];
NSLog(@"songname:%@",songname);

NSString* saveFileName = songname;

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *path = [documentsDirectory stringByAppendingPathComponent:saveFileName];
NSURL *url = [[NSURL alloc] initFileURLWithPath: path];
self.audioPlayer=[[AVAudioPlayer alloc] initWithContentsOfURL:url error:NULL];

questionAnswers(1)

yourAnswerToTheQuestion