Iphone simulator’s mess : get your AVFoundation audio and video working !
avril 7, 2009
I got yesterday an error when playing a wav or mp sound within the Iphone simulator. My code and everything was right, but the console displayed an error about a quicktime library.
Error loading /Library/QuickTime/DivX Decoder.component/Contents/MacOS/DivX Decoder: dlopen(/Library/QuickTime/DivX Decoder.component/Contents/MacOS/DivX Decoder, 262): Symbol not found: _SCDynamicStoreCopyConsoleUser
Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
My configuration is Macbook under Mac OS 10.5 + iphone SDK 2.2.1.
How to solve this issue ?
If you have the same kind of message, it means (as far as i understand) your iphone simulator is looking for a codec on your shared library, and found one suiting for the playing of your file, but which is not linked to your simulator.
The best way i found was to uninsall with the “DivX uninstaller” program.
If you don’t have any “DivX uninstaller”, you can either:
1. Reinstall divx codecs from quicktime thirdparty code download center, and then uninstall the library using this program
or
2. Become root and type some rm -rf on the directory of the evil codec (something like /Library/QuickTime/DivX)
I’m now able to play wav files without any problem.Mp3 and m4v should be OK too.
Entry Filed under: iphone programming. Mots-clefs: iphone, iphoneOS.
Trackback this post | Subscribe to the comments via RSS Feed