Getting error exporting song from iPod

I wrote a code to export a song from iPod to my application. When I try to export a song from iPod, I get the following error message.

AVAssetExportSessionStatusFailed: Error Domain=AVFoundationErrorDomain Code=-11820 "Cannot Complete Export" UserInfo=0x13b690 {NSLocalizedRecoverySuggestion=Try exporting again., NSLocalizedDescription=Cannot Complete Export} Error Domain=AVFoundationErrorDomain Code=-11820 "Cannot Complete Export" UserInfo=0x13b690 {NSLocalizedRecoverySuggestion=Try exporting again., NSLocalizedDescription=Cannot Complete Export} 

Please help me solve the problem.

+4
source share
2 answers

Exporting to mp3 requires two steps: exporting to mov and extracting audio data from the mov file to mp3. This library performs the export: https://github.com/tapsquare/TSLibraryImport (I am not an author, we use it in our project).

0
source

There may already be another file with the same name in this place. Delete the old file and this will work.

0
source

All Articles