0

I have developed a class called BaseVC by subclassing UIViewController class. When I try to inherit from my new BaseVC class I get this error:

Undefined symbols for architecture armv7s:
"_OBJC_METACLASS_$_BaseVC", referenced from:
_OBJC_METACLASS_$_ClassX in ClassX.o
"_OBJC_CLASS_$_BaseVC", referenced from:
_OBJC_CLASS_$_ClassX in ClassX.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

When I try to do it in a small test app everything is OK.

4

1 回答 1

0

Add your BaseVC.m in your Targets -> Build Phases -> Compile Sources . This should do the trick.

于 2013-08-22T14:43:29.403 回答