gpt4 book ai didi

iphone - 如何将ASIHTTPRequest集成到iphone项目中

转载 作者:行者123 更新时间:2023-12-03 19:20:05 28 4
gpt4 key购买 nike

 I am trying to add ASIHTTPRequest library to my iphone project 

我遵循了这些行

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

谁能帮我解决这个问题

问候

谢谢

*编辑:我按照以下步骤解决了我的问题 http://allseeing-i.com/ASIHTTPRequest/Setup-instructions ,如果有人想集成 ASIHTTPRequest,只需按照以下步骤操作即可:)*

最佳答案

您需要添加 XML 库(说明中缺少该库),并使用以下内容在项目 header 搜索路径中引用它:

$(SDKROOT)/usr/include/libxml2

关于iphone - 如何将ASIHTTPRequest集成到iphone项目中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3884320/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com