You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'An instance of NSFetchedResultsController requires a fetch request with sort descriptors'
Context
letrequest:FetchRequest<DataObject>=FetchRequest<DataObject>()self.observable = db.observable(request: request)
pedometerDataObservable.observe{(changes)in
switch changes {case.initial(let objects):print("\(objects.count) objects in the database")case.update(let deletions,let insertions,let modifications):print("\(deletions.count) deleted | \(insertions.count) inserted | \(modifications.count) modified")case.error(let error):print("Something went wrong", error.localizedDescription)}}
The text was updated successfully, but these errors were encountered:
firecrackerz
changed the title
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'An instance of NSFetchedResultsController requires a fetch request with sort descriptors'Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'An instance of NSFetchedResultsController requires a fetch request with sort descriptors'
App Crashes when using observable
May 10, 2019
What
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'An instance of NSFetchedResultsController requires a fetch request with sort descriptors'
Context
The text was updated successfully, but these errors were encountered: