It seems that I am doing something wrong or the linker is not very good in xcode (I imagine is the first situation :) ) but I found that I need to manually add the OSBundleLibrary references on the plist.
似乎我做错了或链接器在xcode中不是很好(我想是第一种情况:))但我发现我需要在plist上手动添加OSBundleLibrary引用。
The problem is that sometimes I don't know which bundles should I include, for example, I am building a kernel extension and I am using VFS, it compiles but when I try to load it into the kernel it complains that it can not resolve all the VFS functions.
问题是有时候我不知道应该包含哪些bundle,例如,我正在构建内核扩展而我正在使用VFS,它会编译但是当我尝试将其加载到内核时它会抱怨它无法解析所有VFS功能。
I usually include "com.apple.kernel.bsd" but when I check samples of VFS I can see "com.apple.kpi.bsd", a bit confusing.
我通常包括“com.apple.kernel.bsd”,但是当我查看VFS的样本时,我可以看到“com.apple.kpi.bsd”,有点令人困惑。
Can anyone share some light?
谁能分享一些亮点?
Thanks!
1 个解决方案
#1
I found the solution, there is a reference link with all the extensions:
我找到了解决方案,有一个包含所有扩展的参考链接:
#1
I found the solution, there is a reference link with all the extensions:
我找到了解决方案,有一个包含所有扩展的参考链接: