拿到个项目之前接入的是早期的admob库 后面想更新下新库很简单的,然后就此小问题
墨迹了一天!表示半路研究Xcode鸭梨很大!
不废话连篇了!贴错误贴图片 贴贴贴。。。。。。。。。
"_MPMediaPlaybackIsPreparedToPlayDidChangeNotification", referenced from
-[CCVideoPlayerImpliOS playMovieAtURL:] in CCVideoPlayerImpliOS.o
-[CCVideoPlayerImpliOS preparedToPlayerCallback:] in CCVideoPlayerImpliOS.
"_MPMoviePlayerPlaybackDidFinishNotification", referenced from:
-[CCVideoPlayerImpliOS playMovieAtURL:] in CCVideoPlayerImpliOS.o
-[CCVideoPlayerImpliOS movieFinishedCallback:] in CCVideoPlayerImpliOS.o
-[CCVideoPlayerImpliOS cancelPlaying] in CCVideoPlayerImpliOS.o
"_OBJC_CLASS_$_CAEAGLLayer", referenced from:
objc-class-ref in EAGLView.o
"_OBJC_CLASS_$_GADRequest", referenced from:
objc-class-ref in AppController.o
"_OBJC_CLASS_$_MPMoviePlayerController", referenced from:
objc-class-ref in CCVideoPlayerImpliOS.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
一堆把!
symbol(s) not found for architecture i386 类似这种错误一般是由于库没加全或者重复加 产生的
之前用的是admob 不知道神马时候版本反正很早的,后面更新到最新的 各种问题
设置里面 build setting
Build Ative Architecture Only 这里面Yes改成No
Valid Architectures armv7s 有的话去掉 因为admob现在不支持其他架构好像
上面是一些库 加了好多 豆依赖到 但是官方文档没写 大家自己看看少了哪个加上去就可以了
有些时候引用不到库是因为系统库有些被引用到但是admob不会直接提示 就提示成类似 _OBJC_CLASS_$_GADRequest", referenced from:
这种原因比较多就了解这些分享下,如有不对请吐槽!!!!!!