iOS在项目中使用ASIHttpRequest

首先加入lib库:

iOS在项目中使用ASIHttpRequest_第1张图片


common+b一下,发现找不到头文件:

iOS在项目中使用ASIHttpRequest_第2张图片


查看项目的配置:(搜索Header search paths)

iOS在项目中使用ASIHttpRequest_第3张图片


双击Header Search Paths,加入如下:

${SDK_DIR}/usr/include/libxml2

iOS在项目中使用ASIHttpRequest_第4张图片


再来编译一次:

出现如下问题:

iOS在项目中使用ASIHttpRequest_第5张图片


需要加入对应的lib:

iOS在项目中使用ASIHttpRequest_第6张图片

iOS在项目中使用ASIHttpRequest_第7张图片

iOS在项目中使用ASIHttpRequest_第8张图片

iOS在项目中使用ASIHttpRequest_第9张图片


在编译一次:

iOS在项目中使用ASIHttpRequest_第10张图片


现在终于可以使用ASIHttpRequest了


你可能感兴趣的:(iOS在项目中使用ASIHttpRequest)