Skip to content

Instantly share code, notes, and snippets.

@boylee1111
Last active June 24, 2016 03:24
Show Gist options
  • Save boylee1111/6985155385dbdfcffdc2 to your computer and use it in GitHub Desktop.
Save boylee1111/6985155385dbdfcffdc2 to your computer and use it in GitHub Desktop.
Xcode升级插件兼容性问题修复,原Repo: https://github.com/cikelengfeng/RPAXU
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment