bin/calabash-ios-sim.rb in calabash-cucumber-0.9.146 vs bin/calabash-ios-sim.rb in calabash-cucumber-0.9.147

- old
+ new

@@ -5,19 +5,25 @@ `echo 'application "iPhone Simulator" quit' | osascript` end def calabash_sim_reset reset_script = File.expand_path("#{@script_dir}/reset_simulator.scpt") + app_path = File.expand_path("#{@script_dir}/EmptyAppHack.app") launcher = SimLauncher::Simulator.new sdks = ENV['SDK_VERSIONS'] if sdks sdks = sdks.split(",") else sdks = SimLauncher::SdkDetector.new(launcher).available_sdk_versions end - launcher.reset(sdks) + + sdks.each do |sdk| + launcher.launch_ios_app(app_path, sdk, ENV['DEVICE'] || 'iphone') + puts `osascript #{reset_script}` + end + end def calabash_sim_accessibility dirs = Dir.glob(File.join(File.expand_path("~/Library"), "Application Support", "iPhone Simulator", "*.*", "Library", "Preferences"))