I just declared an entity called \"Users\" array:
var UsersArray = [Users]()
I got this error:
use of unresolved id
If your entity is actually created, just close and re-open XCode. This works for me everytime. The other solutions, such as clean build, build etc, didn't work for me.