File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,17 @@ mkdir -p $UNO_UITEST_SCREENSHOT_PATH/_logs
41
41
# # Pre-install the application to avoid https://github.com/microsoft/appcenter/issues/2389
42
42
# #
43
43
44
- export UITEST_IOSDEVICE_ID=` xcrun simctl list -j | jq -r --arg sim " $UNO_UITEST_SIMULATOR_VERSION " --arg name " $UNO_UITEST_SIMULATOR_NAME " ' .devices[$sim] | .[] | select(.name==$name) | .udid' `
45
- export UITEST_IOSDEVICE_DATA_PATH=` xcrun simctl list -j | jq -r --arg sim " $UNO_UITEST_SIMULATOR_VERSION " --arg name " $UNO_UITEST_SIMULATOR_NAME " ' .devices[$sim] | .[] | select(.name==$name) | .dataPath' `
44
+ while true ; do
45
+ export UITEST_IOSDEVICE_ID=` xcrun simctl list -j | jq -r --arg sim " $UNO_UITEST_SIMULATOR_VERSION " --arg name " $UNO_UITEST_SIMULATOR_NAME " ' .devices[$sim] | .[] | select(.name==$name) | .udid' `
46
+ export UITEST_IOSDEVICE_DATA_PATH=` xcrun simctl list -j | jq -r --arg sim " $UNO_UITEST_SIMULATOR_VERSION " --arg name " $UNO_UITEST_SIMULATOR_NAME " ' .devices[$sim] | .[] | select(.name==$name) | .dataPath' `
47
+
48
+ if [ -n " $UITEST_IOSDEVICE_ID " ]; then
49
+ break
50
+ fi
51
+
52
+ echo " Waiting for the simulator to be available"
53
+ sleep 5
54
+ done
46
55
47
56
echo " Simulator Data Path: $UITEST_IOSDEVICE_DATA_PATH "
48
57
cp " $UITEST_IOSDEVICE_DATA_PATH /../device.plist" $UNO_UITEST_SCREENSHOT_PATH /_logs
You can’t perform that action at this time.
0 commit comments