diff --git a/resources/kdk_handler.py b/resources/kdk_handler.py index fc634193d..5f41a6183 100644 --- a/resources/kdk_handler.py +++ b/resources/kdk_handler.py @@ -174,6 +174,6 @@ class kernel_debug_kit_handler: if Path("/Library/Developer/KDKs").exists(): for file in Path("/Library/Developer/KDKs").iterdir(): if file.is_dir(): - if build in file.name: + if file.name.endswith(f"{build}.kdk"): return True return False \ No newline at end of file diff --git a/resources/sys_patch.py b/resources/sys_patch.py index f3b79a422..055775124 100644 --- a/resources/sys_patch.py +++ b/resources/sys_patch.py @@ -128,7 +128,7 @@ class PatchSysVolume: kdk_path = sys_patch_helpers.sys_patch_helpers(self.constants).determine_kdk_present(match_closest=False, override_build=downloaded_kdk) if kdk_path is None: - print("- Unable to find Kernel Debug Kit") + print(f"- Unable to find Kernel Debug Kit: {downloaded_kdk}") raise Exception("Unable to find Kernel Debug Kit") self.kdk_path = kdk_path print(f"- Found KDK at: {kdk_path}")