新集成cocoapods路徑問題

前因

今天,在給老的項目“瘦身”的時候,發現了一些舊的,不再使用的第三方庫。或者是一些正在使用的,但是目錄結構看起來相當複雜的第三方。在整理的時候,看着可以說是相當的煩心。

然後,就想着給項目添加cocoapods支持

後果

開始整理!!

  • 終端cd到當前項目路徑下
  • pod init pod初始化
  • 然後添加需要使用pod管理的第三方庫名,以及相應的版本號(如不知道,可用pod search xxx來搜索),整理完成之後,保存退出(shift+zz
  • 更新pod update

然後,就出現了以下的問題
這裏寫圖片描述

The xxx target overrides the ‘HEADER_SEARCH_PATHS’ build setting defined in ”pods/Target Support Files/Pods-xxxxx.config. This can lead to problems with the Cocoapods installation

-Use the ‘$(inherited)’ flag, or
-Remove the build settings from the target.

處理

  • 選中target
  • build Setting中,分別給Header search pathsother linker flags中添加$(inherited)

結束

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章