** 下面是stackoverflow上的解決辦法: **
Go to the Target > \”Build Settings\” tab and find the \”User Header Search Paths\” setting. Set this to \”$(BUILT_PRODUCTS_DIR)\” and check the \”Recursive\” check box. Now the built target will search the workspace’s shared build directory to locate the linkable header files.
具體來說就是: 選擇工程的 Target -> Build Settings 菜單,找到\”User Header Search Paths\”設(shè)置項 新增一個值"$(PODS_ROOT)"裂问,并且選擇\”recursive\”钉赁,這樣xcode就會在項目目錄中遞歸搜索文件自動補齊功能馬上就好使了。