DivX decoder problem during iPhone development

I got a strange problem, and unable to play any kind of movies in my iPhone simulator. iPhone just gave a very unhelpful error messages – “The movie could not be played” if I try to play it from internet. Fortunately, if I play the movie locally, I can see some error message from the log :


[Session started at 2008-06-02 11:29:33 -0700.]
2008-06-02 11:29:43.933 TestMP[444:20b] forceGaplessRingtones = NO
2008-06-02 11:29:44.707 TestMP[444:4003] 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.0.sdk/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration

It might be caused by DivX decoder that I installed recently. After removing DivX Decoder & Encoder component from /Library/QuickTime, now I can play the movie locally.

But there is still another problem when I tried to play from internet – from my local server; it still won’t play the movies ! .. I tried to download it manually with firefox, and it seems like this is the problem with the mime type. After fixing mime types in the server, voila .. finally I am able to see it running in my iPhone

Tags: