ASIHTTPRequest开源类项目导入问题及解决方法
2016-01-20 15:19
239 查看
在静态库project中加入ASIHTTPRequest导出lib.a。放到project里编译出一下错:
Undefined symbols for architecture armv7:
"_deflate", referenced from:
-[ASIDataCompressor compressBytes:length:error:shouldFinish:] in lib.a(ASIDataCompressor.o)
"_inflateInit2_", referenced from:
-[ASIDataDecompressor setupStream] in lib.a(ASIDataDecompressor.o)
"_deflateEnd", referenced from:
-[ASIDataCompressor closeStream] in lib.a(ASIDataCompressor.o)
"_inflateEnd", referenced from:
-[ASIDataDecompressor closeStream] in lib.a(ASIDataDecompressor.o)
"_kUTTagClassMIMEType", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in lib.a(ASIHTTPRequest.o)
"_kUTTagClassFilenameExtension", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in lib.a(ASIHTTPRequest.o)
"_deflateInit2_", referenced from:
-[ASIDataCompressor setupStream] in lib.a(ASIDataCompressor.o)
"_UTTypeCreatePreferredIdentifierForTag", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in lib.a(ASIHTTPRequest.o)
"_inflate", referenced from:
-[ASIDataDecompressor uncompressBytes:length:error:] in lib.a(ASIDataDecompressor.o)
"_UTTypeCopyPreferredTagWithClass", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in lib.a(ASIHTTPRequest.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:
缺系统库的原因,加入下面库
libz.dylib
SystemConfiguration.framework
MobileCoreAServices.framework
CFNetwork.framework
完毕
Undefined symbols for architecture armv7:
"_deflate", referenced from:
-[ASIDataCompressor compressBytes:length:error:shouldFinish:] in lib.a(ASIDataCompressor.o)
"_inflateInit2_", referenced from:
-[ASIDataDecompressor setupStream] in lib.a(ASIDataDecompressor.o)
"_deflateEnd", referenced from:
-[ASIDataCompressor closeStream] in lib.a(ASIDataCompressor.o)
"_inflateEnd", referenced from:
-[ASIDataDecompressor closeStream] in lib.a(ASIDataDecompressor.o)
"_kUTTagClassMIMEType", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in lib.a(ASIHTTPRequest.o)
"_kUTTagClassFilenameExtension", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in lib.a(ASIHTTPRequest.o)
"_deflateInit2_", referenced from:
-[ASIDataCompressor setupStream] in lib.a(ASIDataCompressor.o)
"_UTTypeCreatePreferredIdentifierForTag", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in lib.a(ASIHTTPRequest.o)
"_inflate", referenced from:
-[ASIDataDecompressor uncompressBytes:length:error:] in lib.a(ASIDataDecompressor.o)
"_UTTypeCopyPreferredTagWithClass", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in lib.a(ASIHTTPRequest.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:
缺系统库的原因,加入下面库
libz.dylib
SystemConfiguration.framework
MobileCoreAServices.framework
CFNetwork.framework
完毕
相关文章推荐
- HTTPS那些事(一)HTTPS原理
- cisco iou配合GNS3连接真实网络或虚拟主机
- 好的网络诗文
- 基于Windows的 wininet 网络库 写的访问服务器接口的函数
- HTTPS与SSL
- OSI模型与TCP/IP协议族
- 发送HTTP请求 -- HttpClientUtil
- Windows 无法自动将 IP 协议堆栈绑定到网络适配器。解
- 网络软中断与NAPI函数分析
- 使用afinal 中的finalhttp和finalbitmap访问网络资源+finalActivity
- centos下网络配置方法(网关、dns、ip地址配置)
- 从框架到完整项目搭建,实战项目《约个球》(5)-为我们自己的框架导入网络的开源框架
- 网络测试常用的命令-比较ping,tracert和pathping等命令之间的关系
- Windows实现基于TCP的网络应用程序
- 电脑同时开有线和无线,优先使用哪个?
- httpClient访问网络,httpclient.execute(httpGet)方法不执行问题
- cod pods安装过程中Error fetching http://ruby.taobao.org/: bad response Not Found 404 (http://ruby.taobao
- Httpie 进行web请求模拟
- c++网络编程之socket
- 通过curl得到http各阶段的响应时间