'Copyin a Classes from other project into Xcode 4 project gives Undefined symbols error

I am getting InfoViewControlelr.h .m .xib file from other project adding to existing project which I have in Xcode 4 but when I build the project it gives the following error

   Undefined symbols for architecture i386:
   "_OBJC_CLASS_$_InfoViewController", referenced from:


Solution 1:[1]

You have to notify the compiler to compile your InfoViewController that you've added. You can do this as following. Please go to Project's TARGET and choose Build Phases tab. And add your InfoViewController.m to Compile Sources section.

And last you can rebuild your project.

Solution 2:[2]

This can be caused by either neglecting to select "add to target" when importing the file, or by a descrepensy between the frameworks you are importing and the frameworks that have actually been imported into the project.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pei
Solution 2 Mick MacCallum