Classes imported in .pch file in xcode not working, why?
ios, objective-c, xcode
Solution
You will need to include the path to the headers in the "Header Search Path" build settings so that the preprocessor/compiler can find the headers.
Problem
I have a concern with my .pch file in Xcode 5. I have following code in my .pch file-- ``` #ifdef __OBJC__ #import <Example/Example.h> #endif ``` But when i use Example.h class in my code it is not working. When i use code like- ``` [Example sharedInstance]; ``` xcode shows error "Use od undeclared identifier Example". What is the problem?