Why are my Xcode plugins (such as clang format) installed with Alcatraz no longer working after updating to new version of Xcode?

前端 未结 9 1485
伪装坚强ぢ
伪装坚强ぢ 2021-01-29 19:40

Today I updated to Xcode 6.3.2 and I can\'t run the Clang code formatting – it seems like it\'s not even installed. Everytime I update Xcode, I have to reinstall Alcatraz and mo

9条回答
  •  孤城傲影
    2021-01-29 20:09

    You could use this script to update your Xcode's plugin after update (works fine with Xcode 7.3):

    #!/bin/bash
    xcodeUUID=`defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
    echo $xcodeUUID
    find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add $xcodeUUID
    

    or copy from my gist https://gist.github.com/MaciejGad/86302b6b8bdb1ee25115

提交回复
热议问题