Custom keyboard layout not showing in System Preferences in 10.13.6
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.