使用ASIHttpRequest 匯入ASIHttpRequest注意事項

來源:互聯網
上載者:User

標籤:asihttprequest、編譯報錯、fno-objc-arc、


匯入ASIHttpRequest架構 出現錯誤以及解決辦法:


1、【編譯錯誤:    ASIWebPageRequest.m:13:9: ‘libxml/HTMLparser.h‘ file not found】         
  錯誤原因:    -    無法正確找到    libxml/HTMLparser.h          
  解決方案:    -    在標頭檔搜尋目錄中添加:    ${SDK_DIR}/usr/include/libxml2          


2、【編譯錯誤ASITestCase.h:12:9:‘GHUnitIOS/GHUnit.h’ file not found】

解決:刪除單元測試代碼    引用(把Tests檔案夾刪除)       

               650) this.width=650;" style="vertical-align:middle;height:3.84615px;width:550px;" src="http://postachio-images.s3-website-us-east-1.amazonaws.com/96083b7bb56878d8f4821117b754ca3a/229e786571cb1fb1573a49feafe6ce08/w600_897b223fe1bf63457e55de6d396ff5bb.png" />                    
               650) this.width=650;" style="vertical-align:middle;height:302.885px;width:550px;" src="http://img0.tuicool.com/ERfaiy.png" />          

3、【85個錯誤】             
  解決方案:添加以下iOS架構引用-CFNetwork.framework、SystemConfiguration.framework   、MobileCoreServices.framework 、libz.dylib 、libxml2.dylib   。   


4、如果是ARC項目  需要-fno-objc-arc 

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/58/76/wKioL1SyNMeBH-bbAAMvTNjY_iA880.jpg" title="22083EF4-42B5-4CE4-B995-6A0643B4EE58.png" alt="wKioL1SyNMeBH-bbAAMvTNjY_iA880.jpg" />

本文出自 “日照江湖美” 部落格,請務必保留此出處http://lbkllc.blog.51cto.com/4646279/1601941

使用ASIHttpRequest 匯入ASIHttpRequest注意事項

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.