之前項(xiàng)目的cocoapods出現(xiàn)了問(wèn)題欧募,使用手動(dòng)刪除然后重裝的方法也不行匆骗,后來(lái)找到了cocoapods提供的移除工具cocoapods-deintegrate稚疹,GitHub地址:https://github.com/CocoaPods/cocoapods-deintegrate
方法很簡(jiǎn)單:
1挽荠;安裝cocoapods-deintegrate命令: sudo gem install cocoapods-deintegrate
2香浩;然后到工程目錄下面執(zhí)行命令:pod deintegrate雷滋,就可以了不撑,然后手動(dòng)刪除.xcworkspace,libPods.a晤斩,Podfile焕檬,Podfile.lock文件就好了。如果想要重裝的話保留Podfile澳泵,再執(zhí)行命令:pod install?就好了实愚,很簡(jiǎn)單。