gpt4 book ai didi

ios - 请在您的 Podfile 中为此目标指定一个平台?

转载 作者:IT王子 更新时间:2023-10-29 05:23:02 24 4
gpt4 key购买 nike

我想配置 Firebase Firestore。我遵循了所有步骤,但在最后一步,我收到了下面提到的错误链接。

执行此pod install 命令后出现以下错误

[!] Automatically assigning platform ios with version 11.4 ontarget testing_gowtham because no platform was specified. Pleasespecify a platform for this target in your Podfile. Seehttps://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但我没有找到我需要更改哪一行。

如何解决这个问题?

最佳答案

将整个 pod 文件文本替换为以下文本,然后检查。

# Uncomment the next line to define a global platform for your project

# platform :ios, '9.0'

target 'testing_gowtham' do

use_frameworks!


pod 'Firebase/Core'
pod 'Firebase/Firestore'
end

(或)解决方案 2

platform :ios, '9.0' is working...I simply removed # this

关于ios - 请在您的 Podfile 中为此目标指定一个平台?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52040910/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com