一、建立一個自定義證書並且為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 -maxdepth 3 | 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/