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
This commit is contained in:
Watson
2014-09-13 12:57:52 +09:00
parent 3d980686e0
commit bc5ff65ab1
2 changed files with 5 additions and 0 deletions

View File

@@ -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