7

I am trying to install ASIHTTPRequest and i am having issues with libxml/HTMLParser, xmlsave, xpath and xpathInternals are missing. I have already included the libxml2.2.7.3 framework and followed the guide on their website to the letter.

any suggestions? alt text

Veeru
  • 4,936
  • 2
  • 43
  • 61
  • i have included CFNetwork,MobileCoreServices,SystemConfiguration,libbz2,Foundation,Coregraphics,libxml as well – Veeru Nov 29 '10 at 05:59

4 Answers4

12

You note that you've followed the instructions to the letter, though I don't see libz.1.2.3.dylib in your post or in your comments. Are you certain you have libz.1.2.3?

Note that it is not the same as libbz2 or libxml2. If you filter by dylibs it's right near the bottom.


Edited to add the real answer, as discovered through a lengthy back-and-forth in the comments

Adjust your Header Search Paths to: ${SDK_DIR}/usr/include/libxml2, as explained in the special instructions for ASIWebPageRequest at: allseeing-i.com/ASIHTTPRequest/ASIWebPageRequest

Matthew Frederick
  • 22,245
  • 10
  • 71
  • 97
  • i have removed everything and started it from scratch, now it works - not sure what went wrong, no build errors now, but when i try to use ASIHTTPRequest *request - get an error "_OBJC_CLASS_$_ASIHTTPRequest", referenced from: do i have to include anymore stuff? – Veeru Nov 29 '10 at 06:44
  • You shouldn't have to. You do need to #import "ASIHTTPRequest.h" in your class, of course. – Matthew Frederick Nov 29 '10 at 06:49
  • i have removed everything and started it from scratch, now it works - not sure what went wrong, no build errors now, but when i try to use ASIHTTPRequest *request - get an error "_OBJC_CLASS_$_ASIHTTPRequest", referenced from: objc-class-ref-to-ASIHTTPRequest in searchBar1ViewController.o; ld: symbol(s) not found do i have to include anymore stuff? – Veeru Nov 29 '10 at 06:50
  • Hi matthew, that ofcourse i did, i have include #import "ASIHTTPRequest.h" in my class already. The error is only after that – Veeru Nov 29 '10 at 06:51
  • Hmm. In the ASIHTTPRequest Google Group it appears that removing the external folder (with the ASIHTTP classes) and re-adding it has worked for some people. Here's one: http://groups.google.com/group/asihttprequest/browse_thread/thread/94a36911840a0076/411fab9a178db5d5 – Matthew Frederick Nov 29 '10 at 06:56
  • hmm, this is really troubling me. i have totally started a new project for testing, included all the frameworks, copied the classes into my project - and i have tons of errors without even writing a single line of code..the errors are same as my original post htmlparser.h,xmlsave.h,xpath.h,xpathInternals.h not found :( - trying to add a screen shot of my files to the main post – Veeru Nov 29 '10 at 07:22
  • 3
    Ah, from the screenshot I see that you're using the experimental ASIWebPageRequest (the web page downloader). Are you certain that's what you want? If so, have you adjusted your Header Search Paths: ${SDK_DIR}/usr/include/libxml2 ? See the special instructions for ASIWebPageRequest here: http://allseeing-i.com/ASIHTTPRequest/ASIWebPageRequest – Matthew Frederick Nov 29 '10 at 07:32
  • Ah okay - no, i do not with to use webpage request, i have removed webpagerequest and added the headersearchpath in the configuration; worked like a charm, thanks a lot matthew.. how do i set your post as the answer? – Veeru Nov 29 '10 at 07:47
  • Glad that solved it! Click the checkmark next to the answer to give credit for the right answer. – Matthew Frederick Nov 29 '10 at 07:56
  • the check mark next to your comment does'nt appear, so i could'nt pick it as an answer, i voted for the comment though:) thanks matthew – Veeru Nov 30 '10 at 05:24
  • Not next to the comment, next to the answer. You're most welcome, glad it helped. – Matthew Frederick Nov 30 '10 at 05:28
  • To whomever just downvoted this answer, would you please take a moment to explain why in a comment? I've got no problem with being told I gave a bad answer, but I'd at least like to know what was wrong with it. – Matthew Frederick Apr 14 '11 at 08:32
  • Note to all: `ASIWebPageRequest` is not a compulsory class. If you don't need it, delete its reference – Raptor Nov 17 '11 at 08:29
1

Make sure you put "$(SDKROOT)/usr/include/libxml2" in your Header Search Paths inside the build settings of your project

Fabiano Francesconi
  • 1,769
  • 1
  • 19
  • 35
0

Follow the ASIHttpRequest Setup Instructions:

Open the Build Phases tab, expand the box labeled Link Binary With Libraries then click the plus button.

linkbin

...and so forth.

Community
  • 1
  • 1
a paid nerd
  • 30,702
  • 30
  • 134
  • 179
-1

ASIWebPageRequest is not necessary unless you specifically need this, in fact its currently experimental. If you do want to use it you need to add the libxml framework.

adam0101
  • 1,198
  • 2
  • 16
  • 24