Skip to content

Instantly share code, notes, and snippets.

@Yassir4
Forked from maciekish/resetXcode.sh
Created October 9, 2019 19:05
Show Gist options
  • Select an option

  • Save Yassir4/e7ec88c78bf0b00f5842f787e94d9ed9 to your computer and use it in GitHub Desktop.

Select an option

Save Yassir4/e7ec88c78bf0b00f5842f787e94d9ed9 to your computer and use it in GitHub Desktop.

Revisions

  1. @maciekish maciekish created this gist Aug 10, 2016.
    9 changes: 9 additions & 0 deletions resetXcode.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/bash
    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/*
    open /Applications/Xcode.app