diff --git a/src/Core/src/Platform/iOS/MauiUIApplicationDelegate.Menu.cs b/src/Core/src/Platform/iOS/MauiUIApplicationDelegate.Menu.cs index df3353f95434..588c27ea5113 100644 --- a/src/Core/src/Platform/iOS/MauiUIApplicationDelegate.Menu.cs +++ b/src/Core/src/Platform/iOS/MauiUIApplicationDelegate.Menu.cs @@ -84,7 +84,9 @@ public override bool CanPerform(Selector action, NSObject? withSender) [SupportedOSPlatform("ios13.0")] [Export(KeyboardAcceleratorExtensions.MenuItemSelectedSelector)] - static internal void MenuItemSelected(UICommand uiCommand) + #pragma warning disable CA1822 // Selectors can't be static, or else it won't be found + internal void MenuItemSelected(UICommand uiCommand) + #pragma warning restore CA1822 { uiCommand.SendClicked(); }