我是新内核编程。我已经尝试加载此驱动程序 3 天。
我使用了很多命令来加载这个 kext 文件。但每次问题都是
终端。请任何人帮助我。
ensis-Mac-mini:~ ensis$ sudo su
sh-3.2# chown -R root:wheel /System/Library/Extensions/Driver.kext
sh-3.2# kextutil -n -t /System/Library/Extensions/Driver.kext 没有指定内核文件;
使用正在运行的内核进行链接。
/System/Library/Extensions/Driver.kext 无效;无法解决依赖关系。
/System/Library/Extensions/Driver.kext 无效;无法解决依赖关系。
/System/Library/Extensions/Driver.kext 无效;无法解决依赖关系。
/System/Library/Extensions/Driver.kext 的诊断:
验证失败:
Info dictionary missing required property/value:
IOKitPersonalities.Driver.IOClass
警告:
Personality has no CFBundleIdentifier; the kext's identifier will be inserted when
发送到 IO 目录:
Driver
如何解决上述程序
更新: Info.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "apple.com/DTDs/PropertyList-1.0.dtd">;
<plist version="1.0">
<dict>
<key>Driver</key>
<dict>
<key>CFBundleIdentifier </key>
<string>com.Driver.${PRODUCT_NAME:rfc1034identifier}</string>
<key>IOClass </key>
<string>com_osxkernel_driver_Driver</string>
<key>IOMatchCategory </key>
<string>com_osxkernel_driver_Driver</string>
<key>IOProviderClass</key>
<string>IOResources</string>
<key>IOResourceMatch </key>
<string>IOKit</string>
</dict>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "apple.com/DTDs/PropertyList-1.0.dtd">;
<plist version="1.0">
<dict>
<key>com.apple.kpi.iokit </key>
<string>11.3.0</string>
<key>com.apple.kpi.libkern </key>
<string>11.3.0</string>
</dict>
</plist>