为ASIHTTPRequest开源项目提供的类,网上下载后添加到自己的工程。同时工程中需要导入的系统类库如下:
libz.dylib
SystemConfiguration.framework
MobileCoreAServices.framework
CFNetwork.framework
导入后,编译OK!图例如下:
如果导入类库中缺少MobileCoreAServices.framework类库,会报如下错误:
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)
阅读(1185) | 评论(0) | 转发(0) |