Skip to content

Instantly share code, notes, and snippets.

@MaciejGad
Created July 1, 2015 09:30
Show Gist options
  • Save MaciejGad/86302b6b8bdb1ee25115 to your computer and use it in GitHub Desktop.
Save MaciejGad/86302b6b8bdb1ee25115 to your computer and use it in GitHub Desktop.
update Xcode plugins
#!/bin/bash
xcodeUUID=`defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
echo $xcodeUUID
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add $xcodeUUID
@JanX2
Copy link

JanX2 commented Nov 10, 2015

This can be generalized further:

xcodePath=`xcode-select -p`
xcodeUUID=`defaults read "$xcodePath/../../Contents/Info.plist" DVTPlugInCompatibilityUUID`
echo $xcodeUUID
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add $xcodeUUID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment