无法将“UITableViewCell”(0x1096e3580)类型的值转换为“SwipeCellKit.SwipeTableViewCell”(0x106d231d0)?

1 realm uitableview ios swift

我有一个 TableVC,它有类别,当您点击一个类别时,它会将您带到其中的项目。但是当我这样做时,当应用程序崩溃时,我会得到以下多个错误分组:

1.

初始化 newrealm 时出错,错误域=io.realm 代码=1“提供的架构版本 0 小于上次设置的版本 1。” UserInfo={NSLocalizedDescription=提供的架构版本 0 小于上次设置的版本 1。,错误代码=1}

2.

2018-08-01 12:56:06.152225-0400 Todoey[35380:4690261] Interface Builder 文件中的未知类 SwipeTableViewCell。

3.

无法将“UITableViewCell”(0x1096e3580)类型的值转换为“SwipeCellKit.SwipeTableViewCell”(0x106d231d0)。

4.

2018-08-01 12:56:06.153831-0400 Todoey[35380:4690261] 无法将“UITableViewCell”(0x1096e3580)类型的值转换为“SwipeCellKit.SwipeTableView6d”(0x100261)。

我已经按照之前许多问题中列出的步骤进行了操作,但没有运气

这是我得到一个 -Thread 1: 信号 SIGABRT-

override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {

    let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! SwipeTableViewCell
    cell.delegate = self
    return cell
}
Run Code Online (Sandbox Code Playgroud)

请帮忙

在此处输入图片说明

小智 8

所有你需要做的,选择你的 tableViewCell -> 转到身份检查器 -> 选择自定义类作为 SwipeTableViewCell 和模块作为 SwipeCellKit。然后跑...

选择tableview单元格

这里选择自定义类名和模块