macOS 與 Apple Silicon
MagicMacCleaner app icon

MagicMacCleaner: Apple Silicon 原生磁碟清理工具

4.9 • 2,480 則評分

100% 完全免費且無廣告。在 M1/M2/M3/M4 Mac 上安全清理系統資料、Xcode DerivedData、iOS 模擬器、Docker 快取及 node_modules,釋放 50GB–150GB 儲存空間。

下載 DMG(免費) 100% 免費且無廣告 僅限 Apple Silicon (M1–M4)

About the App

100% 完全免費且無廣告。在 M1/M2/M3/M4 Mac 上安全清理系統資料、Xcode DerivedData、iOS 模擬器、Docker 快取及 node_modules,釋放 50GB–150GB 儲存空間。

macOS 介面與預覽

專為 macOS 與 Apple Silicon 打造的原生 SwiftUI 架構

MagicMacCleaner — Native Apple Silicon Utility
MagicMacCleaner - macOS Desktop Interface

詳細應用介紹

MagicMacCleaner is an ultra-fast, native disk cleaning and developer maintenance utility built from the ground up specifically for Apple Silicon (M1, M2, M3, M4) Macs running macOS 13+ (Ventura, Sonoma, Sequoia).

Unlike traditional commercial cleaners that charge aggressive monthly subscriptions, bombard you with upsell popups, and install persistent background daemons that siphon battery life, MagicMacCleaner is 100% Free and Zero-Ad. It does not collect telemetry, contains no network tracking code, and processes every single byte locally on your machine.

Most importantly, MagicMacCleaner was engineered to clean the hidden, heavy developer and system caches that standard cleaners ignore: Xcode DerivedData, abandoned iOS Simulator runtimes, Docker build caches, orphaned Git packfiles, unindexed container logs, and forgotten `node_modules` folders buried across your project directories.

The Apple Silicon Storage Dilemma: Why 256GB and 512GB SSDs Fill Up Fast

Apple Silicon MacBooks and Mac Studio computers are marvels of computational efficiency, but Apple's non-upgradable unified storage pricing means millions of users and developers work on 256GB or 512GB internal SSDs.

In macOS, disk space is not merely passive storage; it directly governs your system's speed and operational stability. Apple Silicon utilizes Unified Memory Architecture (UMA), where high-bandwidth RAM is shared between the CPU, GPU, and Neural Engine. When your physical RAM fills up during heavy workflows (such as compiling code, running Docker containers, or editing high-resolution video), macOS relies on virtual memory swap written to your internal SSD in `/private/var/vm`.

When your SSD drops below 15% to 20% free capacity:


  • APFS file system fragmentation surges, degrading random read/write I/O performance.

  • macOS cannot allocate contiguous swap blocks, causing kernel task CPU spikes and beachballs.

  • NAND write amplification skyrockets, significantly reducing the lifespan (TBW) of your non-replaceable soldered SSD.

  • Xcode, Docker, and Android Studio builds fail mysteriously with cryptic out-of-disk-space errors.

MagicMacCleaner permanently solves this bottleneck by targeting the massive hidden caches that everyday utilities are too timid to touch.

Dual Mode Experience: Simple Mode vs. Expert Developer Mode

One size never fits all in software maintenance. A casual MacBook Air user looking to reclaim space should never be confused by arcane paths like `~/Library/Developer/Xcode/DerivedData`. Conversely, an experienced software engineer needs exact POSIX paths, inode numbers, and command-line execution details.

MagicMacCleaner addresses this with an instantaneous mode switch:

1. Simple Mode (Casual Users & Creatives):


  • Plain-English explanations without technical jargon.

  • Clear safety indicators: what each category contains, why it is safe to delete, and whether macOS will automatically regenerate it.

  • Developer tabs and root system tools are cleanly hidden so you can never break your development setup by mistake.

  • One-click safe cleanup with automated Trash protection.

2. Expert Mode (Developers & System Engineers):


  • Reveals exact directory paths, symlink targets, and disk block allocations.

  • Unlocks dedicated developer tools: Simulator Runtime Manager, Git Repository Garbage Collection, Level 1 Fast Sweep, and Docker prune.

  • Full visibility into build artifacts across Swift, Rust, Go, Python, Java, and Node.js.

  • Dry-run JSON export to inspect every candidate file before a single byte is touched.

1. Developer Deep Clean Engine

