File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 68
68
branches :
69
69
only :
70
70
- master
71
- env : SCHEME=OptimizelySwiftSDK-iOS TEST_SDK=iphonesimulator PLATFORM='iOS Simulator' OS=12.1 NAME='iPhone 7 '
72
- name : PLATFORM='iOS Simulator' OS=13.2 NAME='iPhone X '
71
+ env : SCHEME=OptimizelySwiftSDK-iOS TEST_SDK=iphonesimulator PLATFORM='iOS Simulator' OS=13.3 NAME='iPhone 11 '
72
+ name : PLATFORM='iOS Simulator' OS=13.3 NAME='iPhone 11 '
73
73
install :
74
74
- gem install slather --no-document --quiet
75
75
- gem install cocoapods -v '1.8.0'
Original file line number Diff line number Diff line change @@ -9,5 +9,12 @@ set -eou pipefail
9
9
# prep jq arg because it doesnt allow parameter expansion within its single quotes
10
10
echo " .devices.\" com.apple.CoreSimulator.SimRuntime.${PLATFORM/ Simulator/ } -${OS/ ./ -} \" " > /tmp/jq_file
11
11
12
- xcrun simctl boot $( xcrun simctl list --json devices | jq -f /tmp/jq_file | jq -r ' .[] | select(.name==env.NAME) | .udid' ) && sleep 30
12
+ simulator=$( xcrun simctl list --json devices | jq -f /tmp/jq_file | jq -r ' .[] | select(.name==env.NAME) | .udid' )
13
+ if [ -z $simulator ]; then
14
+ echo " The requested simulator ($PLATFORM $OS $NAME ) cannot be found."
15
+ xcrun instruments -s device
16
+ exit 1
17
+ fi
18
+
19
+ xcrun simctl boot $simulator && sleep 30
13
20
xcrun simctl list | grep Booted
You can’t perform that action at this time.
0 commit comments