Getting error "Undefined symbols for architecture i386" in xcode when headers are not missing

ios, ios5, xcode

Solution

I have multiple Xcode targets in this project and when I added the files to the project I added them under the wrong target making them not visible to the target I was trying to build.

Problem

When I try to compile my iPhone app and run it in the simulator I get errors complaining about undefined symbols. All of these symbols correspond to classes that are in included and not missing in my project. Example: ``` "_OBJC_CLASS_$_SHKFacebook", referenced from: objc-class-ref in FooAppDelegate.o objc-class-ref in FooLandingPageViewController.o objc-class-ref in FooAppDelegate.o ``` but SHKFacebook.h is not missing from the project. Any ideas? Thanks!

Original source