'Undefined symbols for architecture i386,clang: error: linker command failed with exit code 1

'Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_CustomTabBar", referenced from objc-class-ref inViewController.o
ld: symbol(s) not found for architecture i386

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

 

问题原因:我xcode版本为4.3.1,在引入CustomTabBar时候,4.3.1默认没有勾选targert,所以导致上述错误。

 

直接拉文件过来,记得勾选targert

 

转自:http://blog.csdn.net/top123xcode/article/details/7456889

posted @ 2012-09-20 10:52  superchao  阅读(709)  评论(0编辑  收藏  举报