compiler construction - Why does Xcode not find the headers in a folder reference? -
for example drag in folder "sharedclasses
" shared source code files folder reference xcode. folder reference appears in project navigator , lists .h , .m files correctly.
but xcode refuses import them. tried kinds of import:
#import "utility.h" #import "sharedclasses/utility.h" #import <sharedclasses/utility.h>
none of them work. folder reference exists , contains "utilities.h
"
xcode knows folder comes must looks inside it?
because files in different folder project xcode not include in header search path. fix add entry user header search paths (select project, select build settings, filter "user header search paths", add value) in project points original folder reference. example in project i'm working on have code shared between several projects in workspace stored @ same folder level projects in folder named shared. user header search paths has following:
$(project_dir)/../shared/mysharedcode/
Comments
Post a Comment