I'm creating iPhone application using iPhone SDK 4.0.1 I've the following lines of code in my application related to notifications from media player
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(moviePreloadDidFinish:)
name:MPMoviePlayerLoadStateDidChangeNotification
object:m_player];
When building the app, I'm targeting the the product to iphone 3.1 Its building fine and running well on iphone 4.0 device But the app itself is crashing when running on iphone 3.1.3 OS. Its giving following message:
dyld: Symbol not found: _MPMoviePlayerLoadStateDidChangeNotification
Referenced from: /var/mobile/Applications/8572A1FF-488D-4F97-93DD-C06DBAD23B5B/OrangeDemo.app/OrangeDemo Expected in: /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer in /var/mobile/Applications/8572A1FF-488D-4F97-93DD-C06DBAD23B5B/OrangeDemo.app/OrangeDemo
How can I avoid this error.