diff --git a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn index dbff86b9bf..8d357e2731 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn +++ b/engine/src/flutter/shell/platform/darwin/ios/BUILD.gn @@ -264,7 +264,6 @@ source_set("ios_test_flutter_mrc") { } shared_library("ios_test_flutter") { - testonly = true visibility = [ ":*" ] cflags = [ "-fvisibility=default", @@ -304,7 +303,6 @@ shared_library("ios_test_flutter") { "framework/Source/connection_collection_test.mm", ] deps = [ - ":flutter_framework", ":flutter_framework_source", ":flutter_framework_source_arc", ":ios_gpu_configuration", @@ -467,4 +465,8 @@ action("flutter_framework") { ] deps = [ ":universal_flutter_framework" ] + + if (is_debug) { + deps += [ ":ios_test_flutter" ] + } }