Method: XcodeBuilder::XcodeBuilder#xcodebuild

Defined in:
lib/xcode_builder.rb

#xcodebuild(*args) ⇒ Object



38
39
40
41
42
43
44
45
46
47
# File 'lib/xcode_builder.rb', line 38

def xcodebuild(*args)
  # we're using tee as we still want to see our build output on screen
  cmd = []
  cmd << "xcrun xcodebuild"
  cmd.concat args
  puts "Running: #{cmd.join(" ")}" if @configuration.verbose
  cmd << "| xcpretty && exit ${PIPESTATUS[0]}"
  cmd = cmd.join(" ")
  system(cmd)
end