2012-06-02 42 views
0

我正在嘗試使用hpp for iPhone app解析HTML URL內容。我想解析並獲取像這個URL http://www.example.com/mobile/403.html的數據。我使用過Google,發現hpple for HTML parsing。我從github得到了示例HTML解析hpple代碼。當我開始運行該項目下面的錯誤發生如何解決iPhone app hpple HTML解析'libxml/tree.h'文件未找到?

'libxml/tree.h' file not found

我已經加入這一行${SDKROOT}/usr/include/libxml2 in project->build->header search paths但不是它正在尋找這樣iPhoneos3.1.2/usr/include/libxml2/**,也是我已包括在我的項目libxml2.dylib and libxml2.2.dylib。我在XCode 4.2中工作。你能幫忙解決這個錯誤嗎?提前致謝。

+0

看到我的回答http://stackoverflow.com/questions/10577912/libxml2-tree-h-not-found-in-my-xcode-project/10577987#10577987 – Deepesh

+0

@elppa謝謝。我已經添加了libxml2框架。並在Project-> Build-> Header搜索路徑中添加$ {SDKROOT}/usr/include/libxml2。我仍然得到同樣的錯誤。你能幫我麼。提前致謝。 – Gopinath

+0

r使用beta xcode版本ya xcode – Deepesh

回答

0

確保您加入這一行:

${SDKROOT}/usr/include/libxml2 
在TARGETS-

>建設 - >頭搜索路徑...

,並確保你複製你的hpple文件到您的項目是這樣。 ..

enter image description here

enter image description here

祝你好運,希望這有助於!