Use value of xcode-select path instead of just using the finder default

This commit is contained in:
John Regner 2016-01-31 10:33:48 -08:00
parent bd6dbd1d9b
commit fbf601eb6d

View File

@ -14,7 +14,8 @@ function xc {
return 1
else
echo "Found ${xcode_proj[1]}"
open "${xcode_proj[1]}"
XCODEPATH=`xcode-select -p`
open -a ${XCODEPATH%/*/*} "${xcode_proj[1]}"
fi
}