ASIHTTPRequest开源类项目导入问题及解决方法

来源:互联网 发布:如何查淘宝最低价 编辑:程序博客网 时间:2024/05/16 19:27

出自:http://www.software8.co/caozuoxt/ios/2440.html

ASIHTTPRequest 为ASIHTTPRequest开源项目提供的类,网上下载后添加到自己的工程。同时工程中需要导入的系统类库如下:

libz.dylib

SystemConfiguration.framework

MobileCoreAServices.framework

CFNetwork.framework

导入后,编译OK!图例如下:


 

如果导入类库中缺少MobileCoreAServices.framework类库,会报如下错误:

<!--StartFragment -->
Undefined symbols for architecture i386:
  "_UTTypeCreatePreferredIdentifierForTag", referenced from:
      +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
  "_UTTypeCopyPreferredTagWithClass", referenced from:
      +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
  "_kUTTagClassFilenameExtension", referenced from:
      +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
  "_kUTTagClassMIMEType", referenced from:
      +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
0 0
原创粉丝点击