Skip to content

Commit 097527a

Browse files
committed
make sure xcpretty won't crash, as it's not improtant
1 parent 10415b4 commit 097527a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/cocoapods-binary/rome/build_framework.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,13 @@ def xcodebuild(sandbox, target, sdk='macosx', deployment_target=nil, other_optio
8686
is_succeed = ($? == 0)
8787

8888
if !is_succeed
89-
printer = XCPretty::Printer.new({:formatter => XCPretty::Simple, :colorize => 'auto'})
90-
log.each_line do |line|
91-
printer.pretty_print(line)
89+
begin
90+
printer = XCPretty::Printer.new({:formatter => XCPretty::Simple, :colorize => 'auto'})
91+
log.each_line do |line|
92+
printer.pretty_print(line)
93+
end
94+
rescue
95+
puts log
9296
end
9397
end
9498
[is_succeed, log]

0 commit comments

Comments
 (0)