gpt4 book ai didi

ios - 没有这样的模块 'FirebaseFirestore'

转载 作者:搜寻专家 更新时间:2023-10-31 22:54:35 24 4
gpt4 key购买 nike

尝试构建我的应用程序但始终无法构建,这总是给我带来 FirebaseFirestore 的问题。

它似乎可以识别 FirebaseStorage 和 Firebase,但不能识别 FireStore。

这里是有问题的图片和一些代码:

error

代码:

import UIKit
import FirebaseFirestore //No such module 'FirebaseFirestore'
var docRefIm: DocumentReference!
var docRefImC: CollectionReference!

class carregar: UIViewController,UINavigationControllerDelegate, UIImagePickerControllerDelegate {
@IBOutlet weak var upload: UIButton!
@IBOutlet weak var myImage: UIImageView!
@IBAction func uploadBt(_ sender: Any) {

let image = UIImagePickerController()
image.delegate = self
image.allowsEditing = true
image.sourceType = UIImagePickerControllerSourceType.photoLibrary
self.present(image, animated: true){

}
}

我尝试删除并重新安装 pod、删除模块、添加方案,但似乎没有任何效果。

这是 pod 文件:

# Uncomment the next line to define a global platform for your project
# platform :ios, ’8.0’

target 'MarisaeRui' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks

use_frameworks!

# Pods for MarisaeRui
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'

target 'MarisaeRuiTests' do
inherit! :search_paths
# Pods for testing

end

target 'MarisaeRuiUITests' do
inherit! :search_paths
# Pods for testing

end

end

pod install

最佳答案

这是在 Xcode 8.3.3 上使用 Firestore 的问题。

最简单的解决方法是转移到 Xcode 9 - 这将是 required this month for submissions to the App Store .

或者,您可以修复 Firestore 源中的构建错误。关注this issue了解更多详情。

关于ios - 没有这样的模块 'FirebaseFirestore',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51273189/

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