Skip to content

brokenhandsio/swiftpm-cleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

SwiftPM Cleanup

A simple tool to clean up your SwiftPM project's environment. It will remove:

  • .build
  • .swiftpm
  • Package.resolved
  • /your/home/directory/.swiftpm
  • /your/home/directory/Library/Caches/org.swift.swiftpm

Optionally, by passing the --clean-derived-data flag, it will also remove:

  • /your_home_directory/Library/Developer/Xcode/DerivedData/your_project

If you want to specify a project other than the one in the current directory, use the --path option:

  • --path /path/to/your_project

Usage

  • Clone the script file into your project's directory
  • Run it with
swift cleanup.swift [--path /path/to/your_project] [--clean-derived-data]

Warning

Make sure to:

  • Run it as normal user and not as root, as that will switch your home directory to /var/root
  • Close any IDE or editor that might be using the project's files, as that will result in permission issues

About

Script to cleanup SwiftPM environments

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages