苹果出了Xcode8以后,就加了签名让以前的自定义插件没法继续的安装使用。想要从新使用插件的话只要用本身的签名覆盖苹果的签名便可。git
1.建立自签名证书github
钥匙串-》钥匙串访问-》证书助理-》建立证书...xcode
名称:XcodeSigner(能够随便命名,后面要使用)缓存
身份类型:自签名根证书app
证书类型:代码签名curl
点击建立url
2.用刚刚建立的证书从新签名xcodespa
$ sudo codesign -f -s XcodeSigner /Applications/Xcode.app插件
3.防止有些插件失效,运行一下命令:code
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
4.安装完想要的插件后,重启xcode,选择Load Bundle就能够了
如安装xcode管理插件的插件alcatraz:
curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh
只支持xcode7+
卸载alcatraz:
rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin
删除alcatraz缓存数据:
rm -rf ~/Library/Application\ Support/Alcatraz