Workaround for Xcode upgrade, which causes previously installed plugins to fail

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.