I just declared an entity called \"Users\" array:
var UsersArray = [Users]()
I got this error:
use of unresolved id
Other possible solutions:
(A) Re-launch Xcode
This is the solution that worked for me.
(B) Check if you did not forget to finalize your entity description
Typically: forgot to assign a type to one of the attributes (still "undefined").
(C) Clear derived data
Reason: The generated core data managed objects subclasses's source code files are in the project’s derived data location. Note: you might have to re-link your swift packages is using SPM.