【问题标题】:No such module 'FirebaseFirestore'没有这样的模块“FirebaseFirestore”
【发布时间】: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

【问题讨论】:

标签: ios swift firebase google-cloud-firestore


【解决方案1】:

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

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

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

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2018-08-10
  • 2017-02-09
  • 2019-02-21
  • 2018-03-21
  • 2021-12-07
  • 2023-03-27
  • 2018-11-16
  • 2016-12-19
相关资源
最近更新 更多