從Xcode 5開始,蘋果要求加入U(xiǎn)UID證書從而保證插件的穩(wěn)定性。因此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中打開項(xiàng)目,選擇項(xiàng)目名稱,在TAGETS下選中VVDocumenter-Xcode;選擇Info,找到DVTPlugInCompatibilityUUIDs的項(xiàng)目,添加一個(gè)Item,Value的值為之前Xcode的UUID;
4.Build項(xiàng)目,VVDocumenter-Xcode會(huì)自動(dòng)安裝。
5.重啟Xcode,重啟Xcode時(shí)會(huì)提示“Load bundle”、 “Skip Bundle”,這里必須選擇“Load bundle”,不然插件無法使用。