From 244b53e894eb22aa9eabcf7e9ac1342ab8950bcd Mon Sep 17 00:00:00 2001 From: Watson Date: Sat, 13 Sep 2014 12:57:52 +0900 Subject: [PATCH] fix a bug where Instruments does not launch if specify the template name with "rake profile template='xxx'" http://hipbyte.myjetbrains.com/youtrack/issue/RM-599 --- lib/motion/project/xcode_config.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/motion/project/xcode_config.rb b/lib/motion/project/xcode_config.rb index d44482d3..699a3eb6 100644 --- a/lib/motion/project/xcode_config.rb +++ b/lib/motion/project/xcode_config.rb @@ -321,6 +321,9 @@ EOS else App.fail("Invalid Instruments template path or name.") end + if xcode_version[0] >= '6.0' + template_path = File.expand_path("#{xcode_dir}/../Applications/Instruments.app/Contents/Resources/templates/#{template_path}.tracetemplate") + end optional_data['XrayTemplatePath'] = template_path end