- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
尝试构建我的应用程序但始终无法构建,这总是给我带来 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/
public class Post extends AppCompatActivity { private static final String TAG = null; private TextVi
所以在寻找了很多这个问题的解决方案之后,我在 Github 上的一个项目中找到了答案,并决定在这里发布。只需在您的类(class)项目中添加这一行,然后消除错误 cannot resolve symb
尝试构建我的应用程序但始终无法构建,这总是给我带来 FirebaseFirestore 的问题。 它似乎可以识别 FirebaseStorage 和 Firebase,但不能识别 FireStore。
我想按日期对应用程序中的帖子进行排序,但是当我使用 orderby 时,我收到 null 检查运算符用于 null 值 错误。问题是当我同时输入“where”和“orderby”时出现问题。 我的代码
我想按日期对应用程序中的帖子进行排序,但是当我使用 orderby 时,我收到 null 检查运算符用于 null 值 错误。问题是当我同时输入“where”和“orderby”时出现问题。 我的代码
这个问题在这里已经有了答案: How to return DataSnapshot value as a result of a method? (6 个答案) 关闭 3 年前。 我需要一个函数来从
这个问题在这里已经有了答案: How to return DataSnapshot value as a result of a method? (6 个答案) 关闭 3 年前。 我有一个 Fire
我在我的应用中运行 Firebase Firestore。我在调用前两行时得到空指针异常: FirebaseApp.initializeApp(this) val db = FirebaseFires
我遵循了官方的 firebase android 指南,但是每当我尝试实例化 FirebaseFirestore 时,我都会收到“无法解析符号”错误。问题如下图: 在这被标记为重复之前,我已经搜索了几
我正在尝试关闭 Activity 的持久性,但我收到了上面的消息。以下是我在 onCreate() 中配置设置的方式: mFirestore = FirebaseFirestore.g
嗨,我有这个确切的数据库模式,其中有一个名为“状态”字段的文档,该字段有不同的值,它可以是“待处理”、“已发送”等。 我有一个 FirebaseUI Recycler,我想加载包含这两个值的所有文档。
我正在尝试在 Swift iOS 应用扩展中使用 Firestore Firestore 在主应用中工作正常,但 Firestore.firestore() 在应用扩展中返回 nil 当我在调试器中单
我想用 new architecture components 创建一个应用程序我已经设置了 View 和 ViewModel。目前,我的应用程序在 ViewModel 中执行所有 Firestore
我需要将 Intent 集合的 FirebaseFirestore 引用从一个 Activity 发送到另一个 Activity ,该引用将用于由第二个 Activity 添加文档。我怎样才能做到这一
我和这个人面临同样的问题 question 但他接受的答案对我没有帮助。 问题: 当一个用户退出时,另一个不同的用户登录时,由于 firebase 缓存系统,我的应用程序上显示的所有数据都来自前一个退
我在测试我的应用程序后无意中发现了这个。我有一个包含 cardview 的 recycleListView,每个 cardview 都有一个来自 firestore 的文档。在我随机删除一些文档后,它
我需要将我的 firebase pod 更新到最新版本,但是当我尝试在项目上运行 pod update 或 pod install 时,出现以下错误 Update all pods Updating
我正在尝试在 firestore 云函数中使用 getAll() 方法。问题是当我在 getAll() 中使用数组时,它会抛出一个错误: [ts] Argument of type 'Document
如何将 FirebaseFirestore.DocumentSnapshot 转换为列表/映射以供事后解析? 每个文档中的字段数量各不相同,因此无法手动完成。 documentation 中没有任何有
我正在制作一个应用程序,用户可以在其中发布信息,并且在发布时我通过使用 Firestore 数据库中的 ServerValue.TIMESTAMP 来节省发布时间。 问题是时间被保存在数据库中作为 m
我是一名优秀的程序员,十分优秀!