GoogleApisForiOSComponents icon indicating copy to clipboard operation
GoogleApisForiOSComponents copied to clipboard

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

Open andycted opened this issue 2 years ago • 11 comments

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 avatar Sep 20 '22 10:09 andycted

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

andycted avatar Sep 22 '22 09:09 andycted

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.

DosangGu avatar Oct 11 '23 23:10 DosangGu

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

K0Ma19 avatar Oct 12 '23 08:10 K0Ma19

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?

Brionvega avatar Oct 12 '23 18:10 Brionvega

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)

omxie avatar Oct 15 '23 21:10 omxie

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

XhaiiCo avatar Oct 16 '23 07:10 XhaiiCo

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.

alessandromanfredi avatar Oct 16 '23 12:10 alessandromanfredi

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

XhaiiCo avatar Oct 16 '23 12:10 XhaiiCo

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?

alessandromanfredi avatar Oct 16 '23 14:10 alessandromanfredi

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?

K0Ma19 avatar Oct 16 '23 18:10 K0Ma19

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

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

alessandromanfredi avatar Oct 17 '23 11:10 alessandromanfredi