Custom keyboard layout not showing in System Preferences in 10.13.6

customizationhigh sierrainternationalizationkeyboard

I have a custom keyboard layout which I would like to use and I've tried moving the .keylayout file to the /Library/Keyboard Layouts/ and the corresponding directory in home folder, but it doesn't show up in System Preferences app.
I've also tried having it only in home/Library/Keyboard Layouts/ or only in /Library/Keyboard Layouts/ and both but to no avail.

I would've tried installing it with Ukelele or creating the bundle but Ukelele won't open it saying only that it isn't valid XML. To me it seems to be correct and it was working at one point, but then after restart it disappeared from the System Preferences.

I have tried this already: Apple Support

You can see the .keylayout file here: Drive DAS Layout

Any help getting this to work is greatly appreciated!

Best Answer

A recent discussion in the Ukelele Group indicates that this problem can be caused by having references to certain illegal characters in the XML file, in particular U+0000 and Unicode surrogates.