I resolved by doing that :
let fetchRequest = NSFetchRequest<NSFetchRequestResult>(entityName: "ListEntity")
Thank you so much for the help. I have been very frustrated. Thanks, TechiBot
When I try the solutions proposed by Jimmy, I get another error:
" Use of undeclared type 'ListEntity' "
Of course, I am not writing "ListEntity" but the name of my own entitiy. Have anybody experienced this?
Please post a copy of the line that’s triggering the problem.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
The solution above clears the error, however adding <NSFetchRequestResult> provides no benefits.
The correct solution is detailed here: https://developer.apple.com/library/prerelease/content/releasenotes/General/WhatNewCoreData2016/ReleaseNotes.html
This helps the compiler to expect [ListEntity] from our fetch request
let fetchRequest: NSFetchRequest<ListEntity> = ListEntity.fetchRequest
let searchResults = try context.fetch(request) //as? [ListEntity]
However, I can't get it to work as it autocompletes as ListEntity.fetchRequest()
Please feedback if you find how to get this to work.
This save me app! thank u so much!!!