Skip to content

Instantly share code, notes, and snippets.

View kazmasaurus's full-sized avatar

Zak Remer kazmasaurus

View GitHub Profile
@kazmasaurus
kazmasaurus / resetXcode.sh
Last active February 23, 2017 18:04 — forked from maciekish/resetXcode.sh
Reset Xcode. Clean, clear module cache, Derived Data and Xcode Caches. You can thank me later.
#!/bin/bash
# Assumes you're in the directory with the `.xcodeproj`
killall Xcode
xcrun -k
xcodebuild -alltargets clean
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/Caches/com.apple.dt.Xcode/*
rm -rf *.xcodeproj/xcuserdata/