Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f35213f

Browse files
author
Chris Yang
authored
Revert "Build iOS unittest target in unopt builds" (#44356)
Reverts #44301 ``` Traceback (most recent call last): File "/Volumes/Work/s/w/ir/cache/builder/src/flutter/testing/run_tests.py", line 1286, in <module> sys.exit(main()) File "/Volumes/Work/s/w/ir/cache/builder/src/flutter/testing/run_tests.py", line 1269, in main run_objc_tests(args.ios_variant, args.objc_filter) File "/Volumes/Work/s/w/ir/cache/builder/src/flutter/testing/run_tests.py", line 721, in run_objc_tests ensure_ios_tests_are_built(ios_out_dir) File "/Volumes/Work/s/w/ir/cache/builder/src/flutter/testing/run_tests.py", line 625, in ensure_ios_tests_are_built assert flutter_dylib_time <= ios_test_lib_time, final_message AssertionError: /Volumes/Work/s/w/ir/cache/builder/src/out/ios_debug_sim_arm64_extension_safe/libios_test_flutter.dylib is older than /Volumes/Work/s/w/ir/cache/builder/src/out/ios_debug_sim_arm64_extension_safe/libFlutter.dylib. Please run the following commands: gn --ios --unoptimized --runtime-mode=debug --no-lto --simulator ninja -C /Volumes/Work/s/w/ir/cache/builder/src/out/ios_debug_sim_arm64_extension_safe ios_test_flutter ``` It failed we in run_test.py we check if the ios_test is built after the framework, which is not true anymore after moving the test inside the build target.
1 parent 098ec48 commit f35213f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

shell/platform/darwin/ios/BUILD.gn

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ source_set("ios_test_flutter_mrc") {
264264
}
265265

266266
shared_library("ios_test_flutter") {
267+
testonly = true
267268
visibility = [ ":*" ]
268269
cflags = [
269270
"-fvisibility=default",
@@ -303,6 +304,7 @@ shared_library("ios_test_flutter") {
303304
"framework/Source/connection_collection_test.mm",
304305
]
305306
deps = [
307+
":flutter_framework",
306308
":flutter_framework_source",
307309
":flutter_framework_source_arc",
308310
":ios_gpu_configuration",
@@ -465,8 +467,4 @@ action("flutter_framework") {
465467
]
466468

467469
deps = [ ":universal_flutter_framework" ]
468-
469-
if (is_debug) {
470-
deps += [ ":ios_test_flutter" ]
471-
}
472470
}

0 commit comments

Comments
 (0)