After iOS _ imports the libxml2.2 framework, the solution for <libxml/tree. h> cannot be found. libxml2.2libxml
Because the third-party Html parsing class library Hpple is used,
After the libxml2.2.dylib framework is imported,
When XCode still cannot find <libxml/tree. h>,
The final solution process is as follows:
1. Build Phases in project-Targets,
Find Link Binary With Libraries,
Click "+" to add "libxml2.dylib"
2. Similarly, switch to the Buiild Settings tab,
Search and find the "Linking" option box,
Click "+" in debug and release of "Other Linker Flags ",
Add "-lxml2"
3. Like step 2, it is still in the Buiild Settings tab,
Search to find the Framework Search,
Add "/usr/lib/libxml2.dylib ";
4. Like step 3, it is still in the Buiild Settings tab,
By searching, enter $(SDKROOT)/usr/include/libxml2 in "Header Search Paths" and "User Header Search Paths.
Then clean the project, and you can use it.
Libxml/tree Problems
When rpm-qf/usr/local/include/libxml2/libxml/xpathh is run in linux, the following error occurs: is not owned by any packge.
This package does not exist.