【发布时间】:2019-02-02 02:04:09
【问题描述】:
我想配置 Firebase Firestore。我遵循了所有步骤,但在最后一步,我得到了下面我提到的错误链接。
执行此 pod install 命令后出现以下错误
[!] 使用版本
11.4自动分配平台ios目标testing_gowtham,因为没有指定平台。请 在您的 Podfile 中为此目标指定一个平台。看https://guides.cocoapods.org/syntax/podfile.html#platform.
我的播客文件:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'testing_gowtham' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for testing_gowtham
target 'testing_gowthamTests' do
inherit! :search_paths
# Pods for testing
end
target 'testing_gowthamUITests' do
inherit! :search_paths
# Pods for testing
end
pod 'Firebase/Core'
pod 'Firebase/Firestore'
end
我看到了这个https://guides.cocoapods.org/syntax/podfile.html#platform,但我没有找到需要更改的行。
如何解决这个问题?
【问题讨论】:
-
查看第一行的注释,它说取消注释第二行以便设置平台。
-
我删除了第二行仍然是同样的错误先生
-
不要删除,取消注释
-
// # platform :ios, '9.0' i uncomment like this..但还是同样的错误,先生
-
平台:ios,'9.0'
标签: ios swift firebase google-cloud-firestore podfile