且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何清除或清除特定的pod缓存

更新时间:2022-05-09 00:06:16

清除特定广告连播



Clearing a specific pod

`pod cache clean --all` # will clean all pods
`pod cache clean 'FortifySec' --all` # will remove all installed 'FortifySec' pods 

示例输出pod cache clean'FortifySec',对于不使用语义版本控制的pod,这可能导致缓存中相同pod的许多副本:

Sample output of pod cache clean 'FortifySec', for pods not using semantic versioning, this could result in many copies of same pod in cache:

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重置)



Complete cleanup (pod reset)

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`