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>

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.