2013-10-01 137 views

回答

23

更新:我寫a longer answer on how to automate upgrading these plugins, Xcode 8 included


你可以得到一些*插件通過添加DVTPlugInCompatibilityUUIDs陣列到每個插件的Info.plist和Xcode 5工作。然後添加一個UUID字符串到這個數組。

<key>DVTPlugInCompatibilityUUIDs</key> 
<array> 
    <string>37B30044-3B14-46BA-ABAA-F01000C27B63</string> 
</array> 

要獲取UUID,請在控制檯中執行defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

*例如, DisableAnimationsHideDistractions工作,而CurrentLineHighlighter總是崩潰Xcode。

+0

我的避風港」運行此命令因爲它使用Xcode 5.1(5B130a)中的新UUID在啓動時崩潰Xcode,所以無法使DisableAnimations正常工作。這是我使用的代碼: DVTPlugInCompatibilityUUIDs \t \t \t A2E4D43F-41F4-4FB9-BB94-7177011C9AED \t' –

+0

優秀。只有fyi - 這仍然與XCode 7.2一起工作。 – arcseldon

0

你可以找到簡單的解決方案here

您應該使用其他插件文件夾

/Applications/Xcode.app/Contents/PlugIns 
23

編輯:在Xcode 8開始,插件系統不工作了,more information。這個答案不適用於Xcode 8及更高版本。


原來的答覆:

Xcode的插件停止每次更新後的工作。爲了快速修復它們,您可以在終端中使用以下命令行。這將更新每個插件並使其與新更新兼容。

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` 

注:您必須重新啓動的Xcode纔能有你的插件重新工作

注2:你必須爲每個Xcode的更新

+0

該解決方案比公認的解決方案略有優勢。將其粘貼到一個Automator應用程序中,現在它只是'⌘-Space' +'fix'來在每次更新後快速重置Xcode!輝煌。 – clozach