lib/run_loop/cli/instruments.rb in run_loop-2.2.4 vs lib/run_loop/cli/instruments.rb in run_loop-2.3.0
- old
+ new
@@ -24,10 +24,15 @@
:default => false,
:type => :boolean
def quit
+ if RunLoop::Xcode.new.version_gte_8?
+ puts "instruments quit with Xcode 8 is not supported"
+ exit 1
+ end
+
signal = options[:signal]
ENV['DEBUG'] = '1' if options[:debug]
instruments = RunLoop::Instruments.new
instruments.instruments_pids.each do |pid|
terminator = RunLoop::ProcessTerminator.new(pid, signal, 'instruments')
@@ -92,9 +97,13 @@
:required => false,
:default => false,
:type => :boolean
def launch
+ if RunLoop::Xcode.new.version_gte_8?
+ puts "Launching applications with Xcode 8 is not supported"
+ exit 1
+ end
debug = options[:debug]
original_value = ENV['DEBUG']
ENV['DEBUG'] = '1' if debug