Skip to content

Commit

Permalink
[flutter_app_builder] iOS builder adds export build argument check
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Jan 13, 2023
1 parent f25e28f commit 5548da7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/flutter_app_builder/lib/src/app_builder_ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ class AppBuilderIos extends AppBuilder {
String? target,
required Map<String, dynamic> buildArguments,
}) {
if (!buildArguments.containsKey('export-options-plist')) {
throw BuildError('Missing `export-options-plist` build argument.');
if (!buildArguments.containsKey('export-options-plist') ||
!buildArguments.containsKey('export-method')) {
throw BuildError(
'Missing `export-options-plist` or `export-method` build argument.',
);
}
return super.build(
target: target,
Expand Down

0 comments on commit 5548da7

Please sign in to comment.