kernel debug kit KDK_12.1_21C52

i use lldb debug kernel find this error: lldb version: lldb-1300.0.42.3 Swift version 5.5.2-dev i can not continue to use lldb to debug: (lldb) settings set target.load-script-from-symbol-file true ############################## WARNING! Python version 3 is not supported for xnu lldbmacros. Please restart your debugging session with the following workaround

This LLDB cannot debug kernel. Check KDK documentation. ##############################

how to solve this problem?

This is caused by Python version mismatch between LLDB and scripts inside kernel's dSYM. Python scripts inside your dSYM require Python 2 but Python 2 support has been removed from newer LLDBs.

To solve the problem you will have to install older LLDB/Xcode that still has Python 2 support.

kernel debug kit KDK_12.1_21C52
 
 
Q