I searched around and found nothing on the Internet, so I posted this question. I hope he points out to others who are experiencing this in the right direction.
As it turned out, the reason was the new Realm model that I just created, which did not set the default constructor. As soon as this happened, I added a default constructor to the Realm model, and the build error disappeared.
So, check your Realm models for lack of default constructors if you get this error during build!
source share