From c042ad3628b411e5ecd48f78eadad19678977302 Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Wed, 3 Mar 2021 10:56:12 -0800 Subject: [PATCH] Adopt Xcode 12 for podspec lints (#3653) --- script/tool/lib/src/lint_podspecs_command.dart | 1 + script/tool/test/lint_podspecs_command_test.dart | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/script/tool/lib/src/lint_podspecs_command.dart b/script/tool/lib/src/lint_podspecs_command.dart index b10031162f..749d67ee5f 100644 --- a/script/tool/lib/src/lint_podspecs_command.dart +++ b/script/tool/lib/src/lint_podspecs_command.dart @@ -122,6 +122,7 @@ class LintPodspecsCommand extends PluginCommand { 'lib', 'lint', podspecPath, + '--configuration=Debug', // Release targets unsupported arm64 simulators. Use Debug to only build against targeted x86_64 simulator devices. if (allowWarnings) '--allow-warnings', if (libraryLint) '--use-libraries' ]; diff --git a/script/tool/test/lint_podspecs_command_test.dart b/script/tool/test/lint_podspecs_command_test.dart index 1014dcd170..e0411d5cff 100644 --- a/script/tool/test/lint_podspecs_command_test.dart +++ b/script/tool/test/lint_podspecs_command_test.dart @@ -81,6 +81,7 @@ void main() { 'lib', 'lint', p.join(plugin1Dir.path, 'ios', 'plugin1.podspec'), + '--configuration=Debug', '--use-libraries' ], mockPackagesDir.path), @@ -90,6 +91,7 @@ void main() { 'lib', 'lint', p.join(plugin1Dir.path, 'ios', 'plugin1.podspec'), + '--configuration=Debug', ], mockPackagesDir.path), ]), @@ -138,6 +140,7 @@ void main() { 'lib', 'lint', p.join(plugin1Dir.path, 'plugin1.podspec'), + '--configuration=Debug', '--allow-warnings', '--use-libraries' ], @@ -148,6 +151,7 @@ void main() { 'lib', 'lint', p.join(plugin1Dir.path, 'plugin1.podspec'), + '--configuration=Debug', '--allow-warnings', ], mockPackagesDir.path),