After iOS _ imports the libxml2.2 framework, it cannot find the solution of & lt; libxml/tree. h & gt;. libxml2.2libxml

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.