swift------匯入OC三方類找不到標頭檔的解決方案

來源:互聯網
上載者:User

標籤:標頭檔   user   UI   blog   pat   xxxx   ade   匯入   檔案匯入   

1.首先建立個 swift工程

2.在swift 中建立 OC 類 比如建立 Request 類,會自動產生個。XXXX-Bridging-Header 類;

3.讓後把 匯入的第三方標頭檔匯入進去。例如: #import "AFNetworking.h"  但是他會提示找不到

4. 在 build Seting   搜尋L:User Header Search Paths

5.在 User Header Search Paths 添加:${SRCROOT} , 選擇。Recursive 

6.編譯下解決了,參考連結點擊開啟連結

swift------匯入OC三方類找不到標頭檔的解決方案

相關文章

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.