Realm Compiled Error in Xcode 11

After running final version of the example, Xcode shows the compiled error as below

***** Terminating app due to uncaught exception ‘RLMException’, reason: ‘Primary key property ‘id’ does not exist on object ‘ToDoItem’’**

Does anybody know how to solve this problem?

Hi!

I found this on StackOverflow: RLMException

The answer from Gal Shahar on Sept 21 worked for me.

@karlostj Thank you for sharing your solution - much appreciated!