xamarin / GoogleApisForiOSComponents

MIT License
225 stars 156 forks source link

Native linking failed with Xamarin.Google.iOS.MobileAds SDK 8 #582

Open DiebBlue opened 1 year ago

DiebBlue commented 1 year ago

Hello,

I want to update Xamarin.Google.iOS.MobileAds package from version 7.66.0 to the latest available SDK 8.13.0.3.

I get this error: error MT5211: Native linking failed, undefined Objective-C class: GADInterstitial. The symbol '_OBJC_CLASS_$_GADInterstitial' could not be found in any of the libraries or frameworks linked with your application.

I use: Visual Studio 2022 17.4.0 Xamarin 17.4.0.301 Xamarin.iOS SDK 16.0.0.92 Xamarin.Forms 5.0.0.2515

Any ideas, whats going wrong here?

With best regards Daniel

Project.iOS -> C:\src\Projects\MyProject\MyProject\MyProject.iOS\bin\iPhone\Debug\MyProject.iOS.exe 2> /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch @/Users/diebblue/Library/Caches/Xamarin/mtbs/builds/MyProject.iOS/70a46ea6f38d6822178556451d8326e36d3f842cf92c95b42696eeb643ccf7af/obj/iPhone/Debug/response-file.rsp "--gcc_flags=-ObjC -lc++ -lsqlite3 -lz -ObjC -lz -lsqlite3" 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): error : linker command failed with exit code 1 (use -v to see invocation) 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): error MT5211: Native linking failed, undefined Objective-C class: GADInterstitial. The symbol '_OBJC_CLASS_$_GADInterstitial' could not be found in any of the libraries or frameworks linked with your application. 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'System' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'ole32' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'System' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'System' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'System.Net.Security' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'System' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'Kernel32' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'libEGL' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'ole32' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'ntdll' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'Bcrypt' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'Microsoft.Azure.Documents.ServiceInterop' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'kernel32' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'BCrypt' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'kernel32' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'dl' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'kernel32' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): warning MT5215: References to 'kernel32' might require additional -framework=XXX or -lXXX instructions to the native linker 2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(235,3): error MT5201: Native linking failed. Please review the build log and the user flags provided to gcc: -ObjC -lc++ -lsqlite3 -lz -ObjC -lz -lsqlite3 ========== Build: 1 erfolgreich, 1 Fehler, 2 aktuell, 0 übersprungen ==========