Repository: flutter
Issue: XCode 15.1 Beta 3 - Objective C engine test failed [Asynchronous wait failed: Exceeded timeout of 10 seconds]
Labels: platform-ios,P2,team-ios,triaged-ios,from: manual-qa

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Testing XCode 15.1 Beta 3
Two test cases fail with a timeout: [Asynchronous wait failed: Exceeded timeout of 10 seconds]
* [FlutterTextInputPluginTest testInteractiveKeyboardScreenshotDismissedAfterPointerLiftedAboveMiddleYOfKeyboard]

* [FlutterTextInputPluginTest testInteractiveKeyboardShowKeyboardAndRemoveScreenshotAnimationIsReenabledAfterDelay]
### Steps to reproduce

Install XCode 15.1 Beta 3 and iOS 17.2 Simulator. 

1. Compiling the Engine https://github.com/flutter/flutter/wiki/Compiling-the-engine#compiling-for-ios-from-macos for simulator arm-64
2. Testing the engine, don't forget to add the ios variant flag for arm-64 mac simulator:
https://github.com/flutter/flutter/wiki/Testing-the-engine#objective-c---ios-embedding
3. Run obj-c test:

run command using the script run_test.py:

```console
testing/run_tests.py --type=objc --ios-variant=ios_debug_sim_unopt_arm64
```

**Expected Results:**

Running all tests should succeed.

### Actual results

The following test cases fails: 

[FlutterTextInputPluginTest testInteractiveKeyboardScreenshotDismissedAfterPointerLiftedAboveMiddleYOfKeyboard]

[FlutterTextInputPluginTest testInteractiveKeyboardShowKeyboardAndRemoveScreenshotAnimationIsReenabledAfterDelay]

### Logs

<details>
<summary>Logs</summary>

```console

Test Case '-[FlutterTextInputPluginTest testInteractiveKeyboardScreenshotDismissedAfterPointerLiftedAboveMiddleYOfKeyboard]' started.
2023-11-17 14:59:37.467041-0300 IosUnitTests[39595:284464] Failed to find assets path for "NSBundle </Users/qa/Library/Developer/CoreSimulator/Devices/A8A4EA59-5A03-4B42-9705-101F40AEDEBD/data/Containers/Bundle/Application/8CA5A907-5489-4B90-9B57-0AAB732EA146/IosUnitTests.app> (loaded)"
2023-11-17 14:59:37.474577-0300 IosUnitTests[39595:284464] [VERBOSE-2:isolate_configuration.cc(217)] application_kernel_asset or application_kernel_list_asset must be set
2023-11-17 14:59:37.474836-0300 IosUnitTests[39595:287382] [VERBOSE-2:engine.cc(210)] Engine run configuration was invalid.
2023-11-17 14:59:37.475284-0300 IosUnitTests[39595:287382] [VERBOSE-2:shell.cc(640)] Could not launch engine with configuration.
2023-11-17 14:59:51.884050-0300 IosUnitTests[39595:285252] [aqme]                AQMEIO.cpp:198   timed out after 15.000s (0 0); suspension count=0 (IOSuspensions: )
2023-11-17 14:59:51.885464-0300 IosUnitTests[39595:285252] [aqme]  MEDeviceStreamClient.cpp:467   AQME Default-InputOutput: client stopping after failed start: CA_UISoundClientBase@0x1127ed010; running count now 0
2023-11-17 14:59:51.885809-0300 IosUnitTests[39595:285252]      CA_UISoundClient.cpp:293   CA_UISoundClientBase::StartPlaying: AddRunningClient failed (status = -66681).
/Users/qa/Desktop/engine/src/flutter/testing/ios/IosUnitTests/App/main.m:10: error: -[FlutterTextInputPluginTest testInteractiveKeyboardScreenshotDismissedAfterPointerLiftedAboveMiddleYOfKeyboard] : Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Expect predicate BLOCKPREDICATE(0x1127fa1f0)".
Test Case '-[FlutterTextInputPluginTest testInteractiveKeyboardScreenshotDismissedAfterPointerLiftedAboveMiddleYOfKeyboard]' failed (14.652 seconds).

Test Case '-[FlutterTextInputPluginTest testInteractiveKeyboardShowKeyboardAndRemoveScreenshotAnimationIsReenabledAfterDelay]' started.
2023-11-17 14:59:52.925158-0300 IosUnitTests[39595:284464] Failed to find assets path for "NSBundle </Users/qa/Library/Developer/CoreSimulator/Devices/A8A4EA59-5A03-4B42-9705-101F40AEDEBD/data/Containers/Bundle/Application/8CA5A907-5489-4B90-9B57-0AAB732EA146/IosUnitTests.app> (loaded)"
2023-11-17 14:59:52.946643-0300 IosUnitTests[39595:284464] [BackgroundTask] Background Task 4 ("Flutter debug task"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2023-11-17 14:59:52.946979-0300 IosUnitTests[39595:284464] [BackgroundTask] Background Task 5 ("Flutter debug task"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2023-11-17 14:59:52.947203-0300 IosUnitTests[39595:284464] [BackgroundTask] Background Task 6 ("Flutter debug task"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2023-11-17 14:59:52.947422-0300 IosUnitTests[39595:284464] [BackgroundTask] Background Task 7 ("Flutter debug task"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2023-11-17 14:59:52.947630-0300 IosUnitTests[39595:284464] [BackgroundTask] Background Task 8 ("Flutter debug task"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2023-11-17 14:59:52.947842-0300 IosUnitTests[39595:284464] [BackgroundTask] Background Task 9 ("Flutter debug task"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(:) for your task in a timely manner to avoid this.
2023-11-17 14:59:52.948037-0300 IosUnitTests[39595:284464] [BackgroundTask] Background Task 10 ("Flutter debug task"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
2023-11-17 15:00:07.031371-0300 IosUnitTests[39595:287292] [aqme]                AQMEIO.cpp:198   timed out after 15.000s (0 0); suspension count=0 (IOSuspensions: )
2023-11-17 15:00:07.039018-0300 IosUnitTests[39595:287292] [aqme]  MEDeviceStreamClient.cpp:467   AQME Default-InputOutput: client stopping after failed start: <AudioQueueObject@0x106329000; Unknown FigPlayer; [39595]; play>; running count now 0
/Users/qa/Desktop/engine/src/flutter/testing/ios/IosUnitTests/App/main.m:10: error: -[FlutterTextInputPluginTest testInteractiveKeyboardShowKeyboardAndRemoveScreenshotAnimationIsReenabledAfterDelay] : Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Expect predicate BLOCKPREDICATE(0x11772d7b8)".
Test Case '-[FlutterTextInputPluginTest testInteractiveKeyboardShowKeyboardAndRemoveScreenshotAnimationIsReenabledAfterDelay]' failed (14.395 seconds).

```

</details>

Complete log file: 
[objc_test_logs.txt](https://github.com/flutter/flutter/files/13475970/objc_test_logs.txt)



### Flutter Doctor output

<details>
<summary>Doctor output</summary>

```console

<!-- Paste your output here -->

```

</details>