转自:http://www.cnblogs.com/zhou--fei/p/6792131.html
一、创建一个自定义证书并且为Xcode重新签名
1.打开钥匙串
2.创建自定义签名证书
3.重新签名Xcode(速度比较慢,大概要等1分钟)
$ sudo codesign -f -s XcodeSigner /Applications/Xcode.app
4.在插件的plist文件中添加Xcode的UUID
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth3| xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
5.重启Xcode,选择Load Bundle
注:每安装一个插件,都要执行一遍步骤4、5
二、安装插件管理器Alcatraz
1.安装Alcatraz
curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
2.删除插件Alcatraz
rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin
3.删除插件Alcatraz安装包
rm -rf ~/Library/Application\ Support/Alcatraz/
网友评论