1.删除旧插件

cd ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-in

rm -rf ../Plug-ins

2.Xcode重签名

钥匙串访问选择证书助理 -> 创建证书
名称:XcodeResign
身份类型:自签名根证书
证书类型:代码签名

3.获取Xcode管理员权限

sudo codesign -f -s XcodeSigner /Applications/Xcode.app

4.安装插件

5.修改Xcode UUID

find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth  | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add 'defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID'

6.重启Xcode

05-11 19:30