Skip to content
@CodePurge

CodePurge

CodePurge helps developers optimize their Xcode environment by cleaning archives, derived data, simulators, device support files, and Swift package caches.
  • United States of America
App Icon

CodePurge

Take control of your Xcode environment with CodePurge. This all-in-one tool not only handles cleanup for archives, derived data, and documentation caches, but also introduces powerful tools to:

  • Identify device support files recently used by Xcode to ensure safe removal of unused files.
  • Manage bloated simulators, including SwiftUI Preview simulators, which can consume significantly more storage than core iOS simulators.
  • Clean up the global Swift Package Manager cache, allowing you to remove outdated or unnecessary repositories.

The project is built with modularity in mind, consisting of a standalone app and two publicly available Swift packages.

Table of Contents

Features

Test Mode and Live Mode
CodePurge offers two modes of operation to suit your workflow:

  • Test Mode: Explore the app's capabilities without making any changes to your system.
  • Live Mode: Erases the data from selected simulators and moves everything else to the trash bin.
Test Mode Screenshot

Test Mode: No files are deleted

Live Mode Screenshot

Live Mode: Files are deleted

Clean Up Xcode-Generated Files
CodePurge makes it easy to identify and clean up unnecessary files generated by Xcode, such as:

  • Archives: Remove old and unused archives to reclaim storage space.
  • Derived Data: Free up space taken by build artifacts and debug files.
  • Documentation Cache: Delete outdated API documentation to optimize storage without affecting development workflows.

Device Support Management
Unused device support files can quickly clutter your storage. CodePurge:

  • Identifies device support files recently used by Xcode.
  • Separates unused files from active ones, allowing you to safely clean up unnecessary versions.
No recent support Screenshot

Full list of iOS support files

Recent support Screenshot

Easily distinguish between used and unused device support.

Simulator Management
Simulators, especially those for SwiftUI previews, can occupy significant disk space. CodePurge provides tools to:

  • Manage core iOS simulators used for testing and debugging.
  • Handle SwiftUI Preview simulators, which often consume 10x the storage of core simulators, ensuring your environment stays optimized.

Swift Packages Cache Cleanup
CodePurge allows developers to manage the global Swift Packages cache by:

  • Identifying unused or outdated repositories.
  • Removing unneeded package repositories to free up valuable disk space.

Who Should Use CodePurge?

  • iOS Developers: Simplify the management of Xcode-generated files and reduce wasted storage.
  • Anyone Looking to Optimize Xcode: CodePurge is an invaluable tool for those who want to focus on development without worrying about cluttered files.

Related Repositories

  • CodePurgeKit: The core library with shared data models, utilities, and view components.
  • CodePurgeDeveloperDataKit: Focused on managing developer-specific data, like archives, derived data, device support, and documentation cache.

Why Choose CodePurge?

CodePurge is not just a file cleanup tool; it’s a robust solution for many aspects of your Xcode environment. By simplifying the process of identifying and removing unnecessary files, CodePurge helps you:

  • 💾 Save valuable disk space: Quickly identify and remove unnecessary files.
  • 🚀 Optimize your workflow: Focus on development without worrying about clutter.

Whether you’re an independent developer or part of a team, CodePurge ensures your environment stays clean, efficient, and ready for your next project.

Popular repositories Loading

  1. CodePurgeKit CodePurgeKit Public

    Swift package providing shared data models, utilities, and SwiftUI components to manage and organize purgable items in Xcode environments.

    Swift 1

  2. CodePurgeDeveloperDataKit CodePurgeDeveloperDataKit Public

    Provides tools for managing and purging Xcode developer data, including archives, derived data, documentation caches, and device support files.

    Swift 1

  3. .github .github Public

  4. codepurge-site codepurge-site Public

    HTML

  5. nnpurge nnpurge Public

    Command line for CodePurge

    Swift

Repositories

Showing 5 of 5 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…