XCode gives me an error that cannot find header file, but command-clicking on the header opens the header file. The strange behaviour is that in another class of the same project the same header file is recognized. This header is inside a custom framework. I correctly import it with
#import <CustomFramework/FancyHeader.h>
XCode Version 6.1.1 (6A2008a)
What I have tried:
- Quit XCode,
- Clean project,
- Delete Derived data
But with no luck.
Edit
I noticed that I cannot import it in more than one file. What might be the problem?
Narrowing down:
A.h, A.m, B.h, B.m
Works
A.m:
#import A.h
#import B.h
#import <CustomFramework/FancyHeader.h>
Does not work if I add in B.h
#import <CustomFramework/FancyHeader.h>
Please help! :)