Last active
October 30, 2018 06:17
-
-
Save orkoden/7010433 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run with | |
# ruby reallyCleanXcode.rb | |
derivedDataFolder = Dir.glob(Dir.home + "/Library/Developer/Xcode/DerivedData/*") | |
moduleCache = Dir.glob("/var/folders/**/com.apple.DeveloperTools*") | |
FileUtils.rm_rf derivedDataFolder + moduleCache | |
Your quotes seem to be incorrect. The second one seems to be a ”
instead of a "
.
suggesting this changes and additional chmod +x filename.rb
for ./filename.rb
usage
#!/usr/bin/env ruby
require 'fileutils'
derivedDataFolder = Dir.glob(Dir.home + "/Library/Developer/Xcode/DerivedData/*")
moduleCache = Dir.glob("/var/folders/**/com.apple.DeveloperTools*")
FileUtils.rm_rf derivedDataFolder + moduleCache
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
... :/
What can I do ?