Skip to content

[Bug] Some caches can not be cleaned #82

Closed

Description

@neffepito
Image Image Image

I scanned and cleaned them a few times, but it didn't work.

Does it take something into account incorrectly?

Environment

  • macOS : Sequoia 15.7.5
  • PureMac version: 2.1.0 (5)
  • Install method: Homebrew

Activity

  1. added
    bug
    on Apr 30, 2026
  2. FishWY commented on May 4, 2026

    @FishWY

    I also encountered this problem.

  3. momenbasel commented on May 14, 2026

    @momenbasel
    Owner

    Fixed pending release (v2.2.0).

    This was caused by the same root cause as #75 / #71 / #89 — the cleaning engine was failing on root-owned items and on whole-subtree allow-list misses, then reporting "0 freed" instead of surfacing the failure.

    Three fixes landed in main via #80:

    1. isSafeToDelete allow-list extended to cover the dev-cache roots that scanners actually emit (~/Library/Developer/Xcode/DerivedData, Xcode/Archives, CoreSimulator/Caches, ~/.npm, ~/.cache, ~/Library/Containers/com.docker.docker, /var/log, /var/tmp). Whole-root paths now pass the safety check (Xcode/Brew/Node scanners emit at the root and were silently skipped).
    2. CleaningResult.cleanedPaths tracks what actually got deleted; the UI removes only those items instead of wiping the list and pretending success. Failed items stay visible.
    3. Permission-denied failures get routed to a single admin-privileged xargs -0 /bin/rm -rf batch (one auth prompt covers the whole batch). Paths re-validated against the safety allow-list before escalation, post-stat'd to confirm what disappeared.

    A real failure dialog now surfaces with the count and the items go to Logger, instead of fake-succeeding.

    Please retest with the v2.2.0 DMG when it ships.

  4. momenbasel commented on May 14, 2026

    @momenbasel
    Owner

    v2.2.0 shipped + verified.

    Release: https://github.com/momenbasel/PureMac/releases/tag/v2.2.0

    Built via the new signed/notarized CI pipeline. Verified locally on Apple Silicon:

    $ codesign --verify --deep --strict --verbose=2 PureMac.app
    PureMac.app: valid on disk
    PureMac.app: satisfies its Designated Requirement
    
    $ spctl --assess --type execute --verbose=4 PureMac.app
    PureMac.app: accepted
    source=Notarized Developer ID
    
    $ codesign -dvv PureMac.app | grep -E "Authority|flags"
    CodeDirectory ... flags=0x10000(runtime)
    Authority=Developer ID Application: Moamen Basel (H3WXHVTP97)
    Authority=Developer ID Certification Authority
    Authority=Apple Root CA
    
    $ lipo -archs PureMac.app/Contents/MacOS/PureMac
    x86_64 arm64
    

    Install:

    brew tap momenbasel/tap && brew install --cask puremac
    

    Or download PureMac-2.2.0.dmg directly from the release.

    Closing — please reopen if the issue still reproduces on 2.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions