Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 为什么链接器在构建我的应用程序时显示有关MPMoviePlayerController的错误?_Iphone_Cocoa Touch_Xcode - Fatal编程技术网

Iphone 为什么链接器在构建我的应用程序时显示有关MPMoviePlayerController的错误?

Iphone 为什么链接器在构建我的应用程序时显示有关MPMoviePlayerController的错误?,iphone,cocoa-touch,xcode,Iphone,Cocoa Touch,Xcode,构建时,我在链接阶段收到此错误: ".objc_class_name_MPMoviePlayerController", referenced from: literal-pointer@__OBJC@__cls_refs@MPMoviePlayerController in MovieDemoViewController.o "_MPMoviePlayerPlaybackDidFinishNotification", referenced from:

构建时,我在链接阶段收到此错误:

      ".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)
为什么会发生这种情况?

导入
#import <MediaPlayer/MediaPlayer.h>

您可能忘了链接MediaPlayer框架。右键单击项目,然后选择添加|现有框架。。。菜单项。从该列表中选择MediaPlayer框架。

我的头文件中没有这个文件/hi friendz的可能副本告诉我如何将视频文件保存到iphone