diff --git a/scripts/reset-simulators.rb b/scripts/reset-simulators.rb index 2b1e31e2b7..2f2479143e 100755 --- a/scripts/reset-simulators.rb +++ b/scripts/reset-simulators.rb @@ -125,6 +125,12 @@ def shutdown_simulator_devices(devices) system("xcrun simctl boot 'iPhone 8'") or raise "Failed to boot iPhone 8 simulator" puts ' done!' + print 'Waiting for dyld shared cache to update...' + while system('pgrep -q update_dyld_sim_shared_cache') + sleep 15 + end + puts ' done!' + rescue => e if (attempts += 1) < 5 puts ''