-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Add flutter build ipa --no-codesign
flag
#101766
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
Conversation
cf0c7dc
to
8b82bbb
Compare
@@ -141,13 +131,18 @@ class BuildIOSArchiveCommand extends _BuildIOSSubCommand { | |||
|
|||
@override | |||
Future<FlutterCommandResult> runCommand() async { | |||
final FlutterCommandResult xcarchiveResult = await super.runCommand(); | |||
final BuildInfo buildInfo = await getBuildInfo(); | |||
displayNullSafetyMode(buildInfo); |
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.
This is the 💪 Building with sound null safety 💪
that I moved to before super.runCommand()
which actually does the building.
8b82bbb
to
3b8c944
Compare
@@ -141,13 +131,18 @@ class BuildIOSArchiveCommand extends _BuildIOSSubCommand { | |||
|
|||
@override | |||
Future<FlutterCommandResult> runCommand() async { | |||
final FlutterCommandResult xcarchiveResult = await super.runCommand(); | |||
final BuildInfo buildInfo = await getBuildInfo(); | |||
final BuildInfo buildInfo = await cachedBuildInfo; |
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.
This should have been the late final
cachedBuildInfo
so getBuildInfo()
isn't called twice.
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
Move the
--no-codesign
flag fromBuildIOSCommand
to its base class_BuildIOSSubCommand
so it can also be used byBuildIOSArchiveCommand
.When flag is set, skip the IPA creation step since that cannot be built without the codesigning settings.
Also, while we're here, rearrange the
Building with sound null safety
message to happen before the build starts so it isn't just randomly printed at the end. Before that change it looked like:Fixes #101765
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.