從Xcode 5開始,蘋果要求加入UUID證書從而保證插件的穩定性。因此Xcode版本更新之后需要在VVDocumenter-Xcode的Info.plist文件中添加Xcode的UUID。
解決方法:
1.獲得Xcode的UUID
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
tableview.gif
2.git clone https://github.com/onevcat/VVDocumenter-Xcode.git
3.在Xcode中打開項目,選擇項目名稱,在TAGETS下選中VVDocumenter-Xcode;選擇Info,找到DVTPlugInCompatibilityUUIDs的項目,添加一個Item,Value的值為之前Xcode的UUID;
4.Build項目,VVDocumenter-Xcode會自動安裝。
5.重啟Xcode,重啟Xcode時會提示“Load bundle”、 “Skip Bundle”,這里必須選擇“Load bundle”,不然插件無法使用。