xcode 如何将 ASIHTTPRequest 集成到 iphone 项目中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3884320/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to integrate ASIHTTPRequest to iphone project
提问by appleDE
I am trying to add ASIHTTPRequest library to my iphone project
i followed these lines
我跟着这些线
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.
but it not worked for me .while building it showing errors
但它对我不起作用。在构建它时显示错误
/Classes/Tests/GHUnitTestMain.m:32:26: error: GHUnit/GHUnit.h: No such file or directory
can anybody help me in this issue
有人能帮我解决这个问题吗
Regards
问候
Thanks
谢谢
*Edit : I fixed my problem by following these steps http://allseeing-i.com/ASIHTTPRequest/Setup-instructions, If any one want to integrate ASIHTTPRequest just follow those steps :)*
*编辑:我按照以下步骤解决了我的问题 http://allseeing-i.com/ASIHTTPRequest/Setup-instructions,如果有人想集成 ASIHTTPRequest 只需按照这些步骤:)*
回答by steve
You will need to add the XML library (it's missing in the instructions), and also make reference to it in the project header search paths with the following:
您将需要添加 XML 库(说明中缺少它),并在项目标头搜索路径中使用以下内容引用它:
$(SDKROOT)/usr/include/libxml2
$(SDKROOT)/usr/include/libxml2