Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS only in developer mode CreatePlatformView exception with SampleMMTAdmob #66

Closed
CalypsoSys opened this issue Feb 18, 2024 · 18 comments
Closed

Comments

@CalypsoSys
Copy link

Thread started: #9
Thread started: #10
Thread started: #11
[0:] An error occurred: '__Internal'. Callstack: ' at Plugin.MauiMTAdmob.Platforms.iOS.MTAdViewHandler.CreatePlatformView()
at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnCreatePlatformView() at Microsoft.Maui.Handlers.ViewHandler.OnCreatePlatformElement() at Microsoft.Maui.Handlers.ElementHandler.CreatePlatformElement() at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view) at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view)
at Plugin.MauiMTAdmob.Platforms.iOS.MTAdViewHandler.SetVirtualView(IView view)
at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at Microsoft.Maui.Controls.Handlers.Compatibility.VisualElementRenderer1[[Microsoft.Maui.Controls.Frame, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].ProcessAutoPackage(IElement element) at Microsoft.Maui.Controls.Handlers.Compatibility.VisualElementRenderer1[[Microsoft.Maui.Controls.Frame, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view, IPlatformViewHandler nativeViewHandler, Action1 onElementChanged, Frame& currentVirtualView, IPropertyMapper& _mapper, IPropertyMapper _defaultMapper, Boolean autoPackage) at Microsoft.Maui.Controls.Handlers.Compatibility.VisualElementRenderer1[[Microsoft.Maui.Controls.Frame, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].Microsoft.Maui.IElementHandler.SetVirtualView(IElement view)
at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.ScrollViewHandler.UpdateContentView(IScrollView scrollView, IScrollViewHandler handler, ICrossPlatformLayout crossPlatformLayout) at Microsoft.Maui.Handlers.ScrollViewHandler.MapContent(IScrollViewHandler handler, IScrollView scrollView) at Microsoft.Maui.PropertyMapper2.<>c__DisplayClass5_0[[Microsoft.Maui.IScrollView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IScrollViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].b__0(IElementHandler h, IElement v)
at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IScrollView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[UIKit.UIScrollView, Microsoft.iOS, Version=17.2.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IScrollView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[UIKit.UIScrollView, Microsoft.iOS, Version=17.2.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].SetVirtualView(IElement view)
at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.ContentViewHandler.UpdateContent(IContentViewHandler handler) at Microsoft.Maui.Handlers.ContentViewHandler.MapContent(IContentViewHandler handler, IContentView page) at Microsoft.Maui.PropertyMapper2.<>c__DisplayClass5_0[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IContentViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].b__0(IElementHandler h, IElement v)
at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view) at Microsoft.Maui.Handlers.ContentViewHandler.SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at Microsoft.Maui.Platform.ElementExtensions.ToUIViewController(IElement view, IMauiContext context)
at Microsoft.Maui.Handlers.WindowHandler.MapContent(IWindowHandler handler, IWindow window)
at Microsoft.Maui.PropertyMapper2.<>c__DisplayClass5_0[[Microsoft.Maui.IWindow, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IWindowHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v) at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.SetHandler(INativeObject nativeElement, IElement element, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.SetWindowHandler(UIWindow platformWindow, IWindow window, IMauiContext context) at Microsoft.Maui.Platform.ApplicationExtensions.CreatePlatformWindow(IApplication application, UIWindowScene windowScene, NSDictionary[] states) at Microsoft.Maui.Platform.ApplicationExtensions.CreatePlatformWindow(IUIApplicationDelegate platformApplication, IApplication application, UIApplication uiApplication, NSDictionary launchOptions) at Microsoft.Maui.MauiUIApplicationDelegate.FinishedLaunching(UIApplication application, NSDictionary launchOptions) at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 58 at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 94 at MMTAdmobSample.Program.Main(String[] args) in C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\iOS\Program.cs:line 13 at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span1 copyOfArgs, BindingFlags invokeAttr)'
The app has been terminated.

@marcojak
Copy link
Owner

Let me investigate the issue and I'll update you asap.

@marcojak
Copy link
Owner

I'm just tried to run it on my iPad and the sample app works fine.
Try to clean the project, remove bin and obj folder and rebuild the project.

Let me know if it solves the issue

@CalypsoSys
Copy link
Author

Same error, I am a newb with mobile development so there is that....

I'm trying to run as "iOS Local Device" in Visual Studio and not doing a build and deploying.
iPhone 8 iOS 16.7.5

Below is full run log from that attempt and thank you

Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Private.CoreLib.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/Microsoft.iOS.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Runtime.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Collections.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Runtime.InteropServices.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Threading.Thread.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Threading.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.Http.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Numerics.Vectors.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.Sockets.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Drawing.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Private.Uri.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/Xamarin.PreBuilt.iOS.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Collections.Concurrent.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/Xamarin.iOS.HotRestart.Application.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/netstandard.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.IO.MemoryMappedFiles.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.IO.Pipes.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Memory.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Diagnostics.Tracing.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Collections.NonGeneric.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Runtime.Intrinsics.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/Microsoft.Win32.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.NameResolution.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Diagnostics.DiagnosticSource.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Threading.ThreadPool.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Diagnostics.Process.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.ComponentModel.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.ComponentModel.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.ObjectModel.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Diagnostics.FileVersionInfo.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Reflection.Metadata.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Collections.Immutable.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Linq.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.IO.Compression.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Text.Encoding.Extensions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Collections.Specialized.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Security.Cryptography.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Formats.Asn1.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Runtime.Numerics.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.ComponentModel.TypeConverter.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Runtime.Loader.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Text.RegularExpressions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Reflection.Emit.ILGeneration.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Reflection.Emit.Lightweight.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Reflection.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.Security.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Security.Claims.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Runtime.Serialization.Formatters.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Resources.Writer.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Xml.XDocument.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Private.Xml.Linq.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Private.Xml.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Diagnostics.TraceSource.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.Quic.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.IO.Compression.Brotli.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Threading.Channels.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.NetworkInformation.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Reflection.Emit.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Linq.Expressions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.ComponentModel.EventBasedAsync.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Console.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Data.Common.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Xml.ReaderWriter.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Xml.XmlSerializer.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Transactions.Local.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Diagnostics.Contracts.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Diagnostics.TextWriterTraceListener.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Diagnostics.StackTrace.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.IO.Compression.ZipFile.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.IO.FileSystem.DriveInfo.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.IO.FileSystem.Watcher.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.IO.IsolatedStorage.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Linq.Queryable.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Linq.Parallel.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.Requests.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.WebHeaderCollection.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.ServicePoint.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.HttpListener.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.WebSockets.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Security.Principal.Windows.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.WebClient.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Web.HttpUtility.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.WebProxy.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.Mail.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.Ping.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Net.WebSockets.Client.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Reflection.DispatchProxy.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Runtime.CompilerServices.VisualC.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Runtime.Serialization.Primitives.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Runtime.Serialization.Xml.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Private.DataContractSerialization.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Runtime.Serialization.Json.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Threading.Overlapped.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Threading.Tasks.Parallel.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Xml.XPath.XDocument.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Xml.XPath.dll [External]
Thread started: #2
Thread started: .NET Timer #3
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/MMTAdmobSample.dll
2024-02-20 08:01:38.168 Xamarin.PreBuilt.iOS[1271:450102] Content folder: /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content

2024-02-20 08:01:38.172 Xamarin.PreBuilt.iOS[1271:450102] App path /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/MMTAdmobSample.dll

Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Maui.Controls.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Maui.dll [External]
2024-02-20 08:01:38.219 Xamarin.PreBuilt.iOS[1271:450102] AppDelegate name: AppDelegate

Thread started: #4
Thread started: .NET TP Gate #5
Thread started: #6
Thread started: #7
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Plugin.MauiMtAdmob.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Google.MobileAds.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Google.UserMessagingPlatform.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/BouncyCastle.Crypto.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Maui.Essentials.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.Cryptography.X509Certificates.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Globalization.Extensions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Text.Json.dll [External]
2024-02-20 08:01:38.614 Xamarin.PreBuilt.iOS[1271:450102] MTAdmob correctly licensed

2024-02-20 08:01:38.615 Xamarin.PreBuilt.iOS[1271:450102] Consent module is not available. Try on a real device.

Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.FileSystem.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.SecureString.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.Cryptography.Cng.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.Principal.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Reflection.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Threading.Timer.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Maui.Graphics.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.ComponentModel.DataAnnotations.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Threading.Tasks.Dataflow.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Reflection.TypeExtensions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Xml.XmlDocument.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.ServiceProcess.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.Cryptography.Encoding.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Runtime.Handles.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.CSharp.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Data.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Maui.Controls.Compatibility.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Formats.Tar.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.ValueTuple.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.AppContext.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Xml.Serialization.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Configuration.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Diagnostics.Debug.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Diagnostics.Tools.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Reflection.Extensions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.Cryptography.Algorithms.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Xml.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.VisualBasic.Core.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Windows.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Numerics.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Core.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Globalization.Calendars.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.ServiceModel.Web.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/mscorlib.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Dynamic.Runtime.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Runtime.Serialization.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Extensions.DependencyInjection.Abstractions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Extensions.Logging.Abstractions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.FileSystem.AccessControl.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/AA94EDA5-D8ED-43D8-B889-C5C5C5EDF628/MMTAdmobSample.app/System.Security.AccessControl.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.FileSystem.AccessControl.dll. Type:System.Security.AccessControl.DirectorySecurity. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.ObjectSecurity..ctor()
at System.Security.AccessControl.CommonObjectSecurity..ctor(Boolean isContainer)
at System.Security.AccessControl.NativeObjectSecurity..ctor(Boolean isContainer, ResourceType resourceType)
at System.Security.AccessControl.FileSystemSecurity..ctor()
at System.Security.AccessControl.DirectorySecurity..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.FileSystem.AccessControl.dll. Type:System.Security.AccessControl.FileSecurity. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.ObjectSecurity..ctor()
at System.Security.AccessControl.CommonObjectSecurity..ctor(Boolean isContainer)
at System.Security.AccessControl.NativeObjectSecurity..ctor(Boolean isContainer, ResourceType resourceType)
at System.Security.AccessControl.FileSystemSecurity..ctor()
at System.Security.AccessControl.FileSecurity..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Buffers.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.AccessControl.dll. Type:System.Security.Policy.Evidence. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.Policy.Evidence..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.AccessControl.dll. Type:System.Security.AccessControl.AuthorizationRuleCollection. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.AuthorizationRuleCollection..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.AccessControl.dll. Type:System.Security.AccessControl.PrivilegeNotHeldException. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.PrivilegeNotHeldException..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Extensions.Logging.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Extensions.Options.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Maui.Controls.Xaml.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.FileSystem.Watcher.dll. Type:System.IO.FileSystemWatcher. Exception: 'System.IO.FileSystem.Watcher is not supported on this platform.'. Callstack: ' at System.IO.FileSystemWatcher..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.FileSystem.Watcher.dll. Type:System.IO.InternalBufferOverflowException. Exception: 'System.IO.FileSystem.Watcher is not supported on this platform.'. Callstack: ' at System.IO.InternalBufferOverflowException..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Text.Encoding.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.Cryptography.Csp.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Runtime.CompilerServices.Unsafe.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Extensions.Configuration.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Extensions.Configuration.Abstractions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Extensions.Primitives.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Runtime.Extensions.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.Principal.Windows.dll. Type:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle. Exception: 'Windows Principal functionality is not supported on this platform.'. Callstack: ' at Microsoft.Win32.SafeHandles.SafeAccessTokenHandle..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.Principal.Windows.dll. Type:System.Security.Principal.IdentityNotMappedException. Exception: 'Windows Principal functionality is not supported on this platform.'. Callstack: ' at System.Security.Principal.IdentityNotMappedException..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.Principal.Windows.dll. Type:System.Security.Principal.IdentityReferenceCollection. Exception: 'Windows Principal functionality is not supported on this platform.'. Callstack: ' at System.Security.Principal.IdentityReferenceCollection..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Net.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.Pipes.AccessControl.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.Pipes.AccessControl.dll. Type:System.IO.Pipes.PipeSecurity. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.ObjectSecurity..ctor()
at System.Security.AccessControl.CommonObjectSecurity..ctor(Boolean isContainer)
at System.Security.AccessControl.NativeObjectSecurity..ctor(Boolean isContainer, ResourceType resourceType)
at System.IO.Pipes.PipeSecurity..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Threading.Tasks.Extensions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Text.Encodings.Web.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.UnmanagedMemoryStream.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Web.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Xml.Linq.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.ComponentModel.Annotations.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Threading.Tasks.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Resources.ResourceManager.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Win32.Registry.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Win32.Registry.dll. Type:Microsoft.Win32.SafeHandles.SafeRegistryHandle. Exception: 'Registry is not supported on this platform.'. Callstack: ' at Microsoft.Win32.SafeHandles.SafeRegistryHandle..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Win32.Registry.dll. Type:System.Security.AccessControl.RegistrySecurity. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.ObjectSecurity..ctor()
at System.Security.AccessControl.CommonObjectSecurity..ctor(Boolean isContainer)
at System.Security.AccessControl.NativeObjectSecurity..ctor(Boolean isContainer, ResourceType resourceType)
at System.Security.AccessControl.RegistrySecurity..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Transactions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Runtime.InteropServices.RuntimeInformation.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/WindowsBase.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.Compression.FileSystem.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Data.DataSetExtensions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.Cryptography.Primitives.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.IO.FileSystem.Primitives.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Globalization.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Net.Http.Json.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Security.Cryptography.OpenSsl.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Runtime.InteropServices.JavaScript.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Runtime.InteropServices.JavaScript.dll. Type:System.Runtime.InteropServices.JavaScript.JSExportAttribute. Exception: 'System.Runtime.InteropServices.JavaScript is not supported on this platform.'. Callstack: ' at System.Runtime.InteropServices.JavaScript.JSExportAttribute..ctor()
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Firebase.Core.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.Extensions.DependencyInjection.dll [External]
Thread started: .NET Sockets #8
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Text.Encoding.CodePages.dll [External]
Resolved pending breakpoint for 'MMTAdmobSample.Program.Main(System.String[])' to C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\iOS\Program.cs:10 [0x00000].
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.VisualBasic.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Drawing.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/System.Resources.Reader.dll [External]
Loaded assembly: data-0x11f754000 [External]
Loaded assembly: data-0x11f768000 [External]
2024-02-20 08:01:40.609 Xamarin.PreBuilt.iOS[1271:450102] Could not resolve assembly Microsoft.VisualStudio.DesignTools.TapContract, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.VisualStudio.DesignTools.TapContract.dll' or one of its dependencies.

2024-02-20 08:01:40.613 Xamarin.PreBuilt.iOS[1271:450102] Could not resolve assembly Xamarin.HotReload.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Xamarin.HotReload.Contracts.dll' or one of its dependencies.

Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointSendToIde(System.String)' to D:\a_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:423 [0x00000].
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to D:\a_work\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:418 [0x00000].
2024-02-20 08:01:40.817 Xamarin.PreBuilt.iOS[1271:450102] Could not resolve assembly Microsoft.VisualStudio.DesignTools.TapContract, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Microsoft.VisualStudio.DesignTools.TapContract.dll' or one of its dependencies.

2024-02-20 08:01:40.814 Xamarin.PreBuilt.iOS[1271:450102] Could not resolve assembly Xamarin.HotReload.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/25C85019-F563-4610-BD78-82524C61B221/Documents/MMTAdmobSample.content/Xamarin.HotReload.Contracts.dll' or one of its dependencies.

2024-02-20 08:01:40.882 Xamarin.PreBuilt.iOS[1271:450102] MTAdmob correctly licensed
2024-02-20 08:01:40.882 Xamarin.PreBuilt.iOS[1271:450102] Consent module is not available. Try on a real device.

2024-02-20 08:01:40.900 Xamarin.PreBuilt.iOS[1271:450102] You've implemented -[ application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.

Thread started: #9
Thread started: #10
Thread started: #11
[0:] An error occurred: '__Internal'. Callstack: ' at Plugin.MauiMTAdmob.Platforms.iOS.MTAdViewHandler.CreatePlatformView()
at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnCreatePlatformView() at Microsoft.Maui.Handlers.ViewHandler.OnCreatePlatformElement() at Microsoft.Maui.Handlers.ElementHandler.CreatePlatformElement() at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view) at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view)
at Plugin.MauiMTAdmob.Platforms.iOS.MTAdViewHandler.SetVirtualView(IView view)
at Microsoft.Maui.Handlers.ViewHandler2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at Microsoft.Maui.Controls.Handlers.Compatibility.VisualElementRenderer1[[Microsoft.Maui.Controls.Frame, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].ProcessAutoPackage(IElement element) at Microsoft.Maui.Controls.Handlers.Compatibility.VisualElementRenderer1[[Microsoft.Maui.Controls.Frame, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view, IPlatformViewHandler nativeViewHandler, Action1 onElementChanged, Frame& currentVirtualView, IPropertyMapper& _mapper, IPropertyMapper _defaultMapper, Boolean autoPackage) at Microsoft.Maui.Controls.Handlers.Compatibility.VisualElementRenderer1[[Microsoft.Maui.Controls.Frame, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].Microsoft.Maui.IElementHandler.SetVirtualView(IElement view)
at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.ScrollViewHandler.UpdateContentView(IScrollView scrollView, IScrollViewHandler handler, ICrossPlatformLayout crossPlatformLayout) at Microsoft.Maui.Handlers.ScrollViewHandler.MapContent(IScrollViewHandler handler, IScrollView scrollView) at Microsoft.Maui.PropertyMapper2.<>c__DisplayClass5_0[[Microsoft.Maui.IScrollView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IScrollViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].b__0(IElementHandler h, IElement v)
at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IScrollView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[UIKit.UIScrollView, Microsoft.iOS, Version=17.2.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IScrollView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[UIKit.UIScrollView, Microsoft.iOS, Version=17.2.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].SetVirtualView(IElement view)
at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) at Microsoft.Maui.Handlers.ContentViewHandler.UpdateContent(IContentViewHandler handler) at Microsoft.Maui.Handlers.ContentViewHandler.MapContent(IContentViewHandler handler, IContentView page) at Microsoft.Maui.PropertyMapper2.<>c__DisplayClass5_0[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IContentViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].b__0(IElementHandler h, IElement v)
at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view) at Microsoft.Maui.Handlers.ContentViewHandler.SetVirtualView(IView view) at Microsoft.Maui.Handlers.ViewHandler2[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at Microsoft.Maui.Platform.ElementExtensions.ToUIViewController(IElement view, IMauiContext context)
at Microsoft.Maui.Handlers.WindowHandler.MapContent(IWindowHandler handler, IWindow window)
at Microsoft.Maui.PropertyMapper2.<>c__DisplayClass5_0[[Microsoft.Maui.IWindow, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IWindowHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v) at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView) at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view) at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler) at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value) at Microsoft.Maui.Platform.ElementExtensions.SetHandler(INativeObject nativeElement, IElement element, IMauiContext context) at Microsoft.Maui.Platform.ElementExtensions.SetWindowHandler(UIWindow platformWindow, IWindow window, IMauiContext context) at Microsoft.Maui.Platform.ApplicationExtensions.CreatePlatformWindow(IApplication application, UIWindowScene windowScene, NSDictionary[] states) at Microsoft.Maui.Platform.ApplicationExtensions.CreatePlatformWindow(IUIApplicationDelegate platformApplication, IApplication application, UIApplication uiApplication, NSDictionary launchOptions) at Microsoft.Maui.MauiUIApplicationDelegate.FinishedLaunching(UIApplication application, NSDictionary launchOptions) at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 58 at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 94 at MMTAdmobSample.Program.Main(String[] args) in C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\iOS\Program.cs:line 13 at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span1 copyOfArgs, BindingFlags invokeAttr)'
The app has been terminated.

@marcojak
Copy link
Owner

This afternoon I'll try to release a new version of the plugin, and before releasing it I'll check if there is something wrong with the current version and I'll also update the sample code (also adding the one for .net 7).

Could you let me know about your environment? I would suggest you to build and debug your app from visual studio for Mac.
You could also try Vs connected to your Mac and with your device connected to the Mac.
I suspect that a local device on windows don't work.

Also, the consent on the simulator might not work correctly but it works on a real device (you can read it from the log).

@CalypsoSys
Copy link
Author

My development environment is

Windows 11 23H2 OS Build 22631.3155
Microsoft Visual Studio Community 2022
Version 17.9.0
VisualStudio.17.Release/17.9.0+34607.119

USB connected iPhone
iPhone 8
iOS 16.7.5

Remote MAC

  • well that seems to be down at the moment :)

@marcojak
Copy link
Owner

I've never used a remote MAC, I always connect my iPad directly on the MAC.
Are you trying to test the app with the iPhone connected directly to Windows?
In this case it might not work...
There are many limitations for it but let me have a look and let's see if I manage to do something about it

@CalypsoSys
Copy link
Author

Yes, iPhone connected directly to Windows machine.

I can run with Visual Studio from Windows with "iOS Local Devices" with a app that does not have admob, but when I include it I get the exceptions above.

image

@marcojak
Copy link
Owner

I'm investigating the issue.
I had planned a new release for today to add support for Native ads on Android but I'll move that to tomorrow to investigate this first.

@marcojak
Copy link
Owner

Yesterday I've released version 1.3.0.
Can you check if you still have the issue?

Also I've noticed that xcode 15.2 causes a lot of issues with Xamarin & MAUI.
After going back to xcode 15.1, everything started to work as expected.

@CalypsoSys
Copy link
Author

CalypsoSys commented Feb 22, 2024

getting some compile issues with sample project

1>------ Build started: Project: MMTAdmobSample, Configuration: Debug Any CPU ------
1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.6\Sdk\BundledVersions.targets(85,5): warning MA002: Starting with .NET 8, setting  <UseMaui>true</UseMaui>  does not automatically include NuGet package references in your project.  Update your project by including this item:  <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.6" />.  You can skip this warning by setting  <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences>  in your project file.
1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.6\Sdk\BundledVersions.targets(85,5): warning MA002: Starting with .NET 8, setting  <UseMaui>true</UseMaui>  does not automatically include NuGet package references in your project.  Update your project by including this item:  <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.6" />.  You can skip this warning by setting  <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences>  in your project file.
1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.6\Sdk\BundledVersions.targets(85,5): warning MA002: Starting with .NET 8, setting  <UseMaui>true</UseMaui>  does not automatically include NuGet package references in your project.  Update your project by including this item:  <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.6" />.  You can skip this warning by setting  <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences>  in your project file.
1>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\AndroidManifest.xml : warning XA4211: AndroidManifest.xml //uses-sdk/@android:targetSdkVersion '33' is less than $(TargetFrameworkVersion) ''. Using API-34 for ACW compilation.
1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.6\Sdk\BundledVersions.targets(85,5): warning MA002: Starting with .NET 8, setting  <UseMaui>true</UseMaui>  does not automatically include NuGet package references in your project.  Update your project by including this item:  <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.6" />.  You can skip this warning by setting  <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences>  in your project file.
1>MMTAdmobSample -> C:\Code\MauiMTAdmob\SampleMMTAdmob\bin\Debug\net8.0-maccatalyst\maccatalyst-x64\MMTAdmobSample.dll
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8022\tools\msbuild\iOS\Xamarin.Shared.targets(546,3): error : Error loading partial Info.plist template file 'obj\Debug\net8.0-ios\ios-arm64\resizetizer\sp\MauiInfo.plist': Could not find a part of the path 'C:\Code\MauiMTAdmob\SampleMMTAdmob\obj\Debug\net8.0-ios\ios-arm64\resizetizer\sp\MauiInfo.plist'.
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8022\tools\msbuild\iOS\Xamarin.Shared.targets(546,3): error :
1>Done building project "MMTAdmobSample.csproj" -- FAILED.
1>Done building project "MMTAdmobSample.csproj".
1>MMTAdmobSample -> C:\Code\MauiMTAdmob\SampleMMTAdmob\bin\Debug\net8.0-windows10.0.19041.0\win10-x64\MMTAdmobSample.dll
1>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\MainActivity.cs(19,120,19,124): error CS1503: Argument 5: cannot convert from 'bool' to 'string'
1>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\MainActivity.cs(19,133,19,141): error CS1503: Argument 7: cannot convert from 'string' to 'bool'
1>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\MainActivity.cs(19,143,19,147): error CS1503: Argument 8: cannot convert from 'bool' to 'string'
1>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\MainActivity.cs(19,149,19,208): error CS1503: Argument 9: cannot convert from 'Plugin.MauiMTAdmob.Extra.DebugGeography' to 'bool'
1>C:\Code\MauiMTAdmob\SampleMMTAdmob\App.xaml.cs(11,13,11,57): warning CS0618: 'IMTAdmob.UserPersonalizedAds' is obsolete: 'This property is obsolete. You should use an approved licensed consent management platform. The licensed version of this plugin uses UMP as CMP.'
1>Done building project "MMTAdmobSample.csproj" -- FAILED.
1>Done building project "MMTAdmobSample.csproj".
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 5:57 AM and took 03.860 seconds ==========

@marcojak
Copy link
Owner

because the sample project wasn't updated yet...
I've updated and tested it...
Try this new version.
Do a clean and remove the bin & obj folders to be sure

@CalypsoSys
Copy link
Author

more build errors -

1>------ Build started: Project: MMTAdmobSample7, Configuration: Debug Any CPU ------
2>------ Build started: Project: MMTAdmobSample, Configuration: Debug Any CPU ------
1>C:\Program Files\dotnet\sdk\8.0.200\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.Shared.targets(152,5): warning NETSDK1023: A PackageReference for 'Xamarin.AndroidX.Lifecycle.LiveData' was included in your project. This package is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see https://aka.ms/sdkimplicitrefs
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\AndroidManifest.xml : warning XA4211: AndroidManifest.xml //uses-sdk/@android:targetSdkVersion '33' is less than $(TargetFrameworkVersion) ''. Using API-34 for ACW compilation.
1>C:\Program Files\dotnet\sdk\8.0.200\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(251,5): warning NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
1>C:\Program Files\dotnet\sdk\8.0.200\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(251,5): warning NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
1>C:\Program Files\dotnet\sdk\8.0.200\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(251,5): warning NETSDK1201: For projects targeting .NET 8.0 and higher, specifying a RuntimeIdentifier will no longer produce a self contained app by default. To continue building self-contained apps, set the SelfContained property to true or use the --self-contained argument.
1>C:\Code\MauiMTAdmob\MMTAdmobSample7\App.xaml.cs(11,13,11,57): warning CS0618: 'IMTAdmob.UserPersonalizedAds' is obsolete: 'This property is obsolete. You should use an approved licensed consent management platform. The licensed version of this plugin uses UMP as CMP.'
1>C:\Code\MauiMTAdmob\MMTAdmobSample7\App.xaml.cs(11,13,11,57): warning CS0618: 'IMTAdmob.UserPersonalizedAds' is obsolete: 'This property is obsolete. You should use an approved licensed consent management platform. The licensed version of this plugin uses UMP as CMP.'
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\App.xaml.cs(11,13,11,57): warning CS0618: 'IMTAdmob.UserPersonalizedAds' is obsolete: 'This property is obsolete. You should use an approved licensed consent management platform. The licensed version of this plugin uses UMP as CMP.'
1>C:\Code\MauiMTAdmob\MMTAdmobSample7\App.xaml.cs(11,13,11,57): warning CS0618: 'IMTAdmob.UserPersonalizedAds' is obsolete: 'This property is obsolete. You should use an approved licensed consent management platform. The licensed version of this plugin uses UMP as CMP.'
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\App.xaml.cs(11,13,11,57): warning CS0618: 'IMTAdmob.UserPersonalizedAds' is obsolete: 'This property is obsolete. You should use an approved licensed consent management platform. The licensed version of this plugin uses UMP as CMP.'
1>MMTAdmobSample7 -> C:\Code\MauiMTAdmob\MMTAdmobSample7\bin\Debug\net7.0-maccatalyst\maccatalyst-x64\MMTAdmobSample7.dll
1>Done building project "MMTAdmobSample7.csproj".
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\App.xaml.cs(11,13,11,57): warning CS0618: 'IMTAdmob.UserPersonalizedAds' is obsolete: 'This property is obsolete. You should use an approved licensed consent management platform. The licensed version of this plugin uses UMP as CMP.'
2>MMTAdmobSample -> C:\Code\MauiMTAdmob\SampleMMTAdmob\bin\Debug\net8.0-maccatalyst\maccatalyst-x64\MMTAdmobSample.dll
1>MMTAdmobSample7 -> C:\Code\MauiMTAdmob\MMTAdmobSample7\bin\Debug\net7.0-ios\iossimulator-x64\MMTAdmobSample7.dll
2>Done building project "MMTAdmobSample.csproj".
1>Done building project "MMTAdmobSample7.csproj".
2>MMTAdmobSample -> C:\Code\MauiMTAdmob\SampleMMTAdmob\bin\Debug\net8.0-ios\iossimulator-x64\MMTAdmobSample.dll
1>C:\Code\MauiMTAdmob\MMTAdmobSample7\Platforms\Android\MainActivity.cs(21,18,21,31): warning CS0219: The variable 'enableOpenAds' is assigned but its value is never used
1>C:\Code\MauiMTAdmob\MMTAdmobSample7\App.xaml.cs(11,13,11,57): warning CS0618: 'IMTAdmob.UserPersonalizedAds' is obsolete: 'This property is obsolete. You should use an approved licensed consent management platform. The licensed version of this plugin uses UMP as CMP.'
2>Done building project "MMTAdmobSample.csproj".
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\App.xaml.cs(11,13,11,57): warning CS0618: 'IMTAdmob.UserPersonalizedAds' is obsolete: 'This property is obsolete. You should use an approved licensed consent management platform. The licensed version of this plugin uses UMP as CMP.'
1>MMTAdmobSample7 -> C:\Code\MauiMTAdmob\MMTAdmobSample7\bin\Debug\net7.0-android\MMTAdmobSample7.dll
1>C:\Program Files\dotnet\sdk\8.0.200\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.Shared.targets(152,5): warning NETSDK1023: A PackageReference for 'Xamarin.AndroidX.Lifecycle.LiveData' was included in your project. This package is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see https://aka.ms/sdkimplicitrefs
2>MMTAdmobSample -> C:\Code\MauiMTAdmob\SampleMMTAdmob\bin\Debug\net8.0-android\MMTAdmobSample.dll
1>Done building project "MMTAdmobSample7.csproj".
1>C:\Code\MauiMTAdmob\MMTAdmobSample7\App.xaml.cs(11,13,11,57): warning CS0618: 'IMTAdmob.UserPersonalizedAds' is obsolete: 'This property is obsolete. You should use an approved licensed consent management platform. The licensed version of this plugin uses UMP as CMP.'
1>MMTAdmobSample7 -> C:\Code\MauiMTAdmob\MMTAdmobSample7\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\MMTAdmobSample7.dll
1>Done building project "MMTAdmobSample7.csproj".
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\App.xaml.cs(11,13,11,57): warning CS0618: 'IMTAdmob.UserPersonalizedAds' is obsolete: 'This property is obsolete. You should use an approved licensed consent management platform. The licensed version of this plugin uses UMP as CMP.'
2>MMTAdmobSample -> C:\Code\MauiMTAdmob\SampleMMTAdmob\bin\Debug\net8.0-windows10.0.19041.0\win10-x64\MMTAdmobSample.dll
2>Done building project "MMTAdmobSample.csproj".
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\AndroidManifest.xml : error APT2260: resource mipmap/appicon (aka com.hightouch.mmtadmobsample:mipmap/appicon) not found.
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\AndroidManifest.xml : error APT2260: 
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\AndroidManifest.xml : error APT2260: This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\AndroidManifest.xml : error APT2260: resource mipmap/appicon_round (aka com.hightouch.mmtadmobsample:mipmap/appicon_round) not found.
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\AndroidManifest.xml : error APT2260: 
2>C:\Code\MauiMTAdmob\SampleMMTAdmob\Platforms\Android\AndroidManifest.xml : error APT2260: This error is likely caused by an issue with the AndroidManifest.xml file or an Android manifest generation attribute in a source code file.
2>C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.79\tools\Xamarin.Android.Aapt2.targets(214,3): error APT2067: failed processing manifest.
2>C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.79\tools\Xamarin.Android.Aapt2.targets(214,3): error APT2067:
2>Done building project "MMTAdmobSample.csproj" -- FAILED.
1>Done building project "MMTAdmobSample7.csproj".
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 7:56 AM and took 52.897 seconds ==========

@CalypsoSys
Copy link
Author

I also got a weird message about C:\Users\Joe\.nuget\packages\xamarin.google.ios.usermessagingplatform\1.1.0.1\buildTransitive\Xamarin.Google.iOS.UserMessagingPlatform.targets

not having the correct tags -it had
<_GoogleUserMessagingPlatformAssemblyName>Google.UserMessagingPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_GoogleMobileAdsAssemblyName>

so I changed to
<_GoogleUserMessagingPlatformAssemblyName>Google.UserMessagingPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_GoogleUserMessagingPlatformAssemblyName>

`

@marcojak
Copy link
Owner

I know, it's an error of that package.
I've added it in the "known issues and fixes" on my website.

It's here: https://hightouchinnovation.com/MMTAdmobGuide

@marcojak
Copy link
Owner

Any news?

@CalypsoSys
Copy link
Author

removed all code and did a git clone to local windows environment

MMTAdmobSample failed while running with (same error as before)

[0:] An error occurred: '__Internal'. Callstack: ' at Plugin.MauiMTAdmob.Platforms.iOS.MTAdViewHandler.CreatePlatformView() at Microsoft.Maui.Handlers.ViewHandler`2[[Plugin.MauiMTAdmob.Interfaces.IMTAdView, Plugin.MauiMtAdmob, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null],[Google.MobileAds.BannerView, Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnCreatePlatformView() at Microsoft.Maui.Handlers.ViewHandler.OnCreatePlatformElement() at Microsoft.Maui.Handlers.ElementHandler.CreatePlatformElement() at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)

MMTAdmobSample7 failed build with

1>MMTAdmobSample7 -> C:\Code\MauiMTAdmob\MMTAdmobSample7\bin\Debug\net7.0-ios\ios-arm64\MMTAdmobSample7.dll 1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\16.4.7133\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets(194,3): error : Info.plist file does not exist under C:\Temp\Xamarin\HotRestart\Bundles\1.0.103.11\89382dba\MMTAdmobSample7.app\Info.plist, please rebuild your project 1>Done building project "MMTAdmobSample7.csproj" -- FAILED.

@ernstrogers
Copy link

ernstrogers commented Mar 21, 2024

I'm having the exact same issue as CalypsoSys. I cloned the repo fresh, opened in VS on Windows machine, connected a physical iPhone 14 to my Windows machine, selected my iPhone as the build target. I'll switch to my Macbook tomorrow and use the same steps there.

Also note it builds fine for local physical Android device.

UPDATE: I added my license key to my code base and now it builds to the physical iOS device, but now fails when initializing the interstal ads with this line:

CrossMauiMTAdmob.Current.LoadInterstitial(INTERSTITIALID);

See issue #72 for more details.

@marcojak
Copy link
Owner

Version 1.6.1 should solve the issue with the CreatePlatformView.
Closing for now. Feel free to open it again if you experience the issue again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants