【问题标题】:Unity3d FireBase SDK after updating - not find compatible versions error on iOs更新后的 Unity3d FireBase SDK - 在 iO 上找不到兼容版本错误
【发布时间】:2019-02-10 06:51:50
【问题描述】:

在项目中更新 FireBase SDK 后出现错误:

由于 CocoaPods 安装失败,iOS 框架添加失败。这可能会导致 Xcode 项目无法正常运行。

失败后“pod repo update”执行成功。然后再次尝试“pod install”,但仍然失败。这可能是由于 CocoaPods 安装损坏所致。请参阅:https://guides.cocoapods.org/using/troubleshooting.html 了解潜在的解决方案。

pod 安装输出:

分析依赖关系 [!] CocoaPods 找不到 pod "Firebase/Core" 的兼容版本: 在 Podfile 中: Firebase/Analytics (= 5.5.0) 被解析为 5.5.0,这取决于 Firebase/Core (= 5.5.0)

Firebase/Core (= 5.4.0)

已找到满足 Firebase/Core (= 5.4.0)、Firebase/Core (= 5.5.0) 依赖项的规范,但它们需要更高的最低部署目标。

网站上的 Unity SDK 是 5.2.1 :(

需要任何帮助:)

【问题讨论】:

  • 你的 Podfile 的内容是什么?看起来它要求不兼容的 pod 版本。
  • Pod 文件:源 'github.com/CocoaPods/Specs.git' 平台:ios,'11.0' 目标 'Unity-iPhone' 做 pod 'Firebase/Analytics','5.5.0' pod 'Firebase/Auth', “5.5.0”吊舱“Firebase/Core”、“5.4.0”吊舱“Firebase/Messaging”、“5.5.0”吊舱“FirebaseInstanceID”、“3.1.1”结束

标签: ios firebase unity3d cocoapods


【解决方案1】:

在 CocoaPods 中从同一个 pod 的两个不同版本请求子规范是无效的。您的 Podfile 正在请求 5.4.0 从 Firebase pod 获取核心子规范,并为其他 Firebase 子规范请求 5.5.0

最简单的解决方案是更改Core版本参考:

pod 'Firebase/Core', '5.5.0'.

但是,最好完全删除版本规范以指定所有内容的最新支持版本 - 除非您有特殊需要使用旧版本。

【讨论】:

    猜你喜欢
    • 2022-08-09
    • 2021-05-07
    • 2021-04-01
    • 2021-07-23
    • 2019-09-27
    • 2022-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多