Undefined symbols for architecture armv7错误解决方法

Undefined symbols for architecture armv7:

"_OBJC_CLASS_$_BriefMainModel", referenced from:

objc-class-ref in BriefMainViewController.o

"_OBJC_CLASS_$_DDXMLDocument", referenced from:

objc-class-ref in BriefDetailViewController.o

objc-class-ref in BriefMainViewController.o

"_OBJC_CLASS_$_BriefDetailModel", referenced from:

objc-class-ref in BriefDetailViewController.o

"_OBJC_CLASS_$_MKNetworkEngine", referenced from:

objc-class-ref in BriefDetailViewController.o

objc-class-ref in BriefMainViewController.o

ld: symbol(s) not found for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Undefined symbols for architecture i386:

“_OBJC_CLASS_$_XXX”, referenced from:

objc-class-ref in XXX

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

如果真机调试就是 undefined symbols for architecture armv7错误!

发生这种错误通常是project.pbxproj这个文件引起的,尤其在多人合作开发的时候,svn提交不规范可能导致project.pbxproj发生错误,导致文件的引用不在project.pbxproj文件中。

xcode项目import文件会根据project.pbxproj来查找,查找不到文件的引用则会有上述的错误。

解决方法点击工程,在主界面中点击Build Phases,根据提示信息“XXX”来判断缺少什么文件,一般如果缺少自定义的文件,Complie Sources下没有XXX文件,那么就在Complie Sources中加入该文件。如果缺少类库,则在Link Binary With Libraries中加入该类库。

时间: 2024-10-14 05:56:20

Undefined symbols for architecture armv7错误解决方法的相关文章

iOS出现 Undefined symbols for architecture armv7 std::basic_string<char, std::char_traits<char>

Undefined symbols for architecture i386: “_OBJC_CLASS_$_XXX”, referenced from: objc-class-ref in XXX ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 如果真机调试就是 undefined symb

iOS工程集成支付宝错误Undefined symbols for architecture armv7

问题描述: 新工程中需要集成支付宝功能,于是咱就把支付宝的库给集成了进入然后就出现了下面这种错误了说,错误信息如下: Undefined symbols for architecture armv7: "CreateRSADataVerifier(NSString*)", referenced from: -[AppDelegate parseURL:application:] in AppDelegate.o ld: symbol(s) not found for architect

Undefined symbols for architecture armv7: "std::basic_string 类型错误

导入一个静态库的时候,发现一系列错误 Undefined symbols for architecture armv7: "std::string::resize(unsigned long, char)", referenced from: 类似这样的  最后在网上找了好多文章  有这篇 http://stackoverflow.com/questions/12968369/undefined-symbols-for-architecture-armv7-when-using-zxi

Xcode编译Undefined symbols for architecture xxx 错误总结

每次遇到这种错误就头痛,不知道要害死多少脑细胞了,就在这里做个总结吧 可能会遇到这几种错误:Undefined symbols for architecture armv7Undefined symbols for architecture armv7sUndefined symbols for architecture arm64Undefined symbols for architecture i386Undefined symbols for architecture x86_64 错误

xcode编译出错:Undefined symbols for architecture armv7

在xcode中编译oc和c++代码时出现如下错误: Undefined symbols for architecture armv7 "std::basic_ostream<char, std::char_traits<char> >& std::operator<<<char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<

Undefined symbols for architecture armv7

This problem has been driving me crazy, and i can't work out how to fix it... Undefined symbols for architecture armv7: "_deflateEnd", referenced from: -[ASIDataCompressor closeStream] in ASIDataCompressor.o "_OBJC_CLASS_$_ASIDataDecompress

用xcode6.3编译早期工程时出现Undefined symbols for architecture x86_64错误的解决办法(转)

Xcode升级到5.1 新特性之一就是默认让所有App都通过64位编译器编译.原来在Xcode5.0.x的时候默认的Standard architectures只有(arm7,armv7s),到5.1之后默认就带上arm64的参数了. 目前临时的解决办法是 1.把1.选中Targets—>Build Settings—>Architectures.把build active architectures only 改为 NO. 2. 把最下面的Valid Architectures中的arm64

duplicate symbols for architecture armv7错误

此种情况可能由以下2种方法引发: 1.有名字重复的文件. 2.在#import的时候将.h写成了.m. 排除以上2种情况一般就解决了~

iOS :undefined symbols for architecture x86_64错误解决方案

先让大家看一下,我报错的截图 我在网上查了一下,这个错误还是比较常见,原因就是少框架,少静态库了. 所以解决方案就是