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 6868 branches :
6969 only :
7070 - 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 '
7373 install :
7474 - gem install slather --no-document --quiet
7575 - gem install cocoapods -v '1.8.0'
Original file line number Diff line number Diff line change @@ -9,5 +9,12 @@ set -eou pipefail
99# prep jq arg because it doesnt allow parameter expansion within its single quotes
1010echo " .devices.\" com.apple.CoreSimulator.SimRuntime.${PLATFORM/ Simulator/ } -${OS/ ./ -} \" " > /tmp/jq_file
1111
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
1320xcrun simctl list | grep Booted
You can’t perform that action at this time.
0 commit comments