lib/run_loop/xctools.rb in run_loop-1.0.1 vs lib/run_loop/xctools.rb in run_loop-1.0.2
- old
+ new
@@ -126,10 +126,12 @@
}.call
when :templates
@instruments_templates ||= lambda {
cmd = "#{instruments} -s templates"
- if self.xcode_version >= self.v51
+ if self.xcode_version >= self.v60
+ `#{cmd}`.split("\n").map { |elm| elm.strip.tr('"', '') }
+ elsif self.xcode_version >= self.v51
`#{cmd}`.split("\n").delete_if do |path|
not path =~ /tracetemplate/
end.map { |elm| elm.strip }
else
# prints to $stderr (>_>) - seriously?