Skip to content

Instantly share code, notes, and snippets.

@sukov
Last active February 5, 2022 14:04
Show Gist options
  • Save sukov/c61477bde87c7b676734f6cfa19f504f to your computer and use it in GitHub Desktop.
Save sukov/c61477bde87c7b676734f6cfa19f504f to your computer and use it in GitHub Desktop.
Clear CocoaPods cache, re-download and re-install all pods
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
# In case a corrupt repo compromises `pod repo update` command
rm -rf ~/.cocoapods/repos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment