testInteractiveKeyboardAfterUserScrollToTopOfKeyboardWillTakeScreenshot crashes on iOS 26.2. The test calls -[FlutterTextInputPlugin takeKeyboardScreenshotAndDisplay], which calls [UIScreen snapshotViewAfterScreenUpdates:YES]. On iOS 26, this UIKit API seems to violate a @noescape block contract, crashing the process with:
closure argument passed as @noescape to Objective-C has escaped: file , line 19, column 162
The crash kills the test process mid-run. XCTest restarts and the remaining tests pass but the process crash causes xcodebuild to exit with code 65 (TEST FAILED).
build: https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Mac%20mac_unopt/9/overview
log: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8688125810590247857/+/u/test:_Tests_for_ios_debug_unopt_sim/stdout?format=raw
testInteractiveKeyboardAfterUserScrollToTopOfKeyboardWillTakeScreenshot crashes on iOS 26.2. The test calls -[FlutterTextInputPlugin takeKeyboardScreenshotAndDisplay], which calls [UIScreen snapshotViewAfterScreenUpdates:YES]. On iOS 26, this UIKit API seems to violate a
@noescapeblock contract, crashing the process with:The crash kills the test process mid-run. XCTest restarts and the remaining tests pass but the process crash causes xcodebuild to exit with code 65 (TEST FAILED).
build: https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Mac%20mac_unopt/9/overview
log: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8688125810590247857/+/u/test:_Tests_for_ios_debug_unopt_sim/stdout?format=raw