Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Plugins Stopped Working

Dave Keck's Fixins stopped working on Xcode. I've already tried rebuilding with no avail. Anybody found a workaround? (I'm mostly longing for CurrentLineHighlighter and DisableAnimations.)

Related question on another plugin: XcodeColors not working in XCode 5

like image 881
Blaz Avatar asked Oct 01 '13 07:10

Blaz


2 Answers

UPDATE: I've written a longer answer on how to automate upgrading these plugins, Xcode 8 included.


You can get some* plugins to work with Xcode 5 by adding a DVTPlugInCompatibilityUUIDs array into each plugin's Info.plist. Then add a UUID string to this array.

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

To get the UUID, execute defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID in console.

* E.g. DisableAnimations and HideDistractions work, while CurrentLineHighlighter invariably crashes Xcode.

like image 70
Blaz Avatar answered Dec 12 '22 10:12

Blaz


EDIT: Starting with Xcode 8, the plugins system doesn't work anymore, more information. This answer won't work for Xcode 8 and later.


Original answer:

Xcode's plugins stopped working after each update. In order to fix them all quickly, you can use the following command line in your terminal. That will update each plugin and make them compatible with the new update.

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`

Note: You have to restart Xcode in order to have your plugins work again

Note 2: You will have to run this command for each Xcode update

like image 25
tbaranes Avatar answered Dec 12 '22 09:12

tbaranes