Update xcode-postbuild.sh
This commit is contained in:
@@ -15,11 +15,6 @@ do
|
|||||||
#add sleep to let CoreSimulatorService to exit
|
#add sleep to let CoreSimulatorService to exit
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
# Version 12.2_beta installed into 12.2 directory and 12.1_GM_seed in 12.1
|
|
||||||
pattern="[0-9]{1,2}.*_"
|
|
||||||
if [[ $XCODE_VERSION =~ $pattern ]] ; then
|
|
||||||
XCODE_VERSION=$(echo $XCODE_VERSION | cut -d"_" -f 1)
|
|
||||||
fi
|
|
||||||
# Select xcode version by default
|
# Select xcode version by default
|
||||||
sudo xcode-select -s "/Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer"
|
sudo xcode-select -s "/Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user