./lib/shenzhen/xcodebuild.rb in shenzhen-0.14.0 vs ./lib/shenzhen/xcodebuild.rb in shenzhen-0.14.1

- old
+ new

@@ -27,11 +27,11 @@ class NilOutputError < Error; end class << self def info(*args) options = args.last.is_a?(Hash) ? args.pop : {} - output = `xcodebuild -list #{(args + args_from_options(options)).join(" ")} 2>&1` + output = `xcrun xcodebuild -list #{(args + args_from_options(options)).join(" ")} 2>&1` raise Error.new $1 if /^xcodebuild\: error\: (.+)$/ === output return nil unless /\S/ === output @@ -60,11 +60,11 @@ Info.new(info) end def settings(*args) options = args.last.is_a?(Hash) ? args.pop : {} - output = `xcodebuild #{(args + args_from_options(options)).join(" ")} -showBuildSettings 2> /dev/null` + output = `xcrun xcodebuild #{(args + args_from_options(options)).join(" ")} -showBuildSettings 2> /dev/null` return nil unless /\S/ === output raise Error.new $1 if /^xcodebuild\: error\: (.+)$/ === output @@ -84,10 +84,10 @@ Settings.new(settings) end def version - output = `xcodebuild -version` + output = `xcrun xcodebuild -version` output.scan(/([\d+\.?]+)/).flatten.first rescue nil end private