每次Xcode 升级之后 插件失效,两步解决

时间:2023-03-08 16:00:07
每次Xcode 升级之后 插件失效,两步解决

以下内容来源:http://www.cocoachina.com/bbs/read.php?tid=296269

每次Xcode 升级之后 插件失效,两步解决

1.打开终端,输入以下代码获取到DVTPlugInCompatibilityUUID
       defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

2.然后输入如下命令   【最后一项是获取到的DVTPlugInCompatibilityUUID】
     find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add 9F75337B-21B4-4ADC-B558-F9CADF7073A7