diff --git a/packages/integration_test/ios/integration_test/Sources/integration_test/IntegrationTestPlugin.m b/packages/integration_test/ios/integration_test/Sources/integration_test/IntegrationTestPlugin.m index 8ce71b580ded3..78313b848ef34 100644 --- a/packages/integration_test/ios/integration_test/Sources/integration_test/IntegrationTestPlugin.m +++ b/packages/integration_test/ios/integration_test/Sources/integration_test/IntegrationTestPlugin.m @@ -79,7 +79,12 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result - (UIImage *)capturePngScreenshot { // Get all windows in the app +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + // TODO(jmagman) Use scenes instead of deprecated windows. See + // https://github.com/flutter/flutter/issues/154365 NSArray *windows = [UIApplication sharedApplication].windows; +#pragma clang diagnostic pop // Find the overall bounding rect for all windows CGRect screenBounds = [UIScreen mainScreen].bounds;