mirror of
https://github.com/jphong1111/awesome-ios-developer.git
synced 2024-12-22 21:55:37 +07:00
Add files via upload
This commit is contained in:
parent
945636162f
commit
fa0323d13d
29
clean-xcode.sh
Normal file
29
clean-xcode.sh
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# 1
|
||||||
|
echo "Removing Derived Data..."
|
||||||
|
rm -rf ~/Library/Developer/Xcode/DerivedData/
|
||||||
|
|
||||||
|
# 2
|
||||||
|
echo "Removing Device Support..."
|
||||||
|
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport
|
||||||
|
rm -rf ~/Library/Developer/Xcode/watchOS\ DeviceSupport
|
||||||
|
rm -rf ~/Library/Developer/Xcode/tvOS\ DeviceSupport
|
||||||
|
|
||||||
|
# 3
|
||||||
|
echo "Removing old simulators..."
|
||||||
|
xcrun simctl delete unavailable
|
||||||
|
|
||||||
|
# 4
|
||||||
|
echo "Removing caches..."
|
||||||
|
rm -rf ~/Library/Caches/com.apple.dt.Xcode
|
||||||
|
rm -rf ~/Library/Caches/org.carthage.CarthageKit
|
||||||
|
|
||||||
|
# 5
|
||||||
|
if command -v pod &> /dev/null
|
||||||
|
then
|
||||||
|
# 6
|
||||||
|
pod cache clean --all
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Done!"
|
Loading…
Reference in New Issue
Block a user