没有这样的模块“FirebaseFirestore”

Ric*_*ues 6 ios firebase swift google-cloud-firestore

尝试构建我的应用程序,但它总是给我带来 FirebaseFirestore 的问题。

\n\n

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

\n\n

以下是有问题的图像和一些代码:

\n\n

错误

\n\n

代码:

\n\n
import UIKit\nimport FirebaseFirestore //No such module \'FirebaseFirestore\'    \nvar docRefIm: DocumentReference!\nvar docRefImC: CollectionReference!\n\nclass carregar: UIViewController,UINavigationControllerDelegate, UIImagePickerControllerDelegate {\n    @IBOutlet weak var upload: UIButton!\n    @IBOutlet weak var myImage: UIImageView!\n    @IBAction func uploadBt(_ sender: Any) {\n\n        let image = UIImagePickerController()\n        image.delegate = self\n        image.allowsEditing = true\n        image.sourceType = UIImagePickerControllerSourceType.photoLibrary\n        self.present(image, animated: true){\n\n        }\n    }\n
Run Code Online (Sandbox Code Playgroud)\n\n

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

\n\n

这是 pod 文件:

\n\n
# Uncomment the next line to define a global platform for your project\n# platform :ios, \xe2\x80\x998.0\xe2\x80\x99\n\ntarget \'MarisaeRui\' do\n  # Comment the next line if you\'re not using Swift and don\'t want to use dynamic frameworks\n\n  use_frameworks!\n\n  # Pods for MarisaeRui\npod \'Firebase/Core\'\npod \'Firebase/Firestore\'\npod \'Firebase/Storage\'\n\n  target \'MarisaeRuiTests\' do\n    inherit! :search_paths\n    # Pods for testing\n\n  end\n\n  target \'MarisaeRuiUITests\' do\n    inherit! :search_paths\n    # Pods for testing\n\n  end\n\nend\n
Run Code Online (Sandbox Code Playgroud)\n\n

吊舱安装

\n

Pau*_*ien 1

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

最简单的解决方法是迁移到 Xcode 9 -本月提交到 App Store 时需要使用 Xcode 9

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