cocos2d::experimental::ui::VideoPlayer ios下编译问题分享

今天在工程里面使用了cocos2d::experimental::ui::VideoPlayer,

但是xcode编译居然不通过

报错信息如下:

  "_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
      - in libcocos2d iOS.a(UIVideoPlayer-ios.o)
      - in libcocos2d iOS.a(UIVideoPlayer-ios.o)
  "_MPMoviePlayerPlaybackStateDidChangeNotification", referenced from:
      - in libcocos2d iOS.a(UIVideoPlayer-ios.o)
      - in libcocos2d iOS.a(UIVideoPlayer-ios.o)
  "_OBJC_CLASS_$_MPMoviePlayerController", referenced from:
      objc-class-ref in libcocos2d iOS.a(UIVideoPlayer-ios.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

说是没有实现。

这个时候就要在工程配置里找到 Build Phases 中的 Link Binary With Libraries 添加 MediaPlayer.framework 包

ok,重新编译过了~

谢谢,解决了我的问题:7::7:

谢谢楼主,问题解决了:14: