Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/bin/zsh
  2. UUID=$(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID)
  3. echo Xcode DVTPlugInCompatibilityUUID is $UUID
  4.  
  5. for MyPlugin in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*
  6. do
  7. UUIDs=$(defaults read "$MyPlugin"/Contents/Info DVTPlugInCompatibilityUUIDs)
  8. echo $MyPlugin
  9. if echo "${UUIDs[@]}" | grep -w "$UUID" &>/dev/null; then
  10. echo "The plug-in's UUIDs has contained the Xcode's UUID."
  11. else
  12. defaults write "$MyPlugin"/Contents/Info DVTPlugInCompatibilityUUIDs -array-add $UUID
  13. echo "Refresh the plug-in completed."
  14. fi
  15. done
  16. echo "Done!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement