diff --git a/lib/motion/project/xcode_config.rb b/lib/motion/project/xcode_config.rb index f3c43c64..14cc53d2 100644 --- a/lib/motion/project/xcode_config.rb +++ b/lib/motion/project/xcode_config.rb @@ -301,7 +301,7 @@ EOS if File.exist?(template) template_path = template elsif !builtin_templates.grep(/#{template}/i).empty? - list = `/usr/bin/xcrun instruments -s 2>&1`.strip.split("\n").map { |line| line.sub(/^\s+"/, '').sub(/",*$/, '') } + list = `/usr/bin/xcrun instruments -s 2>&1`.strip.split("\n").map { |line| line.sub(/^\s*"/, '').sub(/",*$/, '') } template = template.downcase template_path = list.find { |path| File.basename(path, File.extname(path)).downcase == template } else