File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 2020
2121set -euo pipefail
2222
23+ if [ -d " /Applications/Xcode_16.1.app" ]; then
24+ xcode_version=" 16.1"
25+ iphone_version=" 16"
26+ else
27+ xcode_version=" 15.3"
28+ iphone_version=" 15"
29+ fi
30+
2331# Set default parameters
2432if [[ -z " ${SPM:- } " ]]; then
2533 SPM=false
@@ -31,7 +39,7 @@ if [[ -z "${SPM:-}" ]]; then
3139fi
3240if [[ -z " ${OS:- } " ]]; then
3341 OS=iOS
34- DEVICE=" iPhone 16 "
42+ DEVICE=" iPhone ${iphone_version} "
3543 echo " Defaulting to OS=$OS "
3644 echo " Defaulting to DEVICE=$DEVICE "
3745fi
@@ -123,6 +131,6 @@ function xcb() {
123131}
124132
125133# Run xcodebuild
126- sudo xcode-select -s /Applications/Xcode_16.1. app/Contents/Developer
134+ sudo xcode-select -s " /Applications/Xcode_ ${xcode_version} . app/Contents/Developer"
127135xcb " ${flags[@]} "
128136echo " $message "
You can’t perform that action at this time.
0 commit comments