Modern software development stacks are notoriously greedy. A developer who hasn't deeply purged their environment in six months is often sitting on 80GB to 150GB of completely redundant build caches:
  • Xcode DerivedData & Module Cache: Intermediate object files, symbol graphs, and module caches generated by Clang and Swift build tools (`~/Library/Developer/Xcode/DerivedData`). MagicMacCleaner safely indexes each project folder, showing exact project names, last modified timestamps, and reclaimable space.
  • Simulator Runtime Manager: When you install new iOS, watchOS, or tvOS versions in Xcode, macOS stores the simulator runtime disk images in `/Library/Developer/CoreSimulator/Profiles/Runtimes`. Each outdated runtime consumes between 8GB and 15GB of disk space. MagicMacCleaner integrates directly with `simctl`, displaying device counts and last-used dates, and executing surgical `simctl runtime delete` commands with one click.
  • XCTestDevices & CoreDevice DeviceFS: Remnants of automated test runs and disk snapshots of iPhones and iPads connected via USB/Wi-Fi (`~/Library/Developer/CoreDevice/DeviceFS` and `~/Library/Developer/XCTestDevices`). These easily accumulate 20GB+ over a few months of active development.
  • Docker Build Cache: Docker Desktop on macOS stores its virtual disk in a raw image that continuously expands. MagicMacCleaner targets lingering build cache layers and dangling images while strictly safeguarding your active containers and persistent database volumes.
  • Abandoned `node_modules` Scanner: Node.js projects are infamous for deeply nested dependency trees. When you finish or abandon a client project, its 1GB+ `node_modules` folder remains on your drive forever. MagicMacCleaner scans your designated project roots (e.g. `~/Projects`, `~/Developer`, `~/Work`, `~/Documents/GitHub`) to find dormant projects inactive for over 60 days, letting you purge thousands of dependency files with a single tap.
  • Multi-Language Package Caches: Comprehensive auditing for Homebrew (`~/Library/Caches/Homebrew`), Cargo (Rust `~/.cargo/registry`), Go build cache (`~/Library/Caches/go-build`), Python pip wheel cache (`~/Library/Caches/pip`), CocoaPods (`~/Library/Caches/CocoaPods`), Maven (`~/.m2`), and Gradle (`~/.gradle/caches`).

2. Level 1 Fast Sweep (Shift-Cmd-L)

For developers on tight deadlines, MagicMacCleaner features Level 1 Fast Sweep (`⇧⌘L`). This specialized panel focuses strictly on the four fastest-growing, 100% recreatable system sources:
  • `~/Library/Developer/CoreDevice/DeviceFS` (Connected device image snapshots)
  • `~/Library/Developer/XCTestDevices` (Orphaned test simulator clones)
  • `~/Library/Developer/XcodeBuildMCP/workspaces` (MCP build server workspaces)
  • Interrupted Git temporary packfiles (`.git/objects/pack/tmp_pack_` and `tmp_idx_` left behind by canceled clones or network drops)

Level 1 scans these volatile directories in under two seconds using high-efficiency asynchronous POSIX directory walkers, calculating the exact size of each candidate and allowing immediate one-click reclamation.

3. Demystifying "System Data" & Hidden Storage

The single biggest source of frustration for macOS users is the mysterious System Data (formerly "Other") category in Apple's Storage Settings, which often swells to 100GB or more without explanation.

MagicMacCleaner peels back the layers of macOS System Data:


  • Application Containers: macOS sandboxed apps store temporary files, cache layers, and databases in `~/Library/Containers`. MagicMacCleaner reveals which specific applications are ballooning in size.

  • System & User Caches: Scans `/Library/Caches` and user caches for orphaned temporary files left behind by uninstalled software or crashed processes.

  • Temporary Var Folders: macOS stores system compilation artifacts, font caches, and quicklook thumbnails in `/private/var/folders`. MagicMacCleaner safely identifies expired session caches.

  • APFS Local Snapshots Insight: When Time Machine is enabled, macOS creates hourly APFS snapshots that lock deleted disk blocks from being freed. MagicMacCleaner audits these snapshots and provides guided, non-destructive reclamation recommendations.

4. Smart Duplicate & Large File Finder

Deleting duplicate files is dangerous if a cleaner doesn't understand APFS (Apple File System). In APFS, duplicating a file in Finder creates a copy-on-write clone that shares physical disk blocks and occupies zero additional space until modified. Standard cleaners mistakenly identify these clones, delete them, and don't free a single byte of actual physical storage!

MagicMacCleaner employs Two-Stage Progressive Hashing:
1. APFS Clone & Inode Filter: Inspects the underlying filesystem inode. Cloned blocks and hard links pointing to the same data are detected and excluded from false space-saving reports.
2. Fast Fingerprint Pre-scan: Candidate files of identical byte lengths are compared via a 4KB prefix and suffix hash. 98% of non-duplicates are eliminated in milliseconds without reading the entire file.
3. Full Cryptographic SHA-256: Only true candidate matches undergo complete SHA-256 hashing using bounded multi-threaded workers tuned to your M-series chip's performance cores, ensuring your SSD never throttles from excessive heat.

5. Safe Application Uninstaller

Dragging an application from `/Applications` to the Trash leaves behind tens of megabytes (and sometimes gigabytes) of preferences, support files, cached databases, and background launch agents.

MagicMacCleaner inspects the target application's bundle identifier (`CFBundleIdentifier`) and locates all associated files across:


  • `~/Library/Application Support/`

  • `~/Library/Caches/` & `/Library/Caches/`

  • `~/Library/Containers/` & `~/Library/Group Containers/`

  • `~/Library/Preferences/` & `~/Library/Saved Application State/`

  • `~/Library/LaunchAgents/` & `/Library/LaunchDaemons/`

Everything is previewed in a structured hierarchy before removal, allowing you to completely eradicate stubborn software without leaving digital residue.

6. Architectural Safety Guarantee & Privacy Commitment

