如何清除或清除特定的pod缓存
问题描述:
如何从cocoapods缓存中清除特定的pod?
尝试直接删除整个缓存,它需要大量的时间来取回所有的豆荚。如何查看和删除缓存中的特定窗格?如何清除或清除特定的pod缓存
以下工作(较长的时间提交):
# 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
从缓存中读取旧版本。当容器较大,目前使用的吊舱中的一个具有> 1.5 GB的大小在使用cocoapods1.3.1
与Xcode9
项目
有在群缓存相同群的许多情况下,可能会很麻烦。
答
清除特定吊舱的
清除特定吊舱的pod cache clean 'FortifySec'
`pod cache clear --all` # will clear all pods
`pod cache clear 'FortifySec' --all` # will remove all installed 'FortifySec' pods
示例输出,对于盒未使用语义版本,这可能会导致缓存相同群的多个副本:
pod cache clean 'FortifySec'
1: FortifySec v2.2 (External)
2: FortifySec v2.2 (External)
...
...
18: FortifySec v2.2 (External)
19: FortifySec v2.2 (External)
Which pod cache do you want to remove?
完成清理(POD重置)
1. `rm -rf ~/Library/Caches/CocoaPods`
2. `rm -rf Pods`
3. `rm -rf ~/Library/Developer/Xcode/DerivedData/*`
4. `pod deintegrate`
5. `pod setup`
6. `pod install`
+1
'pod cache clean --all'#将清除所有的豆荚 –
只需将其从pod文件中删除并更新即可。你想要做什么? – Desdenova
@Desdenova,只是从podfile中删除和'pod update'不能从缓存中清除它。 – lal