Skip to content

Commit

Permalink
Wait for the dyld cache to update after creating a simulator
Browse files Browse the repository at this point in the history
Trying to run the build in parallel with this seems to just make both very
slow.
  • Loading branch information
tgoyne committed May 23, 2020
1 parent 83916eb commit e57e28a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/reset-simulators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
Expand Down

0 comments on commit e57e28a

Please sign in to comment.