Ios_ after importing the libxml2.2 framework, there is no workaround for <libxml/tree.h>

Source: Internet
Author: User

Due to the use of third-party HTML parsing class library Hpple,

After importing the frame libxml2.2.dylib,

Most of the things that Xcode still can't find <libxml/tree.h>,

The final resolution process is as follows:

1. Build P hases in Project-targets,

Find Link Binary with Libraries,

Click "+" to add "Libxml2.dylib"

2, the same, switch to buiild Settings tab,

By searching, find the "Linking" option box,

In the inside of "other Linker Flags" of the Debug and release inside click "+",

Add "-LXML2"

3, as in step 2, still in the Buiild Settings tab,

Search to find the Framework search,

Add "/usr/lib/libxml2.dylib";

4, as in step 3, still in the Buiild Settings tab,

Through the search, in "header Search Paths" and "User header search Paths" filled in $ (sdkroot)/usr/include/libxml2.

Then clean the project, just OK, you can use it.

Ios_ after importing the libxml2.2 framework, there is no workaround for <libxml/tree.h>

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.