tags:

views:

1038

answers:

1

So I have included the libxml2.2.dylib library into my iPhone XCode project to create some Xml and XPath parsing utilities. When I compile and run in Debug mode for both the Simulator and Device I have no problems, however, When I switch to Release mode I get...

"error: libxml/tree.h: No such File or directory" as well as other similar errors for the following .h files.

#import <libxml/tree.h>
#import <libxml/parser.h>
#import <libxml/HTMLparser.h>
#import <libxml/xpath.h>
#import <libxml/xpathInternals.h>

What do I need to do to ensure the libary is included and linked to the Release build?

+3  A: 

An error on the .h is a compile-time error with your Header Search Paths, not a .dylib or a linker error.

You have to ensure that /usr/include/libxml2 is in your Header Search Paths in your Release configuration.

cdespinosa
Thanks for the quick response, that was it!
JWD