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

前端 未结 9 1486
伪装坚强ぢ
伪装坚强ぢ 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:05

    This script both updates the UDIDs for your plugins and ensures that you are prompted to load bundles:

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

提交回复
热议问题