Chore: add react native clean project

This commit is contained in:
Maria Zadnepryanets
2021-08-15 11:56:09 +00:00
parent 87a68ba9c5
commit 4fedb1928c
8 changed files with 153 additions and 27 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
echo "\x1b[35;01m""Start clearing ios cache...""\x1b[39;49;00m"
echo "Remove all Xcode derived data..."
rm -rf ~/Library/Developer/Xcode/DerivedData
echo "Remove iOS build..."
rm -rf ios/build
echo "Remove iOS Pods data..."
rm -rf ios/Pods/*
echo "Remove Podfile.lock..."
rm Podfile.lock
echo "Wipe iOS build artifacts..."
rm -rf ios/build && (killall Xcode || true) && xcrun -k && cd ios && xcodebuild -alltargets clean && cd .. && rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" && rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" && rm -fr ~/Library/Developer/Xcode/DerivedData/ && rm -fr ~/Library/Caches/com.apple.dt.Xcode/
echo "Wipe system iOS Pods cache..."
pod cache clean --all
echo "Wipe user iOS Pods cocoapods cache..."
rm -rf ~/.cocoapods
echo "\x1b[35;01m""Done!""\x1b[39;49;00m"