更新时间:2022-05-09 00:06:16
`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?
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`