在您的Podfile问题中为此目标指定一个平台



我想安装一些Firebase pod。我遵循了所有的步骤,但在最后一步,我得到了下面我提到的错误链接。

执行pod install命令后。我得到了以下错误。有人能给我解释一下吗?以及如何在不影响我的项目的情况下修复它?

[!]由于未指定平台,因此在目标TryFireBase上自动分配版本为14.2的平台ios。请在您的Podfile中为此目标指定一个平台。看见https://guides.cocoapods.org/syntax/podfile.html#platform。

我的podfile看起来像:

*#* Uncomment the next line to define a global platform for your project
*#* platform :ios, ‘9.0’
target ‘TryFireBase’ do
*#* Comment the next line if you don’t want to use dynamic frameworks
use_frameworks!
*#* Pods for TryFireBase
pod ‘Firebase/Auth’ 
pod ‘Firebase/Firestore’ 
pod ‘Firebase/Storage’ 
end

platform :ios, ‘10.0’添加到Podfile。

最近的Firebase版本至少需要iOS 10。

相关内容

最新更新