Cannot find headers for libxml2 and iOS 5.0 SDK / Xcode 4.2 (beta 3)

It seems that many people have encountered this problem in the official Apple developer forums, but have not yet found a solution, so I want to try here :)

With iOS 5.0 SDK and Xcode 4.2 (beta 3) something seems to be corrupted, headers for libxml2 were not found. However, when I navigate the SDK directory, I clearly see a folder named libxml2 / libxml with all the headers I need to import.

I wonder if anyone found a solution for this. So far, the only solution I have found could work is to copy all the headers into the project, and then change the import path of the headers (removing the directory from the import). As far as I could see, this fixes all the errors, but it can't be difficult to change all the libxml import statements yet, since I don't like this “fix”.

+7
source share
1 answer

I found the solution in another answer on StackOverflow, I will post it here for convenience.

Instead of using ${SDK_ROOT}/usr/include/libxml2 , you should use "${SDK_DIR}"/usr/include/libxml2 .

See: LibXML2.dylib and Xcode4

+19
source

All Articles