點這裏--->CocoaPods安裝和使用教程
當我們工程安裝很多第三方開源類庫,有時候不需要時,我們可以將其移除.
在stackoverflow發現How to remove CocoaPods from a project?
第二個answer比較簡單
需要用到兩個CocoaPods plugin
安裝gem install cocoapods-deintegrate
運行pod deintegrate
這一步之後就剩下
Podfile
Podfile.lock
Workspace
可以手動移除剩下的這三個,也可以用到cocoapods-clean
安裝gem install cocoapods-clean
運行pod clean
最後運行rm Podfile移除Podfile
如果還存在問題,可以把之前用到的庫的路徑移除,
項目目錄下,在你的終端就是這樣的順序:
gem install cocoapods-deintegrate
pod deintegrate
gem install cocoapods-clean
pod clean
rm Podfile
最後你可以在Podfile添加新的庫使用,或不使用CocoaPods,當然還有Carthage.
記得備份你的項目!