【问题标题】:Problem on Unity 2020 and Firebase (Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode')Unity 2020 和 Firebase 上的问题(无法解析参考“UnityEditor.iOS.Extensions.Xcode”)
【发布时间】:2020-12-02 02:31:26
【问题描述】:

我将 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.

【问题讨论】:

    标签: c# android ios firebase unity3d


    【解决方案1】:

    我在构建项目时启用了 iOS 构建支持,然后使用新版本的 Unity (2020) 加载项目并禁用了 iOS 构建支持,从而遇到了这个问题。

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

    【讨论】:

    • 谢谢艾伦。您的解决方案解决了问题。 Firebase 消息在 Unity 2020 上运行良好。但只是推送通知在 Unity 2020 上不起作用。我联系了 Firebase 团队,他们回答我 Unity 2020 被 firebase 破坏了。 (推送通知没有接收令牌)
    • 也为我工作。不知道为什么我没有先尝试,哈哈。现在很明显了。
    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-09-12
      • 1970-01-01
      • 2021-08-06
      • 1970-01-01
      • 2020-07-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多