views:

41

answers:

2

When I build, I'm receiving this error during the linking stage:

      ".objc_class_name_MPMoviePlayerController", referenced from:
          literal-pointer@__OBJC@__cls_refs@MPMoviePlayerController in MovieDemoViewController.o
      "_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
          _MPMoviePlayerPlaybackDidFinishNotification$non_lazy_ptr in MovieDemoViewController.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
Build failed (2 errors)

Why is this happening?

A: 
#import <MediaPlayer/MediaPlayer.h>
Felixyz
hi friendz tell me the way to save video file to iphone
ANKS
+1  A: 

You are probably forgetting to link the MediaPlayer framework. Right-click on your project, and choose the Add | Existing Frameworks... menu item. Choose the MediaPlayer framework from that list.

Brad Larson