*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: picture)'
Tommecpe opened this issue · 4 comments
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
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!
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 ?
Something like that should work:
pod 'OrigamiEngine', git: 'https://github.com/ap4y/OrigamiEngine.git'
It work ! thank you very much !!
Just an other question, why is the cocoapods not up to date ?