简体   繁体   English

GoogleAppMeasurement.xcframework 的格式不正确或未知,无法处理

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

I really don't know if this is specific to the package or to xcframework or to the setup.我真的不知道这是否特定于 package 或 xcframework 或设置。 In my case I just:就我而言,我只是:

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. C:\Users\Admin\AppData\Local\XamarinBuildDownloadCache\GAppM-8.9.1\GoogleAppMeasurement-8.9.1\Frameworks\GoogleAppMeasurement.xcframework 的格式不正确或未知,无法处理。

I've been using google ads in iOS projects for 10 years, updates tend to screw everything up, but it's usually fixable, this time I'm completely stuck.我已经在 iOS 项目中使用谷歌广告 10 年了,更新往往会搞砸一切,但它通常是可以修复的,这次我完全被卡住了。

I tried filing a bug report ( https://developercommunity.visualstudio.com/t/GoogleAppMeasurementxcframework-has-an/10153891?entry=problem ) and an issue on github ( https://github.com/xamarin/GoogleApisForiOSComponents/issues/573 ), but experience tells me it's useless... I tried filing a bug report ( https://developercommunity.visualstudio.com/t/GoogleAppMeasurementxcframework-has-an/10153891?entry=problem ) and an issue on github ( https://github.com/xamarin/GoogleApisForiOSComponents/issues /573 ),但经验告诉我它没用......

[EDIT] The project is here: http://www.andreasabbatini.org/Files/AdmobTest.zip [编辑] 项目在这里: http://www.andreasabbatini.org/Files/AdmobTest.zip

Answering my own question:回答我自己的问题:

I “think” I have found a solution, if not the cause.我“认为”我找到了解决方案,如果不是原因的话。 I cannot replicate it relably, but sometimes it happens sometimes not.我无法可靠地复制它,但有时会发生有时不会。

(in a brand new PC or VS install) 1-Create a project similar to that one. (在全新的 PC 或 VS 安装中) 1-创建一个类似的项目。 Add the Google Ads NuGet package.添加 Google Ads NuGet package。 Build.建造。 The build works构建工作

2-Create another project (or use that one, it's the same). 2-创建另一个项目(或使用那个,它是一样的)。 Add the same Google Ads NuGet package, then the Xamarin.Facebook.AudienceNetwork.iOS 6.9.0.1 https://github.com/xamarin/FacebookComponents/tree/main/Facebook.iOS/source/AudienceNetwork build this or the other project, for some strange reason, the above error starts to appear Add the same Google Ads NuGet package, then the Xamarin.Facebook.AudienceNetwork.iOS 6.9.0.1 https://github.com/xamarin/FacebookComponents/tree/main/Facebook.iOS/source/AudienceNetwork build this or the other project,由于某种奇怪的原因,上述错误开始出现

3-remove the above facebook package, the error is still there. 3-去掉上面的facebook package,错误依旧。 I've tried many things here, readding packages, etc none work我在这里尝试了很多东西,阅读包等都没有工作

4-remove the packages, delete manually C:\Users\Admin\AppData\Local\XamarinBuildDownloadCache and readd the packages one at a time. 4-删除包,手动删除 C:\Users\Admin\AppData\Local\XamarinBuildDownloadCache 并一次读取一个包。 Most of the time it works, but sometimes I have to repeat this step.大多数情况下它都有效,但有时我不得不重复这一步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未找到 Firebase/AnalyticsWithoutAdIdSupport 的 GoogleAppMeasurement 框架 - Framework not found GoogleAppMeasurement for Firebase/AnalyticsWithoutAdIdSupport 如何使用 SPM 托管在私有存储库中的 .zip 格式的二进制或 xcFramework - How to use binary or xcFramework in .zip format hosted in private repo using SPM 无法在 iOS 模拟器中运行 flutter 应用程序:警告:[CP] Unable to find matching.xcframework slice in... [Flutter] - Cannot run flutter app in iOS simulator: warning: [CP] Unable to find matching .xcframework slice in ... [Flutter] UIView方向错误 - UIView has incorrect orientation XMPP 未知消息格式 - XMPP Unknown Message Format 在 UIDatePicker 中获取不正确的 yyyy 格式 - Getting incorrect yyyy format in UIDatePicker Flutter 在 Xcode 中构建应用程序时出现错误 GoogleAppMeasurement - Flutter error GoogleAppMeasurement when build app in Xcode 将未知格式(任何格式)的字符串转换为日期 - Convert string with unknown format (any format) to date 参数未知的iOS字符串格式 - iOS String Format with unknown parameter 图像以未知格式保存到 Firebase - Image is saved in an unknown format to the Firebase
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM