Reputation: 44352
I'm referencing a static library.
I've dragged the library project into my app project and reference it relatively.
The .a
file from the library is linked into my app target.
I've added a reference to the librarys .h
files' folder via Header Search Paths
in the app project.
Then I add an import in my apps .pch
file to a particular .h
file from the library.
I build and get this error:
some.h: No such file or directory
The project is given info on where to find .h files for the library. Why can't it see them?
Upvotes: 3
Views: 624
Reputation: 25969
I don't think so. I just got one set up today piecing it together from the links below. I didn't include any .h files in search paths. In fact the one tutorial told me to remove any existing search paths (but I had to add them back for another library). Hope this gets you on the right track.
http://www.clintharris.net/2009/iphone-app-shared-libraries/
http://blog.stormyprods.com/2008/11/using-static-libraries-with-iphone-sdk.html
http://blog.costan.us/2009/02/iphone-development-and-code-sharing.html
Upvotes: 0