A macOS app that cleans Flutter project build artifacts and quickly frees up disk space.
- Open the app and grant Full Disk Access when prompted
(System Settings → Privacy & Security → Full Disk Access).
Without this permission, the app cannot delete project folders. - Click Select folders and choose the root folders of the Flutter projects you want to keep in the list.
- Enable or disable each project using the toggle in the list (only enabled projects will be cleaned).
- Press Run clean. The app shows the progress and, at the end, a summary with the number of folders removed and the disk space freed.
- The selected paths are saved. Just reopen the app and run the cleaning again whenever needed.
- Click Clean build & index.
- On the first use, the app asks you to select the Xcode developer folder (default path:
~/Library/Developer/Xcode). This selection is saved so you only need to do it once. - On subsequent clicks, a confirmation dialog appears showing how much disk space will be freed.
- Confirm to delete the contents of
DerivedData/andIndex/inside the selected folder.
build/.dart_tool/pubspec.lockios/Podsios/Podfile.lockios/Gemfile.lock
These items are automatically recreated by Flutter/Swift when running
flutter pub get, pod install, or new builds, so it is safe to remove them to recover disk space.
DerivedData/— compiled project data and build artifactsIndex/— Xcode's project index used for code completion and navigation
These are regenerated by Xcode on the next build, so it is safe to remove them to recover disk space.
- GitHub button opens the project repository.
Latest release: https://github.com/andrelucassvt/CleanMacForFlutter/releases
Este codigo não esta liberado para uso comercial. O uso é permitido apenas em projetos open source sem fins lucrativos.
This code is not licensed for commercial use. Use is permitted only in non-profit open source projects.