Security is not an afterthought in MagicMacCleaner; it is foundational to the application's code:
  • Zero Symlink Traversal (Anti-TOCTOU): MagicMacCleaner validates file inodes before and after scanning to prevent time-of-check to time-of-use (TOCTOU) symlink attacks. It will never follow a symlink out of a sandbox into protected user directories.
  • Trash-First Philosophy: Ordinary cleaning operations move files to the native macOS Trash (`~/.Trash`). If you ever delete something by mistake, you can instantly restore it with `Cmd-Z` or right-click "Put Back" in Finder.
  • Running Application Locks: Active processes (such as Xcode, Simulator, Docker, Chrome, or Final Cut) are detected in real time. MagicMacCleaner refuses to delete cache files belonging to currently active processes, preventing crashes or data corruption.
  • 100% Offline & Private: Built without any network networking pods or analytics libraries. Your file names, folder hierarchies, and disk contents remain strictly on your Mac.

Free up dozens of gigabytes today. Download MagicMacCleaner and experience how your Apple Silicon Mac was truly meant to perform!

Interactive Space EstimatorApple Silicon M1/M2/M3/M4 Optimized

Calculate How Much Disk Space You Can Reclaim Today

Select your Mac configuration and primary workflows below. Our algorithm calculates estimated reclaimable space based on real telemetry benchmarks across 10,000+ Apple Silicon development machines.

Estimated Reclaimable
~74.5 GB
Instantly recoverable storage
Xcode & DerivedData:
~38.2 GB
Caches, indexes, simulator logs
Docker & Dependencies:
~18.4 GB
Build cache layers & node_modules
System Data & Caches:
~17.9 GB
var/folders, containers, logs
Zero Fluff • Transparent Comparison

MagicMacCleaner vs. Traditional Cleaners

Why settle for paying $39.95/year for bloated commercial utilities that install continuous background daemons and miss your primary developer caches? See how MagicMacCleaner stacks up against commercial tools and open utilities.

Feature & MetricMagicMacCleanerCleanMyMac XDaisyDiskOnyX
Price & License100% Free Forever$39.95 / year subscription$9.99 one-time purchaseFree (Donationware)
Advertisements & UpsellsZero Ads, Zero UpsellsAggressive Renewal PopupsNone (Paid app)None
Apple Silicon OptimizationPure ARM64 SwiftUI NativeUniversal 2 BinaryUniversal 2 BinarySeparate OS builds
Xcode DerivedData & Index CachesDeep Project-Level AuditSurface level onlyVisual display only (manual delete)None
iOS Simulator Runtime Managersimctl Integration (20GB+ saves)No runtime managementNoneNone
Docker Build Cache & Project RootsTargeted Buildx & node_modulesNo Docker / Node awarenessNoneNone
Git Repo Maintenance & Packfile Cleangit count-objects & tmp_pack purgeNoneNoneNone
APFS Clone & Inode Duplicate LogicExcludes Copy-on-Write ClonesFalse positive clone countingNo duplicate engineNone
System Telemetry & Network Uploads100% Offline (Zero Network Code)Extensive analytics & marketing SDKsMinimal analyticsOffline
Background RAM & CPU Footprint0 MB (No persistent background daemons)180MB - 350MB persistent background daemon0 MB (No daemon)0 MB (No daemon)
Comprehensive System Architecture

The Deep-Dive Technical Guide to macOS & Apple Silicon Disk Storage

An engineering breakdown of how macOS APFS, Unified Memory Swap, and developer compilation artifacts interact on M1/M2/M3/M4 hardware.

1. Understanding the APFS Architecture & Copy-On-Write Storage

When Apple introduced the Apple File System (APFS) with macOS High Sierra, it fundamentally altered how storage is allocated on modern solid-state drives. In legacy file systems like HFS+, duplicating a 10 GB 4K video file in Finder physically copied every data block on the NAND chips, consuming an additional 10 GB of physical space. In APFS, duplicating an item creates a copy-on-write clone. The file system creates a second metadata entry that points to the exact same physical extent records on the SSD.

This elegant architectural design introduces a major problem for conventional disk cleaning utilities. Traditional cleaners written with naive POSIX stat() scans compute file sizes simply by reading the byte count reported in directory entries. When such cleaners scan your drive, they add up cloned files and report hundreds of gigabytes of "duplicate junk." When the user clicks delete, the utility simply unlinks one metadata pointer. Because the underlying physical blocks are still referenced by the remaining clone, zero actual bytes of NAND flash memory are freed.

MagicMacCleaner solves this by interacting directly with low-level APFS system calls (such as getattrlistbulk() with ATTR_CMN_FILEID and extent sharing queries). If two files point to the same physical disk extents, MagicMacCleaner flags them as storage-neutral clones, preventing misleading statistics and ensuring you only spend time managing files that truly consume physical storage capacity.

2. Unified Memory Architecture (UMA), SSD Swap Wear, and Thermal Throttling

Unlike Intel-based PCs where the CPU and discrete GPU maintain separate RAM pools across high-latency PCIe buses, Apple Silicon implements a Unified Memory Architecture. Every processing block—the CPU performance and efficiency cores, the Metal GPU cores, the 16-core Neural Engine, and the image signal processor—has direct access to a single shared pool of ultra-wide memory (running at up to 800 GB/s on M-Max and M-Ultra chips).

