diff --git a/src/Controls/samples/Controls.Sample.UITests/MauiProgram.cs b/src/Controls/samples/Controls.Sample.UITests/MauiProgram.cs index dc284fe07115..7a2db43ab715 100644 --- a/src/Controls/samples/Controls.Sample.UITests/MauiProgram.cs +++ b/src/Controls/samples/Controls.Sample.UITests/MauiProgram.cs @@ -11,7 +11,9 @@ public static class MauiProgram public static MauiApp CreateMauiApp() => MauiApp .CreateBuilder() +#if IOS || ANDROID .UseMauiMaps() +#endif .UseMauiApp() .Build(); }