最佳答案
尝试直接删除整个缓存,需要很长时间才能恢复所有的 pods。如何查看和删除缓存中的特定吊舱?
以下工作(较长时间提交) :
# delete all cached pods
`rm -rf "${HOME}/Library/Caches/CocoaPods"`
# delete local Pods/*
rm -rf "`pwd`/Pods/"
# pod update to fetch latest. After entire cache deletion, it takes lot longer to fetch and rebuild pod cache from scratch.
`pod update`
只要从 podfile 注释出来,pod install
就可以再次从 cache 获取旧版本。
Having many instances of same pod in the pod cache can be troublesome when the pod is large, one of the pod currently in use has size of >1.5 GB in a project that is using cocoapods1.3.1
with Xcode9
.