Search code examples
xcodemacoskernel-extension

Link .o file @ xcode to create a KEXT


I have an object file (Created with NASM) and I want to link it with my project @ Xcode in order to get a KEXT file. Is it possible ? If yes, How do I do that?

thanks


Solution

  • I think your best bet is to create a static library (.a file) from the object file and this should then be easy to add to the Xcode target.

    From the command line:

    $ ar rc libstuff.a file.o