Created
August 7, 2017 14:34
-
-
Save T1T4N/b1431b2722a261e0cd68cabf8f3549d4 to your computer and use it in GitHub Desktop.
Specify Xcode developer dir by version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEVELOPER_DIR=$(XCODE_VER=9; TMP_RET=$(ls "/Applications" | grep -E "Xcode-?${XCODE_VER}.*\.app" | head -n 1 | xargs -I {} echo "/Applications/{}/Contents/Developer"); [[ ${TMP_RET} ]] || TMP_RET=$(/usr/bin/xcrun xcode-select -p); echo $TMP_RET) eval echo '$DEVELOPER_DIR' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment