转: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


ASIHttpRequest编译不通过的更多相关文章

  1. 使用ASIHTTPRequest 编译提示找不到"libxml/HTMLparser.h"的解决方法

    使用ASIHTTPRequest xcode编译提示找不到"libxml/HTMLparser.h",解决方法如下: 1>.在xcode中左边选中项目的root节点,在中间编 ...

  2. ios 常见问题解决

    一,libxml/HTMLparser.h file not find 第一种方法: 点击左边项目的根目录,再点击右边的Build Settings,手工输入文字:“Header search pat ...

  3. ios 常见错误整理 持续更新

    本文转载至 http://blog.csdn.net/yesjava/article/details/8086185  1. mutating method sent to immutable obj ...

  4. 使用ASIHTTPRequest xcode编译提示找不到"libxml/HTMLparser.h"

    使用ASIHTTPRequest xcode编译提示找不到"libxml/HTMLparser.h",解决方法如下: 1>.在xcode中左边选中项目的root节点,在中间编 ...

  5. ios编译ASIHTTPRequest时出现 'libxml/HTMLparser.h' file not found in ASIHTTPRequest

    解决方法是添加libxml2.dylib 然后在Build Settings 中的 Header Search Paths 添加: ${SDK_DIR}/usr/include/libxml2

  6. IOS学习笔记25—HTTP操作之ASIHTTPRequest

    IOS学习笔记25—HTTP操作之ASIHTTPRequest 分类: iOS2012-08-12 10:04 7734人阅读 评论(3) 收藏 举报 iosios5网络wrapper框架新浪微博 A ...

  7. IOS开发网络篇之──ASIHTTPRequest详解

    目录 目录 发起一个同步请求 创建一个异步请求 队列请求 请求队列上下文 ASINetworkQueues, 它的delegate提供更为丰富的功能 取消异步请求 安全的内存回收建议 向服务器端上传数 ...

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

    在静态库project中加入ASIHTTPRequest导出lib.a.放到project里编译出一下错: Undefined symbols for architecture armv7: &quo ...

  9. ASIHTTPRequest 对GET POST 请求简包

    1.ASIHTTPRequest一个简短的引论 github下载链接https://github.com/pokeb/asi-http-request 2.ASIHTTPRequest 对GET和PO ...

随机推荐

  1. Windows ftp 连不上Linux

    1.首先检查vsftpd服务器 是否安装 $ rpm -qa | grep vsftpdvsftpd-2.2.2-11.el6.x86_64 2.显示已安装,restart the vsftpd ¥ ...

  2. Python性能分析指南

    http://www.admin10000.com/document/2861.html 尽管并非每个你写的Python程序都需要严格的性能分析,但了解一下Python的生态系统中很多优秀的在你需要做 ...

  3. POJ 1781

    #include <iostream> #include <string> #include <cmath> using namespace std; unsign ...

  4. mybatis 插入日期类型精确到秒的有关问题

    mybatis 插入日期类型精确到秒的问题 Mybatis 插入 数据库是为了防止插入空时报错, Mybatis 提供了一套机制,只要给定插入的字段的类型,如果为空,则它会自动处理为相应类型的默认值: ...

  5. java基础知识回顾之java Thread类学习(八)--java.util.concurrent.locks(JDK1.5)与synchronized异同讲解

    看API文档介绍几个方法:  JDK1.5中提供了多线程的升级解决方案: 特点: 1.将同步synchronized显示的替换成Lock                    2.接口Conditio ...

  6. hdu 1524 A Chess Game 博弈论

    SG函数!! 代码如下: #include<stdio.h> #include<cstring> #define I(x) scanf("%d",& ...

  7. hdu 1713 相遇周期

    求分数的最小公倍数.对于a/b c/d 先化简为最简分数,分数最小公倍数=分子的最小公倍数/分母的最大公约数. ;}

  8. js 后台异步执行

    public void AlertMsg(string msg, bool async) { string script = string.Format("alert('{0}'); &qu ...

  9. lintcode 中等题:Palindrome Linked List 回文链表

    题目 回文链表 设计一种方式检查一个链表是否为回文链表. 样例 1->2->1 就是一个回文链表. 挑战 O(n)的时间和O(1)的额外空间. 解题 法一: 再定义一个链表,存放链表反转的 ...

  10. python学习[一]

    Vamei写了很好的python教程,感谢:http://www.cnblogs.com/vamei/archive/2012/09/13/2682778.html 摘录笔记 print命令行模式: ...