I followed the host setup instructions in the KDK readme, but this traceback leads me to think I have overlooked something.
Did you specifically do these steps from the KDK ReadMe* on the host device:
Step 1: Install Xcode
Install Xcode. Then install these additional Python packages for kernel debugging:
$ xcrun python3 -m pip install --user --ignore-installed macholib
$ xcrun python3 -m pip install --user --ignore-installed future
Those steps are to supposed to prevent this particular error:
showallkexts fails with AttributeError 'MemMachO' has no attribute 'allow_unknown_load_commands'
Beyond that, what exactly are you running on the host side and what other host configurations have you tried, both in terms of Xcode and system versions? Particularly if you have multiple Xcode installed or have been moving through multiple Xcode versions, I would also try using the "xcode-select" command line tool to explicitly designate "the System's" Xcode install. I have seen failures like this happen because the system has gotten confused about the One True Xcode™*.
*Historically, "the developer tools" were a large collection of tools/apps that were installed into the system itself (mostly in /Developer/, but also in other locations) and there simply wasn't any support for installing multiple copies of Xcode. Xcode was converted into an app by moving "everything" inside it's app bundle and then remapping various commands and search paths into that app bundle. However, that process can sometimes have issues, at which point you can end up using a mix of components/resources that come from unrelated locations (the current Xcode, previous Xcode installs, the existing system, etc.). xcode-select exists to reset that process, pointing everything into a single Xcode app bundle.
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware