From c6a5122ace984909ddabc81645c23b9848e33e78 Mon Sep 17 00:00:00 2001
From: stuartmorgan <stuartmorgan@google.com>
Date: Thu, 20 May 2021 14:13:47 -0700
Subject: [PATCH] Remove codesign overrides from xctest command (#3952)

Workaround for https://github.com/flutter/flutter/issues/83048
---
 script/tool/lib/src/xctest_command.dart   | 2 --
 script/tool/test/xctest_command_test.dart | 4 ----
 2 files changed, 6 deletions(-)

diff --git a/script/tool/lib/src/xctest_command.dart b/script/tool/lib/src/xctest_command.dart
index 335e0054fc..2bd8639cd8 100644
--- a/script/tool/lib/src/xctest_command.dart
+++ b/script/tool/lib/src/xctest_command.dart
@@ -121,8 +121,6 @@ class XCTestCommand extends PluginCommand {
       'Runner',
       '-destination',
       destination,
-      'CODE_SIGN_IDENTITY=""',
-      'CODE_SIGNING_REQUIRED=NO',
       'GCC_TREAT_WARNINGS_AS_ERRORS=YES',
     ];
     final String completeTestCommand =
diff --git a/script/tool/test/xctest_command_test.dart b/script/tool/test/xctest_command_test.dart
index 53e82ac623..505730f37a 100644
--- a/script/tool/test/xctest_command_test.dart
+++ b/script/tool/test/xctest_command_test.dart
@@ -175,8 +175,6 @@ void main() {
                   'Runner',
                   '-destination',
                   'foo_destination',
-                  'CODE_SIGN_IDENTITY=""',
-                  'CODE_SIGNING_REQUIRED=NO',
                   'GCC_TREAT_WARNINGS_AS_ERRORS=YES',
                 ],
                 pluginExampleDirectory2.path),
@@ -233,8 +231,6 @@ void main() {
                   'Runner',
                   '-destination',
                   'id=1E76A0FD-38AC-4537-A989-EA639D7D012A',
-                  'CODE_SIGN_IDENTITY=""',
-                  'CODE_SIGNING_REQUIRED=NO',
                   'GCC_TREAT_WARNINGS_AS_ERRORS=YES',
                 ],
                 pluginExampleDirectory.path),