【问题标题】:How To Solve Cocapods could not find the compatible Versions如何解决 Cocoapods 找不到兼容的版本
【发布时间】:2019-01-02 06:54:11
【问题描述】:

我在 Unity 2018 中使用 Firebase 最新版本。在构建我的项目时,Unity 说

iOS framework addition failed due to a CocaPods installation 
failure.This will will likely result in an non-functional xCode 
Project.

这是我的 Pod 文件。

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target 'Unity-iPhone' do
pod 'Firebase/Analytics', '5.4.0'
pod 'Firebase/Auth', '5.12.0'
pod 'Firebase/Core', '5.12.0'
pod 'Firebase/Database', '5.12.0'
pod 'Firebase/Messaging', '5.9.0'
pod 'GoogleAppMeasurement', '5.3.0'
end

当我尝试使用安装 pod 时

吊舱安装。

它说

[!] CocoaPods could not find compatible versions for pod 
"Firebase/Auth":
In Podfile:
Firebase/Auth (= 5.12.0)

Specs satisfying the `Firebase/Auth (= 5.12.0)` dependency were 
found, but they required a higher minimum deployment target.

我也更新了最新版本的 cocapods...

但是没有创建工作区..

如何解决问题...

提前致谢。

【问题讨论】:

  • 更新 Firebase 。使用这个link 并检查版本

标签: firebase unity3d


【解决方案1】:

我已经解决了这个问题。

1) 首先你必须将 .net3.5 更改为 .net 4x

2) 更新 dotnet4 包....(firebase 消息传递、动态等到 dotnet4 包)

3) 在 dotnet45 文件夹中搜索 Unity.Compat、Unity.Task、Unity.Compat。启用所需的包(ios、编辑器、独立)。

4) 在 3.5 版本中取消选择 Unity.Compat、Unity.Task。 (ios,Editor,独立)。

按照上面的方法。我已经解决了这个错误。

【讨论】:

    猜你喜欢
    • 2022-07-03
    • 1970-01-01
    • 1970-01-01
    • 2020-07-29
    • 2021-07-21
    • 2019-05-07
    • 2021-09-04
    • 2021-09-23
    • 2021-07-12
    相关资源
    最近更新 更多