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!


2 Answers 2


I found here that a solution (that worked for me) was to use the Library folder in your user home folder (~/Library) as opposed to the root Library folder (/Library)


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.

  • I opened your keylayout file and found that many of your keys do point to U+0000, specifically the following ones, in the keyMap with index="2": 54–64, 68, 73, 74, 79, 80, 90. There may be other issues, however, as after commenting out those lines, Ukelele still says it's invalid XML.
    – Tuesday
    Commented Oct 13, 2018 at 20:13
  • @TimothyMueller-Harder there is also a surrogate dc49 maybe , and it should be xml 1.1. Commented Oct 13, 2018 at 21:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .