Monday, 24 July 2023

Tips to help you free up storage on your Android, Apple and Web development machines

If you're using your macOS machine for Android, Apple or Web application development and you're running low on storage, here are some tips to help you free up some gigabytes:

  1. Delete build directories by running find . -type d -name build -exec rm -rf {} \; in the parent directory which contains your development projects.
  2. Delete node_modules directories by running find . -type d -name node_modules -exec rm -rf {} \; in the parent folder which contains your development projects.
  3. Delete old, unused SDK Platforms and SDK Tools via the SDK Manager in Android Studio.
  4. Delete old, unneeded Emulators via the Device Manager in Android Studio.
  5. Delete old, unneeded Simulator Runtimes via the Platforms tab in Xcode settings.
  6. Delete unavailable Simulators by running xcrun simctl delete unavailable.
  7. Delete files and folders from ~/Library/Developer/Xcode/DerivedData.
  8. Delete files and folders from ~/.gradle/caches.

No comments: