2010-10-07 72 views
4
I am trying to add ASIHTTPRequest library to my iphone project 

我跟着這些線路如何ASIHTTPRequest集成到iPhone項目

Integrating ASIHTTPRequest 

ASIHTTPRequest is a powerful open source library written by Ben Copsey from All-Seeing Interactive (and he’s a fellow cocos2d developer too!) It makes it easy to post data and files, and has tons of other great features too like cache support, easy access to HTTP headers, cookie support, and much more. 

So let’s add ASIHTTPRequest to our project. Take the following steps: 

    1. Download the latest version of ASIHTTPRequest. 
    2. Back in FBFun, right click FBFun under 「Groups & Files」, click 「Add\New Group」, and name the group 「ASIHTTPRequest」. 
    3. Drag all of the files from the 「pokeb-asi-http-request-xxx\Classes」 to your new group. Make sure 「Copy items into destination group’s folder (if needed)」 is checked, and click 「Add」. 
    4. Repeat the above for the 2 files in 「pokeb-asi-http-request-xxx\External\Reachability」. 
    5. Right click the Frameworks folder, and click 「Add\Exisitng Frameworks…」. Choose CFNetwork from the list, and click Add. 
    6. Repeat the above for SystemConfiguration.framework, MobileCoreServices.framework, CoreGraphics.framework and libz.1.2.3.dylib (at the bottom of the list). 
    7. Compile your project. If it works, you’re integrated! 

We’ll explain about how ASIHTTPRequest works when we start to use it. But first, let’s integrate the JSON Framework while we’re at it. 

,但它不是。而構建它顯示錯誤

工作對我來說
/Classes/Tests/GHUnitTestMain.m:32:26: error: GHUnit/GHUnit.h: No such file or directory 

任何人可以幫助我在這個問題上

Regards

感謝

* 編輯: 我通過以下步驟 http://allseeing-i.com/ASIHTTPRequest/Setup-instructions, 如果任何一個想整合ASIHTTPRequest只要按照這些步驟:)固定我的問題 *

回答

2

您將需要添加XML庫(在說明中缺少它),並在項目標題搜索路徑中使用以下內容參考它:

$(SDKROOT)/ usr/include/libxml2