Skip to content

Reduce Xcode noise #3 - #14663

Merged
xster merged 3 commits into
flutter:masterfrom
xster:xcode-noise-3
Feb 13, 2018
Merged

xster merged 3 commits into
flutter:masterfrom
xster:xcode-noise-3

Conversation

@xster

@xster xster commented Feb 13, 2018

Copy link
Copy Markdown
Member

Third time's a charm

Unreverts #14641

Fixes #13104

Reduces xcodebuild fluff.

Also stops scrapping xcodebuild output as a critical path to building successfully. Fixes #14657

Fixes an issue where the build settings used to diagnose xcode build failures may not be the same settings used to build. Fixes #14661

@mravn-google mravn-google left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


// Run -showBuildSettings again but with the exact same parameters as the build.
final Map<String, String> buildSettings = parseXcodeBuildSettings(runCheckedSync(
buildCommands..add('-showBuildSettings'),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we pass in a new list with the added flag rather than mutate buildCommands. It is used later for diagnostics and I believe it should reflect the actual command line that produced the buildResult above.

Just to avoid any surprises down the road.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ya, totally good point. Thanks.

final String expectedOutputDirectory = fs.path.join(
buildSettings['TARGET_BUILD_DIR'],
buildSettings['WRAPPER_NAME'],
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@xster
xster merged commit d401bd7 into flutter:master Feb 13, 2018
@xster
xster deleted the xcode-noise-3 branch February 13, 2018 09:56
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
* Revert "Revert "Reduce xcodebuild noise flutter#2" (flutter#14641)"

This reverts commit 2d47481.

* Stop scrapping xcodebuild output, get the right build settings

* clone the command params first
@jmagman jmagman mentioned this pull request Oct 8, 2020
9 of 10 tasks
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We may misdiagnose build failure causes Replace xcodebuild stdout scraping logic for determining output dir Clean up xcodebuild's messy output

3 participants