Firebase出现(lldb)错误 [英] (lldb) error with Firebase

查看:90
本文介绍了Firebase出现(lldb)错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当单击特定的选项卡时,我都会收到lldb错误.该选项卡称为帐户",它应该从称为请求"的子节点中提取数据,并在列表(表视图控制器)中显示该数据.

I'm getting an lldb error whenever I click on a specific tab. The tab is called Account and its supposed to pull data from a child node called "requests" and display that data in a list(table view controller).

我之前已经做过多次.我什至在使用自己的回收代码来完成此任务,但错误不断出现.我已经确保每个按钮/标签都已连接到视图控制器,并且确保没有一个断开连接.

I've done this multiple times before. I'm even using my own recycled code for this task, but the error keeps showing up. I've already made sure each button/label is connected to the view controller and I've made sure none are disconnected.

该错误消息是说我的请求对象不符合键代码要求,但事实并非如此. 那还能是什么? 这是代码以及一些屏幕截图:

The error message is saying that my request object isn't key-code compliant, but that's not the case either. What else could it be? This is the code along with some screenshots:

这是我正在使用的方法. 仅当我调用此函数时才会出现错误.除此之外,屏幕只是空白,因此我认为问题必须出在该函数之内.顺便说一句,requestsArray是这样声明的请求的数组:var requestsArray = [requests]()

Here is the method I'm using. The error only comes up when I call this function. Other than that, the screen is just blank, so I figured that the issue has to be within the function. btw, requestsArray is an array of requests declared as such: var requestsArray = [requests]()

从该视图控制器中获取其余代码:

Heres the rest of the code from that view controller:

EDIT

EDIT

推荐答案

在Swift 4中,需要像这样将vars标记为@objc

In Swift 4, the vars need to be marked as @objc like this

class requests: NSObject {
    @objc var from: String?
    @objc var location: String?
    ...
}

这篇关于Firebase出现(lldb)错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