[英]Compiler error as clang: error: linker command failed with exit code 1 (use -v to see invocation) with completed app
[英]clang: error: linker command failed with exit code 1
我刚刚打开了一个我几个月没有工作过的项目,然后尝试编译并运行它。
我立即得到:
Undefined symbols for architecture i386:
"l_OBJC_PROTOCOL_$_VideoOverviewControllerDelegate", referenced from:
l_OBJC_CLASS_PROTOCOLS_$_FeaturedViewController in FeaturedViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1
而且没有大量的清洁措施可以解决此错误。 我检查了错误中引用的两个类,但找不到任何错误。
我也遇到了这个问题,最终发现我已经两次实施了相同的课程。 检查我们的类名称是否重复或重复的.h或.m文件。
只要确保您没有在文件中导入.m即可。
#import "myFile.m"
会给你这个错误...只是用一个
#import "myFile.h"
可能您在链接框架中没有VideoOverviewControllerDelegate(我不知道它是什么)。 如何为项目添加框架 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.