尝试构建我的应用程序,但不能总是给我FirebaseFirestore问题。
似乎可以识别FirebaseStorage和Firebase,但不能识别FireStore。
这是有问题的图像和一些代码:
码:
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
最佳答案
这是在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/