Closed erossini closed 4 months ago
No problem,
Remove it, also on iOS, the plugin will automatically call it.
On Sun, 28 Jan 2024, 00:44 Enrico Rossini, @.***> wrote:
Sorry to bother you again. For iOS, I wrote this code
protected override MauiApp CreateMauiApp() { raw.SetProvider(new SQLite3Provider_sqlite3()); return MauiProgram.CreateMauiApp(); } public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { CrossMauiMTAdmob.Current.Init(Constants.MauiMTAdmobLicence); MobileAds.SharedInstance.Start(CompletionHandler); return base.FinishedLaunching(application, launchOptions); } private void CompletionHandler(InitializationStatus status) { }
Do I still need the MobileAds or can I remove it?
— Reply to this email directly, view it on GitHub https://github.com/marcojak/MauiMTAdmob/issues/59, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUIPIQNT3UGBSAZNCPI3U3YQWGMRAVCNFSM6AAAAABCNWRGSSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYDGOBWHE2TEMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I'm not sure if this issue is related to this component. The error I get is
ld: warning: object file (/Users/enrico/Library/Caches/Xamarin/mtbs/builds/LanguageInUse/1fa03704bb15e35c6f47a701d9d92131e3e0740198296a93338bb3c829bc9cf7/C:/Users/enric/AppData/Local/XamarinBuildDownloadCache/FAdM-8.13.0/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.xcframework/ios-arm64_x86_64-simulator/GoogleMobileAds.framework/GoogleMobileAds(GADGestureMock.o)) was built for newer iOS Simulator version (14.5) than being linked (14.0) ld: warning: object file (/Users/enrico/Library/Caches/Xamarin/mtbs/builds/LanguageInUse/1fa03704bb15e35c6f47a701d9d92131e3e0740198296a93338bb3c829bc9cf7/C:/Users/enric/AppData/Local/XamarinBuildDownloadCache/FAdM-8.13.0/Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.xcframework/ios-arm64_x86_64-simulator/GoogleMobileAds.framework/GoogleMobileAds(GADGestureRecognizerMock.o)) was built for newer iOS Simulator version (14.5) than being linked (14.0) ld: in /Users/enrico/Library/Caches/Xamarin/mtbs/builds/LanguageInUse/1fa03704bb15e35c6f47a701d9d92131e3 LanguageInUse C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8004\targets\Xamarin.Shared.Sdk.targets 1559
Is it a warning or an error? It seems an issue with the deployment target. Try to change it and see if it removes the warnings.
This is an error
I tried to change the deployment target
and in the project settings
I've just tried on my PC + Mac and it worked fine. The simulator I've tried it on is iPhone 15 with iOS 17.2.
I've just updated the sample code on this repository. Does it work for you? I suspect that that version of iOS might be too old.
Is this fixed? I'm closing it but feel free to open it again if you are still experiencing the issue
Sorry to bother you again. For iOS, I wrote this code
Do I still need the
MobileAds
or can I remove it?