#Import <Libxml/Tree.H> File Not Found After Xcode Update

#import libxml/tree.h file not found after xcode 6.1 update

in SearchPaths in both Project as well as in target

set HeaderSearchPath and LibrarySearchPaths to /usr/include/libxml2

this thing solve my issue may it will also help you

also set OTHER_LDFLAGS to -lxml2 to avoid any linker issues afterwards

libxml/tree.h no such file or directory

Follow the directions here, under "Setting up your project file."

Setting up your project file


You need to add libxml2.dylib to your project (don't put it in the Frameworks section). On the Mac,
you'll find it at /usr/lib/libxml2.dylib and for the iPhone, you'll
want the
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/usr/lib/libxml2.dylib
version.

Since libxml2 is a .dylib (not a nice friendly .framework) we still
have one more thing to do. Go to the Project build settings
(Project->Edit Project Settings->Build) and find the "Search Paths".
In "Header Search Paths" add the following path:

$(SDKROOT)/usr/include/libxml2

Also see the OP's answer.

libxml/tree.h file not found for tests

So it turns out that I had set the header search path "${SDKROOT}/usr/include/libxml2" in the main app target, but in order to use the library in my unit tests the header search path must also be set in the "[App name]Tests" target settings.

wsdl2objc: 'libxml/tree.h' file not found

This entry libxml/tree.h no such file or directory and the video http://sudzc.com/Tutorial/ObjC.mov helped me.

The solution was that i didn't have to add the libxml2.dylib in the "Linked Framework and Libraries" section, so i just deleted it, because i added it previousely.

Then in the Project -> "Build Settings" Tap i added the value "-lxml2" in the "Other Linker Flags" entry and in the "Header Search Paths" i added the value "/usr/include/libxml2".

Thats it.

hpple : 'libxml/tree.h' file not found

Oh, sorry, I just set the TARGETS's Build Settings forgot set the PROJECT -->Build Settings.

Xcode 4 libxml/... not found, new problem

Try adding $SDK_DIR/usr/include/libxml2 to Header Search Paths.



Related Topics



Leave a reply



Submit