Created
September 25, 2020 14:49
-
-
Save suzumura-ss/4cf1f67171ddae249b5a6454b2d60b77 to your computer and use it in GitHub Desktop.
Cleanup xcode caches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
killall Xcode | |
xcrun -k | |
xcrun simctl delete unavailable | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
rm -rf ~/Library/Developer/Xcode/DerivedData/* | |
rm -rf ~/Library/Developer/Xcode/Archives/* | |
rm -rf ~/Library/Caches/com.apple.dt.Xcode/* | |
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment