We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bf69a0 commit 8ca0b53Copy full SHA for 8ca0b53
1 file changed
.github/workflows/build.yml
@@ -35,7 +35,8 @@ jobs:
35
echo "No iOS simulator runtimes detected. Falling back to MIN_IOS=${MIN_IOS}"
36
chosen="$MIN_IOS"
37
else
38
- highest="${versions[-1]}"
+ last_index=$(( ${#versions[@]} - 1 ))
39
+ highest="${versions[$last_index]}"
40
# chosen = max(MIN_IOS, highest)
41
if [ "$(printf "%s\n%s\n" "$MIN_IOS" "$highest" | sort -V | tail -n 1)" = "$highest" ]; then
42
chosen="$highest"
0 commit comments