diff --git a/xcode-remove-caches.sh b/xcode-remove-caches.sh
index 34e266213d17435c0871b41a7635d2ead0b9baab..4d24eab47daf55841f3152f75e371388188612af 100755
--- a/xcode-remove-caches.sh
+++ b/xcode-remove-caches.sh
@@ -1,3 +1,5 @@
+pkill -int com.apple.CoreSimulator.CoreSimulatorService
+killall Xcode
 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/*