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
Asked
Active
Viewed 4.9k times
1 Answers
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
-
3or add sudo before this command to make it: `sudo rm -rf ~/Library/Caches/org.carthage.CarthageKit` – Amjad Husseini Dec 17 '17 at 11:55
-
8There'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
-
18also, maybe just my version, but: `rm -rf ~/Library/Caches/carthage` – Joel Teply Feb 28 '18 at 10:03
-
4also 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