Unity 2020和Firebase上的问题无法解析参考“ UnityEditor.iOS.Extensions.Xcode”

问题描述

我将Unity 2019.12上的Android应用程序升级到2020.1。使用Unity 2019,Firebase可以正常工作。但是在Unity 2020中,我有2个错误。我不使用IOS,仅使用Android。如何解决呢? 谢谢。

Assembly 'Assets/Firebase/Editor/Firebase.Editor.dll' will not be loaded due to errors:
Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

Assembly 'Assets/PlayServicesResolver/Editor/Google.IOSResolver_v1.2.135.0.dll' will not be loaded due to errors:
Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

解决方法

我遇到了这个问题,方法是在启用iOS Build Support的情况下构建项目,然后在禁用iOS Build Support的情况下以新版本的Unity(2020)加载项目。

在安装中添加iOS构建支持解决了缺少的依赖项问题。

,

这只是 android 应用程序的运行时错误,我们仍然可以构建和运行应用程序。不要担心错误,无需安装 iOS 构建支持。