lib/snapshot/reset_simulators.rb in snapshot-0.9.3 vs lib/snapshot/reset_simulators.rb in snapshot-0.10.0

- old
+ new

@@ -1,8 +1,8 @@ module Snapshot class ResetSimulators - def self.clear_everything!(ios_version) + def self.clear_everything!(ios_versions) # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # !! Warning: This script will remove all your existing simulators !! # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! sure = true if ENV["SNAPSHOT_FORCE_DELETE"] @@ -33,11 +33,13 @@ # iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s) # iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6) all_device_types.each do |device_type| next if device_type.join(' ').include?"Watch" # we don't want to deal with the Watch right now - puts "Creating #{device_type} for iOS version #{ios_version}" - `xcrun simctl create '#{device_type[0]}' #{device_type[1]} #{ios_version}` + ios_versions.each do |ios_version| + puts "Creating #{device_type} for iOS version #{ios_version}" + `xcrun simctl create '#{device_type[0]}' #{device_type[1]} #{ios_version}` + end end end end end \ No newline at end of file