From da1905f21686a30a32972a36041595fedfdb8463 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 13 Sep 2012 16:59:16 -0400 Subject: [PATCH] Make xcrun wrapper search /usr/bin too The usual xcrun would, and this wrapper exists to also work around broken xcode-select paths. --- Library/ENV/4.3/xcrun | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/ENV/4.3/xcrun b/Library/ENV/4.3/xcrun index d6f4e84a06..453042f6b6 100755 --- a/Library/ENV/4.3/xcrun +++ b/Library/ENV/4.3/xcrun @@ -14,7 +14,7 @@ if [ $HOMEBREW_SDKROOT ]; then exec /usr/bin/xcrun "$arg0" "$@";; esac - path=$(/usr/bin/xcrun -find $arg0) + path="$(/usr/bin/xcrun -find $arg0)" [ -x "$path" ] && exec "$path" "$@" # Nuts, Xcode is not setup properly or something. @@ -23,6 +23,8 @@ if [ $HOMEBREW_SDKROOT ]; then [ -x "$path" ] && exec "$path" "$@" path="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/$arg0" [ -x "$path" ] && exec "$path" "$@" + path="/usr/bin/$arg0" + [ -x "$path" ] && exec "$path" "$@" echo "Your Xcode setup is not ready. You need to either:" echo " sudo xcode-select -switch /path/to/Xcode.app"