Skip to content

Fix SIGSEGV in VSyncClient on ProMotion devices when engine shell is nil#1

Open
realmeylisdev wants to merge 2 commits into
masterfrom
fix/ios26-vsync-client-null-taskrunner-crash
Open

Fix SIGSEGV in VSyncClient on ProMotion devices when engine shell is nil#1
realmeylisdev wants to merge 2 commits into
masterfrom
fix/ios26-vsync-client-null-taskrunner-crash

Conversation

@realmeylisdev

Copy link
Copy Markdown
Owner

Summary

Fixes flutter#183900

On iOS 26 beta with the implicit engine pattern (FlutterAppDelegate + FlutterSceneDelegate + Main.storyboard), viewDidLoad can fire before the engine shell is fully initialized. createTouchRateCorrectionVSyncClientIfNeeded passes self.engine.platformTaskRunner — an empty fml::RefPtr when _shell is nil — to VSyncClient initWithTaskRunner:callback:, which dereferences the null pointer at task_runner->PostTask(...), causing a SIGSEGV at address 0x0.

This only affects ProMotion devices (≥120Hz) because the method returns early for ≤60Hz displays (line 1349 guard).

Crash stack trace (from issue)

0: -[VSyncClient initWithTaskRunner:callback:]
1: -[FlutterViewController createTouchRateCorrectionVSyncClientIfNeeded]
2: -[FlutterViewController viewDidLoad]
3: -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled]
4: -[UIViewController loadViewIfRequired]
5: -[UIViewController view]
6: -[UIWindow addRootViewControllerViewIfPossible]

Changes

Defense-in-depth at two levels:

  1. VSyncClient initWithTaskRunner:callback: (callee) — returns nil if task_runner is null, preventing the dereference. Keeps the existing FML_DCHECK for debug visibility.

  2. createTouchRateCorrectionVSyncClientIfNeeded (primary crash site) — extracts platformTaskRunner into a local, returns early if null.

  3. setUpKeyboardAnimationVsyncClient: (latent same-pattern vulnerability) — same guard for uiTaskRunner.

  4. Tests — 3 new tests covering null task runner at both VSyncClient and FlutterViewController levels.

Files modified

  • engine/src/flutter/shell/platform/darwin/ios/framework/Source/vsync_waiter_ios.mm
  • engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm
  • engine/src/flutter/shell/platform/darwin/ios/framework/Source/VsyncWaiterIosTest.mm
  • engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterViewControllerTest.mm

Test plan

  • VsyncWaiterIosTest.testInitWithNullTaskRunnerReturnsNil passes
  • FlutterViewControllerTest.testCreateTouchRateCorrectionVSyncClientDoesNotCrashWhenEngineHasNoShell passes
  • FlutterViewControllerTest.testSetUpKeyboardAnimationVsyncClientDoesNotCrashWhenEngineHasNoShell passes
  • Existing VsyncWaiterIosTest and FlutterViewControllerTest suites pass with no regressions
  • Deploy to ProMotion device (iPad Pro / iPhone Pro) on iOS 26 beta with implicit engine pattern — cold launch from home screen does not crash
  • Normal app behavior on 60Hz devices is unaffected

…nil (flutter#183900)

On iOS 26 with the implicit engine pattern, viewDidLoad can fire before
the engine shell is fully initialized. createTouchRateCorrectionVSyncClientIfNeeded
passes self.engine.platformTaskRunner (an empty fml::RefPtr when _shell is nil)
to VSyncClient, which dereferences the null pointer at task_runner->PostTask().

This only affects ProMotion devices (≥120Hz) because the method returns early
for ≤60Hz displays.

Fix:
- VSyncClient initWithTaskRunner: returns nil if task_runner is null
- createTouchRateCorrectionVSyncClientIfNeeded guards platformTaskRunner
- setUpKeyboardAnimationVsyncClient: guards uiTaskRunner (same pattern)
- Added tests for all three null task runner scenarios
…cking

- Remove FML_DCHECK(task_runner) in VSyncClient initWithTaskRunner: that
  would abort debug builds before the null guard could execute
- Add [mockDisplayLinkManager stopMocking] to prevent mock leakage between
  tests
justinmc pushed a commit that referenced this pull request Apr 21, 2026
Relands https://github.com/flutter/flutter/pull/180573 with gradle
lockfiles updated.

Also contains a test fix by Gemini for a failure encountered on
[CI](https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8683917112243416113/+/u/run_test.dart_for_tool_integration_tests_shard_and_subshard_2_5/stdout).

<details>
<summary>Encountered Failure</summary>
00:18 +2 -1: test/integration.shard/test_test.dart: flutter test should
run a test when its name contains a string when
--experimental-faster-testing is set [E]
Expected: a process with exit code 0 and stdout: "RegExp: pattern=\+\d+:
All tests passed! flags="
    Actual: <Instance of 'ProcessResult'>
     Which: Actual exitCode was 1
            Actual stdout:
            
00:00 +0: loading
/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/trivial_test.dart
[ERROR:flutter/shell/testing/tester_main.cc(622)] Unhandled exception
Exception:
'file:///Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/build/isolate_spawning_tester/child_test_isolate_spawner.dart':
error:
build/isolate_spawning_tester/child_test_isolate_spawner.dart:142:30:
Error: Too many positional arguments: 3 allowed, but 4 found.
            Try removing the extra positional arguments.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ad_containers_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ad_containers_test.main);
                                         ^
Stack trace: #0 main
(file:///Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/build/isolate_spawning_tester/root_test_isolate_spawner.dart:85:55)
#1 _runMain.<anonymous closure> (dart:ui/hooks.dart:430:23)
#2 _delayEntrypointInvocation.<anonymous closure>
(dart:isolate-patch/isolate_patch.dart:313:19)
#3 _RawReceivePort._handleMessage
(dart:isolate-patch/isolate_patch.dart:192:12)
            
            
            Actual stderr:
build/isolate_spawning_tester/child_test_isolate_spawner.dart:25:266:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ad_containers_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ad_containers_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:26:277:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_codec_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_codec_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:27:279:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_channel_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_channel_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:28:269:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:29:281:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_information_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_information_impl_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:30:274:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_impl_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:31:277:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/rewarded_interstitial_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_rewarded_interstitial_ad_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:32:263:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_mobile_ads_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:33:261:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/fluid_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_fluid_ad_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:34:272:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/admanager_banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_admanager_banner_ad_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:35:261:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/app_open_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_app_open_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:36:262:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_banner_ad_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:142:294:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ad_containers_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ad_containers_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:144:305:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_codec_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_codec_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:146:307:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_channel_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_channel_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:148:297:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:150:309:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_information_impl_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_information_impl_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:152:302:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_impl_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_impl_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:154:305:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/rewarded_interstitial_ad_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_rewarded_interstitial_ad_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:156:291:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_mobile_ads_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:158:289:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/fluid_ad_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_fluid_ad_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:160:300:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/admanager_banner_ad_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_admanager_banner_ad_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:162:289:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/app_open_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_app_open_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:164:290:
Error: Digit separators ('_') in a number literal can only be placed
between two digits.
            Try removing the '_'.

createChannelAndConnect('/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/banner_ad_test.dart',
route,
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_banner_ad_test.main);
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:25:157:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ad_containers_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ad_containers_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:25:265:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ad_containers_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ad_containers_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:25:266:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ad_containers_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ad_containers_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:25:272:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ad_containers_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ad_containers_test;
^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:26:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_codec_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_codec_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:26:168:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_codec_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_codec_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:26:276:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_codec_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_codec_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:26:277:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_codec_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_codec_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:26:283:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_codec_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_codec_test;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:27:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_channel_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_channel_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:27:170:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_channel_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_channel_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:27:278:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_channel_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_channel_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:27:279:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_channel_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_channel_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:27:285:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/user_messaging_channel_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_user_messaging_channel_test;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:28:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:28:160:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:28:268:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:28:269:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:28:275:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_test;
^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:29:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_information_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_information_impl_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:29:172:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_information_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_information_impl_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:29:280:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_information_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_information_impl_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:29:281:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_information_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_information_impl_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:29:287:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_information_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_information_impl_test;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:30:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_impl_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:30:165:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_impl_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:30:273:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_impl_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:30:274:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_impl_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:30:280:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_impl_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_ump_consent_form_impl_test;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:31:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/rewarded_interstitial_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_rewarded_interstitial_ad_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:31:168:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/rewarded_interstitial_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_rewarded_interstitial_ad_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:31:276:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/rewarded_interstitial_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_rewarded_interstitial_ad_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:31:277:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/rewarded_interstitial_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_rewarded_interstitial_ad_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:31:283:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/rewarded_interstitial_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_rewarded_interstitial_ad_test;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:32:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_mobile_ads_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:32:154:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_mobile_ads_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:32:262:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_mobile_ads_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:32:263:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_mobile_ads_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:32:269:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_mobile_ads_test;
^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:33:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/fluid_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_fluid_ad_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:33:152:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/fluid_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_fluid_ad_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:33:260:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/fluid_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_fluid_ad_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:33:261:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/fluid_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_fluid_ad_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:33:267:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/fluid_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_fluid_ad_test;
^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:34:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/admanager_banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_admanager_banner_ad_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:34:163:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/admanager_banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_admanager_banner_ad_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:34:271:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/admanager_banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_admanager_banner_ad_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:34:272:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/admanager_banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_admanager_banner_ad_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:34:278:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/admanager_banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_admanager_banner_ad_test;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:35:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/app_open_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_app_open_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:35:152:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/app_open_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_app_open_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:35:260:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/app_open_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_app_open_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:35:261:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/app_open_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_app_open_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:35:267:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/app_open_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_app_open_test;
^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:36:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_banner_ad_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:36:153:
Error: Expected ';' after this.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_banner_ad_test;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:36:261:
Error: Expected a declaration, but got '-'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_banner_ad_test;
^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:36:262:
Error: Expected a declaration, but got '8_0_0_'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_banner_ad_test;
^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:36:268:
Error: Variables must be declared using the keywords 'const', 'final',
'var' or a type name.
Try adding the name of the type of the variable or the keyword 'var'.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/banner_ad_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_build_ios_SourcePackages_google_mobile_ads-8_0_0_test_banner_ad_test;
^^^^^^^^^^^^^^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:37:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/trivial_widget_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_trivial_widget_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:38:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/print_correct_local_widget_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_print_correct_local_widget_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:39:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/child_directory/trivial_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_child_directory_trivial_test;
            ^^^^^^
build/isolate_spawning_tester/child_test_isolate_spawner.dart:40:1:
Error: Directives must appear before any declarations.
            Try moving the directive before any declarations.
import
'/Volumes/Work/s/w/ir/x/w/flutter/dev/automated_tests/flutter_test/child_directory/second_trivial_test.dart'
as
_Volumes_Work_s_w_ir_x_w_flutter_dev_automated_tests_flutter_test_child_directory_second_trivial_test;
            ^^^^^^
Error: Couldn't resolve the package 'mockito' in
'package:mockito/annotations.dart'.
Error: Couldn't resolve the package 'mockito' in
'package:mockito/mockito.dart'.

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_test.dart:22:8:
Error: Not found: 'package:mockito/annotations.dart'
            import 'package:mockito/annotations.dart';
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_information_impl_test.dart:21:8:
Error: Not found: 'package:mockito/annotations.dart'
            import 'package:mockito/annotations.dart';
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_impl_test.dart:21:8:
Error: Not found: 'package:mockito/annotations.dart'
            import 'package:mockito/annotations.dart';
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.dart:25:8:
Error: Not found: 'package:mockito/annotations.dart'
            import 'package:mockito/annotations.dart';
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_test.dart:23:8:
Error: Not found: 'package:mockito/mockito.dart'
            import 'package:mockito/mockito.dart';
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_information_impl_test.dart:22:8:
Error: Not found: 'package:mockito/mockito.dart'
            import 'package:mockito/mockito.dart';
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_impl_test.dart:22:8:
Error: Not found: 'package:mockito/mockito.dart'
            import 'package:mockito/mockito.dart';
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.dart:26:8:
Error: Not found: 'package:mockito/mockito.dart'
            import 'package:mockito/mockito.dart';
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_test.mocks.dart:14:8:
Error: Not found: 'package:mockito/mockito.dart'
            import 'package:mockito/mockito.dart' as _i1;
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_information_impl_test.mocks.dart:14:8:
Error: Not found: 'package:mockito/mockito.dart'
            import 'package:mockito/mockito.dart' as _i1;
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_impl_test.mocks.dart:14:8:
Error: Not found: 'package:mockito/mockito.dart'
            import 'package:mockito/mockito.dart' as _i1;
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:17:8:
Error: Not found: 'package:mockito/mockito.dart'
            import 'package:mockito/mockito.dart' as _i1;
                   ^
Error: Couldn't resolve the package 'mockito' in
'package:mockito/src/dummies.dart'.

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:18:8:
Error: Not found: 'package:mockito/src/dummies.dart'
            import 'package:mockito/src/dummies.dart' as _i14;
                   ^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_test.mocks.dart:32:40:
Error: Type '_i1.Mock' not found.
            class MockUserMessagingChannel extends _i1.Mock
                                                   ^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_information_impl_test.mocks.dart:32:40:
Error: Type '_i1.Mock' not found.
            class MockUserMessagingChannel extends _i1.Mock
                                                   ^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/ump/consent_form_impl_test.mocks.dart:32:40:
Error: Type '_i1.Mock' not found.
            class MockUserMessagingChannel extends _i1.Mock
                                                   ^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:37:48:
Error: Type '_i1.SmartFake' not found.
            class _FakePlatformWebViewController_0 extends _i1.SmartFake
                                                           ^^^^^^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:43:29:
Error: Type '_i1.SmartFake' not found.
class _FakeObject_1 extends _i1.SmartFake implements Object {
                                        ^^^^^^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:48:29:
Error: Type '_i1.SmartFake' not found.
class _FakeOffset_2 extends _i1.SmartFake implements _i3.Offset {
                                        ^^^^^^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:53:36:
Error: Type '_i1.SmartFake' not found.
class _FakeMethodChannel_3 extends _i1.SmartFake implements
_i4.MethodChannel {
                                               ^^^^^^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:58:44:
Error: Type '_i1.SmartFake' not found.
            class _FakeWebViewControllerUtil_4 extends _i1.SmartFake
                                                       ^^^^^^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:64:43:
Error: Type '_i1.SmartFake' not found.
            class _FakeInitializationStatus_5 extends _i1.SmartFake
                                                      ^^^^^^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:70:43:
Error: Type '_i1.SmartFake' not found.
            class _FakeRequestConfiguration_6 extends _i1.SmartFake
                                                      ^^^^^^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:79:37:
Error: Type '_i1.Mock' not found.
class MockWebViewController extends _i1.Mock implements
_i8.WebViewController {
                                                ^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:417:37:
Error: Type '_i1.Mock' not found.
class MockAdInstanceManager extends _i1.Mock implements
_i12.AdInstanceManager {
                                                ^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:741:41:
Error: Type '_i1.Mock' not found.
            class MockWebViewControllerUtil extends _i1.Mock
                                                    ^^^^^^^^

flutter_test/build/ios/SourcePackages/google_mobile_ads-8.0.0/test/mobile_ads_test.mocks.dart:37:7:
Error: The non-abstract class '_FakePlatformWebViewController_0' is
missing implementations for these members:
             - PlatformWebViewController.addJavaScriptChannel
             - PlatformWebViewController.canGoBack
             - PlatformWebViewController.canGoForward
             - PlatformWebViewController.clearCache
             - PlatformWebViewController.clearLocalStorage
             - PlatformWebViewController.currentUrl
             - PlatformWebViewController.enableZoom
             - PlatformWebViewController.getScrollPosition
             - PlatformWebViewController.getTitle
             - PlatformWebViewController.getUserAgent
             - PlatformWebViewController.goBack
             - PlatformWebViewController.goForward
             - PlatformWebViewController.loadFile
             - PlatformWebViewController.loadFileWithParams
             - PlatformWebViewController.loadFlutterAsset
             - PlatformWebViewController.loadHtmlString
             - PlatformWebViewController.loadRequest
             - PlatformWebViewController.params
             - PlatformWebViewController.reload
             - PlatformWebViewController.removeJavaScriptChannel
             - PlatformWebViewController.runJavaScript
             - PlatformWebViewController.runJavaScriptReturningResult
             - PlatformWebViewController.scrollBy
             - PlatformWebViewController.scrollTo
             - PlatformWebViewController.setBackgroundColor
             - PlatformWebViewController.setHorizontalScrollBarEnabled
             - PlatformWebViewController.setJavaScriptMode
             - PlatformWebViewController.setOnConsoleMessage
             - PlatformWebViewController.setOnJavaScriptAlertDialog
             - PlatformWebViewController.setOnJavaScriptConfirmDialog
             - PlatformWebViewController.setOnJavaScriptTextInputDialog
             - PlatformWebViewController.setOnPlatformPermissionRequest
             - PlatformWebViewController.setOnScrollPositionChange
             - PlatformWebViewController.setOverScrollMode
             - PlatformWebViewController.setPlatformNavigationDelegate
             - PlatformWebViewController.setUserAgent
             - PlatformWebViewController.setVerticalScrollBarEnabled
             - PlatformWebViewController.supportsSetScrollBarsEnabled
            Try to either
             - provide an implementation,
             - inherit an implementation from a superclass or mixin,
             - mark the class as abstract, or
             - provide a 'noSuchMethod' implementation.
            class _FakePlatformWebViewController_0 extends _i1.SmartFake
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:214:16:
Context: 'PlatformWebViewController.addJavaScriptChannel' is defined
here.
              Future<void> addJavaScriptChannel(
                           ^^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:125:16:
Context: 'PlatformWebViewController.canGoBack' is defined here.
              Future<bool> canGoBack() {
                           ^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:132:16:
Context: 'PlatformWebViewController.canGoForward' is defined here.
              Future<bool> canGoForward() {
                           ^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:170:16:
Context: 'PlatformWebViewController.clearCache' is defined here.
              Future<void> clearCache() {
                           ^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:177:16:
Context: 'PlatformWebViewController.clearLocalStorage' is defined here.
              Future<void> clearLocalStorage() {
                           ^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:118:19:
Context: 'PlatformWebViewController.currentUrl' is defined here.
              Future<String?> currentUrl() {
                              ^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:290:16:
Context: 'PlatformWebViewController.enableZoom' is defined here.
              Future<void> enableZoom(bool enabled) {
                           ^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:283:18:
Context: 'PlatformWebViewController.getScrollPosition' is defined here.
              Future<Offset> getScrollPosition() {
                             ^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:234:19:
Context: 'PlatformWebViewController.getTitle' is defined here.
              Future<String?> getTitle() {
                              ^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:328:19:
Context: 'PlatformWebViewController.getUserAgent' is defined here.
              Future<String?> getUserAgent() {
                              ^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:141:16:
Context: 'PlatformWebViewController.goBack' is defined here.
              Future<void> goBack() {
                           ^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:150:16:
Context: 'PlatformWebViewController.goForward' is defined here.
              Future<void> goForward() {
                           ^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:59:16:
Context: 'PlatformWebViewController.loadFile' is defined here.
              Future<void> loadFile(String absoluteFilePath) {
                           ^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:73:16:
Context: 'PlatformWebViewController.loadFileWithParams' is defined here.
              Future<void> loadFileWithParams(LoadFileParams params) {
                           ^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:81:16:
Context: 'PlatformWebViewController.loadFlutterAsset' is defined here.
              Future<void> loadFlutterAsset(String key) {
                           ^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:91:16:
Context: 'PlatformWebViewController.loadHtmlString' is defined here.
Future<void> loadHtmlString(String html, {String? baseUrl}) {
                           ^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:109:16:
Context: 'PlatformWebViewController.loadRequest' is defined here.
              Future<void> loadRequest(LoadRequestParams params) {
                           ^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:50:49:
Context: 'PlatformWebViewController.params' is defined here.
              final PlatformWebViewControllerCreationParams params;
                                                            ^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:157:16:
Context: 'PlatformWebViewController.reload' is defined here.
              Future<void> reload() {
                           ^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:227:16:
Context: 'PlatformWebViewController.removeJavaScriptChannel' is defined
here.
Future<void> removeJavaScriptChannel(String javaScriptChannelName) {
                           ^^^^^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:196:16:
Context: 'PlatformWebViewController.runJavaScript' is defined here.
              Future<void> runJavaScript(String javaScript) {
                           ^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:207:18:
Context: 'PlatformWebViewController.runJavaScriptReturningResult' is
defined here.
Future<Object> runJavaScriptReturningResult(String javaScript) {
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:252:16:
Context: 'PlatformWebViewController.scrollBy' is defined here.
              Future<void> scrollBy(int x, int y) {
                           ^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:243:16:
Context: 'PlatformWebViewController.scrollTo' is defined here.
              Future<void> scrollTo(int x, int y) {
                           ^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:297:16:
Context: 'PlatformWebViewController.setBackgroundColor' is defined here.
              Future<void> setBackgroundColor(Color color) {
                           ^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:266:16:
Context: 'PlatformWebViewController.setHorizontalScrollBarEnabled' is
defined here.
              Future<void> setHorizontalScrollBarEnabled(bool enabled) {
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:304:16:
Context: 'PlatformWebViewController.setJavaScriptMode' is defined here.
Future<void> setJavaScriptMode(JavaScriptMode javaScriptMode) {
                           ^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:336:16:
Context: 'PlatformWebViewController.setOnConsoleMessage' is defined
here.
              Future<void> setOnConsoleMessage(
                           ^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:356:16:
Context: 'PlatformWebViewController.setOnJavaScriptAlertDialog' is
defined here.
              Future<void> setOnJavaScriptAlertDialog(
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:367:16:
Context: 'PlatformWebViewController.setOnJavaScriptConfirmDialog' is
defined here.
              Future<void> setOnJavaScriptConfirmDialog(
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:378:16:
Context: 'PlatformWebViewController.setOnJavaScriptTextInputDialog' is
defined here.
              Future<void> setOnJavaScriptTextInputDialog(
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:319:16:
Context: 'PlatformWebViewController.setOnPlatformPermissionRequest' is
defined here.
              Future<void> setOnPlatformPermissionRequest(
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:345:16:
Context: 'PlatformWebViewController.setOnScrollPositionChange' is
defined here.
              Future<void> setOnScrollPositionChange(
                           ^^^^^^^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:388:16:
Context: 'PlatformWebViewController.setOverScrollMode' is defined here.
Future<void> setOverScrollMode(WebViewOverScrollMode mode) async {
                           ^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:185:16:
Context: 'PlatformWebViewController.setPlatformNavigationDelegate' is
defined here.
              Future<void> setPlatformNavigationDelegate(
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:311:16:
Context: 'PlatformWebViewController.setUserAgent' is defined here.
              Future<void> setUserAgent(String? userAgent) {
                           ^^^^^^^^^^^^

../../../.pub-cache/hosted/pub.dev/webview_flutter_platform_interface-2.15.1/lib/src/platform_webview_controller.dart:259:16:
Context: 'PlatformWebViewController.setVerticalScrollBarEnabled' is
defined here.
              Future<void> setVerticalScrollBarEnabled(bool enabled) {
                  …
camsim99 pushed a commit that referenced this pull request May 26, 2026
This patch:
1. Updates the `-mios-simulator-version-min` ldflag to `15.0` (this
fixes the crash during test discovery).
2. refactors swiftc.py a bit, moves the target triplet logic from
darwin/BUILD.gn to swiftc.py so you can override the ios version in a
test target (but it's not absolutely necessary for this change since
it's the linker flag that makes the difference).
3. Migrates a few xctest tests to swift testing tests. The names of the
tests are kept as-is so the diff is easier to read.


### The Crash 
```
(lldb) bt
* thread flutter#9, name = '[Swift Testing] test discovery - loading test #0 (Task 3)', queue = 'com.apple.root.user-initiated-qos.cooperative', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000000000000 
    frame #1: 0x000000010ad0fb80 libios_test_flutter.dylib`closure #1() in variable initialization expression of static AccessibilityFeaturesTests.$s22ios_test_flutter_swift26AccessibilityFeaturesTestsV43accessibilityFeatureFlagRawValuesAreCorrect4TestfMp_24accessorc8120add5c86a9e3fMu_ at @__swiftmacro_22ios_test_flutter_swift26AccessibilityFeaturesTestsV43accessibilityFeatureFlagRawValuesAreCorrect4TestfMp_.swift:0
    frame flutter#2: 0x000000010224a39c Testing`partial apply for closure #1 in __checkClosureCall(performing:throws:mismatchExplanation:expression:comments:isRequired:sourceLocation:)
    frame flutter#3: 0x000000010224a39c Testing`partial apply for closure #1 in __checkClosureCall(performing:throws:mismatchExplanation:expression:comments:isRequired:sourceLocation:)
    frame flutter#4: 0x00000001022d8de8 Testing`(1) await resume partial function for generic specialization <(Testing.Test, Testing.Runner.Plan.Action)> of reabstraction thunk helper <τ_0_0 where τ_0_0: Swift.Sendable> from @escaping @isolated(any) @callee_guaranteed @async () -> (@out τ_0_0) to @escaping @callee_guaranteed @async () -> (@out τ_0_0, @error @owned Swift.Error)
    frame flutter#5: 0x000000010224ae24 Testing`closure #1 in __checkClosureCall(throws:performing:expression:comments:isRequired:sourceLocation:)
```

Initially I thought swift testing doesn't support test discovery in
linked dylibs but it's apparently not the case. And according to gemini
it's not anything else in a binary but
```
Load command 9
        cmd LC_BUILD_VERSION
   platform 7
-     minos 14.0
+     minos 15.6
        sdk 26.4
```

As it tried to use `15.6` in `swift_flags` and put `14.0` in `ldflags`
and hit the same crash.

This is what gemini has to say:
> This is the definitive end of the road! 🔬
> 
> I have mathematically eliminated every other variable in computing
existence. Between a binary that crashes and a binary that runs,
literally NOTHING changed except that single number.


Also it thinks it's because of this in `dyld`:
> Look at the code in dyldMain.cpp at Line 430:
> 
> cpp
> // dyldMain.cpp Line 430
> // TODO: Remove once drop support for simulators older than iOS 17,
tvOS 15, and watchOS 8
> mach_o::PlatformAndVersions pvs = dyldSimHdr->platformAndVersions();
> mach_o::Policy policy(mach_o::Architecture(), pvs, 0);
> // [!!] THE SMOKING GUN [!!]
> // Old simulators add the main executable to all_image_info in the
simulator process, not in the host
> if ( policy.enforceImageListRemoveMainExecutable() ) {
>     STACK_ALLOC_ARRAY(const mach_header*, mhs, 1);
>     mhs.push_back(state.config.process.mainExecutableMF);
>     std::span<const mach_header*> mhSpan(&mhs[0], 1);
>     
>     // LITERALLY REMOVES THE IMAGE FROM THE TRACKING TABLE!!
> state.externallyViewable->removeImages(state.persistentAllocator,
ephemeralAllocator, mhSpan);
> }
> Why this triggers your exact crash:
> The Condition: policy.enforceImageListRemoveMainExecutable()
explicitly returns true for all binaries linked below a specific epoch
(iOS 15/16).
> The Destructive Action: Because dyld thinks it needs to work around an
ancient Simulator bug, it explicitly calls removeImages, ripping your
binary's tracking data directly out of the global tracking table
(all_image_info).
> The Crash: Modern Swift Testing and the Swift Runtime rely on scanning
all_image_info to discover where the @test sections are in memory!
> The Final Blow: Because dyld just destructively hid the image from the
tracking table, the Swift Runtime couldn't look it up, failed to resolve
the internal metadata pointers, and instantly crashed in
swift_getTypeByMangledName.
> By simply lying and writing minos 15.0 into the header, you caused
policy.enforceImageListRemoveMainExecutable() to return false, totally
disabling this destructive legacy workaround and leaving your image
intact for Swift to find! 🔬🏆🏁

## Pre-launch Checklist

- [ ] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [ ] I read the [AI contribution guidelines] and understand my
responsibilities, or I am not using AI tools.
- [ ] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [ ] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [ ] I signed the [CLA].
- [ ] I listed at least one issue that this PR fixes in the description
above.
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [ ] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [ ] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

If this change needs to override an active code freeze, provide a
comment explaining why. The code freeze workflow can be overridden by
code reviewers. See pinned issues for any active code freezes with
guidance.

**Note**: The Flutter team is currently trialing the use of [Gemini Code
Assist for
GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code).
Comments from the `gemini-code-assist` bot should not be taken as
authoritative feedback from the Flutter team. If you find its comments
useful you can update your code accordingly, but if you are unsure or
disagree with the feedback, please feel free to wait for a Flutter team
member's review for guidance on which automated comments should be
addressed.

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[AI contribution guidelines]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#ai-contribution-guidelines
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS 26 Beta] Crash (SIGSEGV) in -[VSyncClient initWithTaskRunner:callback:] on ProMotion devices using implicit engine

1 participant