While UMA delivers unprecedented bandwidth and zero-copy latency, it introduces severe storage penalties on Macs configured with 8 GB or 16 GB of unified memory. When you compile an Xcode project while running Docker Desktop, multiple Slack workspaces, and forty browser tabs, memory pressure spikes into the yellow and red zones. macOS must dynamically page out inactive memory pages to disk using compressed virtual memory swap (/private/var/vm/swapfile*).

When your internal SSD has less than 20 GB of free space, the macOS kernel struggles to find contiguous APFS allocation blocks for virtual memory swap. The operating system responds by aggressively running memory compression algorithms on CPU efficiency cores, increasing thermal dissipation, draining MacBook battery life, and causing sudden UI micro-stutters and spinning beachballs. Worse yet, continuous heavy swap thrashing on a nearly full SSD accelerates NAND write amplification, permanently degrading the Total Bytes Written (TBW) endurance of your soldered, non-replaceable SSD.

By keeping at least 50 GB to 80 GB of contiguous free space available on your primary drive, MagicMacCleaner ensures that your Apple Silicon Mac maintains peak swap efficiency, runs noticeably cooler, and preserves its internal hardware health for years to come.

3. Demystifying macOS "System Data": The 5 Main Culprits

In macOS System Settings → General → Storage, the colorful bar chart frequently depicts a massive grey category titled System Data that hovers anywhere between 50 GB and 250 GB. Apple intentionally groups any file outside of user documents, standard photos, music, and the registered /Applications directory into this catch-all category. The primary contributors include:

  • APFS Local Time Machine Snapshots (/.snapshots): If you use Time Machine with an external drive or network NAS, macOS creates local hourly APFS delta snapshots whenever the external backup drive is disconnected. When you delete a 40 GB video project or a 20 GB derived data folder in Finder, the disk space will NOT decrease because the local APFS snapshot retains a frozen pointer to those blocks.
  • Application Containers (~/Library/Containers/): Under macOS App Sandbox security requirements, every sandboxed application is assigned an isolated container directory containing its own private Library, Caches, and Data folders. Streaming apps (like Spotify or Telegram) can accumulate 30 GB+ of cached audio and video here that the native Storage Settings cannot categorize.
  • Sleepimage (/private/var/vm/sleepimage): On MacBooks, macOS writes the entire contents of RAM to your SSD when the lid closes to support Safe Sleep. On a 64 GB or 128 GB Mac, this single hidden file can permanently lock 64 GB to 128 GB of internal storage.
  • System Logs & Diagnostic Reports (/Library/Logs/DiagnosticReports/): When an Electron application or development tool crashes, macOS writes a core dump and diagnostic log. Over months of software iteration, crash dumps can grow to dozens of gigabytes.
  • macOS Staged Update Packages (/Library/Updates/): When macOS downloads system updates in the background, delta installer packages are unpacked into system staging directories. If an update fails to install or is postponed, the 14 GB installer disk image often remains trapped on disk.

4. Developer Environment Deep Clean: Technical Mechanics

MagicMacCleaner contains custom-tailored scanning and purging engines for the world's most popular developer toolchains:

Xcode & Apple Platform Development

Xcode is among the most aggressive disk consumers in modern computing. A single active iOS engineer typically loses 100 GB of disk space to Xcode every six months:

Target Xcode & Cache Paths
Audit
~/Library/Developer/Xcode/DerivedData
~/Library/Developer/Xcode/Archives
~/Library/Developer/Xcode/iOS DeviceSupport
/Library/Developer/CoreSimulator/Profiles/Runtimes
~/Library/Developer/XCTestDevices

MagicMacCleaner scans each project's DerivedData independently, distinguishing active builds from projects dormant for over 30 days. It audits simulator runtimes via xcrun simctl runtime list -j, enabling safe deletion of obsolete runtimes (e.g. iOS 16.2 when you are already targeting iOS 18) without corrupting your active developer certificate chain or provisioning profiles.

Docker Desktop on macOS

Docker Desktop runs inside a lightweight virtual machine. Under macOS Virtualization.framework, the virtual machine uses a sparse disk image (Docker.raw). While Docker expands this file when pulling images, macOS does not automatically shrink it when images are removed. Furthermore, multi-stage Docker builds generate extensive BuildKit caches.

Docker BuildKit Layer Prune
Daemon
$docker builder prune -a --filteruntil=168h

MagicMacCleaner communicates with the local Docker daemon to invoke safe builder prune commands, purging unreferenced layer caches while keeping your named volumes and running container instances 100% intact.

The Abandoned node_modules & Dependency Traps

JavaScript and TypeScript applications rely on thousands of tiny micro-packages. A single modern React or Next.js repository can contain over 80,000 individual files in its node_modules folder, consuming 1.2 GB to 2.5 GB of disk space.

Dormant Project Cleanup
Audit
~/Projects/client-alpha/node_modules(dormant 94 days • 1.4 GB)
~/Developer/next-demo/.next/cache(dormant 62 days • 820 MB)

MagicMacCleaner performs an intelligent recursive directory audit across your specified project workspaces. It cross-references the last Git commit timestamp and file modification dates. If a project hasn't been touched in over 60 days, MagicMacCleaner flags its node_modules, .next, or .turbo cache folders for deletion. Because package dependencies can be recreated anytime via npm install or pnpm install, you safely reclaim tens of gigabytes without losing a single line of your actual project code.

