Xcode 11.3.1 on Mojave. Everything was fine until about half an hour ago when the delete key on my keyboard suddenly stopped working. It works in other apps, just not Xcode. It's the built-in keyboard on the MBP. Tried quitting and restarting Xcode, rebooting the Mac. It's really bizarre. When I hit delete, nothing happens, but then I will get a mesage that there is an invalid character in source file. If I click that, it offers to replace '' wtih ' '.
I copied the text into BBEdit and looked at it, and it appears it's inserting ASCII 0x08, which is backspace. Cmd-delete will delete the line, and option-delete will delete the word.
It's really hard to code with no delete key!