lib/calabash-cucumber/utils/xctools.rb in calabash-cucumber-0.10.0.pre3 vs lib/calabash-cucumber/utils/xctools.rb in calabash-cucumber-0.10.0.pre5

- old
+ new

@@ -25,13 +25,15 @@ return ENV['DEVELOPER_DIR'] if ENV['DEVELOPER_DIR'] # fall back to xcode-select `xcode-select --print-path`.chomp end + # @deprecated 0.10.0 not replaced # Returns the path to the current developer `usr/bin` directory. # @return [String] path to the current xcode binaries def xcode_bin_dir + _deprecated('0.10.0', 'no replacement', :warn) File.expand_path("#{xcode_developer_dir}/usr/bin") end # Method for interacting with instruments. # @@ -48,10 +50,10 @@ # :sims, and :version as valid parameters # @return [String] based on the value of +cmd+ version, a list known # simulators, or the path to the instruments binary # @raise [ArgumentError] if invalid +cmd+ is passed def instruments(cmd=nil) - instruments = "#{xcode_bin_dir}/instruments" + instruments = 'xcrun instruments' return instruments if cmd == nil case cmd when :version # instruments, version 5.1.1 (55045) \ No newline at end of file