Last active
September 30, 2015 05:07
-
-
Save veiz/391d4a404658e733a4c9 to your computer and use it in GitHub Desktop.
Update Xcode plugins after Xcode version UUID changed. Stolen from https://github.com/cikelengfeng/RPAXU/blob/master/refreshPluginsAfterXcodeUpgrading.sh
This file contains hidden or 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
| #!/bin/bash | |
| #获取当前版本Xcode的DVTPlugInCompatibilityUUID | |
| UUID=$(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID) | |
| echo Xcode DVTPlugInCompatibilityUUID is $UUID | |
| #遍历每一个Xcode插件,将UUID写入插件的兼容列表中 | |
| for MyPlugin in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/* | |
| do | |
| defaults write "$MyPlugin"/Contents/Info DVTPlugInCompatibilityUUIDs -array-add $UUID | |
| echo write DVTPlugInCompatibilityUUID to $MyPlugin succeed! | |
| done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl https://gist.githubusercontent.com/veiz/391d4a404658e733a4c9/raw/199304ab74a33cd9f37aa5194f87d47046fb0127/xcode_update_plugin.sh | sh