Core Data - replacing Xcode generated extensions

PS, the error occurs when I try to assign a value to the attributes of the entity scores.
so score.scoreID = UUID as an example.