Codeless KEXT in XCode 12 is not Codeless

We have a Codeless kext. When built in Xcode 11, it works fine. When built in Xcode 12 - Xcode is generating a source code file named (kextname)_info.c, linking that against libkmod.a, and producing an Executable in the kext bundle. All this with no source code at all in the Xcode project, and no CFBundleExecutable in the Info.plist.

The kext appears to build/codesign/notarize properly, but then fails to load with error: kext with invalid signature (-67062) denied.

How can a codeless kext be produced in Xcode 12? A codeless kext should ONLY have the Info.plist and the code signature - no MacOS folder at all.

Thanks,
  • Patrick

Codeless KEXT in XCode 12 is not Codeless
 
 
Q