Skip to content

andrelucassvt/CleanMacForFlutter

Repository files navigation

Clean Mac for Flutter icon

Clean Mac for Flutter

A macOS app that cleans Flutter project build artifacts and quickly frees up disk space.

How it works

  1. 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.
  2. Click Select folders and choose the root folders of the Flutter projects you want to keep in the list.
  3. Enable or disable each project using the toggle in the list (only enabled projects will be cleaned).
  4. 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.
  5. The selected paths are saved. Just reopen the app and run the cleaning again whenever needed.

Clean build data & project index

  1. Click Clean build & index.
  2. 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.
  3. On subsequent clicks, a confirmation dialog appears showing how much disk space will be freed.
  4. Confirm to delete the contents of DerivedData/ and Index/ inside the selected folder.

What is removed

Flutter projects (Run clean)

  • build/
  • .dart_tool/
  • pubspec.lock
  • ios/Pods
  • ios/Podfile.lock
  • ios/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.

Xcode build data & index (Clean build & index)

  • DerivedData/ — compiled project data and build artifacts
  • Index/ — 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.

Extras

  • GitHub button opens the project repository.

Download

Latest release: https://github.com/andrelucassvt/CleanMacForFlutter/releases

Licenca de uso

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors