Xcode Clean up Installation: Difference between revisions
Jump to navigation
Jump to search
m (Protected "Xcode Clean up Installation" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<source lang="bash"> | <source lang="bash"> | ||
du -sh ~/Library/Developer | |||
du -sh ~/Library/Developer/Xcode | du -sh ~/Library/Developer/Xcode | ||
du -h -d1 ~/Library/Developer/Xcode | du -h -d1 ~/Library/Developer/Xcode | ||
du -h -d1 ~/Music/iTunes/iTunes\ Media/Music | |||
du -h -d1 ~/Library/Containers/com.docker.docker | |||
</source> | </source> | ||
<source lang="bash"> | <source lang="bash" highlight="3,6,7,9,10"> | ||
rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist | rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist | ||
rm -rf /Library/Preferences/com.apple.dt.Xcode.plist | rm -rf /Library/Preferences/com.apple.dt.Xcode.plist | ||
Line 17: | Line 18: | ||
rm -rf ~/Library/Developer/Xcode | rm -rf ~/Library/Developer/Xcode | ||
rm -rf /Applications/Xcode.app | rm -rf /Applications/Xcode.app | ||
docker image prune -a | |||
</source> | |||
<source lang="bash"> | |||
sudo rm -rf /Library/Developer/CommandLineTools | |||
sudo xcode-select --install | |||
</source> | </source> | ||
Latest revision as of 09:05, 2 May 2021
du -sh ~/Library/Developer
du -sh ~/Library/Developer/Xcode
du -h -d1 ~/Library/Developer/Xcode
du -h -d1 ~/Music/iTunes/iTunes\ Media/Music
du -h -d1 ~/Library/Containers/com.docker.docker
rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist
rm -rf /Library/Preferences/com.apple.dt.Xcode.plist
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Caches/com.apple.dt.Xcode
rm -rf ~/Library/Application Support/Xcode
rm -rf ~/Library/Developer/Xcode/Archives
rm -rf ~/Library/Developer/Xcode/UserData
rm -rf ~/Library/Developer/CoreSimulator
rm -rf ~/Library/Developer/Xcode
rm -rf /Applications/Xcode.app
docker image prune -a
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install