linker command failed with exit code 1 (use -v to see invocation)
错误具体信息如下:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_VRGCalendarView", referenced from:
objc-class-ref in InquirePlanViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方法:
将相应的出现错误的.m文件,加入到build phases中的compile sources中就可以,位置如下:

本文介绍了一种常见的iOS开发中的编译链接错误——ld: symbol(s) not found for architecture i386,并提供了解决方案。主要是由于缺少必要的.m文件导致链接器无法找到对应的类。解决方法为将缺失的.m文件添加到项目的Compile Sources中。
805

被折叠的 条评论
为什么被折叠?