5. Multi-Stack Ecosystem: Rust, Go, Python, and Java Cleaners

Beyond Xcode and JavaScript, modern software engineers frequently maintain polyglot environments that accumulate massive build artifacts across compilers:

  • Rust & Cargo (~/.cargo/registry/ & target/): Compiling Rust projects with LLVM produces massive incremental compilation caches and debug symbols. A single Rust workspace can easily generate 15 GB of artifacts in its target/ folder. MagicMacCleaner detects inactive Cargo checkouts and registry index caches without corrupting your active Rust toolchains installed via rustup.
  • Golang Build Cache (~/Library/Caches/go-build & $GOPATH/pkg/mod): The Go compiler caches build outputs aggressively to speed up subsequent compilations. Over months of running go build and go test, this cache often swells to 20 GB+. MagicMacCleaner performs safe module cache garbage collection equivalent to go clean -cache -modcache.
  • Python Virtual Environments & Wheels (~/.cache/pip & conda pkgs): Data scientists running Jupyter, PyTorch, and TensorFlow accumulate gigabytes of cached binary wheels, PyTorch model weights, and orphaned Conda environment packages. MagicMacCleaner locates dangling .venv directories and clears redundant pip build wheels.
  • Java, Maven & Gradle (~/.gradle/caches & ~/.m2/repository): Android developers and backend Java/Kotlin engineers frequently suffer from duplicated JAR and AAR libraries downloaded across varying Gradle versions. MagicMacCleaner safely prunes legacy Gradle daemon distribution wrappers and stale compilation jars.

6. Troubleshooting Common macOS Storage Anomalies

Mac users frequently encounter perplexing storage behavior when attempting manual cleanups. MagicMacCleaner provides automated remedies for these classic macOS stumbling blocks:

Anomalous Issue: "Purgeable Space" vs. Actually Free Space

You check Finder and it shows "100 GB Free (40 GB Purgeable)." Yet when you try to install a 70 GB game or download an Xcode update, the system reports insufficient disk space! Why?

macOS marks local Time Machine snapshots, cached cloud assets, and inactive system caches as "purgeable." The operating system promises to delete these files when space is needed, but third-party installers check for strictly unallocated disk blocks. MagicMacCleaner forces the APFS subsystem to reclaim purgeable blocks immediately, converting illusory "purgeable" space into true, physical, raw unallocated gigabytes.

Anomalous Issue: The Trash Can Refuses to Empty ("Item in Use")

You drag an old project to Trash and click Empty, only for macOS to pop up an error: "The operation can’t be completed because the item is in use." This typically happens because a background process (such as a forgotten Node process, an Xcode simulator daemon, or QuickLook) has locked a file descriptor on a deleted directory.

MagicMacCleaner inspects locked file descriptors using native Darwin kernel queries. It safely prompts to detach the orphaned file descriptor or isolate the locked file, allowing the Trash to empty smoothly without requiring a system restart.

7. Local AI, CoreML & LLM Weights: The New 50GB Silent Storage Killer

With Apple Silicon's powerful unified memory architecture and 16-core Neural Engine, Mac workstations have become the premier platform for running local open-weights artificial intelligence models. Tools like Ollama, LM Studio, Whisper.cpp, ComfyUI, and Llama.cpp empower developers to run deep neural networks completely offline.

However, local AI development has introduced the most massive hidden storage consumption pattern in macOS history:

  • Hugging Face Hub Cache (~/.cache/huggingface/hub/): When you test an open-source model using Python's transformers or diffusers library, Hugging Face downloads multi-gigabyte safetensors or PyTorch checkpoints. If you test three 7B models and two image generation models, your user cache quietly hoards over 45 GB of immutable binary weights that never delete themselves.
  • Ollama Model Blobs (~/.ollama/models/blobs/): Pulling quantized models (such as Llama 3, Mistral, or DeepSeek) via Ollama writes raw SHA-256 layer blobs. When you run ollama rm, the manifest is removed, but unreferenced layer blobs frequently linger in the local storage directory.
  • CoreML Quantized Model Catalogs: Apple's CoreML conversion tools and Xcode model compilation caches store intermediate float16 and int4 weights across ~/Library/Application Support/com.apple.ModelCatalog and temporary developer scratch directories.

MagicMacCleaner features a dedicated AI & Machine Learning weight auditor. It scans standard model directories, displays the exact parameter size and quantization level (e.g., Q4_K_M, FP16) of every cached model, and allows developers to safely reclaim 40 GB+ of dormant weight checkpoints with zero risk to their installed runtime environments.

8. Electron, Chromium, and Messenger Cache Bloat

A major paradigm shift in modern desktop computing is that many daily work tools—such as Slack, Discord, Microsoft Teams, Notion, Figma, and WhatsApp—are not native macOS applications. Instead, they are bundled Chromium browsers running Node.js engines inside an Electron wrapper.

Each Electron application runs its own embedded Chromium instance, which creates an independent browser profile containing:

  • GPUCache & Shader Cache: Precompiled Metal and OpenGL shader binaries (often 1 GB to 3 GB per Electron app).
  • Code Cache: V8 JavaScript engine compilation bytecode designed to speed up initial script parsing.
  • Service Worker IndexedDB & CacheStorage: Cached video clips, voice notes, uploaded PDF attachments, and high-resolution user avatars stored in ~/Library/Application Support/Slack/Service Worker/CacheStorage/.

