From dd0fc3c8725f63e02f049ece231f142667142927 Mon Sep 17 00:00:00 2001 From: Mike Enriquez Date: Mon, 16 Sep 2013 20:46:56 -0400 Subject: [PATCH] Fixes #9 --- lib/uiauto/simulator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/uiauto/simulator.rb b/lib/uiauto/simulator.rb index f11a7ee..2088fa3 100644 --- a/lib/uiauto/simulator.rb +++ b/lib/uiauto/simulator.rb @@ -43,7 +43,7 @@ def self.close end def self.open(simulator = nil) - xcode_path = `xcode-select -p`.strip + xcode_path = `xcode-select --print-path`.strip simulator_path = File.join(xcode_path, "/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app") `open "#{simulator_path}"`