I\'m working on an app in xcode 4 and everything was going great, then something odd just started happening. Every time I make a new class (any type of class, ViewController
I just had the same problem and tried the above solutions. What worked for me was a clean of the project.
In the menu bar go to...
Product --> Clean
When that is complete hold down the option key and again in the menu bar go to...
Product --> Clean Build Folder
I'm not sure if the clean of the build folder was necessary. It's just become habit for me to do both. I have to do this more than I would like in Xcode.
this kind of problem occurs due to cyclic import. Say if you have a header file A.h and you are importing B.h and in B.h if you are again importing A.h then this will show the error A.h file not found...
In file inspector I found that my new .h
file path was not in Pod/Classes/
I have solved issue when discover that when i start type import "FileName"
there is autocompletion for some header files, but not for all. I guess that file that are not able to fill with auto complete are broken somehow.
Then i just delete them from XCode files tab and drag add again using "Add File" command.
Make sure the user header path was set right!
Open the .m file related to the .h file that gives the error. In the Utilities (on the right bar) go to the target membership and uncheck and check again (or just check if it was unchecked) the target you want.