Xcode archives, device support and old toolchains: what each folder under ~/Library/Developer holds

By the Zofle team · 20 November 2026 · 9 min read

When a developer Mac runs low on disk space, developer tools are almost always the largest hidden consumer. Inside ~/Library/Developer, folders quietly accumulate between 40 GB and 120 GB of build intermediates, system symbol tables, virtual device sandboxes, and forgotten compiler toolchains. But running a blunt cleanup command is dangerous: deleting production release archives permanently destroys your ability to symbolicate crash reports, while wiping user folders deletes custom code snippets and keyboard shortcuts.

Understanding what each folder under ~/Library/Developer actually holds lets you reclaim tens of gigabytes safely without breaking active builds, historical release debugging, or personal IDE configurations.

Anatomy of ~/Library/Developer

Here is what an active macOS development setup accumulates across the primary developer subdirectories:

Directory PathWhat it holdsTypical SizeRebuild BehaviorSafe Action
Xcode/ArchivesPackaged app builds, dSYM symbol maps, Info.plist metadata10–80 GBIrrecoverable if code or dependencies changedPrune obsolete test archives in Organizer; retain production releases
Xcode/iOS DeviceSupportPre-iOS 17 extracted system symbols from connected physical devices15–45 GBRe-extracts when that physical device OS is connected (10–15 min)100% safe to delete for legacy iOS versions you no longer test
CoreSimulator/DevicesUUID virtual device instances with isolated guest OS /data sandboxes10–35 GBDevice profile persists; guest app data is wiped on eraseRun simctl delete unavailable and simctl erase all
CoreSimulator/CachesSimulator dyld shared caches and precompiled module assets1–8 GBRebuilds automatically on simulator bootSafe to clear contents
ToolchainsCustom Swift compiler and LLDB bundles (.xctoolchain) from swift.org2.5–12 GBStatic bundle; re-download requiredDelete inactive nightly or experimental toolchains
Xcode/CodingAssistantLocal predictive code completion models (Xcode 16+)0.2–2.5 GBRe-downloads automatically via Xcode Settings > ComponentsManage model downloads in Xcode Settings
Xcode/DerivedDataBuild intermediates, compilation indexes, AST module caches5–60 GBRebuilds cleanly on next compilationSafe to delete old project folders; triggers clean rebuild
Xcode/UserDataCode snippets, custom keybindings, syntax themes, provisioning profiles0.5–5 MBIrrecoverable (personal customizations)DO NOT DELETE; exclude from cleanup scripts
DVTDownloadsStaging area for in-flight component and runtime downloads0–15 GBTemporary staging; stranded chunks from cancelled downloadsSafe to delete lingering .part or .dmg files

1. Xcode Archives: Anatomy and the Symbolication Trap

Every time you create a build for TestFlight, the App Store, or ad-hoc distribution using Product > Archive, Xcode writes a timestamped bundle into ~/Library/Developer/Xcode/Archives/YYYY-MM-DD/. An .xcarchive bundle is not a flat file; it is a directory bundle containing:

  • Products/Applications/YourApp.app: The fully linked binary executable and bundled resource files.
  • dSYMs/YourApp.app.dSYM: The DWARF debug symbol tables containing function names, file paths, and source code line numbers matching the exact binary build UUID.
  • Info.plist: Metadata recording application version, build number, bundle identifier, creation timestamp, and signing identities.
  • SCMBlueprint: Git repository URL, branch name, and commit SHA recorded at the moment of compilation.

For an application with third-party frameworks and asset catalogs, a single archive typically weighs between 250 MB and 2.5 GB. Over six months of active shipping, archives alone routinely occupy 30 GB to 80 GB.

Why deleting production archives breaks crash debugging

When an app crashes on a customer's iPhone, the resulting crash log displays raw hexadecimal memory addresses (such as 0x0000000104829fa0 <MyApp + 438176>). Converting that hex offset back into a readable code location (AuthService.swift:142)—a process known as symbolication—requires the exact dSYM file generated during that specific build.

If you delete an archive for a version currently live on the App Store and did not upload dSYMs to App Store Connect or an external reporting service like Crashlytics or Sentry, production crashes for that build can never be symbolicated.

The supported rule: Open Window > Organizer > Archives. Sort by date, review superseded development or QA builds, and delete old test iterations. Keep at least the release archive for each version currently active in production.

2. iOS DeviceSupport vs CoreDevice: The iOS 17 Shift

Prior to iOS 17, plugging a physical iPhone into your Mac for debugging triggered an extended "Processing symbol files..." status in Xcode's progress bar. Xcode was copying the entire unstripped shared dynamic library cache (dyld_shared_cache_arm64e) from the physical device's operating system onto your Mac's internal SSD.

These symbol sets were stored in ~/Library/Developer/Xcode/iOS DeviceSupport/<OS Version> (<Build Number>) arm64e/Symbols/. Each iOS minor version consumed between 2.5 GB and 4.5 GB. Connecting an iPhone across iOS 15.1, 15.4, 16.0, 16.2, and 16.5 quickly accumulated 25 GB to 40 GB of symbol tables.

Why DeviceSupport is now legacy storage

Starting with iOS 17, iPadOS 17, watchOS 10, and Xcode 15, Apple replaced this local extraction process with the CoreDevice framework. CoreDevice mounts a standardized Developer Disk Image (DDI) dynamically into the device runtime and resolves system symbols on-demand without copying gigabytes of raw dynamic library caches to your Mac's drive.

