70

I use Carthage dependencies manager in my iOS projects and I am wondering what is the best way to clean its cache in case some issues with update occur

Alex Peda
  • 4,210
  • 3
  • 22
  • 31

1 Answers1

167

The solution from here helped me, we should call it like:

rm -rf ~/Library/Caches/org.carthage.CarthageKit
Alex Peda
  • 4,210
  • 3
  • 22
  • 31
  • 3
    or add sudo before this command to make it: `sudo rm -rf ~/Library/Caches/org.carthage.CarthageKit` – Amjad Husseini Dec 17 '17 at 11:55
  • 8
    There's should be no need for sudo since ~/ means it's in the user's home directory, unless potentially they ran carthage as root or something... – Ben Baron Jan 16 '18 at 23:22
  • 18
    also, maybe just my version, but: `rm -rf ~/Library/Caches/carthage` – Joel Teply Feb 28 '18 at 10:03
  • 4
    also keep in mind Carthage will "find a valid cache" when the output directory already contains the built framework – cornr Apr 12 '19 at 09:39