【发布时间】:2018-12-18 18:27:52
【问题描述】:
尝试构建我的应用程序,但它总是给我的 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
【问题讨论】:
-
你能发布你的 Podfile 吗?
-
我其实正打算这样做XD
-
您能否取消注释平台行以删除 # 然后再次安装 pod
-
已经试过了,没什么变化
-
请阅读Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - 总结是这不是解决志愿者的理想方式,并且可能会适得其反。请不要将此添加到您的问题中。
标签: ios swift firebase google-cloud-firestore