Update xcode-postbuild.sh

This commit is contained in:
Maxim Lobanov
2020-11-03 09:37:06 +03:00
parent 8c96dbb9bb
commit 5907a2a1ee

View File

@@ -15,11 +15,6 @@ do
#add sleep to let CoreSimulatorService to exit
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
sudo xcode-select -s "/Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer"