-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[flutter_tools] Port xcode backend to dart #86753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flutter_tools] Port xcode backend to dart #86753
Conversation
packages/flutter_tools/test/general.shard/xcode_backend_test.dart
Outdated
Show resolved
Hide resolved
@jmagman I addressed all your comments, and ran flavors_test_ios locally and it passed. please take another look. |
); | ||
|
||
if (result.exitCode != 0) { | ||
echo(result.stdout as String); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can tell, the only behavioral difference after this change are these additional echoes before exiting if flutter assemble
failed.
Does this satisfy:
Would be really awesome also to get the logging piped from assemble back into the Xcode logs--right now it just gets eaten and you get an exit code in Xcode and you don't know why it failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's outputting a bunch of newlines when assemble fails, which is unexpected:
To reproduce I changed
flutter/packages/flutter_tools/lib/src/build_system/targets/ios.dart
Lines 224 to 226 in 0de6bd4
if (environment.defines[kSdkRoot] == null) { | |
throw MissingDefineException(kSdkRoot, name); | |
} |
to instead throw:
if (environment.defines[kSdkRoot] != null) {
throw MissingDefineException(kSdkRoot, name);
}
Would be really awesome also to get the logging piped from assemble back into the Xcode logs
I would hope to see "Target debug_universal_framework required define SdkRoot but it was not provided" in the Xcode logs or flutter build ios
output. But I think feature parity is good enough for this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the extraneous newlines. Not seeing assemble failures (except in verbose mode) will have to be fixed in the assemble command.
friendly ping @jmagman |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you so much for tackling this!
fixes #84382
Manually ran flavors_test_ios and it passes.