Skip to content
This repository was archived by the owner on Sep 24, 2022. It is now read-only.
This repository was archived by the owner on Sep 24, 2022. It is now read-only.

executeFetchRequest:error: A fetch request must have an entity #1

@ID4Rasp

Description

@ID4Rasp

作者您好!我是Swift初学者,对iOS中对SAMBA的应用很感兴趣,很感谢您分享的代码!估计您也是中国人,就直接写中文了。
向您提交个问题,这个工程我用Xcode8.3编译通过,可以在iPad上执行,就是在进入目录,按右上角的Select时,Xcode会报错:
xComic[6015:684484] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'executeFetchRequest:error: A fetch request must have an entity.'
指向的代码是 ChooserViewController.swift文件中的函数private func findComic(_ context: NSManagedObjectContext, title: String) -> ComicRecord? 中的这行:

let comics = try context.fetch(r)
望能拨冗看下代码,不胜感激!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions