Repository: flutter
Issue: iOS unittest in engine fail on iPhone 15 pro simulator, M1 MacOS 14.1 XCode 15.0
Labels: platform-ios,engine,P2,team-ios,triaged-ios

Running the ios_test_flutter target tests locally on iPhone 15 pro simulator (17.0), got some failures in the SemanticsObjectTest:

These failure might indicate underlining issues that our current CI not catching.

Logs:
<details>
   <summary>[SemanticsObjectTest testCanHandleInfiniteScrollExtent]</summary>
```
Test Case '-[SemanticsObjectTest testCanHandleInfiniteScrollExtent]' started.
/../../flutter/shell/platform/darwin/ios/framework/Source/SemanticsObjectTest.mm:420: error: -[SemanticsObjectTest testCanHandleInfiniteScrollExtent] : ((CGRectEqualToRect(scrollView.frame, CGRectMake(x * effectivelyScale, y * effectivelyScale, w * effectivelyScale, h * effectivelyScale))) is true) failed
/../../flutter/shell/platform/darwin/ios/framework/Source/SemanticsObjectTest.mm:424: error: -[SemanticsObjectTest testCanHandleInfiniteScrollExtent] : ((CGSizeEqualToSize( scrollView.contentSize, CGSizeMake(w * effectivelyScale, (h + kScrollExtentMaxForInf + scrollPosition) * effectivelyScale))) is true) failed
Test Case '-[SemanticsObjectTest testCanHandleInfiniteScrollExtent]' failed (0.029 seconds).
Test Suite 'SemanticsObjectTest' failed at 2023-11-08 13:09:43.710.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.029 (0.032) seconds
Test Suite 'IosUnitTestsTests.xctest' failed at 2023-11-08 13:09:43.712.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.029 (0.035) seconds
Test Suite 'Selected tests' failed at 2023-11-08 13:09:43.713.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.029 (0.038) seconds
IosUnitTests(48060) MallocStackLogging: stack logs deleted from /private/tmp/stack-logs.48060.104f70000.IosUnitTests.SlNKFP.index
```
</details>

<details>
   <summary>[SemanticsObjectTest testCanHandleNaNScrollExtentAndScrollPoisition]</summary>
```
Test Case '-[SemanticsObjectTest testCanHandleNaNScrollExtentAndScrollPoisition]' started.
/../../flutter/shell/platform/darwin/ios/framework/Source/SemanticsObjectTest.mm:459: error: -[SemanticsObjectTest testCanHandleNaNScrollExtentAndScrollPoisition] : ((CGRectEqualToRect(scrollView.frame, CGRectMake(x * effectivelyScale, y * effectivelyScale, w * effectivelyScale, h * effectivelyScale))) is true) failed
/../../flutter/shell/platform/darwin/ios/framework/Source/SemanticsObjectTest.mm:462: error: -[SemanticsObjectTest testCanHandleNaNScrollExtentAndScrollPoisition] : ((CGSizeEqualToSize(scrollView.contentSize, CGSizeMake(w * effectivelyScale, h * effectivelyScale))) is true) failed
Test Case '-[SemanticsObjectTest testCanHandleNaNScrollExtentAndScrollPoisition]' failed (0.028 seconds).
Test Suite 'SemanticsObjectTest' failed at 2023-11-08 13:11:52.990.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.028 (0.030) seconds
Test Suite 'IosUnitTestsTests.xctest' failed at 2023-11-08 13:11:52.992.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.028 (0.033) seconds
Test Suite 'Selected tests' failed at 2023-11-08 13:11:52.993.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.028 (0.036) seconds
IosUnitTests(48607) MallocStackLogging: stack logs deleted from /private/tmp/stack-logs.48607.1034a4000.IosUnitTests.X40Z6v.index
```
</details>

<details>
   <summary>[SemanticsObjectTest testHorizontalFlutterScrollableSemanticsObject]</summary>
```
Test Case '-[SemanticsObjectTest testHorizontalFlutterScrollableSemanticsObject]' started.
/../../flutter/shell/platform/darwin/ios/framework/Source/SemanticsObjectTest.mm:382: error: -[SemanticsObjectTest testHorizontalFlutterScrollableSemanticsObject] : ((CGRectEqualToRect(scrollView.frame, CGRectMake(x * effectivelyScale, y * effectivelyScale, w * effectivelyScale, h * effectivelyScale))) is true) failed
/../../flutter/shell/platform/darwin/ios/framework/Source/SemanticsObjectTest.mm:385: error: -[SemanticsObjectTest testHorizontalFlutterScrollableSemanticsObject] : ((CGSizeEqualToSize( scrollView.contentSize, CGSizeMake((w + scrollExtentMax) * effectivelyScale, h * effectivelyScale))) is true) failed
Test Case '-[SemanticsObjectTest testHorizontalFlutterScrollableSemanticsObject]' failed (0.027 seconds).
Test Suite 'SemanticsObjectTest' failed at 2023-11-08 13:12:51.936.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.027 (0.030) seconds
Test Suite 'IosUnitTestsTests.xctest' failed at 2023-11-08 13:12:51.937.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.027 (0.033) seconds
Test Suite 'Selected tests' failed at 2023-11-08 13:12:51.938.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.027 (0.036) seconds
IosUnitTests(48927) MallocStackLogging: stack logs deleted from /private/tmp/stack-logs.48927.102f88000.IosUnitTests.D1zSIS.index
```
</details>

<details>
   <summary>[SemanticsObjectTest testVerticalFlutterScrollableSemanticsObject]</summary>
```
Test Case '-[SemanticsObjectTest testVerticalFlutterScrollableSemanticsObject]' started.
/../../flutter/shell/platform/darwin/ios/framework/Source/SemanticsObjectTest.mm:316: error: -[SemanticsObjectTest testVerticalFlutterScrollableSemanticsObject] : ((CGRectEqualToRect(scrollView.frame, CGRectMake(x * effectivelyScale, y * effectivelyScale, w * effectivelyScale, h * effectivelyScale))) is true) failed
/../../flutter/shell/platform/darwin/ios/framework/Source/SemanticsObjectTest.mm:319: error: -[SemanticsObjectTest testVerticalFlutterScrollableSemanticsObject] : ((CGSizeEqualToSize( scrollView.contentSize, CGSizeMake(w * effectivelyScale, (h + scrollExtentMax) * effectivelyScale))) is true) failed
Test Case '-[SemanticsObjectTest testVerticalFlutterScrollableSemanticsObject]' failed (0.028 seconds).
Test Suite 'SemanticsObjectTest' failed at 2023-11-08 13:13:26.886.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.028 (0.030) seconds
Test Suite 'IosUnitTestsTests.xctest' failed at 2023-11-08 13:13:26.888.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.028 (0.033) seconds
Test Suite 'Selected tests' failed at 2023-11-08 13:13:26.889.
	 Executed 1 test, with 2 failures (0 unexpected) in 0.028 (0.036) seconds
IosUnitTests(49056) MallocStackLogging: stack logs deleted from /private/tmp/stack-logs.49056.1006a4000.IosUnitTests.xsFSRz.index
```
</details>