ap4y / OrigamiEngine

Lightweight audio engine for iOS and OSX with flac, cue, mp3, m4a, m3u support.
http://ap4y.github.com/OrigamiEngine/
MIT License
545 stars 117 forks source link

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: picture)' #27

Closed Tommecpe closed 10 years ago

Tommecpe commented 10 years ago

I'm using this great library for the first tie on iOS 7 (it work great on my iOS 6 apps) When I'm trying to play an audio file, I've got the following error:

 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: picture)'

The app crash on:

CoreAudioDecoder.m line: 208
[self.metadata setObject:[self imageDataFromID3Tag:audioFile] forKey:@"picture"];

[self imageDataFromID3Tag:audioFile] is nil.

Is this a well known error ? I'm I doing something wrong ?

FYI: I'll trying to play the following mp3: http://cpor.alwaysdata.net/podcasts/accords-et-contributions-avec-les-gouvernements.mp3

ap4y commented 10 years ago

I pretty much sure that you are using previous version of the library, current master and tag 1.0.12 has a patch that fixed that issue (c36a0e9237). Unfortunately, I didn't submit it to the cocoapods repo, so you have to point to this repository from the podfile. Hope this helps!

Tommecpe commented 10 years ago

Thank you for your answer. I'm using cocoapods, so apparently I don't have the last version with the correction.

You say I can point to this repository in my podfile. Can you explain how to do it ?

ap4y commented 10 years ago

Something like that should work:

pod 'OrigamiEngine', git: 'https://github.com/ap4y/OrigamiEngine.git'
Tommecpe commented 10 years ago

It work ! thank you very much !!

Just an other question, why is the cocoapods not up to date ?