diff --git a/script/tool/lib/src/podspec_check_command.dart b/script/tool/lib/src/podspec_check_command.dart index bd52b547bbd..1b29497f0ac 100644 --- a/script/tool/lib/src/podspec_check_command.dart +++ b/script/tool/lib/src/podspec_check_command.dart @@ -159,6 +159,7 @@ class PodspecCheckCommand extends PackageLoopingCommand { podspecPath, '--configuration=Debug', // Release targets unsupported arm64 simulators. Use Debug to only build against targeted x86_64 simulator devices. '--skip-tests', + '--allow-warnings', if (libraryLint) '--use-libraries' ]; diff --git a/script/tool/test/podspec_check_command_test.dart b/script/tool/test/podspec_check_command_test.dart index c2506de6313..971bddfadab 100644 --- a/script/tool/test/podspec_check_command_test.dart +++ b/script/tool/test/podspec_check_command_test.dart @@ -155,6 +155,7 @@ void main() { .path, '--configuration=Debug', '--skip-tests', + '--allow-warnings', '--use-libraries' ], packagesDir.path), @@ -169,6 +170,7 @@ void main() { .path, '--configuration=Debug', '--skip-tests', + '--allow-warnings', ], packagesDir.path), ]), @@ -209,6 +211,7 @@ void main() { .path, '--configuration=Debug', '--skip-tests', + '--allow-warnings', '--use-libraries' ], packagesDir.path), @@ -223,6 +226,7 @@ void main() { .path, '--configuration=Debug', '--skip-tests', + '--allow-warnings', ], packagesDir.path), ]),