File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
packages/platform-apple-helpers/src/lib/commands/build Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @rnef/platform-apple-helpers ' : patch
3+ ---
4+
5+ fix: stdout buffer overflow and excessive logs accumulation when building ios
Original file line number Diff line number Diff line change 22dist /
33coverage /
44pnpm-lock.yaml
5- build /
5+ website / build /
66ios /
Original file line number Diff line number Diff line change @@ -134,10 +134,12 @@ Configuration ${color.bold(configuration)}`);
134134 cwd : sourceDir ,
135135 } ) ;
136136
137- // Process the output from the AsyncIterable
138- for await ( const chunk of process ) {
139- commandOutput += chunk + '\n' ;
140- reportProgress ( chunk , loader , message ) ;
137+ if ( ! logger . isVerbose ( ) ) {
138+ // Process the output from the AsyncIterable
139+ for await ( const chunk of process ) {
140+ commandOutput += chunk + '\n' ;
141+ reportProgress ( chunk , loader , message ) ;
142+ }
141143 }
142144
143145 await process ;
@@ -150,7 +152,8 @@ Configuration ${color.bold(configuration)}`);
150152 ) ;
151153 }
152154 if ( commandOutput ) {
153- logger . error ( `xcodebuild output: ${ commandOutput } ` ) ;
155+ // Use lightweight console.error instead of logger.error to avoid stack overflow issues when Xcode logs go crazy
156+ console . error ( color . red ( `xcodebuild output: ${ commandOutput } ` ) ) ;
154157 throw new RnefError (
155158 'Running xcodebuild failed. See error details above.' ,
156159 ) ;
You can’t perform that action at this time.
0 commit comments