Skip to content

Instantly share code, notes, and snippets.

@regnerjr
Created April 1, 2016 01:03
Show Gist options
  • Select an option

  • Save regnerjr/1ac5b07e04ba869e7e09eb974cd5d3ee to your computer and use it in GitHub Desktop.

Select an option

Save regnerjr/1ac5b07e04ba869e7e09eb974cd5d3ee to your computer and use it in GitHub Desktop.
xcode_plugin_update_uuid () {
local xcode plugin
for xcode in /Applications/Xcode*.app
do
uuid=$(defaults read "$xcode/Contents/Info" DVTPlugInCompatibilityUUID)
echo "$xcode - $uuid"
for plugin in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*.xcplugin
do
echo "Updating $plugin"
defaults write "$plugin/Contents/Info" DVTPlugInCompatibilityUUIDs -array-add $uuid
done
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment