I was trying to create NSManagedObject subclasses (2 related entities) automatically in Xcode. They are generated like this:
I recently tried the above answer and it failed. Somehow, Xcode was still generating the files.
I solved it using the following method:
This sounds like a bug in Xcode...