I recently saw Joe's post about updating Xcode plug-ins, but since I'm really lazy, updating them one by one didn't suffice, so here's my take on it. In case you want to skip straight to the desert, here's the gist.
First, we change our script's directory:
# You might need these. # require 'pathname' # require 'fileutils' # In case we want to also print the already updated plug-ins DISPLAY_ALREADY_UPDATED = false plugin_path = File.expand_path('~/Library/Application Support/Developer/Shared/Xcode/Plug-ins') Dir.chdir(plugin_path) files = Dir['*.xcplugin']
Then we iterate through the files:
Continue reading →