xamarin / GoogleApisForiOSComponents

MIT License
225 stars 162 forks source link

GoogleAppMeasurement.xcframework has an incorrect or unknown format and cannot be processed #573

Open andycted opened 2 years ago

andycted commented 2 years ago

VS 2022 Up to date, I just create a brand new iOS project, add the nuget package for google mobile ads, build, and get this error.

C:\Users\Admin\AppData\Local\XamarinBuildDownloadCache\GAppM-8.9.1\GoogleAppMeasurement-8.9.1\Frameworks\GoogleAppMeasurement.xcframework has an incorrect or unknown format and cannot be processed.

relevant info:

Microsoft Visual Studio Professional 2022 Version 17.3.4 VisualStudio.17.Release/17.3.4+32901.215 Microsoft .NET Framework Version 4.8.03761

Installed Version: Professional Mono Debugging for Visual Studio 17.3.20 (3f4cb00) Support for debugging Mono processes with Visual Studio. NuGet Package Manager 6.3.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/ Xamarin 17.3.0.296 (d17-3@a0ff24b) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 17.3.0.208 (remotes/origin/d17-3@e4f67afef) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 17.2.28 (9b3d244) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 13.0.0.0 (d17-3/030cd63) Xamarin.Android Reference Assemblies and MSBuild support. Mono: dffa5ab Java.Interop: xamarin/java.interop/d17-3@7716ae53 SQLite: xamarin/sqlite/3.38.5@df4deab Xamarin.Android Tools: xamarin/xamarin-android-tools/main@14076a6

Xamarin.iOS and Xamarin.Mac SDK 15.12.0.2 (87f98a75e) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

andycted commented 2 years ago

here is the project http://www.andreasabbatini.org/Files/AdmobTest.zip

DosangGu commented 1 year ago

Are there any updates in this issue? I'm having similar error after updates my visual studio 2022 to 17.7.5 and build ios app with paired mac.

K0Ma19 commented 1 year ago

@DosangGu Same problem. I created stackoverflow question because I didn't find a solution for this. You can follow the progress

Brionvega commented 1 year ago

I encountered a similar issue and managed to find a solution that worked for me. Here's what you can try:

If the problem is caused by long paths inside your project, it might be enough to change the environment variables related to the TEMP folder. Long paths can sometimes lead to issues during archiving.

  1. Go to Tools -> Options -> Xamarin -> iOS Settings.
  2. Locate the "Archives location" setting.
  3. In Visual Studio, change the path to something more appropriate, such as "C:\Archives"

This adjustment resolved the problem for me, and I hope it proves helpful for you as well?

omxie commented 1 year ago

I'm having a similar issue with Blazor Hybrid - Dotnet 7.0 - VS 17.7.5 for iOS Build. However, I'm not using Google Mobile Ads but using a (Firebase Plugin)

XhaiiCo commented 1 year ago

I had the same issue (with firebase plugin and iOS MAUI app), I reinstalled an older version of Visual Studio, and it works.

alessandromanfredi commented 1 year ago

I had the same issue (with firebase plugin and iOS MAUI app), I reinstalled an older version of Visual Studio, and it works.

Which version? I tried 17.7.4 that was working (i think) without success.

XhaiiCo commented 1 year ago

I had the same issue (with firebase plugin and iOS MAUI app), I reinstalled an older version of Visual Studio, and it works.

Which version? I tried 17.7.4 that was working (i think) without success.

17.7.4

alessandromanfredi commented 1 year ago

I had the same issue (with firebase plugin and iOS MAUI app), I reinstalled an older version of Visual Studio, and it works.

Which version? I tried 17.7.4 that was working (i think) without success.

17.7.4

I rolled back to 17.7.4 but i have the same error (but it was working before updating to .5). I uninstalled the .5 version and reinstalled .4 from scratch without success. Which rollback process did you follow?

K0Ma19 commented 1 year ago

I had the same issue (with firebase plugin and iOS MAUI app), I reinstalled an older version of Visual Studio, and it works.

What version of the plugin are you using?

alessandromanfredi commented 1 year ago

This is a temporary fix for the issue, tested in Visual Studio 17.7.5

https://github.com/xamarin/xamarin-macios/issues/19173