ios unit test 工程选择release时候报错Undefined symbols for architecture i386

Undefined symbols for architecture i386:

"_OBJC_CLASS_$_ItemReturn", referenced from:

objc-class-ref in JenknisDemoTests.o

"_OBJC_CLASS_$_ViewController", referenced from:

objc-class-ref in ViewControllerTest.o

(maybe you meant: _OBJC_CLASS_$_ViewControllerTest)

ld: symbol(s) not found for architecture i386

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

解决方法: edit scheme,然后在build选项中找到对应出错的target,然后去掉run的勾选就可以了。

时间: 2024-08-29 12:03:12

ios unit test 工程选择release时候报错Undefined symbols for architecture i386的相关文章

oc调用c++接口时 报错 Undefined symbols for architecture i386:

当在oc中调用c++中的方法时,发现说c++中的方法没定义或是找不到 Undefined symbols for architecture i386: "_desTYData", referenced from:-[TuYoo encryptParametersWithDict:] in libtuyoo.a(TuYoo.o)ld: symbol(s) not found fo 记得c++中的方法定义是要这样定义的 extern"C" { const char *d

微信分享SDK导入报错 Undefined symbols for architecture i386:

Undefined symbols for architecture i386:   "operator delete[](void*)", referenced from:       +[WeChatApiUtil EncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)       +[WeChatApiUtil NsDataEncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)       +

微信SDK导入报错 Undefined symbols for architecture i386:"operator delete[](void*)", referenced from:

异常信息: Undefined symbols for architecture i386:  "operator delete[](void*)", referenced from:      +[WeChatApiUtil EncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)      +[WeChatApiUtil NsDataEncodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o)    

iOS:编译错误Undefined symbols for architecture i386: _OBJC_CLASS_$_XXX", referenced from: error

Undefined symbols for architecture i386: _OBJC_CLASS_$_XXX", referenced from: error 这个意思为无法找到名为XXX的类,进而还会导致一个无法连接的一个报错,只要把这个解决了就好了 既然没有这个类,我们就需要添加这个类 第一步: 选择项目文件,找到TARGETS 第二步: 选择 Build Phases 第三步: 选择 Compile Sources 第四步: 添加 XXX.m 类(切记,添加的是.m文件) 然后可能

iOS 错误 undefined symbols for architecture i386

undefined symbols for architecture i386 这个错误困扰了我几个小时. 网上很多问这个问题的,回答基本上都是说在 target 里面去的 armv64 什么什么的. 但问题根本不在这里! 巨简单的问题,就是缺少必要的库!进入 target - general,添加 libz.dylib 完事! 可是网上的各种答案对我造成了深深的误导,使我白白浪费了几小时时间.我就奇怪问什么这个答案网上就是找不到,而我也是偶然发现. 但是没什么用这个库,以及这个库具体作用是什么

iOS Undefined symbols for architecture xxx问题的总结

今天项目刚更换了最新的播放器,结果在touch上build时遇到了Undefined symbols for architecture armv7的问题,在5s跟6上没有问题.之前就不少次遇到过这样的问题,都是匆匆解决了然后继续修复别的bug,今天看到了一篇讲的还算比较细的博客,就顺手拿了过来,之后在补充结合自己项目的理解吧. 以下为引用内容:原文链接http://www.th7.cn/Program/IOS/201410/296636.shtml 简单来说,Undefined symbols基

ios build时,Undefined symbols for architecture xxx问题的总结

这2天升级到xcode6,用ios8 SDK编译老项目,各种Undefined symbols for architecture xxx,精神差点崩溃了.不过最后还是解决了,本文简单总结一下 简单来说,Undefined symbols基本上等于JAVA的ClassNotFoundException,最常见的原因有这几种: build的时候没有加framework 比如说,有一段代码我用了OpenGL,引入了头文件 #import <OpenGLES/ES2/glext.h> build的时候

iOS出现 Undefined symbols for architecture armv7 std::basic_string&lt;char, std::char_traits&lt;char&gt;

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

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 多个人共同操作同一个项目或拷贝项目时,经常会出现类似这样的问题: Undefined symbo