我在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时
pod install。
说
[!] 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的最新版本...
但是未创建工作区。
如何解决问题...
提前谢谢。
答案 0 :(得分:0)
我已经解决了这个问题。
1)首先,您将.net3.5更改为.net 4x
2)将dotnet4软件包更新。...(firebase消息传递,动态等更新为dotnet4软件包)
3)在dotnet45文件夹中搜索Unity.Compat,Unity.Task,Unity.Compat。启用所需的包(ios,Editor,单独站立)。
4)取消选择3.5版本中的Unity.Compat,Unity.Task。 (ios,编辑器,独立运行)。
通过上述方法。我已经解决了这个错误。