Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
【ShellScript】Add Compatibility to XcodePlugins
# 使用するときはここのパスを追加したいバージョンのXcodeのパスに変更してください。
XCODE_ID=`find ${XCODE} -name Info.plist -maxdepth 2 | xargs -I{} defaults read {} DVTPlugInCompatibilityUUID`
PLUGINS=`find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3`
add_XcodeID() {
grep -c $1 "$2" >&/dev/null
if [ "$?" -ne "0" ]; then
defaults write "$2" DVTPlugInCompatibilityUUIDs -array-add ${XCODE_ID}
export XCODE_ID
export -f add_XcodeID
echo "${PLUGINS}" | xargs -E\n -I{} bash -c 'add_XcodeID ${XCODE_ID} "{}";'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.