I have created a static iOS library using this tutorial.
The library itself depends on the SocketRocket
library.
SocketRocket is included as #import <SocketRocket/SRWebSocket.h>
.
When I build the library, everything works fine. However, if I integrate my library into my sample project, the following error is thrown.
Lexical or Preprocessor Issue
'SocketRocket/SRWebSocket.h' file not found
How can the library build, but later fail to find the file in the sample project?
UPDATE
The Library has its Header Search Path set to "$(SRCROOT)/Vendor/SocketRocket/"
, the sample project has the Header Search Path set to "$(SRCROOT)/Vendor/MyLibrary/"
. If I set it to "$(SRCROOT)/Vendor/MyLibrary/**"
it finds SRWebSocket.h
and builds successfully. However, this includes all the SocketRocket Headers into the sample project as well and I don't want that.
UPDATE 2
I narrowed it down to the following
- In the static library one .h file uses
#import <SocketRocket/SRWebSocket.h>
to import SocketRocket. - If I add the library to my sample project, the SRWebSocket.h file is not found.
- How can I make the sample project recognise this file?