Skip to content

Commit

Permalink
Run build-for-testing.sh on Xcode 15.3 to match FTL (#1651)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard authored Nov 11, 2024
1 parent 11e66b0 commit 1a40e1e
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions scripts/build-for-testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,6 @@ fi
# Set have_secrets to true or false.
source scripts/check_secrets.sh

# Get Xcode version
system=$(uname -s)
case "$system" in
Darwin)
xcode_version=$(xcodebuild -version | head -n 1)
xcode_version="${xcode_version/Xcode /}"
xcode_major="${xcode_version/.*/}"
;;
*)
xcode_major="0"
;;
esac

# Initialize flags
flags=()

Expand Down Expand Up @@ -100,11 +87,11 @@ function xcb() {
}

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

# Zip build-for-testing into MyTests.zip
cd build-for-testing/${SCHEME}/Build/Products
zip -r MyTests.zip Debug-iphoneos *.xctestrun
cd "build-for-testing/${SCHEME}/Build/Products"
zip -r MyTests.zip Debug-iphoneos ./*.xctestrun
echo "build-for-testing/${SCHEME}/Build/Products zipped into MyTests.zip"

0 comments on commit 1a40e1e

Please sign in to comment.