Because modern iOS versions never write to ~/Library/Developer/Xcode/iOS DeviceSupport, any folders remaining there are legacy artifacts from older operating systems. If you no longer physically connect and debug devices running iOS 14, 15, or 16, deleting the entire contents of ~/Library/Developer/Xcode/iOS DeviceSupport is completely safe and reclaims dozens of gigabytes immediately.

3. CoreSimulator: Guest Device Sandboxes and Caches

The ~/Library/Developer/CoreSimulator directory houses simulated iPhone, iPad, Apple Watch, and Apple Vision Pro environments. It splits into two primary locations:

  • CoreSimulator/Devices: Contains subdirectories named by UUID for each virtual device. Inside each UUID directory sits device.plist (device type and runtime configuration) and a data/ folder containing the entire isolated guest filesystem—installed app packages, SQLite databases, Safari website data, and test photos in Media/DCIM/.
  • CoreSimulator/Caches: Holds runtime shared caches and precompiled module assets generated during simulator execution.

Over time, test suites and app installations cause individual simulator instances to swell from an initial 80 MB footprint to 1.5 GB to 3.5 GB each. A developer with 15 simulated devices across multiple screen sizes can easily forfeit 25 GB to 35 GB.

The supported simctl cleanup commands

Do not manually delete random UUID folders in Finder while the Simulator app or Xcode is running. Use Apple's built-in simctl utility:

# 1. Preview and delete devices whose runtime OS was uninstalled
xcrun simctl list devices unavailable
xcrun simctl delete unavailable

# 2. Reset guest device sandboxes to factory state (frees 10-25 GB)
xcrun simctl erase all

# 3. Clear temporary simulator caches
rm -rf ~/Library/Developer/CoreSimulator/Caches/*

xcrun simctl delete unavailable removes orphaned device directories whose parent iOS runtimes have been uninstalled. xcrun simctl erase all wipes the data/ sandbox across all virtual devices back to factory state, reclaiming almost all simulator disk space without deleting your configured device profiles or screen pairings.

4. Custom Toolchains: Swift Snapshots and Forgotten Builds

Xcode allows developers to switch compilers using custom Swift toolchains—such as experimental Swift nightly snapshots from swift.org, WebAssembly toolchains, or custom LLVM branches. These reside in either:

  • User-specific toolchains: ~/Library/Developer/Toolchains/
  • System-wide toolchains: /Library/Developer/Toolchains/

Each .xctoolchain bundle contains a complete standalone suite including swiftc, clang, lldb, standard library runtime binaries, and module interfaces. A single toolchain bundle weighs 2.2 GB to 4.5 GB.

Developers frequently install an experimental snapshot to test a language proposal and forget it exists. To audit and remove them:

# Inspect installed user and system toolchains
ls -la ~/Library/Developer/Toolchains/
ls -la /Library/Developer/Toolchains/

# Remove an obsolete user toolchain bundle
rm -rf ~/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-*.xctoolchain

Xcode immediately detects the removal and updates the toolchain picker under Xcode > Settings > Components > Toolchains.

5. What NOT to Delete: Protecting UserData

Many aggressive cleanup scripts circulating online advise running rm -rf ~/Library/Developer/Xcode/*. Doing so causes immediate, irreversible damage to your development workflow by wiping ~/Library/Developer/Xcode/UserData.

Although UserData rarely exceeds 2 MB to 5 MB, it holds irreplaceable personalized developer configurations:

  • CodeSnippets/: Custom reusable code snippets triggered by completion shortcuts.
  • KeyBindings/: Custom IDE keyboard shortcuts mapped over months or years.
  • FontAndColorThemes/: Custom editor syntax themes.
  • Provisioning Profiles/: Local signing identities and certificates.

Always exclude UserData from any automated cleanup script or disk-maintenance routine.

Worked Cleanup Procedure: Step-by-Step Command Protocol

Here is a verified, systematic cleanup sequence that safely reclaims storage without breaking production crash symbolication or personal configurations:

#!/bin/bash
# Safe Developer Directory Cleanup Protocol

echo "1. Purging obsolete simulator devices..."
xcrun simctl delete unavailable

echo "2. Resetting simulator guest sandboxes to factory state..."
xcrun simctl erase all

echo "3. Clearing CoreSimulator temporary caches..."
rm -rf ~/Library/Developer/CoreSimulator/Caches/*

echo "4. Removing legacy pre-iOS 17 DeviceSupport symbol caches..."
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport/*

echo "5. Clearing DerivedData build intermediates..."
rm -rf ~/Library/Developer/Xcode/DerivedData/*

echo "6. Clearing interrupted component download staging..."
rm -rf ~/Library/Developer/DVTDownloads/*

echo "Done. Run Organizer to review old release archives."

For other build environments that accumulate storage alongside Xcode, see Swift Package Manager and CocoaPods caches and developer caches that never go away. For system-managed purgeable space, see how purgeable space works.

Where Zofle fits. Zofle scans your Mac's storage and identifies DerivedData, archives, and simulator containers with their precise size and last-modified dates. You can clear temporary build caches and simulator overhead with one click while keeping release dSYMs and personal UserData configurations completely safe.

Sources and method

Zofle Pro news

People signing up now will get Zofle Pro, with more features, for free when we launch it.

One email when it's ready. No spam, ever.