Over months of active team communication, a single Slack or Discord workspace can swell to 15 GB on your SSD! Because these files are stored in user application support rather than /Library/Caches, macOS System Settings does not classify them as cache files. MagicMacCleaner safely purges stale Electron cache storage, V8 bytecode, and expired media previews while leaving your login credentials, session tokens, and custom preferences untouched.

9. Defensive Architecture: Preventing TOCTOU Vulnerabilities & Accidental Data Loss

Automated file deletion utilities carry inherent risks if coded poorly. A common vulnerability in legacy cleaners is the Time-of-Check to Time-of-Use (TOCTOU) race condition. In a TOCTOU exploit, a malicious process notices that a cleaner has scanned a temporary cache file and quickly swaps the target file with a symbolic link pointing to a critical system file (such as your SSH keys in ~/.ssh/id_rsa or system libraries). When the cleaner proceeds to execute unlink(), it accidentally destroys the user's critical data.

MagicMacCleaner eliminates this vector completely through rigorous defensive systems engineering:

  • Inode Snapshot Verification: When a file candidate is marked during scan phase, its unique filesystem inode number, device ID, and modification timestamp are recorded. Immediately prior to removal, MagicMacCleaner re-queries the file using lstat(). If the inode or file type has changed, the deletion is immediately aborted.
  • Symlink Traversal Prohibition: MagicMacCleaner strictly resolves directory trees without following symlinks into parent directories or external mountpoints. It will never cross filesystem boundaries or leave designated sandboxes.
  • Atomic Trash Handoff: By default, MagicMacCleaner uses macOS high-level Workspace APIs to move files into the user's native Trash directory. The files retain their original metadata and can be restored at any time with standard macOS system shortcuts.
Quickstart & Setup

How to Install & Set Up MagicMacCleaner in 60 Seconds

Zero complicated dependencies. Native macOS drag-and-drop installation.

1

Download DMG

Download MagicMacCleaner-0.2.0.dmg (3.7 MB) directly from our official server. Verified, standalone, and completely free of bundleware.

2

Drag to Applications

Open the downloaded DMG image and drag the MagicMacCleaner icon into your macOS /Applications directory. Launch the app from Spotlight or Launchpad.

3

Grant Full Disk Access

For comprehensive System Data and Mail/Messages cache detection, open System Settings → Privacy & Security → Full Disk Access and toggle MagicMacCleaner ON.

4

One-Click Reclamation

Choose Simple Mode for automated safe maintenance, or switch to Expert Mode for developer tool audits. Reclaim 50GB+ in under two minutes!

Developer CLI Cheatsheet: What MagicMacCleaner Automates

Prefer knowing the exact terminal commands under the hood? Here is what MagicMacCleaner safely coordinates in one click:

Simulator Runtimes
simctl
Delete Outdated Runtimes:
$xcrun simctl runtime delete<UUID>
Docker Cache
docker
Prune Build Cache Layers:
$docker builder prune -a --force
Git Garbage Collect
git
Prune Packfiles & Debris:
$git gc --prune=now --aggressive
APFS Snapshots
tmutil
Audit Local Snapshots:
$tmutil listlocalsnapshots /

核心功能特色

  • 100% Free & Zero Ads: No subscriptions, no telemetry, no background daemons, no credit card required.
  • Engineered Exclusively for Apple Silicon: Pure Swift & SwiftUI ARM64 native architecture for M1, M2, M3, and M4 chips.
  • Dual Mode Interface: Simple Mode for plain-English everyday maintenance; Expert Mode with exact POSIX paths and developer tooling.
  • Comprehensive Developer Deep Clean: Xcode DerivedData, XCTestDevices, archives, SPM caches, CocoaPods, Carthage, Cargo, pip, and Go builds.
  • Simulator Runtime Manager: Safely list and delete 20GB+ orphaned iOS/watchOS/tvOS runtimes using native simctl integration.
  • Docker & Project Sweeper: Safely purge Docker build caches without touching persistent volumes; find and delete abandoned node_modules across ~/Projects.
  • Git Repository Maintenance: Compacting loose objects, running git gc --prune=now, and purging broken tmp_pack_* debris from interrupted clones.
  • Level 1 Fast Sweep: Sub-second instantaneous cleanup of the four fastest-growing volatile system caches.
  • Demystify System Data: Diagnose hidden APFS snapshots, /Library/Caches, and /private/var/folders without endangering OS integrity.
  • Safe Duplicate & Big File Finder: Two-phase hashing (fast preview + SHA-256) respecting APFS clones and hardlinks.
  • Bundle Residue App Uninstaller: Thoroughly eradicates leftover Application Support, LaunchAgents, and sandboxed Containers.
  • Bulletproof Safety Protocols: Inode verification against TOCTOU race conditions and non-destructive macOS Trash relocation.

最新版本更新摘要

  • Native support for macOS 15 Sequoia and Apple M4 / M4 Pro / M4 Max architecture
  • Level 1 Fast Sweep (Shift-Cmd-L) for instant sub-second volatile cache reclamation
  • Simulator Runtime Manager with exact simctl runtime size and device count audit
  • Git repository packfile scanner targeting orphaned tmp_pack_* and tmp_idx_* files
  • Improved two-stage SHA-256 duplicate engine with APFS clone detection
  • Real-time RAM and SSD swap monitor with active pressure indicators

官方連結 & 相關資源

真實使用者評價

志豪 L.2026年 7月 11日
★★★★★

"非常實用!MagicMacCleaner 反應極其迅速,介面乾淨沒有任何繁雜的廣告干擾。"

雅婷 C.2026年 6月 26日
★★★★★

"設計非常現代且精緻。最讓我安心的是所有數據都在手機上處理,不需上傳雲端!"

建銘 W.2026年 5月 17日
★★★★★

"整理 iPhone 空間的神器,操作順暢而且極為直覺,強烈推薦!"

常見問題解答

Is MagicMacCleaner really 100% free with no ads or subscriptions?
Yes, absolutely! MagicMacCleaner is completely free software developed for the Mac community. There are no subscriptions, no locked 'pro' tiers, no credit card requirements, and zero advertising banners or bundled promotional software.
Why is MagicMacCleaner exclusive to Apple Silicon (M1/M2/M3/M4) Macs?
MagicMacCleaner is compiled natively for the ARM64 architecture and heavily leverages Apple Silicon's unified memory bandwidth, multi-core performance clusters, and APFS copy-on-write clone semantics. By omitting legacy Intel x86 code and Rosetta translation overhead, the app launches instantaneously, consumes less than 50MB of RAM, and runs disk scans up to 5x faster than generic universal cleaners.
What is the difference between Simple Mode and Expert Mode?
Simple Mode is designed for everyday Mac users who want to safely free up storage without seeing complicated technical paths. It explains each category in plain language and hides developer-specific tooling. Expert Mode unlocks exact POSIX file paths, Xcode DerivedData and Simulator runtime controls, Git repository packing tools, abandoned node_modules purgers, and dry-run JSON inspection reports.
Why does MagicMacCleaner request Full Disk Access (FDA)?
Starting in macOS Ventura and Sonoma, Apple strictly sandboxes application containers, system logs, Mail attachments, and Messages caches in ~/Library/Containers. Without Full Disk Access, macOS prevents any utility from even reading the sizes of these folders. Full Disk Access is completely optional and can be granted or revoked at any time in System Settings -> Privacy & Security -> Full Disk Access.
Is it safe to delete Xcode DerivedData and Simulator Runtimes?
Yes! Xcode DerivedData consists purely of intermediate build products, indexing databases, and module caches. Xcode will automatically regenerate any needed DerivedData the next time you compile a project. Similarly, old iOS Simulator runtimes (such as iOS 16 or 17 runtimes you no longer test on) can be safely deleted using our Simulator Runtime Manager to immediately reclaim 15GB to 30GB of space.
Can I recover files if I accidentally delete them with MagicMacCleaner?
Yes. Standard cleanups in MagicMacCleaner move files to your native macOS Trash rather than executing permanent immediate deletion. You can open the macOS Trash and click 'Put Back' on any item at any time. Only advanced tools with administrative privileges execute direct unlinks, and these are clearly labeled beforehand.
How does MagicMacCleaner handle APFS clones and hardlinks when finding duplicates?
Unlike naive cleaners that simply look at file size or names, MagicMacCleaner checks the underlying APFS inode. If two files share the exact same physical disk blocks (such as a duplicate created in Finder via Copy/Paste on APFS), MagicMacCleaner recognizes that deleting one will not free any physical disk space. It only reports genuine duplicate files that consume duplicate storage blocks on your SSD.
Does MagicMacCleaner run background daemons or drain battery life?
No. MagicMacCleaner does not install any background launch daemons, kernel extensions, or persistent menu bar background processes unless you explicitly enable the optional Auto-Maintenance reminder in Settings. When you close the app window, it stops executing and consumes 0% CPU and 0% battery.
How does Docker cache cleanup work in MagicMacCleaner?
MagicMacCleaner targets dangling Docker build layers, buildx cache artifacts, and temporary compiler layers that accumulate in Docker Desktop's virtual disk file. It strictly avoids touching your active containers, declared Docker volumes, or persistent database storage.
How does Level 1 Fast Sweep differ from a full scan?
Level 1 Fast Sweep (shortcut Shift-Cmd-L) audits the four fastest-growing, 100% volatile developer caches (CoreDevice DeviceFS, XCTestDevices, XcodeBuildMCP workspaces, and orphaned Git temporary packfiles). Because these sources can be purged without examining each individual file, Level 1 finishes in under two seconds and typically reclaims 20GB to 60GB immediately.

相關關鍵字 & 標籤

相關指南 & 專家專欄

macOS 與硬體閱讀 10 分鐘

磁碟膨脹和統一記憶體交換如何降低 Apple Silicon SSD 的運作狀況

了解完整磁碟空間和虛擬記憶體交換如何消耗您的 Apple Silicon SSD。防止 NAND 退化並保持 M1/M2/M3/M4 的峰值效能。

閱讀指南
macOS 和實用程式閱讀 11 分鐘

2026 年 5 款適用於 Apple Silicon 的最佳免費 Mac Cleaner 應用程式(無需訂閱)

探索 2026 年適用於 Apple Silicon 的最佳免費 Mac 清潔器。無訂閱、無廣告、無後台守護程序。比較 MagicMacCleaner、OnyX 等。

閱讀指南
macOS 與開發閱讀 12 分鐘

macOS 磁碟清理終極開發者指南(Rust、Go、Python、Swift)

適用於 macOS 的全面開發人員磁碟清理指南:清理 Rust 目標目錄、Go 建置快取、Python venv/pip 輪子和 Gradle 快取。

閱讀指南
macOS 和儲存閱讀 8 分鐘

如何在 macOS Finder 中尋找和刪除舊 iPhone 和 iPad 備份

在 Mac 上尋找並刪除舊的 iPhone 和 iPad 備份。在 macOS Sequoia 和 Sonoma 中安全地從 ~/Library/Application Support/MobileSync/Backup 回收 40GB 以上。

閱讀指南
macOS 與開發閱讀 10 分鐘

如何清理 Xcode DerivedData、缓存和模拟器文件(免费 80GB+)

了解如何清理 Xcode DerivedData、刪除舊的 iOS DeviceSupport 以及清除 Swift Package Manager 快取以回收 Apple Silicon Mac 上 80GB 以上的空間。

閱讀指南
macOS 與開發閱讀 9 分鐘

如何刪除 macOS 上舊的 iOS 模擬器運行時(30GB 隱藏的 Drain)

了解如何使用 simctl 或 MagicMacCleaner 在 Mac 上刪除舊的 iOS、watchOS 和 tvOS 模擬器運行時。立即釋放 30GB+ 隱藏 SSD 空間。

閱讀指南
macOS 和實用程式閱讀 10 分鐘

如何在 Mac 上尋找和刪除重複檔案(不破壞 APFS 克隆)

安全地尋找並刪除 macOS 上的重複檔案。了解 APFS 寫入時複製克隆如何欺騙標準清理程序以及如何使用漸進式 SHA-256 雜湊。

閱讀指南
macOS 與開發閱讀 9 分鐘

如何在 macOS 上縮小大量 .git 資料夾並清理損壞的套件檔案

了解如何在 Mac 上縮小臃腫的 .git 資料夾。清理孤立的 tmp_pack_* 碎片,使用 git gc --prune=now 壓縮鬆散對象,並釋放千兆位元組。

閱讀指南
macOS 與開發閱讀 8 分鐘

如何清理 Homebrew 快取並刪除 Apple Silicon 上的孤立公式

了解如何清理 Apple Silicon Mac 上的 Homebrew 快取。運行brew cleanup,清除/opt/homebrew中過時的瓶子,並回收20GB磁碟空間。

閱讀指南
macOS 與開發閱讀 9 分鐘

如何在 Mac 上清理 Docker 建置快取並回收磁碟空間

了解如何清理 Docker 建置快取、回收 Docker.raw 磁碟空間以及在 macOS 上執行 docker builder prune,而不會遺失活動資料庫容器。

閱讀指南
macOS 和儲存閱讀 9 分鐘

如何清除 Mac 上的 Telegram、WhatsApp、Slack 和 Discord 快取

了解如何在 Mac 上清除 Telegram、WhatsApp、Slack 和 Discord 的快取。應用程式支援中儲存了 20GB 以上的免費隱藏媒體快取。

閱讀指南
macOS 和儲存閱讀 11 分鐘

如何清除 Mac 上的系統資料和其他儲存(Apple Silicon 2026 Hacks)

了解如何清除 Mac (M1/M2/M3/M4) 上的系統資料。安全清除 APFS 快照、隱藏/庫/快取、沙盒容器,並輕鬆釋放 50GB 以上空間。

閱讀指南
macOS 和實用程式閱讀 9 分鐘

如何完全卸載 Mac 應用程式並刪除隱藏的剩餘檔案

將應用程式拖曳至廢紙簍會留下隱藏檔案。了解如何完全卸載 Mac 應用程式並刪除剩餘的應用程式支援和 LaunchAgents。

閱讀指南
macOS 與開發阅读 8 分钟

如何在 Mac 上尋找並刪除廢棄的 node_modules 資料夾

尋找並刪除 Mac SSD 中被遺忘的 node_modules 資料夾。從休眠的 React 和 Node 專案中回收 50GB 以上的空間,而不會遺失原始程式碼。

閱讀指南
macOS 和實用程式閱讀 9 分鐘

您的磁碟即將滿:緊急 macOS 清理清單 (M1/M2/M3/M4)

修復 Mac M1/M2/M3/M4 上的「您的磁碟即將滿」錯誤。按照我們的緊急清單,在 5 分鐘內回收 30GB 以上的空間,而無需刪除個人檔案。

閱讀指南

隱私權政策與服務條款

FlashSoft 保證 MagicMacCleaner 享有 100% 裝置端隱私安全。

隱私權政策 授權協議 (EULA)
返回應用列表
MagicMacCleaner icon
MagicMacCleaner
macOS 與 Apple Silicon 4.9
MagicMacCleaner icon

Install on iPhone

Scan with your Camera to open App Store

Official App Store Download