- Follow initial steps from this post: https://medium.com/swlh/core-data-using-codable-68660dfb5ce8
- Check targets of generated classes. For MacOS that target was not automatically added leading to the above error.
- This gist: https://gist.github.com/Akhu/5ea1ecbd652fb269f7c4e7db27bc79cc includes what you need for the rest!