Skip to content

Commit 1a40e1e

Browse files
authored
Run build-for-testing.sh on Xcode 15.3 to match FTL (#1651)
1 parent 11e66b0 commit 1a40e1e

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

scripts/build-for-testing.sh

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,6 @@ fi
3535
# Set have_secrets to true or false.
3636
source scripts/check_secrets.sh
3737

38-
# Get Xcode version
39-
system=$(uname -s)
40-
case "$system" in
41-
Darwin)
42-
xcode_version=$(xcodebuild -version | head -n 1)
43-
xcode_version="${xcode_version/Xcode /}"
44-
xcode_major="${xcode_version/.*/}"
45-
;;
46-
*)
47-
xcode_major="0"
48-
;;
49-
esac
50-
5138
# Initialize flags
5239
flags=()
5340

@@ -100,11 +87,11 @@ function xcb() {
10087
}
10188

10289
# Run xcodebuild
103-
sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
90+
sudo xcode-select -s /Applications/Xcode_15.3.app/Contents/Developer
10491
xcb "${flags[@]}"
10592
echo "$message"
10693

10794
# Zip build-for-testing into MyTests.zip
108-
cd build-for-testing/${SCHEME}/Build/Products
109-
zip -r MyTests.zip Debug-iphoneos *.xctestrun
95+
cd "build-for-testing/${SCHEME}/Build/Products"
96+
zip -r MyTests.zip Debug-iphoneos ./*.xctestrun
11097
echo "build-for-testing/${SCHEME}/Build/Products zipped into MyTests.zip"

0 commit comments

Comments
 (0)