Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run build-for-testing.sh on Xcode 15.3 to match FTL #1651

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
andrewheard marked this conversation as resolved.
Show resolved Hide resolved

# 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
andrewheard marked this conversation as resolved.
Show resolved Hide resolved
zip -r MyTests.zip Debug-iphoneos *.xctestrun
andrewheard marked this conversation as resolved.
Show resolved Hide resolved
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"
Loading