Xcode is frequently upgraded, which causes the previously installed plugins to fail. My solution was to go back to GitHub to download a bunch of plugins, and then reinstall, this approach is too low, refer to other people's information, and finally use a script to upgrade.
In fact, after the Xcode upgrade, plug-ins only need to add the UUID to the plist of the plug-in, directly let the script to help me do this thing just fine.
Steps:
1. Scripting
Open an editor, create a file named script.sh, open the file, and copy and paste the following code:
#!/bin/bash# Get the current version of Xcode dvtplugincompatibilityuuiduuid=$ (defaults read/applications/xcode.app/ Contents/info dvtplugincompatibilityuuid) echo Xcode Dvtplugincompatibilityuuid is $UUID #遍历每一个Xcode插件, write UUID to the plug-in compatibility List in ~/library/application\ Support/developer/shared/xcode/plug-ins/*dodefaults write " $MyPlugin"/Contents /info dvtplugincompatibilityuuids-array-add $UUID echo Write dvtplugincompatibilityuuid to $MyPlugin succeed! Done
2. Authorization rights
Enter the following command in the terminal (755 followed by the path to the script you just wrote):
chmod 755 /Users/MAC-yanghua/Desktop/script.sh
3. Close the Xcode4. Run the script
Simply drag the script to the terminal.
5. End
Re-open Xcode on the line.
Workaround for Xcode upgrade, which causes previously installed plugins to fail