Skip to content
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
2 changes: 1 addition & 1 deletion scripts/build-for-testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function xcb() {
}

# Run xcodebuild
sudo xcode-select -s /Applications/Xcode_15.3.app/Contents/Developer
sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider using a variable for the Xcode path to improve maintainability. This way, if the Xcode version needs to be updated again, it can be done in one place. Also, it might be useful to check if the specified Xcode version exists before attempting to select it. This could prevent errors if the Xcode version is not installed.

Suggested change
sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
XCODE_PATH="/Applications/Xcode_16.2.app/Contents/Developer"
if [[ -d "$XCODE_PATH" ]]; then
sudo xcode-select -s "$XCODE_PATH"
else
echo "Xcode version not found at $XCODE_PATH"
exit 1
fi

xcb "${flags[@]}"
echo "$message"

Expand Down