私のアプリでは、mp3 ファイルを Library/caches にダウンロードします。このファイルは、FileURL,sampleCode: の AVAudioPlayer では再生できません:
_audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:fileUrl error:&error];
            if (error) {
                NSLog(@"%@",[error localizedDescription]);
            }
            _audioPlayer.delegate = self;
            [_audioPlayer prepareToPlay];
            [_audioPlayer setNumberOfLoops:-1];
            [_audioPlayer play];
URL は次のようになります。
開始時に、このメソッドが呼び出されます- audioPlayerDecodeErrorDidOccur: error:. 説明: 操作を完了できませんでした。(OSStatus エラー 560100710。) Google は、このエラー コードについて何も述べていません。
ただし、このファイルは app Bundle に入れると iTunes と AVAudioPlayer で再生できます。私はそれを理解することができません.誰かがそれを修正する方法を教えてもらえますか?