ASIHttpRequest编译不通过

来源:互联网 发布:apache mime类型 json 编辑:程序博客网 时间:2024/04/28 13:28

转:http://blog.sina.com.cn/s/blog_67a5e47201014tof.html

Undefined symbols for architecture i386:
  "_CFHTTPAuthenticationIsValid", referenced from:      -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.     -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest. "_CFHTTPMessageApplyCredentialDictionary", referenced from:      -[ASIHTTPRequest applyAuthorizationHeader] in ASIHTTPRequest.     -[ASIHTTPRequest applyAuthorizationHeader] in ASIHTTPRequest.     -[ASIHTTPRequest applyProxyCredentials:] in ASIHTTPRequest.     -[ASIHTTPRequest applyCredentials:] in ASIHTTPRequest. "_CFHTTPMessageIsHeaderComplete", referenced from:      -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest. "_kCFStreamPropertyHTTPSProxyPort", referenced from:      _kCFStreamPropertyHTTPSProxyPort$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFStreamPropertyHTTPSProxyPort$non_lazy_ptr)  "_inflate", referenced from:      +[ASIHTTPRequest uncompressZippedData:] in ASIHTTPRequest.     +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest. "_kCFStreamSSLCertificates", referenced from:      _kCFStreamSSLCertificates$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFStreamSSLCertificates$non_lazy_ptr)  "_CFNetworkCopyProxiesForAutoConfigurationScript", referenced from:      +[ASIHTTPRequest proxiesForURL:fromPAC:] in ASIHTTPRequest. "_kCFProxyTypeKey", referenced from:      _kCFProxyTypeKey$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFProxyTypeKey$non_lazy_ptr)  "_CFReadStreamCreateForStreamedHTTPRequest", referenced from:      -[ASIHTTPRequest startRequest] in ASIHTTPRequest.     -[ASIHTTPRequest startRequest] in ASIHTTPRequest. "_kCFProxyPortNumberKey", referenced from:      _kCFProxyPortNumberKey$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFProxyPortNumberKey$non_lazy_ptr)  "_kUTTagClassMIMEType", referenced from:      _kUTTagClassMIMEType$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kUTTagClassMIMEType$non_lazy_ptr)  "_inflateEnd", referenced from:      +[ASIHTTPRequest uncompressZippedData:] in ASIHTTPRequest.     +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest.     +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest.     +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest.     +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest. "_inflateInit2_", referenced from:      +[ASIHTTPRequest uncompressZippedData:] in ASIHTTPRequest.     +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest. "_kCFProxyAutoConfigurationURLKey", referenced from:      _kCFProxyAutoConfigurationURLKey$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFProxyAutoConfigurationURLKey$non_lazy_ptr)  "_CFHTTPAuthenticationRequiresUserNameAndPassword", referenced from:      -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.     -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest. "_kCFHTTPAuthenticationUsername", referenced from:      _kCFHTTPAuthenticationUsername$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFHTTPAuthenticationUsername$non_lazy_ptr)  "_kCFStreamPropertyHTTPProxy", referenced from:      _kCFStreamPropertyHTTPProxy$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFStreamPropertyHTTPProxyPort$non_lazy_ptr,_kCFStreamPropertyHTTPProxyHost$non_lazy_ptr , _kCFStreamPropertyHTTPProxy$non_lazy_ptr )  "_kCFStreamPropertyHTTPResponseHeader", referenced from:      _kCFStreamPropertyHTTPResponseHeader$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFStreamPropertyHTTPResponseHeader$non_lazy_ptr)  "_CFHTTPMessageGetResponseStatusCode", referenced from:      -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest. "_kCFProxyTypeHTTP", referenced from:      _kCFProxyTypeHTTP$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFProxyTypeHTTP$non_lazy_ptr)  "_kCFHTTPAuthenticationSchemeBasic", referenced from:      _kCFHTTPAuthenticationSchemeBasic$non_lazy_ptr in ASIAuthenticationDialog.     _kCFHTTPAuthenticationSchemeBasic$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFHTTPAuthenticationSchemeBasic$non_lazy_ptr)  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:      -[Reachability startNotifier] in Reachability. "_SCNetworkReachabilityGetFlags", referenced from:      -[Reachability currentReachabilityStatus] in Reachability.     -[Reachability isReachable] in Reachability.     -[Reachability isConnectionRequired] in Reachability.     -[Reachability isConnectionOnDemand] in Reachability.     -[Reachability isInterventionRequired] in Reachability.     -[Reachability isReachableViaWWAN] in Reachability.     -[Reachability isReachableViaWiFi] in Reachability.     -[Reachability reachabilityFlags] in Reachability. "_deflateInit2_", referenced from:      +[ASIHTTPRequest compressData:] in ASIHTTPRequest.     +[ASIHTTPRequest compressDataFromSource:toDestination:] in ASIHTTPRequest. "_CFNetworkCopyProxiesForURL", referenced from:      -[ASIHTTPRequest startRequest] in ASIHTTPRequest.     +[ASIHTTPRequest proxiesForURL:fromPAC:] in ASIHTTPRequest. "_CFHTTPMessageSetHeaderFieldValue", referenced from:      -[ASIHTTPRequest main] in ASIHTTPRequest.     -[ASIHTTPRequest checkRequestStatus] in ASIHTTPRequest. "_kCFProxyTypeSOCKS", referenced from:      _kCFProxyTypeSOCKS$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFProxyTypeSOCKS$non_lazy_ptr)  "_kCFStreamPropertyHTTPAttemptPersistentConnection", referenced from:      _kCFStreamPropertyHTTPAttemptPersistentConnection$non_lazy_ptr inASIHTTPRequest.    (maybe you meant: _kCFStreamPropertyHTTPAttemptPersistentConnection$non_lazy_ptr)  "_CFHTTPMessageCopyVersion", referenced from:      -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest. "_CFHTTPAuthenticationCopyRealm", referenced from:      -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.     -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest. "_CFHTTPMessageCopyAllHeaderFields", referenced from:      -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest. "_CFHTTPMessageCreateRequest", referenced from:      -[ASIHTTPRequest main] in ASIHTTPRequest. "_kCFProxyHostNameKey", referenced from:      _kCFProxyHostNameKey$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFProxyHostNameKey$non_lazy_ptr)  "_kCFStreamPropertyHTTPProxyHost", referenced from:      _kCFStreamPropertyHTTPProxyHost$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFStreamPropertyHTTPProxyHost$non_lazy_ptr)  "_CFHTTPMessageCopyResponseStatusLine", referenced from:      -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest. "_kCFStreamPropertyHTTPRequestBytesWrittenCount", referenced from:      _kCFStreamPropertyHTTPRequestBytesWrittenCount$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFStreamPropertyHTTPRequestBytesWrittenCount$non_lazy_ptr)  "_deflate", referenced from:      +[ASIHTTPRequest compressData:] in ASIHTTPRequest.     +[ASIHTTPRequest compressDataFromSource:toDestination:] in ASIHTTPRequest. "_SCNetworkReachabilityCreateWithAddress", referenced from:      +[Reachability reachabilityWithAddress:] in Reachability. "_kCFErrorDomainCFNetwork", referenced from:      _kCFErrorDomainCFNetwork$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFErrorDomainCFNetwork$non_lazy_ptr)  "_kCFStreamSSLValidatesCertificateChain", referenced from:      _kCFStreamSSLValidatesCertificateChain$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFStreamSSLValidatesCertificateChain$non_lazy_ptr)  "_CFHTTPAuthenticationCreateFromResponse", referenced from:      -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.     -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest. "_deflateEnd", referenced from:      +[ASIHTTPRequest compressData:] in ASIHTTPRequest.     +[ASIHTTPRequest compressDataFromSource:toDestination:] in ASIHTTPRequest.     +[ASIHTTPRequest compressDataFromSource:toDestination:] in ASIHTTPRequest.     +[ASIHTTPRequest compressDataFromSource:toDestination:] in ASIHTTPRequest. "_UTTypeCopyPreferredTagWithClass", referenced from:      +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest. "_kCFStreamPropertyHTTPSProxyHost", referenced from:      _kCFStreamPropertyHTTPSProxyHost$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFStreamPropertyHTTPSProxyHost$non_lazy_ptr)  "_kCFHTTPAuthenticationSchemeNTLM", referenced from:      _kCFHTTPAuthenticationSchemeNTLM$non_lazy_ptr in ASIAuthenticationDialog.     _kCFHTTPAuthenticationSchemeNTLM$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFHTTPAuthenticationSchemeNTLM$non_lazy_ptr)  "_CFHTTPAuthenticationCopyMethod", referenced from:      -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.     -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest. "_kCFHTTPAuthenticationAccountDomain", referenced from:      _kCFHTTPAuthenticationAccountDomain$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFHTTPAuthenticationAccountDomain$non_lazy_ptr)  "_UTTypeCreatePreferredIdentifierForTag", referenced from:      +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest. "_CFNetworkCopySystemProxySettings", referenced from:      -[ASIHTTPRequest startRequest] in ASIHTTPRequest. "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:      -[Reachability stopNotifier] in Reachability. "_kCFStreamPropertyHTTPProxyPort", referenced from:      _kCFStreamPropertyHTTPProxyPort$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFStreamPropertyHTTPProxyPort$non_lazy_ptr)  "_CFHTTPAuthenticationRequiresAccountDomain", referenced from:      -[ASIHTTPRequest findProxyCredentials] in ASIHTTPRequest.     -[ASIHTTPRequest findCredentials] in ASIHTTPRequest.     -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.     -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest. "_SCNetworkReachabilityCreateWithName", referenced from:      +[Reachability reachabilityWithHostName:] in Reachability. "_SCNetworkReachabilitySetCallback", referenced from:      -[Reachability startNotifier] in Reachability. "_kCFHTTPAuthenticationPassword", referenced from:      _kCFHTTPAuthenticationPassword$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFHTTPAuthenticationPassword$non_lazy_ptr)  "_kCFHTTPVersion1_0", referenced from:      _kCFHTTPVersion1_0$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFHTTPVersion1_0$non_lazy_ptr)  "_kCFHTTPVersion1_1", referenced from:      _kCFHTTPVersion1_1$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFHTTPVersion1_1$non_lazy_ptr)  "_kCFStreamPropertySSLSettings", referenced from:      _kCFStreamPropertySSLSettings$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFStreamPropertySSLSettings$non_lazy_ptr)  "_kCFStreamErrorDomainHTTP", referenced from:      _kCFStreamErrorDomainHTTP$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kCFStreamErrorDomainHTTP$non_lazy_ptr)  "_CFReadStreamCreateForHTTPRequest", referenced from:      -[ASIHTTPRequest startRequest] in ASIHTTPRequest. "_kUTTagClassFilenameExtension", referenced from:      _kUTTagClassFilenameExtension$non_lazy_ptr in ASIHTTPRequest.    (maybe you meant: _kUTTagClassFilenameExtension$non_lazy_ptr)ld: symbol(s) not foundcollect2: ld returned 1 exit status

新版的ASIHttpRequest代码结构修改很多,不再像之前那样分为ASIHTTPRequest和ASIHTTPRequestDemo两个文件夹。

只选取需要的代码加入到项目中后,发现编译后出现了很多错误。

原因是编译的时候需要加上一些类库

requires CFNetwork, SystemConfiguration, MobileCoreServices, and libz.

Edit: It also needs libxml2



0 0
原创粉丝点击