File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 20
20
21
21
set -euo pipefail
22
22
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
+
23
31
# Set default parameters
24
32
if [[ -z " ${SPM:- } " ]]; then
25
33
SPM=false
@@ -31,7 +39,7 @@ if [[ -z "${SPM:-}" ]]; then
31
39
fi
32
40
if [[ -z " ${OS:- } " ]]; then
33
41
OS=iOS
34
- DEVICE=" iPhone 16 "
42
+ DEVICE=" iPhone ${iphone_version} "
35
43
echo " Defaulting to OS=$OS "
36
44
echo " Defaulting to DEVICE=$DEVICE "
37
45
fi
@@ -123,6 +131,6 @@ function xcb() {
123
131
}
124
132
125
133
# 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"
127
135
xcb " ${flags[@]} "
128
136
echo " $message "
You can’t perform that action at this time.
0 commit comments