zoukankan      html  css  js  c++  java
  • ASIHttpRequest编译不通过

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

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

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

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

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

    requires CFNetwork, SystemConfiguration, MobileCoreServices, and libz.

    Edit: It also needs libxml2



  • 相关阅读:
    hdu 5918(强行水过去..正解KMP)
    hdu 5914(斐波拉契数列)
    hdu 5912(迭代+gcd)
    bzoj 2819(DFS序+树状数组+博弈+lca)
    BestCoder #88(1001 1002)
    hdu 5468(dfs序+容斥原理)
    hdu 5692(dfs序+线段树,好题)
    dfs序题目练习
    csu 1806 & csu 1742 (simpson公式+最短路)
    LuoGuP3774:[CTSC2017]最长上升子序列
  • 原文地址:https://www.cnblogs.com/jackljf/p/4768637.html
Copyright © 2011-2022 走看看