Skip to content

Instantly share code, notes, and snippets.

@mfks17
Created May 31, 2016 01:48
Show Gist options
  • Save mfks17/ff03f688601875253106e46017d31264 to your computer and use it in GitHub Desktop.
Save mfks17/ff03f688601875253106e46017d31264 to your computer and use it in GitHub Desktop.
#!/bin/sh
VAR1=`xcodebuild -version | head -1`
VAR2=`echo $VAR1 | sed -e "s/ /-/"`
VAR3=`echo $VAR2 | sed -e "s/$/.app/"`
VAR4=`defaults read /Applications/$VAR3/Contents/Info DVTPlugInCompatibilityUUID`
echo $VAR1 : $VAR4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment