Skip to content

Commit e732532

Browse files
committed
fix for non-compiling error printing
1 parent 097527a commit e732532

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/cocoapods-binary/rome/build_framework.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,13 @@ def xcodebuild(sandbox, target, sdk='macosx', deployment_target=nil, other_optio
8383
args += Fourflusher::SimControl.new.destination(:oldest, platform, deployment_target) unless platform.nil?
8484
args += other_options
8585
log = `xcodebuild #{args.join(" ")} 2>&1`
86-
is_succeed = ($? == 0)
86+
exit_code = $?.exitstatus # Process::Status
87+
is_succeed = (exit_code == 0)
8788

8889
if !is_succeed
8990
begin
91+
# 64 represent command invalid. http://www.manpagez.com/man/3/sysexits/
92+
raise "shouldn't be handle by xcpretty" if exit_code == 64
9093
printer = XCPretty::Printer.new({:formatter => XCPretty::Simple, :colorize => 'auto'})
9194
log.each_line do |line|
9295
printer.pretty_print(line)

0 commit comments

Comments
 (0)