美文网首页
linker command failed with exit

linker command failed with exit

作者: 4VZhang | 来源:发表于2017-03-28 18:38 被阅读67次

问题: 

BIZDWPlayerHomeViewController文件中引用的DWMoviePlayerController不存在 

或者缺少DWMoviePlayerController.m文件

解决方法如下:

1.在building phrase 下的  compile sources 中查找是否有相关.m文件

2.如果该.m文件包含在 某个静态库或者动态库 ****.a/ ****.framework中,则在building phrase 下的 Link Binary With Libraries 中查找是否导入该 ****.a/****.framework

3.查看项目中是否有该.m文件

4.检查项目中是否在导入.h头文件时,错误地导入了.m文件

2017.11.27更新

framework not found xxxx for x86 not found IOSurface for arm64

当前最新的是Xcode9,自己不怎么追新,所以没有更新一直使用的是Xcode8;在导入第三方库Bugtags的时候,根据官方文档提示:使用cocopods下载最新的2.4.2版本的,结果运行报出如上错误。根据自己的经验和常识解决'linker command failed with exit code 1',未能解决该问题;

最后注意到'linker command failed with exit code 1'上面xcode给出的提示信息:

'Framework not found IOSurface for architecture arm64'     'Framework not found FileProvider for architecture x86_64',

通过查找相关文档得知这是Xcode8使用了Xcode9编译过的一个通用库导致的,猜测Bugtags最新版本使用Xcode9编译的,才会出现这个小插曲!

解决方法:使用最新的版本的Xcode9或者和我一样为了节省时间改换用以前版本的第三方库!

参考文献:

1.Framework not found IOSurface for architecture arm64/armv7

2.Framework not found IOSurface for architecture arm64

相关文章

网友评论

      本文标题:linker command failed with exit

      本文链接:https://www.haomeiwen.com/subject/plqsottx.html