LoginSignup
10
9

More than 5 years have passed since last update.

Xcode7.2へアップグレードしたらプラグイン動かなくなりました。

Last updated at Posted at 2015-12-10

タイトルどおりでして、XVimやらAlcatrazやらが動かなくなり、完全にデフォルト状態に戻ってしまいました。
で、同僚に相談したところ、以下のようなスクリプトを実行すれば解決するよ、て事で試してみました。

xcode-plugin-update.sh
#!/usr/bin/env sh
UUID=$(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID)
echo Xcode DVTPlugInCompatibilityUUID is $UUID
for MyPlugin in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*
do
    UUIDs=$(defaults read "$MyPlugin"/Contents/Info DVTPlugInCompatibilityUUIDs)
    echo $MyPlugin
    if echo "${UUIDs[@]}" | grep -w "$UUID" &>/dev/null; then
        echo "The plug-in's UUIDs has contained the Xcode's UUID."
    else
        defaults write "$MyPlugin"/Contents/Info DVTPlugInCompatibilityUUIDs -array-add $UUID
        echo "Refresh the plug-in completed."
    fi
done
echo "Done!"

こちらを実行した後でXcodeを再起動すれば、新しいXCodeでもきちんとプラグインが機能しました。
助かった〜( ^ν^)

10
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
9