Error: module importing failed: invalid token (, line 37)

Cross posting from SO about this error to bring some attention as the support ticket for this has been open and unaddressed for a month. (edit: it has been addressed on Github, not sure why Realm didn’t address that in my support ticket)

Got a solution: see the following Question & Answers on SO

Remove Realm Model Object from Xcode