Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with NSFetchedResultsController. -copyWithZone: cannot be sent to an abstract object of class NSPredicate: Create a concrete instance! #18

Closed
codebeaulieu opened this issue May 11, 2016 · 1 comment

Comments

@codebeaulieu
Copy link

codebeaulieu commented May 11, 2016

I'm getting an interesting crash while running the setupTableView function on the following line:

let frc = NSFetchedResultsController(fetchRequest: request, managedObjectContext: managedObjectContext, sectionNameKeyPath: nil, cacheName: nil)

Just before I instantiate the NSFetchedResultsController I run a check to see if the ManageObjectContext exists and it does. Then I step into the NSFetchedResultsController object and it sets the managedObjectContext from my controller and then immediately crashes.

Any insight would be appriciated.

I get the following error:

'NSInvalidArgumentException', reason: '*** -copyWithZone: cannot be sent to an abstract object of class NSPredicate: Create a concrete instance!'

[edit: removed stack trace, see comment below]

@codebeaulieu
Copy link
Author

codebeaulieu commented May 12, 2016

The problem here was that in my setup I failed to set my fetch request properly before passing it into the NSFetchedResultsController.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant