每次插件失效总要去翻下文章,实在记不住一些东西,所以在这边用文字记录一下,以便以后查阅。
终端里输入如下代码获得Xcode的UUID:
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
得到UUID后:
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {}DVTPlugInCompatibilityUUIDs -array-add {UUID}
如果有手残患者不小心在Xcode启动的时候Skip了插件,可以用如下命令先查看:
defaults read com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-{Current Xcode Version}
然后用暴力的办法,删掉它,重新Load一下就稳妥了,命令如下:
defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-{Current Xcode Version}