From e57e28aeb0ddbd7a2c544e5cebfdbd18bc2f2491 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 22 May 2020 23:03:43 -0700 Subject: [PATCH] Wait for the dyld cache to update after creating a simulator Trying to run the build in parallel with this seems to just make both very slow. --- scripts/reset-simulators.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/reset-simulators.rb b/scripts/reset-simulators.rb index 2b1e31e2b71..2f2479143e7 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 ''