unit and acceptance testing, automation, productivity

How to update an Xcode plug-in for the latest version of Xcode

Every time a new version of Xcode is released the same drama starts to play: none of the plug-ins work.

Most of the time this is due to the plug-in maintainer not having had the time yet to update the DVTPluginCompatibilityUUIDs array to include the DVTPluginCompatibilityUUID of the latest Xcode.

This line of code does that for you, while you wait for a proper update to be released:

defaults write ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/XVim.xcplugin/Contents/Info  DVTPlugInCompatibilityUUIDs -array-add $(defaults read /Applications/ DVTPlugInCompatibilityUUID)

Note that in the command above the plug-in I'm updating is XVim.xcplugin, you should replace that with the name of the plug-in you want to update.

If you need any help with this please hit me up on Twitter @mokagio, or leave a comment below.

Happy coding, and leave the codebase better than you found it.

Want more of these posts?

Subscribe to receive new posts in your inbox.