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

  1. Undefined symbols for architecture i386:
  1.   "_CFHTTPAuthenticationIsValid", referenced from:
  2.       -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.o
  3.       -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest.o
  4.   "_CFHTTPMessageApplyCredentialDictionary", referenced from:
  5.       -[ASIHTTPRequest applyAuthorizationHeader] in ASIHTTPRequest.o
  6.       -[ASIHTTPRequest applyAuthorizationHeader] in ASIHTTPRequest.o
  7.       -[ASIHTTPRequest applyProxyCredentials:] in ASIHTTPRequest.o
  8.       -[ASIHTTPRequest applyCredentials:] in ASIHTTPRequest.o
  9.   "_CFHTTPMessageIsHeaderComplete", referenced from:
  10.       -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest.o
  11.   "_kCFStreamPropertyHTTPSProxyPort", referenced from:
  12.       _kCFStreamPropertyHTTPSProxyPort$non_lazy_ptr in ASIHTTPRequest.o
  13.      (maybe you meant: _kCFStreamPropertyHTTPSProxyPort$non_lazy_ptr)
  14.   "_inflate", referenced from:
  15.       +[ASIHTTPRequest uncompressZippedData:] in ASIHTTPRequest.o
  16.       +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest.o
  17.   "_kCFStreamSSLCertificates", referenced from:
  18.       _kCFStreamSSLCertificates$non_lazy_ptr in ASIHTTPRequest.o
  19.      (maybe you meant: _kCFStreamSSLCertificates$non_lazy_ptr)
  20.   "_CFNetworkCopyProxiesForAutoConfigurationScript", referenced from:
  21.       +[ASIHTTPRequest proxiesForURL:fromPAC:] in ASIHTTPRequest.o
  22.   "_kCFProxyTypeKey", referenced from:
  23.       _kCFProxyTypeKey$non_lazy_ptr in ASIHTTPRequest.o
  24.      (maybe you meant: _kCFProxyTypeKey$non_lazy_ptr)
  25.   "_CFReadStreamCreateForStreamedHTTPRequest", referenced from:
  26.       -[ASIHTTPRequest startRequest] in ASIHTTPRequest.o
  27.       -[ASIHTTPRequest startRequest] in ASIHTTPRequest.o
  28.   "_kCFProxyPortNumberKey", referenced from:
  29.       _kCFProxyPortNumberKey$non_lazy_ptr in ASIHTTPRequest.o
  30.      (maybe you meant: _kCFProxyPortNumberKey$non_lazy_ptr)
  31.   "_kUTTagClassMIMEType", referenced from:
  32.       _kUTTagClassMIMEType$non_lazy_ptr in ASIHTTPRequest.o
  33.      (maybe you meant: _kUTTagClassMIMEType$non_lazy_ptr)
  34.   "_inflateEnd", referenced from:
  35.       +[ASIHTTPRequest uncompressZippedData:] in ASIHTTPRequest.o
  36.       +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest.o
  37.       +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest.o
  38.       +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest.o
  39.       +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest.o
  40.   "_inflateInit2_", referenced from:
  41.       +[ASIHTTPRequest uncompressZippedData:] in ASIHTTPRequest.o
  42.       +[ASIHTTPRequest uncompressZippedDataFromSource:toDestination:] inASIHTTPRequest.o
  43.   "_kCFProxyAutoConfigurationURLKey", referenced from:
  44.       _kCFProxyAutoConfigurationURLKey$non_lazy_ptr in ASIHTTPRequest.o
  45.      (maybe you meant: _kCFProxyAutoConfigurationURLKey$non_lazy_ptr)
  46.   "_CFHTTPAuthenticationRequiresUserNameAndPassword", referenced from:
  47.       -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.o
  48.       -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest.o
  49.   "_kCFHTTPAuthenticationUsername", referenced from:
  50.       _kCFHTTPAuthenticationUsername$non_lazy_ptr in ASIHTTPRequest.o
  51.      (maybe you meant: _kCFHTTPAuthenticationUsername$non_lazy_ptr)
  52.   "_kCFStreamPropertyHTTPProxy", referenced from:
  53.       _kCFStreamPropertyHTTPProxy$non_lazy_ptr in ASIHTTPRequest.o
  54.      (maybe you meant: _kCFStreamPropertyHTTPProxyPort$non_lazy_ptr,_kCFStreamPropertyHTTPProxyHost$non_lazy_ptr , _kCFStreamPropertyHTTPProxy$non_lazy_ptr )
  55.   "_kCFStreamPropertyHTTPResponseHeader", referenced from:
  56.       _kCFStreamPropertyHTTPResponseHeader$non_lazy_ptr in ASIHTTPRequest.o
  57.      (maybe you meant: _kCFStreamPropertyHTTPResponseHeader$non_lazy_ptr)
  58.   "_CFHTTPMessageGetResponseStatusCode", referenced from:
  59.       -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest.o
  60.   "_kCFProxyTypeHTTP", referenced from:
  61.       _kCFProxyTypeHTTP$non_lazy_ptr in ASIHTTPRequest.o
  62.      (maybe you meant: _kCFProxyTypeHTTP$non_lazy_ptr)
  63.   "_kCFHTTPAuthenticationSchemeBasic", referenced from:
  64.       _kCFHTTPAuthenticationSchemeBasic$non_lazy_ptr in ASIAuthenticationDialog.o
  65.       _kCFHTTPAuthenticationSchemeBasic$non_lazy_ptr in ASIHTTPRequest.o
  66.      (maybe you meant: _kCFHTTPAuthenticationSchemeBasic$non_lazy_ptr)
  67.   "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
  68.       -[Reachability startNotifier] in Reachability.o
  69.   "_SCNetworkReachabilityGetFlags", referenced from:
  70.       -[Reachability currentReachabilityStatus] in Reachability.o
  71.       -[Reachability isReachable] in Reachability.o
  72.       -[Reachability isConnectionRequired] in Reachability.o
  73.       -[Reachability isConnectionOnDemand] in Reachability.o
  74.       -[Reachability isInterventionRequired] in Reachability.o
  75.       -[Reachability isReachableViaWWAN] in Reachability.o
  76.       -[Reachability isReachableViaWiFi] in Reachability.o
  77.       -[Reachability reachabilityFlags] in Reachability.o
  78.   "_deflateInit2_", referenced from:
  79.       +[ASIHTTPRequest compressData:] in ASIHTTPRequest.o
  80.       +[ASIHTTPRequest compressDataFromSource:toDestination:] in ASIHTTPRequest.o
  81.   "_CFNetworkCopyProxiesForURL", referenced from:
  82.       -[ASIHTTPRequest startRequest] in ASIHTTPRequest.o
  83.       +[ASIHTTPRequest proxiesForURL:fromPAC:] in ASIHTTPRequest.o
  84.   "_CFHTTPMessageSetHeaderFieldValue", referenced from:
  85.       -[ASIHTTPRequest main] in ASIHTTPRequest.o
  86.       -[ASIHTTPRequest checkRequestStatus] in ASIHTTPRequest.o
  87.   "_kCFProxyTypeSOCKS", referenced from:
  88.       _kCFProxyTypeSOCKS$non_lazy_ptr in ASIHTTPRequest.o
  89.      (maybe you meant: _kCFProxyTypeSOCKS$non_lazy_ptr)
  90.   "_kCFStreamPropertyHTTPAttemptPersistentConnection", referenced from:
  91.       _kCFStreamPropertyHTTPAttemptPersistentConnection$non_lazy_ptr inASIHTTPRequest.o
  92.      (maybe you meant: _kCFStreamPropertyHTTPAttemptPersistentConnection$non_lazy_ptr)
  93.   "_CFHTTPMessageCopyVersion", referenced from:
  94.       -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest.o
  95.   "_CFHTTPAuthenticationCopyRealm", referenced from:
  96.       -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.o
  97.       -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest.o
  98.   "_CFHTTPMessageCopyAllHeaderFields", referenced from:
  99.       -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest.o
  100.   "_CFHTTPMessageCreateRequest", referenced from:
  101.       -[ASIHTTPRequest main] in ASIHTTPRequest.o
  102.   "_kCFProxyHostNameKey", referenced from:
  103.       _kCFProxyHostNameKey$non_lazy_ptr in ASIHTTPRequest.o
  104.      (maybe you meant: _kCFProxyHostNameKey$non_lazy_ptr)
  105.   "_kCFStreamPropertyHTTPProxyHost", referenced from:
  106.       _kCFStreamPropertyHTTPProxyHost$non_lazy_ptr in ASIHTTPRequest.o
  107.      (maybe you meant: _kCFStreamPropertyHTTPProxyHost$non_lazy_ptr)
  108.   "_CFHTTPMessageCopyResponseStatusLine", referenced from:
  109.       -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest.o
  110.   "_kCFStreamPropertyHTTPRequestBytesWrittenCount", referenced from:
  111.       _kCFStreamPropertyHTTPRequestBytesWrittenCount$non_lazy_ptr in ASIHTTPRequest.o
  112.      (maybe you meant: _kCFStreamPropertyHTTPRequestBytesWrittenCount$non_lazy_ptr)
  113.   "_deflate", referenced from:
  114.       +[ASIHTTPRequest compressData:] in ASIHTTPRequest.o
  115.       +[ASIHTTPRequest compressDataFromSource:toDestination:] in ASIHTTPRequest.o
  116.   "_SCNetworkReachabilityCreateWithAddress", referenced from:
  117.       +[Reachability reachabilityWithAddress:] in Reachability.o
  118.   "_kCFErrorDomainCFNetwork", referenced from:
  119.       _kCFErrorDomainCFNetwork$non_lazy_ptr in ASIHTTPRequest.o
  120.      (maybe you meant: _kCFErrorDomainCFNetwork$non_lazy_ptr)
  121.   "_kCFStreamSSLValidatesCertificateChain", referenced from:
  122.       _kCFStreamSSLValidatesCertificateChain$non_lazy_ptr in ASIHTTPRequest.o
  123.      (maybe you meant: _kCFStreamSSLValidatesCertificateChain$non_lazy_ptr)
  124.   "_CFHTTPAuthenticationCreateFromResponse", referenced from:
  125.       -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.o
  126.       -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest.o
  127.   "_deflateEnd", referenced from:
  128.       +[ASIHTTPRequest compressData:] in ASIHTTPRequest.o
  129.       +[ASIHTTPRequest compressDataFromSource:toDestination:] in ASIHTTPRequest.o
  130.       +[ASIHTTPRequest compressDataFromSource:toDestination:] in ASIHTTPRequest.o
  131.       +[ASIHTTPRequest compressDataFromSource:toDestination:] in ASIHTTPRequest.o
  132.   "_UTTypeCopyPreferredTagWithClass", referenced from:
  133.       +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
  134.   "_kCFStreamPropertyHTTPSProxyHost", referenced from:
  135.       _kCFStreamPropertyHTTPSProxyHost$non_lazy_ptr in ASIHTTPRequest.o
  136.      (maybe you meant: _kCFStreamPropertyHTTPSProxyHost$non_lazy_ptr)
  137.   "_kCFHTTPAuthenticationSchemeNTLM", referenced from:
  138.       _kCFHTTPAuthenticationSchemeNTLM$non_lazy_ptr in ASIAuthenticationDialog.o
  139.       _kCFHTTPAuthenticationSchemeNTLM$non_lazy_ptr in ASIHTTPRequest.o
  140.      (maybe you meant: _kCFHTTPAuthenticationSchemeNTLM$non_lazy_ptr)
  141.   "_CFHTTPAuthenticationCopyMethod", referenced from:
  142.       -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.o
  143.       -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest.o
  144.   "_kCFHTTPAuthenticationAccountDomain", referenced from:
  145.       _kCFHTTPAuthenticationAccountDomain$non_lazy_ptr in ASIHTTPRequest.o
  146.      (maybe you meant: _kCFHTTPAuthenticationAccountDomain$non_lazy_ptr)
  147.   "_UTTypeCreatePreferredIdentifierForTag", referenced from:
  148.       +[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
  149.   "_CFNetworkCopySystemProxySettings", referenced from:
  150.       -[ASIHTTPRequest startRequest] in ASIHTTPRequest.o
  151.   "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
  152.       -[Reachability stopNotifier] in Reachability.o
  153.   "_kCFStreamPropertyHTTPProxyPort", referenced from:
  154.       _kCFStreamPropertyHTTPProxyPort$non_lazy_ptr in ASIHTTPRequest.o
  155.      (maybe you meant: _kCFStreamPropertyHTTPProxyPort$non_lazy_ptr)
  156.   "_CFHTTPAuthenticationRequiresAccountDomain", referenced from:
  157.       -[ASIHTTPRequest findProxyCredentials] in ASIHTTPRequest.o
  158.       -[ASIHTTPRequest findCredentials] in ASIHTTPRequest.o
  159.       -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.o
  160.       -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest.o
  161.   "_SCNetworkReachabilityCreateWithName", referenced from:
  162.       +[Reachability reachabilityWithHostName:] in Reachability.o
  163.   "_SCNetworkReachabilitySetCallback", referenced from:
  164.       -[Reachability startNotifier] in Reachability.o
  165.   "_kCFHTTPAuthenticationPassword", referenced from:
  166.       _kCFHTTPAuthenticationPassword$non_lazy_ptr in ASIHTTPRequest.o
  167.      (maybe you meant: _kCFHTTPAuthenticationPassword$non_lazy_ptr)
  168.   "_kCFHTTPVersion1_0", referenced from:
  169.       _kCFHTTPVersion1_0$non_lazy_ptr in ASIHTTPRequest.o
  170.      (maybe you meant: _kCFHTTPVersion1_0$non_lazy_ptr)
  171.   "_kCFHTTPVersion1_1", referenced from:
  172.       _kCFHTTPVersion1_1$non_lazy_ptr in ASIHTTPRequest.o
  173.      (maybe you meant: _kCFHTTPVersion1_1$non_lazy_ptr)
  174.   "_kCFStreamPropertySSLSettings", referenced from:
  175.       _kCFStreamPropertySSLSettings$non_lazy_ptr in ASIHTTPRequest.o
  176.      (maybe you meant: _kCFStreamPropertySSLSettings$non_lazy_ptr)
  177.   "_kCFStreamErrorDomainHTTP", referenced from:
  178.       _kCFStreamErrorDomainHTTP$non_lazy_ptr in ASIHTTPRequest.o
  179.      (maybe you meant: _kCFStreamErrorDomainHTTP$non_lazy_ptr)
  180.   "_CFReadStreamCreateForHTTPRequest", referenced from:
  181.       -[ASIHTTPRequest startRequest] in ASIHTTPRequest.o
  182.   "_kUTTagClassFilenameExtension", referenced from:
  183.       _kUTTagClassFilenameExtension$non_lazy_ptr in ASIHTTPRequest.o
  184.      (maybe you meant: _kUTTagClassFilenameExtension$non_lazy_ptr)
  185. ld: symbol(s) not found
  186. 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. DelayedOperationPurgatory之DelayedOperation pool

    purgatory就是炼狱的意思. 当一个DelayedOperation需要被delay时,它就被放到DelayedOperationPurgatory,相当于进行一个等待池.上一篇blog提到过, ...

  2. Unity手游:自动寻路Navmesh 跳跃 攀爬 斜坡

    原地址:http://dong2008hong.blog.163.com/blog/static/46968827201403114644210/ 步骤 1.在场景中摆放各种模型,包括地板,斜坡,山体 ...

  3. Unity3d修改FBX文件的动画名方法

    问题描述:FBX文件导入Unity3d后的动画名字一般都是 “Take 001”并且无法修改!如何修改它呢? 解决方法:解决方法其实很简单,只要你按照Unity3d的FBX文件命名规则,压根就不会存在 ...

  4. java基础知识回顾之java Thread类学习(四)--java多线程安全问题(锁)

    上一节售票系统中我们发现,打印出了错票,0,-1,出现了多线程安全问题.我们分析为什么会发生多线程安全问题? 看下面线程的主要代码: @Override public void run() { // ...

  5. jQuery动画效果实现

    <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content ...

  6. Project Euler 94:Almost equilateral triangles 几乎等边的三角形

    Almost equilateral triangles It is easily proved that no equilateral triangle exists with integral l ...

  7. eclipse安装反编译插件

    1. 进入http://jadclipse.sourceforge.net/wiki/index.php/Main_Page#Download          下载 net.sf.jadclipse ...

  8. Hibernate逍遥游记-第13章 映射实体关联关系-001用外键映射一对一(<many-to-one unique="true">、<one-to-one>)

    1. <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hi ...

  9. svn:...target\classes\META-INF\MANIFEST.MF (系统找不到指定的路径。)

    在上传项目到svn时,pom.xml报错

  10. 转:[Android问答] 开发环境问题集锦

    工欲善其事,必先利其器. 和iOS开发相比,Android的开发环境的版本比较多,随之而来的问题也多.显然,我们不应该浪费宝贵的时间在解决开发环境带来的问题上,为此本文总结了常见的开发环境问题和解决方 ...