Skip to content

Instantly share code, notes, and snippets.

@VishwaiOSDev
Last active May 1, 2022 07:00
Show Gist options
  • Save VishwaiOSDev/a0e726654bfd309910e46e412e474cee to your computer and use it in GitHub Desktop.
Save VishwaiOSDev/a0e726654bfd309910e46e412e474cee to your computer and use it in GitHub Desktop.
Clean Xcode Derived Data from Terminal

Clean Derived Data

There is a handy way to clean Xcode Derived Data using Terminal. Please follow the below steps carefully.

Steps

  1. Check does your mac have .zshrc file.
  2. Open terminal type cd ~ this will switch your terminal to root directory.
  3. Now type ls -al this command will show list of all files in that directory including the hidden files.
  4. Check .zshrc file is available.
  5. If you have .zshrc file go to Step 7.
  6. If you don't have .zshrc file type touch .zshrc this will create a new .zshrc file.
  7. Now paste this command echo "alias blast='rm -rf ~/Library/Developer/Xcode/DerivedData'" >> .zshrc
  8. Now type source .zshrc this will update the changes you have made.
  9. Close and reopen the terminal. If you type blast it will clean the derived data for your Xcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment