【问题标题】:Creating a Device Driver with Xcode Cocoa Application使用 Xcode Cocoa 应用程序创建设备驱动程序
【发布时间】:2011-10-14 09:49:37
【问题描述】:
    Hi Friends..
    I am try  to create a Device driver Application In X-Code, From This Link:- http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/KEXTConcept/KEXTConceptIOKit/iokit_tutorial.html I Got little bit Idea. Based on that I completed 

1)Create a New Project
    2)Edit the Information Property List
    3)Fill in the Header File
    4)Implement the Driver’s Entry Points.

    The Fifth Step is:  **Add Library Declarations**
    That mention like this .
    At this stage of creating your driver, you need to find out what those libraries are. The best way to do so is to run the kextlibs tool on your built kext and copy its output into your kext’s Info.plist file.

    But I a can't understand this lines,more over I can't fount $MyDriver/Build/Debug Folder. I opened Info.Plist file On Terminal I got Kext File . now I trying this in X-Code 4.

如果有人对此有所了解,请提供一些提示.. 感谢您的重播

【问题讨论】:

    标签: cocoa xcode4 device-driver iokit kernel-extension


    【解决方案1】:

    请注意,只有在您为驱动程序实现代码并成功构建后,才能运行 kextlibs。一旦你做到了这一点,在 XCode 中:

    • 构建你的 kext
    • 在项目的文件树中,找到“products”下的 kext
    • 打开一个终端窗口,输入kextlibs,后跟一个空格。
    • 从 XCode 中将 kext 拖放到终端窗口中
    • 按 Enter 键,几秒钟后您应该会得到如下输出:
     对于所有架构:
            com.apple.iokit.IOStorageFamily = 1.6.3
            com.apple.kpi.bsd = 10.8
            com.apple.kpi.iokit = 10.8
            com.apple.kpi.libkern = 10.8
            com.apple.kpi.mach = 10.8

    然后您将这些库标识符和版本添加到 Info.plist 并重新构建。请注意,如果您希望 kext 在旧版本的 Mac OS X 上运行,而不是在运行的系统上运行,则需要提供旧版本的库。 (最好在您支持的最旧版本上运行 kextlibs)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-29
      • 1970-01-01
      • 1970-01-01
      • 2018-05-28
      相关资源
      最近更新 更多