Creating Managed Objects |

This is a companion discussion topic for the original entry at

On the Reminder+CoreDataClass, I get the error “Invalid redeclaration of ‘Reminder’.”

I tried opening the final version of the episode’s code, but alas, there isn’t even a Model directory in it.

I think these are auto generated somewhere in the file, as was the Reminder CoreData file already was. These videos need to be updated or at least have a message up front. Very confusing.

@jrhd437 - This is because Apple now automatically generates these files by default. To fix this, go to your entity in the data model and in the inspector under “Class” change the “Codegen” value to Manual/None. When I did this, for some reason it took a few builds before the error stopped reappearing, but it did fix it.

1 Like

Thank you! It would be nice if they updated this tutorial for these changes.