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的勾选就可以了。

技术分享

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。