最近在学习ASIHTTPRequest类库进行网络操作,但是在把ASIHTTPRequest源码拖入到自己的工程里,添加完类库文件后,build后出现编译错误。大体错误信息如下:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ASIHTTPRequest", referenced from:
objc-class-ref in ASIInputStream.o
_OBJC_CLASS_$_ASIFormDataRequest in ASIFormDataRequest.o
objc-class-ref in ASIFormDataRequest.o
objc-class-ref in ASINetworkQueue.o
objc-class-ref in ASIDownloadCache.o
objc-class-ref in NLNetHelper.o
"_OBJC_METACLASS_$_ASIHTTPRequest", referenced from:
_OBJC_METACLASS_$_ASIFormDataRequest in ASIFormDataRequest.o
"_NetworkRequestErrorDomain", referenced from:
-[ASIFormDataRequest addFile:withFileName:andContentType:forKey:] in